/* ============================================================
   ui-kit.css — фирменные UI-компоненты ProMassagist (v2.22)
   Кастомный селект (с AJAX-поиском), календарь, чекбокс с SVG-галкой.
   Дизайн-система: изумруд #10b981/#059669, gray-200 рамки, Inter,
   скругления 10–12px, тени как у Tailwind-карточек платформы.
   ============================================================ */

/* ── Скрытый нативный контрол (остаётся фокусируемым) ── */
.uik-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
}

/* ══════════════ Кастомный селект ══════════════ */
.uik-cs { position: relative; display: inline-flex; vertical-align: middle; }
.uik-cs.uik-cs-block { display: flex; width: 100%; }

.uik-cs-trigger {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: .5rem; width: 100%;
  padding: .5rem .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit; font-size: .875rem; line-height: 1.45;
  color: #111827;
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 38px;
}
.uik-cs-trigger:hover { border-color: #d1d5db; }
.uik-cs.open .uik-cs-trigger,
.uik-cs-trigger:focus-visible {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}
.uik-cs-left { display: flex; align-items: center; gap: .45rem; min-width: 0; flex: 1; }
.uik-cs-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uik-cs-placeholder { color: #9ca3af; }
.uik-cs-icon { display: inline-flex; align-items: center; color: #6b7280; }
.uik-cs-chevron {
  display: inline-flex; align-items: center; color: #9ca3af;
  transition: transform .18s ease; flex: 0 0 auto;
}
.uik-cs.open .uik-cs-chevron { transform: rotate(180deg); color: #059669; }

.uik-cs-menu {
  position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(17, 24, 39, .18), 0 4px 12px -4px rgba(17, 24, 39, .08);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 180px;
  max-width: 480px; /* на очень широких полях (flex-1) меню не превращается в ленту */
}
.uik-cs-menu.uik-up { top: auto; bottom: calc(100% + 6px); }

.uik-cs-search { display: block; padding: 2px 2px 6px; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; }
.uik-cs-search input {
  width: 100%; box-sizing: border-box;
  padding: .45rem .6rem;
  border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: .8125rem; font-family: inherit;
  outline: none; background: #f9fafb;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.uik-cs-search input:focus { border-color: #10b981; background: #fff; box-shadow: 0 0 0 3px rgba(16,185,129,.12); }

.uik-cs-status {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .6rem; font-size: .8125rem; color: #6b7280;
}
.uik-spin { animation: uik-rotate .8s linear infinite; color: #10b981; }
@keyframes uik-rotate { to { transform: rotate(360deg); } }

.uik-cs-list { list-style: none; margin: 0; padding: 0; }
.uik-cs-opt {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  font-size: .875rem; color: #111827;
  cursor: pointer; user-select: none;
  transition: background .12s ease, color .12s ease;
}
.uik-cs-opt:hover, .uik-cs-opt.hl { background: #ecfdf5; }
.uik-cs-opt.selected { background: #ecfdf5; color: #047857; font-weight: 600; }
.uik-cs-opt.selected::after {
  content: ''; margin-left: auto; width: 15px; height: 15px; flex: 0 0 auto;
  background: currentColor; color: #10b981;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.uik-cs-free { color: #059669; border: 1px dashed #a7f3d0; margin-bottom: 3px; }
.uik-cs-free:hover { background: #d1fae5; }
.uik-cs-empty { padding: .6rem; font-size: .8125rem; color: #9ca3af; text-align: center; }

/* ══════════════ Календарь ══════════════ */
.uik-cal-field { position: relative; display: inline-flex; vertical-align: middle; }

.uik-cal-trigger {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .75rem; min-height: 38px;
  background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px;
  font-family: inherit; font-size: .875rem; color: #111827;
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.uik-cal-trigger:hover { border-color: #d1d5db; }
.uik-cal-trigger:focus-visible {
  outline: none; border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.uik-cal-icon { display: inline-flex; color: #10b981; flex: 0 0 auto; }

.uik-cal {
  position: absolute; z-index: 70; top: calc(100% + 6px); left: 0;
  width: 268px;
  background: #fff;
  border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(17,24,39,.18), 0 4px 12px -4px rgba(17,24,39,.08);
  padding: 10px;
  user-select: none;
}
.uik-cal.uik-up { top: auto; bottom: calc(100% + 6px); }

.uik-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.uik-cal-title { font-size: .875rem; font-weight: 700; color: #111827; }
.uik-cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #6b7280; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.uik-cal-nav:hover { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }

.uik-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.uik-cal-dow {
  text-align: center; font-size: .6875rem; font-weight: 600;
  color: #9ca3af; text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 0;
}
.uik-cal-cell {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; border: none; border-radius: 8px;
  background: transparent; font-family: inherit; font-size: .8125rem;
  color: #374151; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.uik-cal-cell:hover { background: #ecfdf5; color: #065f46; }
.uik-cal-cell.other { color: #d1d5db; }
.uik-cal-cell.other:hover { color: #6ee7b7; }
.uik-cal-cell.today { box-shadow: inset 0 0 0 1.5px #6ee7b7; font-weight: 700; }
.uik-cal-cell.inrange { background: #d1fae5; color: #065f46; border-radius: 0; }
.uik-cal-cell.selected {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-weight: 700;
}
.uik-cal-cell.disabled { color: #e5e7eb; cursor: not-allowed; text-decoration: line-through; }
.uik-cal-cell.disabled:hover { background: transparent; color: #e5e7eb; }

.uik-cal-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.uik-cal-quick {
  padding: .3rem .6rem; border: none; background: transparent;
  font-family: inherit; font-size: .75rem; font-weight: 600;
  color: #059669; cursor: pointer; border-radius: 8px;
  transition: background .12s ease;
}
.uik-cal-quick:hover { background: #ecfdf5; }
.uik-cal-quick:first-child { color: #6b7280; }

/* ══════════════ Чекбокс с SVG-галкой ══════════════ */
.uik-check-native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; margin: 0 !important; padding: 0 !important;
  pointer-events: none !important;
}
.uik-check-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; flex: 0 0 auto;
  border: 1.5px solid #d1d5db; border-radius: .35em;
  background: #fff;
  color: #fff;
  cursor: pointer; vertical-align: middle;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  margin-inline-end: .1em;
}
.uik-check-box svg { width: .8em; height: .8em; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .18s cubic-bezier(.2,1.4,.4,1); }
.uik-check-box:hover { border-color: #10b981; }
.uik-check-box.checked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #059669;
  box-shadow: 0 1px 3px rgba(5, 150, 105, .35);
}
.uik-check-box.checked svg { opacity: 1; transform: scale(1); }

/* Фокус с клавиатуры: input фокусируем (скрытый) → подсвечиваем box */
.uik-check-native:focus-visible ~ .uik-check-box,
.uik-check-native:focus-visible + .uik-check-box {
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}

/* Селект/календарь внутри label с текстом — переносы не ломаем */
label .uik-cs, label .uik-cal-field { max-width: 100%; }

/* ══════════════ v2.24: зона загрузки файла (drag&drop) ══════════════ */
.uik-dz {
  display: block; width: 100%; box-sizing: border-box;
  border: 1.5px dashed #c7d2dc; border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  cursor: pointer; outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.uik-dz:hover { border-color: #34d399; background: #f0fdf4; }
.uik-dz:focus-visible { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.uik-dz.dragover {
  border-color: #10b981; background: #ecfdf5;
  box-shadow: inset 0 0 0 1px #10b981, 0 0 0 3px rgba(16,185,129,.12);
}
.uik-dz-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .4rem .7rem; padding: 14px 12px; text-align: center;
}
.uik-dz-icon { display: inline-flex; color: #10b981; flex: 0 0 auto; }
.uik-dz-text { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; color: #475569; }
.uik-dz-text b { color: #0f172a; font-weight: 600; }
.uik-dz-or { color: #94a3b8; }
.uik-dz-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem; border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: .8125rem; font-weight: 600;
  box-shadow: 0 1px 3px rgba(5,150,105,.35);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.uik-dz:hover .uik-dz-btn { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(5,150,105,.4); }
.uik-dz:active .uik-dz-btn { transform: translateY(0); filter: brightness(.97); }
.uik-dz-hint { flex-basis: 100%; font-size: .6875rem; color: #94a3b8; }

/* Выбранный файл */
.uik-dz.has-file { border-style: solid; border-color: #a7f3d0; background: #f0fdf4; }
.uik-dz-file {
  display: flex; align-items: center; gap: .7rem;
  padding: 10px 12px; text-align: left; width: 100%; box-sizing: border-box;
}
.uik-dz-thumb {
  width: 46px; height: 46px; object-fit: cover; border-radius: 9px;
  border: 1px solid #d1fae5; background: #fff; flex: 0 0 auto;
}
.uik-dz-ficon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 9px;
  background: #d1fae5; color: #059669; flex: 0 0 auto;
}
.uik-dz-fileinfo { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.uik-dz-fname {
  font-size: .8125rem; font-weight: 600; color: #065f46;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uik-dz-fsize { font-size: .6875rem; color: #64748b; }
.uik-dz-clear {
  flex: 0 0 auto; width: 26px; height: 26px; border: none; border-radius: 8px;
  background: transparent; color: #94a3b8; font-size: 17px; line-height: 1;
  cursor: pointer; transition: background .12s ease, color .12s ease;
}
.uik-dz-clear:hover { background: #fee2e2; color: #dc2626; }

/* Drag&drop на готовые стилизованные кнопки (аватар, фото салона) */
.uik-drop-ready.dragover {
  outline: 2px dashed #10b981; outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15) !important;
}

@media (max-width: 640px) {
  .uik-cs-menu { max-width: calc(100vw - 32px); }
  .uik-cal { width: min(268px, calc(100vw - 40px)); }
  .uik-dz-inner { padding: 12px 10px; }
}

/* ═══ v2.29: компактный селект для плотных мест (таблицы, редактор сертификата) ═══ */
.uik-cs--compact .uik-cs-trigger {
  padding: .25rem .5rem;
  min-height: 28px;
  border-radius: 8px;
  font-size: .75rem;
  gap: .35rem;
}
.uik-cs--compact .uik-cs-chevron svg { width: 10px; height: 10px; }
.uik-cs--compact .uik-cs-menu {
  font-size: .8125rem;
  min-width: 180px;
}

/* ═══ v2.30: Justified-галерея (фото любой ширины/высоты, ряды по всей ширине) ═══ */
.uik-jgal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.uik-jgal > * {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  min-width: 0;
}
.uik-jgal > * img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════ v2.38: blur-up lazy load (прогрессивная загрузка фото) ═══════════════ */
/* Пока img грузится: размытие + лёгкий зум + полупрозрачность; под ним — LQIP-мини
   (<имя>.mini.webp, фон) или shimmer. После load (класс pm-loaded) — плавная проявка. */
img.pm-blur {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.03);
  opacity: .55;
  transition: filter .5s ease, opacity .5s ease, transform .5s ease;
}
img.pm-blur:not(.pm-blur-lqip) {
  background-image: linear-gradient(110deg, #e5e7eb 8%, #f3f4f6 18%, #e5e7eb 33%);
  background-size: 200% 100%;
  animation: pmShimmer 1.4s linear infinite;
}
img.pm-blur.pm-loaded {
  filter: blur(0) saturate(1);
  transform: scale(1);
  opacity: 1;
  animation: none;
}
img.pm-blur.pm-err { filter: grayscale(.35) opacity(.65); transform: none; animation: none; }
@keyframes pmShimmer { to { background-position-x: -200%; } }
@media (prefers-reduced-motion: reduce) {
  img.pm-blur { transition: opacity .2s ease; transform: none; }
  img.pm-blur:not(.pm-blur-lqip) { animation: none; }
}

/* ═══════════════ v2.38: мини-карусель фото на карточке витрины ═══════════════ */
/* Desktop: при наведении на карточку картинки сами перелистываются (интервал).
   Mobile: нативный свайп — горизонтальный scroll-snap. Точки — индикатор. */
.sc-gal { position: absolute; inset: 0; overflow: hidden; }
.sc-gal-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}
.sc-gal-track::-webkit-scrollbar { display: none; }
.sc-gal-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sc-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-gal-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .2s ease;
}
.sc-gal:hover .sc-gal-dots, .sc-gal.is-touching .sc-gal-dots { opacity: 1; }
.sc-gal-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}
.sc-gal-dot.is-on { background: #fff; transform: scale(1.25); }
@media (hover: none) { .sc-gal-dots { opacity: .9; } } /* на тач-устройствах точки видны всегда */

/* ═══════════════ v2.38: галерея-карусель в карточке товара (стиль видео-карусели v2.28) ═══════════════ */
.spg-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f3f4f6;
  touch-action: pan-y;
}
.spg-track {
  display: flex;
  will-change: transform;
}
.spg-slide { flex: 0 0 100%; min-width: 100%; }
.spg-slide img { width: 100%; height: 17rem; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.spg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .92);
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  cursor: pointer;
  border: 0;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease, transform .12s ease;
  z-index: 3;
}
.spg-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.spg-arrow:active { transform: translateY(-50%) scale(.96); }
.spg-arrow--prev { left: .6rem; }
.spg-arrow--next { right: .6rem; }
.spg-stage:hover .spg-arrow, .spg-stage:focus-within .spg-arrow { opacity: 1; }
@media (hover: none) { .spg-arrow { opacity: 1; width: 2rem; height: 2rem; } } /* на тач — всегда видны */
.spg-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.spg-counter {
  position: absolute;
  top: .6rem; right: .6rem;
  padding: .1rem .55rem;
  border-radius: 9999px;
  background: rgba(17, 24, 39, .65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  z-index: 3;
  pointer-events: none;
}
.spg-dots {
  position: absolute;
  left: 0; right: 0; bottom: .55rem;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.spg-dot {
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}
.spg-dot.is-on { background: #f59e0b; transform: scale(1.3); }
.spg-thumbs { display: flex; gap: .5rem; margin-top: .55rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.spg-thumb {
  flex: 0 0 auto;
  width: 3.5rem; height: 3.5rem;
  border-radius: .5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #f9fafb;
  transition: border-color .15s ease, transform .15s ease;
}
.spg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spg-thumb:hover { transform: translateY(-1px); }
.spg-thumb.is-on { border-color: #f59e0b; }
@media (prefers-reduced-motion: reduce) { .spg-track { transition: none !important; } }

/* ═══════════════ v2.38: галерея товара в админке ═══════════════ */
.shp-gal { display: flex; flex-wrap: wrap; gap: .5rem; }
.shp-gal-item {
  position: relative;
  width: 5rem; height: 5rem;
  border-radius: .6rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
}
.shp-gal-item.is-main { border-color: #f59e0b; }
.shp-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shp-gal-item .shp-gal-btns {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.shp-gal-item button {
  width: 1.4rem; height: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: .35rem;
  background: rgba(255, 255, 255, .92);
  color: #374151;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}
.shp-gal-item button:hover { background: #fff; transform: scale(1.08); }
.shp-gal-item button.shp-gal-star.is-main { background: #f59e0b; color: #fff; }
.shp-gal-item button.shp-gal-del:hover { background: #fee2e2; color: #b91c1c; }
.shp-gal-badge {
  position: absolute; top: 2px; left: 2px;
  padding: 0 .3rem;
  border-radius: .3rem;
  background: rgba(245, 158, 11, .95);
  color: #fff;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   v2.40 — НИЖНЕЕ МОБИЛЬНОЕ МЕНЮ (таббар «как в приложении»)
   Один ряд иконок, при нехватке ширины — карусель (scroll-snap свайп).
   Пункты/иконки/роли настраиваются конструктором в админке
   (platform_settings.mobile_tabbar). Активный пункт — изумрудный.
   ═══════════════════════════════════════════════════════════════════ */
.mtb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; }
@media (max-width: 1023.98px) { body.mtb-on .mtb { display: block; } }
.mtb-bar {
  display: flex; align-items: stretch;
  background: #ffffff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 -6px 20px rgba(6, 78, 59, .08);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mtb-bar::-webkit-scrollbar { display: none; }
/* Карусель: правый градиент-хвост, когда пункты не влезли в один экран */
.mtb--scroll .mtb-bar { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); }
.mtb-item {
  scroll-snap-align: start;
  flex: 1 0 60px; min-width: 60px; max-width: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 4px 7px;
  border: 0; background: none; cursor: pointer;
  color: #6b7280; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mtb-item svg, .mtb-item img { width: 22px; height: 22px; }
.mtb-item img { object-fit: contain; }
.mtb-item span {
  font-size: 10px; font-weight: 600; line-height: 1;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mtb-item.is-active { color: #059669; }
.mtb-item.is-active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: #10b981;
}
.mtb-item:active { background: #f0fdfa; }

/* Отступ контента и подъём cookie-баннера над таббаром */
@media (max-width: 1023.98px) {
  body.mtb-on { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.mtb-on #cookie-banner { bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Лист «Ещё» — нижний выдвижной экран со всеми разделами */
.mtb-sheet-wrap { position: fixed; inset: 0; z-index: 110; } /* выше cookie-баннера (z-100) */
.mtb-sheet-wrap.mtb-hidden { display: none; }
.mtb-sheet-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s ease; }
.mtb-sheet-wrap.is-open .mtb-sheet-bg { opacity: 1; }
.mtb-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 74vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .25s ease;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
}
.mtb-sheet-wrap.is-open .mtb-sheet { transform: none; }
.mtb-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #e5e7eb; margin: 0 auto 12px; }
.mtb-sheet-title { font-size: 13px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.mtb-sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mtb-sheet-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff;
  color: #374151; font-size: 11px; font-weight: 600; text-align: center;
  text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.mtb-sheet-link svg, .mtb-sheet-link img { width: 22px; height: 22px; }
.mtb-sheet-link img { object-fit: contain; }
.mtb-sheet-link:active { background: #f0fdfa; border-color: #a7f3d0; }
.mtb-sheet-link.is-accent { background: #059669; border-color: #059669; color: #fff; }
.mtb-sheet-sep { grid-column: 1 / -1; height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════════
   v2.40 — ДВЕ КОЛОНКИ НА МОБИЛЬНОМ (витрины «как в приложении»)
   Сетки: магазин, курсы, специалисты, клиники. Компактные карточки <640px.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639.98px) {
  /* — Магазин: карточка как в приложениях (Ozon-стиль) — */
  #shop-grid { gap: 10px !important; }
  .shop-card { border-radius: 14px; }
  .shop-card .sc-img { height: 128px; }
  .shop-card .sc-body { padding: 8px 10px 10px; }
  .shop-card .sc-cat { font-size: 8.5px; letter-spacing: .04em; }
  .shop-card .sc-title { font-size: 12.5px; line-height: 1.3; }
  /* v2.47.5: таймер переехал на фото (.sc-sale-cd), в ценовом ряду — только
     цены; перенос внутри .sc-price — старая цена и бейдж −% уходят на 2-ю строку */
  .shop-card .sc-price span { font-size: 14px !important; white-space: nowrap; }
  .shop-card .sc-price .line-through { font-size: 10.5px !important; }
  .shop-card .sc-price .text-xs { font-size: 9.5px !important; }
  .shop-card .sc-buy { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
  .shop-card .sc-gal-dots { display: none; } /* точки не нужны в тесной карточке */

  /* — Курсы: v2.47 → см. секцию «КАРТОЧКА КУРСА (v2.47)» ниже — */

  /* — Специалисты (главная/поиск/направления): вертикальная карточка «как в приложении» — */
  .spec-card { padding: 8px 8px 10px !important; border-radius: 14px; }
  .spec-card .spec-row { display: block; }
  .spec-card .spec-ava { width: 100%; height: 110px; border-radius: 10px; margin-bottom: 7px; }
  .spec-card .spec-bio { display: none; }
  .spec-card .spec-name { font-size: 12.5px; }
  .spec-card .spec-name ~ svg { width: 12px; height: 12px; }
  .spec-card .spec-rate { flex-wrap: wrap; row-gap: 2px; }
  /* v2.47.5: nowrap — символ «₽» больше не перескакивает на новую строку */
  .spec-card .spec-price span { font-size: 14px !important; white-space: nowrap; }
  .spec-card .spec-price span + span { display: none; } /* «/ сеанс» не влезает в мини-карточку */

  /* — Клиники — */
  #clinics-list { gap: 10px !important; }
  .cl-card { border-radius: 14px; }
  .cl-card .cl-img { height: 96px; }
  .cl-card .cl-body { padding: 10px 12px; }
  .cl-card .cl-name { font-size: 12.5px; }
  .cl-card .cl-body p { font-size: 10px; }
  .cl-card .cl-count, .cl-card .cl-sep { display: none; } /* счётчик не влезает в мини-карточку */
}

/* v2.40: превью таббара в конструкторе (админка, вкладка «Моё меню») */
.tb-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.tb-preview .mtb-bar {
  border-top: 0;
  box-shadow: none;
  padding-bottom: 0;
}
.tb-preview .mtb-item { cursor: default; }
.tb-icon-btn { border-radius: .5rem; }

/* ═══════════════════════════════════════════════════════════════════
   v2.41 — РЕЖИМ «СПИСОК» ДЛЯ СПЕЦИАЛИСТОВ И КУРСОВ НА МОБИЛЬНОМ
   v2.47.5: специалисты и курсы переключаются НЕЗАВИСИМО (два ключа в
   админке → «Моё меню»):
     • специалисты — класс body.mlists-list (ключ listsMode: 'list' |
       'grid'), действует только на ширине <640px;
     • курсы — класс body.clists-list (ключ coursesListsMode), действует
       на всех ширинах (v2.47.3: на десктопе — 2 колонки, как карточки
       мастеров, см. секцию v2.47.3 ниже). До сохранения своего значения
       курсы наследуют listsMode (совместимость со старыми конфигами).
   Магазин и клиники всегда сеткой.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639.98px) {
  /* Контейнеры списков — в одну колонку. */
  body.mlists-list #home-top-specialists,
  body.mlists-list #search-organic,
  body.mlists-list #direction-specialists,
  body.clists-list #courses-list, /* v2.47.5: курсы — независимый ключ */
  body.mlists-list .from-amber-50 > .grid,
  body.mlists-list .from-amber-50 .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* — Карточка специалиста: горизонтальная, как в приложении-агрегаторе — */
  body.mlists-list .spec-card { padding: 12px 14px 12px !important; border-radius: 16px; }
  body.mlists-list .spec-card .spec-row { display: flex !important; align-items: flex-start; gap: 12px; }
  body.mlists-list .spec-card .spec-ava {
    width: 64px !important; height: 64px !important;
    margin-bottom: 0 !important; border-radius: 12px !important;
  }
  body.mlists-list .spec-card .spec-name { font-size: 14px !important; }
  body.mlists-list .spec-card .spec-name ~ svg { width: 16px; height: 16px; }
  body.mlists-list .spec-card .spec-rate { font-size: 12px; }
  /* описание снова видно (2 строки) — как на референсе */
  body.mlists-list .spec-card .spec-bio {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.mlists-list .spec-card .spec-price span { font-size: 16px !important; white-space: nowrap; }
  body.mlists-list .spec-card .spec-price span + span { display: inline !important; }

  /* — Карточка курса: v2.47 → см. секцию «КАРТОЧКА КУРСА (v2.47)» ниже — */
}

/* ═════════════════════════════════════════════════════════════
   v2.47 — КАРТОЧКА КУРСА: дизайн заказчика (сетка 2 колонки + список)
   Фото 16:10 с бейджами (цена/скидка — слева сверху, уровень — стеклянный
   слева снизу, розетка «пройден» — справа сверху), мета «N уроков • ~X ч»,
   заголовок и описание в 2 строки, внизу зелёная плашка «Подробнее».
   ═════════════════════════════════════════════════════════════ */
.gc-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(13, 138, 98, 0.08);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gc-card:hover,
.gc-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13, 138, 98, 0.12);
}

/* Фото 16:10 + лёгкое затемнение низа — бейдж уровня читается на любом фоне */
.gc-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
}
.gc-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* заглушка без постера */
.gc-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #10b981, #047857);
  display: flex; align-items: center; justify-content: center;
}
.gc-card__media::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

/* Бейджи на фото */
.gc-badges {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  max-width: 74%;
}
.gc-badges__row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gc-price {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  line-height: 1.2; color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.gc-price--free  { background: #0d8a62; }
.gc-price--paid  { background: #f59e0b; }
.gc-price--sale  { background: #e11d48; }
.gc-price--white { background: rgba(255, 255, 255, 0.95); color: #111827; }
.gc-price-old {
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.95);
  text-decoration: line-through;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
/* розетка «пройден» — правый верхний угол фото */
.gc-done { position: absolute; top: 8px; right: 8px; z-index: 2; }
.gc-done > span {
  padding: 3px !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.gc-done > span > span { display: none; } /* розетка без подписи */
/* уровень — стеклянный бейдж, левый нижний угол фото */
.gc-level {
  position: absolute; bottom: 7px; left: 8px; z-index: 2;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 8px; border-radius: 6px;
}
/* v2.63.1: чип «Доступ открыт» — правый нижний угол фото карточки курса
   (зеркально к стеклянному бейджу уровня слева снизу) */
.gc-avail {
  position: absolute; bottom: 7px; right: 8px; z-index: 2;
  font-size: 11.5px; font-weight: 700; line-height: 1.2;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(13, 138, 98, 0.95); color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
/* v2.63.1: мини-полоса прогресса обучения в нижней зелёной плашке */
.gc-prog {
  flex: 0 1 90px; min-width: 42px; max-width: 90px; height: 4px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.gc-prog > i { display: block; height: 100%; background: #fff; border-radius: 99px; }

/* Тело карточки */
.gc-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; min-width: 0; }
.gc-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: #6b7280;
  margin-bottom: 6px; white-space: nowrap; overflow: hidden;
}
.gc-meta .dot { color: #cbd5e1; }
/* Заголовок: строго 2 строки, чтобы карточки стояли в линию */
.gc-title {
  font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(15px * 1.3 * 2);
}
/* Описание: строго 2 строки без торчащих снизу букв */
.gc-desc {
  font-size: 12.5px; color: #6b7280; line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  max-height: calc(12.5px * 1.35 * 2);
}
/* Зелёная плашка-кнопка внизу карточки */
.gc-action {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: #f0fdf8; color: #0d8a62;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 10px; border-radius: 9px;
  transition: background-color 0.2s, color 0.2s;
}
.gc-card:hover .gc-action { background: #0d8a62; color: #fff; }
.gc-action--done { justify-content: center; background: #0d8a62; color: #fff; }
.gc-card:hover .gc-action--done { background: #047857; }
.gc-action--wait { justify-content: center; background: #fffbeb; color: #b45309; }
.gc-card:hover .gc-action--wait { background: #f59e0b; color: #fff; }

/* — v2.47: вариант «Список» (lc-*) — по умолчанию скрыт; включается классом
     body.clists-list на любой ширине (v2.47.3: мобильный — 1 колонка,
     десктоп ≥640px — 2 колонки, правила ниже; v2.47.5: независимый от
     специалистов ключ coursesListsMode). Разметка обоих вариантов
     живёт в одной карточке (см. _courseCard) — */
.lc-thumb, .lc-body { display: none; }

/* v2.47: тексты шапки раздела курсов — мобильный и десктопный варианты */
.courses-head .ch-mob { display: none; }
.courses-head .ch-desk { display: inline; }

/* — Мобильный: компактная шапка раздела + сетка 2 колонки (значения из кода
     заказчика) + режим «Список» (горизонтальная карточка, постер слева) — */
@media (max-width: 639.98px) {
  .courses-head { margin-bottom: 16px !important; }
  .courses-head .ch-mob { display: inline; }
  .courses-head .ch-desk { display: none; }
  .courses-head h1 { font-size: 22px !important; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
  .courses-head p { font-size: 13.5px !important; margin-top: 5px !important; line-height: 1.45; color: #6b7280; }

  #courses-list { gap: 10px !important; }
  .gc-card { border-radius: 16px; }
  .gc-card__body { padding: 10px 11px 11px; }
  .gc-meta { font-size: 11px; margin-bottom: 5px; }
  .gc-title { font-size: 13.5px; min-height: calc(13.5px * 1.3 * 2); }
  .gc-desc { font-size: 11.5px; max-height: calc(11.5px * 1.35 * 2); }
  .gc-action { font-size: 12px; padding: 7px 10px; border-radius: 9px; }
  .gc-price { font-size: 11px; padding: 3px 8px; }
  .gc-price-old { font-size: 10px; }
  .gc-level { font-size: 10px; padding: 2px 7px; }
  .gc-avail { font-size: 11px; padding: 2px 8px; }
  .gc-prog { flex-basis: 64px; max-width: 64px; }
  .gc-done > span { padding: 2px !important; }
  .gc-badges { max-width: 78%; }
  /* компактный таймер распродажи: подписи «дн/час/мин/сек» не влезают на узкое фото */
  .gc-badges .sale-cd { padding: 3px 5px; border-radius: 8px; gap: 2px; box-shadow: 0 2px 8px rgba(225,29,72,.28); }
  .gc-badges .sale-cd__cell { gap: 2px; }
  .gc-badges .sale-cd__cell b { font-size: 9.5px; min-width: 14px; padding: 1px 2px; border-radius: 4px; }
  .gc-badges .sale-cd__cell i { display: none; }
  .gc-badges .sale-cd__sep { font-size: 8px; }

  /* — карточка «Списка» — правила вынесены на общий уровень (v2.47.3,
     работают и на десктопе), см. секцию «v2.47.3 — СПИСОК (lc-*)» ниже — */
}

/* ═══════════════════════════════════════════════════════════════════
   v2.47.3 — СПИСОК (lc-*): та же карточка на ВСЕХ ширинах экрана
   Дизайн — ровно тот, что на мобильном (строго по коду заказчика,
   list-code): миниатюра 96px (min-height 96px, тянется по высоте тела
   карточки), фото заполняет её целиком (width/height 100% +
   object-fit:cover) — горизонтальное фото центрируется и аккуратно
   режется по бокам, вертикальное показывается как надо; пропорции НЕ
   искажаются. Стеклянный бейдж уровня на фото, в подвале слева мета
   «N уроков • ~X ч», справа цена-тег и круглая кнопка-стрелка.
   Раскладка: мобильный <640px — 1 колонка (блок v2.41 выше),
   десктоп ≥640px — 2 колонки, как карточки мастеров (блок ниже).
   v2.47.5: включается классом body.clists-list — независимый режим
   курсов (специалисты переключаются отдельно, body.mlists-list).
   ═══════════════════════════════════════════════════════════════════ */
body.clists-list .gc-card { flex-direction: row; align-items: stretch; gap: 12px; padding: 10px; }
body.clists-list .gc-card__media,
body.clists-list .gc-card__body { display: none; }
/* v2.63.2: миниатюра — компактный «квадратик» с ФИКСИРОВАННОЙ высотой и
   прижимом к верху карточки: раньше она тянулась по высоте тела (align
   stretch + min-height), и при длинном заголовке («Классический массаж:
   полный курс для начинающих») превращалась в вертикальную полосу —
   заказчику выглядело вытянутым. Теперь высота всегда 96px (мобильный) —
   фото режется по центру через object-fit:cover, пропорции не искажаются. */
body.clists-list .lc-thumb {
  display: block;
  position: relative;
  width: 96px;
  height: 96px;
  min-height: 96px;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}
/* строго по коду заказчика — img растягивается на миниатюру с
   object-fit:cover (центр фото остаётся, лишнее по бокам срезается,
   сплющивания нет) */
body.clists-list .lc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
body.clists-list .gc-card:hover .lc-thumb img,
body.clists-list .gc-card:active .lc-thumb img { transform: scale(1.06); }
body.clists-list .lc-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #10b981, #047857);
  display: flex; align-items: center; justify-content: center;
}
/* плашка уровня — матовое стекло поверх фото, как в коде заказчика */
body.clists-list .lc-level {
  position: absolute; bottom: 6px; left: 6px; right: 6px; text-align: center;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff; font-size: 10px; font-weight: 600;
  padding: 3px 6px; border-radius: 6px; letter-spacing: 0.01em;
}
/* v2.63.1: чип «Доступ открыт» в списочной карточке — правый верхний угол
   миниатюры (низ занят плашкой уровня во всю ширину) */
body.clists-list .lc-avail {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  font-size: 9.5px; font-weight: 700; line-height: 1.2;
  padding: 2px 6px; border-radius: 99px;
  background: rgba(13, 138, 98, 0.95); color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
body.clists-list .lc-body {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; min-width: 0; padding: 2px 2px 2px 0;
}
/* v2.47.4: заголовок — до 3 строк (было 2): длинные названия курса
   («Лимфодренажный массаж лица и тела» и т.п.) больше не режутся */
body.clists-list .lc-title {
  font-size: 15px; font-weight: 700; color: #111827; line-height: 1.25;
  margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
body.clists-list .lc-text {
  font-size: 12.5px; color: #6b7280; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
body.clists-list .lc-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 8px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
body.clists-list .lc-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; color: #6b7280; white-space: nowrap;
}
body.clists-list .lc-meta .dot { color: #d1d5db; }
body.clists-list .lc-action { display: flex; align-items: center; gap: 6px; }
body.clists-list .lc-price {
  font-size: 12px; font-weight: 700; padding: 4px 9px;
  border-radius: 8px; white-space: nowrap;
}
body.clists-list .lc-price--free { background: #e6f6f0; color: #0b7a56; }
body.clists-list .lc-price--paid { background: #fff4e5; color: #b45309; }
body.clists-list .lc-price--sale { background: #fde7ed; color: #be123c; }
/* скидка в списке — столбик справа: старая цена (зачёркнутая) + бейдж −N%
   сверху, под ними тег новой цены; обычные карточки не меняются */
body.clists-list .lc-price-stack {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
body.clists-list .lc-price-oldrow { display: inline-flex; align-items: center; gap: 4px; }
body.clists-list .lc-price-old {
  font-size: 10.5px; font-weight: 500; color: #9ca3af;
  text-decoration: line-through; white-space: nowrap;
}
/* v2.47.4: таймер распродажи в «Списке» — компактный красный чип (sale-cd--mini)
   в подвале карточки, между метой и ценой: слева от столбика скидки как раз
   пусто, чип читается целиком и не закрывает фото (вариант «таймер на
   миниатюре» отвергнут — 4 ячейки дн:час:мин:сек на миниатюру 96px не влезают).
   На мобильном (<640px) подвал узкий — таймер там по-прежнему скрыт;
   на десктопе (≥640px) показывается. Тикает через общий _initSaleTimers().
   v2.47.6: у чипа подписи единиц скрыты (формат «30 : 06 : 04 : 44», см. секцию
   v2.47.6 внизу файла) — чип стал на ~65px короче и помещается в одну строку
   подвала вместе с метой и столбиком скидки. */
body.clists-list .lc-timer { display: none; }
@media (min-width: 640px) {
  body.clists-list .lc-timer { display: inline-flex; align-items: center; }
}
body.clists-list .lc-arrow {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: #f0fdf8; color: #0d8a62;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
body.clists-list .gc-card:hover .lc-arrow,
body.clists-list .gc-card:active .lc-arrow {
  background: #0d8a62; color: #ffffff; transform: translateX(2px);
}

/* Десктоп (≥640px): в режиме «Списка» курсы стоят в 2 колонки — как
   карточки мастеров; сама карточка та же, что на мобильном.
   v2.47.5: миниатюра на десктопе крупнее — 140px вместо 96px (просьба
   заказчика «сделать карточки больше», диапазон 120–140px); на мобильном
   остаются строгие 96px. */
@media (min-width: 640px) {
  body.clists-list #courses-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  /* v2.63.2: и на десктопе фиксированная высота 140px — аккуратный квадрат */
  body.clists-list .lc-thumb { width: 140px; height: 140px; min-height: 140px; border-radius: 14px; }
}

/* v2.47.4 — СЕТКА на больших экранах (≥1280px): 4 карточки в ряд — как в
   шаблоне магазина (#shop-grid: xl:grid-cols-4). На lg (1024–1279px)
   остаются 3 колонки. Режим «Списка» не задет: его правило
   body.clists-list #courses-list (2 колонки) специфичнее и побеждает. */

/* ═══ v2.47.5 — МАГАЗИН: таймер распродажи ПЕРЕНОСИТСЯ НА ФОТО ═══
   Раньше таймер жил в ценовом ряду: на мобильном ломал раскладку
   (цена + старая цена + бейдж −% + кнопка не помещались — «жопа» по
   оценке заказчика), на десктопе выдавливал кнопку «Купить». Теперь чип
   лежит на фото слева СНИЗУ: «нет в наличии» и «N вариантов» — сверху,
   карусельные точки — по центру, пересечений нет; на тёмном/светлом
   фото читается за счёт тени чипа. Цены — flex с переносом: на узкой
   карточке старая цена и бейдж −% аккуратно уходят на вторую строку,
   символ «₽» не отрывается от числа (nowrap на каждом span). */
.sc-sale-cd {
  position: absolute; left: 8px; bottom: 8px; z-index: 10;
  max-width: calc(100% - 16px);
}
.sc-sale-cd .sale-cd { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30); }
.shop-card .sc-price {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 2px 6px; min-width: 0;
}
.shop-card .sc-price span { white-space: nowrap; }
@media (max-width: 639.98px) {
  .sc-sale-cd { left: 6px; bottom: 6px; }
  .sc-sale-cd .sale-cd--mini { transform: scale(.92); transform-origin: left bottom; }
}
@media (min-width: 1280px) {
  #courses-list { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* v2.42: убираем нативный «×» webkit у input[type=search] — есть своя кнопка
   очистки (#shop-search-clear и т.п.), двойной крестик выглядел как баг. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ═══ v2.46: горизонтальные ленты без скроллбара (суб-табы админки,
       sticky-полосы «как Яндекс.Новости»). Универсальный класс .no-scrollbar
       + прежнее скрытие для .adm-substrip ═══ */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.adm-substrip { scrollbar-width: none; -ms-overflow-style: none; }
.adm-substrip::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   v2.47.6 — ФОРМАТ ТАЙМЕРА «30 : 06 : 03 : 02» + ОДНА СТРОКА ПОДВАЛА

   1) Компактный чип sale-cd--mini без подписей единиц (дн/час/мин/сек):
      белые коробочки с цифрами и двоеточия на градиенте читаются и без
      подписей — ровно формат со скрина заказчика. Чип живёт:
      • на фото товара в магазине (.sc-sale-cd, v2.47.5) — мобильная сетка
        и десктоп;
      • в подвале «Списка» курсов (.lc-timer, v2.47.4, ≥640px).
      В «Сетке» курсов подписи и раньше были скрыты (.gc-badges выше),
      на витрине курса и в пакетах остаётся полный формат с подписями
      (sale-cd--block / обычный sale-cd — они не mini).
      Специфичность 0-3-0 выше базового .sale-cd__cell i из <style>
      index.html — правило применяется независимо от порядка файлов.

   2) Подвал карточки «Списка» на десктопе — всегда ОДНА строка.
      После увеличения миниатюр до 140px (v2.47.5) телу карточки стало
      не хватать ~5px: у скидочного курса мета «N уроков • ~X ч», таймер
      и столбик скидки перескакивали на 2–3 строки. Без подписей чип
      короче на ~65px, а с ≥1280px подвал ещё и запрещаем переносить
      (flex-wrap: nowrap): мета слева, чип и цены справа, всё по центру
      строки. Ниже 1280px перенос остаётся — там карточки уже и одна
      строка физически не помещается (как и в v2.47.4–v2.47.5).
   ═══════════════════════════════════════════════════════════════════ */
.sale-cd--mini .sale-cd__cell i { display: none; }
/* коробочки цифр заметно белее — как на скрине заказчика (базовые .18 слишком
   сливались с градиентом на маленьком чипе); действует и в «Сетке» курсов
   (.gc-badges) — там тот же чип таймера на фото */
.sale-cd--mini .sale-cd__cell b,
.gc-badges .sale-cd__cell b { background: rgba(255, 255, 255, 0.32); }
@media (min-width: 1280px) {
  body.clists-list .lc-footer { flex-wrap: nowrap; }
}

/* ═══ v2.47.8: бандлы — новая раскладка карточек по референсам заказчика ═══
   v2.47.9: правки по скринам заказчика: мобильный бейдж компактнее (меньше
   внутренние отступы), слово «курсов» в строке «сумма курсов» — только на
   десктопе (на мобильных строка короче и не упирается в кнопку), чипы
   состава на десктопе — по ширине содержимого в строку с переносом,
   таймер прижат к правому краю рядом с жёлтым бейджем, в «Списке» нет
   вертикальной разделительной черты.
   Мобильный (base): бейдж «Пакет» слева + компактный таймер справа в верхней
   строке, заголовок на всю ширину, состав пакета «пилюлями» с галочками,
   подвал «цена слева / кнопка справа» (разделитель сверху).
   Десктоп ≥1024px — два варианта показа (переключатель в админке, раздел
   «Бандлы», настройка bundles_desktop_mode): «Сетка» — 2 колонки + широкий
   флагманский баннер с блоком покупки; «Список» — горизонтальные карточки
   во всю ширину. Цвета прежние: тёмный градиент slate→emerald, янтарный
   бейдж, изумрудная кнопка, розовый бейдж скидки. На мобильных (<1024px)
   оба варианта выглядят одинаково. ═══ */

#bundles-block .bnd-grid , #bundles-tab-list .bnd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

#bundles-block .bnd-card , #bundles-tab-list .bnd-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 52%, #064e3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(9, 30, 26, 0.25);
}

/* мягкий изумрудный блик в правом нижнем углу */
#bundles-block .bnd-glow , #bundles-tab-list .bnd-glow {
  position: absolute; right: -40px; bottom: -50px; width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
}

/* верхняя строка: бейдж слева, таймер справа; миниатюры появляются ≥640px */
#bundles-block .bnd-top , #bundles-tab-list .bnd-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#bundles-block .bnd-thumbs , #bundles-tab-list .bnd-thumbs { display: none; align-items: center; flex-shrink: 0; min-width: 0; }
#bundles-block .bnd-thumb , #bundles-tab-list .bnd-thumb {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  border: 2px solid rgba(13, 34, 38, 0.9); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  background: #1f3c3d; flex-shrink: 0;
}
#bundles-block .bnd-thumbs > * + * , #bundles-tab-list .bnd-thumbs > * + * { margin-left: -10px; }
#bundles-block .bnd-thumb--ph , #bundles-tab-list .bnd-thumb--ph {
  display: inline-flex; align-items: center; justify-content: center; color: #ffffff;
  background: linear-gradient(135deg, #10b981, #047857);
}
#bundles-block .bnd-thumbs__more , #bundles-tab-list .bnd-thumbs__more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: #1f3c3d; color: #a7f3d0; font-size: 13px; font-weight: 800;
}
#bundles-block .bnd-badge , #bundles-tab-list .bnd-badge {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-width: 0;
  background: #fbbf24; color: #451a03;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  /* v2.47.9: на мобильных внутренние отступы меньше (скрин 2); ≥1024px — как было */
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
#bundles-block .bnd-top__timer , #bundles-tab-list .bnd-top__timer { margin-left: auto; flex-shrink: 0; display: inline-flex; }

/* заголовок и описание — на всю ширину карточки */
#bundles-block .bnd-title , #bundles-tab-list .bnd-title {
  font-size: 17.5px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
  color: #ffffff; margin: 0 0 6px;
}
#bundles-block .bnd-desc , #bundles-tab-list .bnd-desc {
  font-size: 13px; line-height: 1.38; color: rgba(255, 255, 255, 0.7); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* состав пакета: пилюли по одной в строке, длинные названия — с многоточием */
#bundles-block .bnd-courses , #bundles-tab-list .bnd-courses { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
#bundles-block .bnd-courses__row , #bundles-tab-list .bnd-courses__row { display: flex; align-items: center; gap: 6px; }
#bundles-block .bnd-courses__row .bnd-pill , #bundles-tab-list .bnd-courses__row .bnd-pill { flex: 1; min-width: 0; }
#bundles-block .bnd-pill , #bundles-tab-list .bnd-pill {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 10px; border-radius: 10px; font-size: 12px; color: #e5e7eb;
}
#bundles-block .bnd-pill__check , #bundles-tab-list .bnd-pill__check { color: #10b981; font-weight: 800; font-size: 11px; flex-shrink: 0; }
/* v2.62: название курса в составе пакета — ЦЕЛИКОМ (без многоточия),
   длинные названия переносятся на 2-3 строки, пилюля растёт по высоте */
#bundles-block .bnd-pill__name , #bundles-tab-list .bnd-pill__name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
#bundles-block .bnd-pill__more , #bundles-tab-list .bnd-pill__more {
  flex-shrink: 0; cursor: pointer;
  background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 10px;
}

/* подвал: цена слева + кнопка справа */
#bundles-block .bnd-footer , #bundles-tab-list .bnd-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.09);
}
#bundles-block .bnd-price , #bundles-tab-list .bnd-price { display: flex; flex-direction: column; min-width: 0; }
#bundles-block .bnd-price__top , #bundles-tab-list .bnd-price__top { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; flex-wrap: nowrap; }
#bundles-block .bnd-price__old , #bundles-tab-list .bnd-price__old { font-size: 12px; color: rgba(255, 255, 255, 0.55); text-decoration: line-through; white-space: nowrap; }
/* v2.47.9: слово «курсов» в строке «сумма курсов» — только ≥1024px,
   на мобильных строка «сумма 23 100 ₽» — больше зазор до кнопки */
@media (max-width: 1023.98px) { #bundles-block .bnd-oldw , #bundles-tab-list .bnd-oldw { display: none; } }
#bundles-block .bnd-price__badge , #bundles-tab-list .bnd-price__badge {
  background: #e11d48; color: #ffffff; font-size: 10.5px; font-weight: 800;
  padding: 1px 5px; border-radius: 6px; line-height: 1.35; flex-shrink: 0;
}
#bundles-block .bnd-price__cur , #bundles-tab-list .bnd-price__cur { font-size: 22px; font-weight: 800; color: #ffffff; line-height: 1.1; letter-spacing: -0.02em; }
#bundles-block .bnd-price__free , #bundles-tab-list .bnd-price__free { color: #34d399; }
/* v2.62: кнопка «Купить пакет» — в палитре сайта, как остальные CTA
   (emerald-600 с ховером emerald-700, раньше была яркая #10b981) */
#bundles-block .bnd-btn , #bundles-tab-list .bnd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
  background: #059669; color: #ffffff; border: 0; cursor: pointer; text-decoration: none;
  font-size: 13.5px; font-weight: 700; padding: 11px 14px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
  transition: background-color 0.2s, transform 0.2s; white-space: nowrap;
}
#bundles-block .bnd-btn:hover , #bundles-tab-list .bnd-btn:hover { background: #047857; transform: translateY(-1px); }
/* v2.62: на мобильных (<1024px) подвал карточки перестроен — цена своей
   строкой, кнопка «Купить пакет» во всю ширину карточки с зазором сверху:
   раньше она жалась между ценой и правым краем («прилипала») */
@media (max-width: 1023.98px) {
  #bundles-block .bnd-footer , #bundles-tab-list .bnd-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  #bundles-block .bnd-btn , #bundles-tab-list .bnd-btn { width: 100%; }
  #bundles-block .bnd-btn--done , #bundles-tab-list .bnd-btn--done { width: 100%; }
}
#bundles-block .bnd-btn--done , #bundles-tab-list .bnd-btn--done {
  background: rgba(5, 150, 105, 0.30); border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0; box-shadow: none; cursor: default; padding: 11px 14px;
}
#bundles-block .bnd-btn--done:hover , #bundles-tab-list .bnd-btn--done:hover { background: rgba(5, 150, 105, 0.30); transform: none; }

/* правый блок покупки широкого баннера — только «Сетка» ≥1024px */
#bundles-block .bnd-aside , #bundles-tab-list .bnd-aside { display: none; }

/* ── миниатюры — с 640px: слева; группа «чип рейтинга + жёлтый чип» прижата
   к правому краю колонки (чип рейтинга СЛЕВА от жёлтого — как на скрине 5
   заказчика), таймер замыкает строку справа. На мобильных (<640px) чип
   стоит СПРАВА от жёлтого чипа (скрин 2), таймер у правого края ── */
@media (min-width: 640px) {
  #bundles-block .bnd-thumbs , #bundles-tab-list .bnd-thumbs { display: flex; }
  #bundles-block .bnd-rc , #bundles-tab-list .bnd-rc { order: 2; margin-left: auto; }
  #bundles-block .bnd-badge , #bundles-tab-list .bnd-badge { order: 3; margin-left: 0; }
  #bundles-block .bnd-top__timer , #bundles-tab-list .bnd-top__timer { order: 4; margin-left: 0; }
}

/* ── десктоп ≥1024px: два варианта показа ── */
@media (min-width: 1024px) {
  /* СЕТКА (bento): 2 колонки + широкий флагманский баннер */
  #bundles-block .bnd-mode-grid.bnd-grid , #bundles-tab-list .bnd-mode-grid.bnd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #bundles-block .bnd-mode-grid .bnd-card , #bundles-tab-list .bnd-mode-grid .bnd-card { padding: 24px; border-radius: 22px; }
  #bundles-block .bnd-mode-grid .bnd-title , #bundles-tab-list .bnd-mode-grid .bnd-title { font-size: 20px; margin-bottom: 8px; }
  #bundles-block .bnd-mode-grid .bnd-desc , #bundles-tab-list .bnd-mode-grid .bnd-desc { font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
  #bundles-block .bnd-mode-grid .bnd-pill , #bundles-tab-list .bnd-mode-grid .bnd-pill { font-size: 12.5px; padding: 6px 12px; }
  /* v2.47.9: чипы состава — по ширине содержимого, в строку с переносом
     (как в референсе заказчика), а не во всю ширину карточки */
  #bundles-block .bnd-mode-grid .bnd-courses,
  #bundles-tab-list .bnd-mode-grid .bnd-courses,
  #bundles-block .bnd-mode-list .bnd-courses , #bundles-tab-list .bnd-mode-list .bnd-courses { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  #bundles-block .bnd-mode-grid .bnd-pill,
  #bundles-tab-list .bnd-mode-grid .bnd-pill,
  #bundles-block .bnd-mode-list .bnd-pill , #bundles-tab-list .bnd-mode-list .bnd-pill { flex: 0 1 auto; max-width: 100%; }
  #bundles-block .bnd-mode-grid .bnd-courses__row,
  #bundles-tab-list .bnd-mode-grid .bnd-courses__row,
  #bundles-block .bnd-mode-list .bnd-courses__row , #bundles-tab-list .bnd-mode-list .bnd-courses__row { flex: 0 1 auto; max-width: 100%; }
  #bundles-block .bnd-mode-grid .bnd-courses__row .bnd-pill,
  #bundles-tab-list .bnd-mode-grid .bnd-courses__row .bnd-pill,
  #bundles-block .bnd-mode-list .bnd-courses__row .bnd-pill , #bundles-tab-list .bnd-mode-list .bnd-courses__row .bnd-pill { flex: 0 1 auto; }
  /* v2.47.9: на десктопе внутренние отступы бейджа как в v2.47.8 */
  #bundles-block .bnd-badge , #bundles-tab-list .bnd-badge { padding: 4px 10px; gap: 5px; }
  #bundles-block .bnd-mode-grid .bnd-footer , #bundles-tab-list .bnd-mode-grid .bnd-footer { padding-top: 16px; }
  #bundles-block .bnd-mode-grid .bnd-price__cur , #bundles-tab-list .bnd-mode-grid .bnd-price__cur { font-size: 28px; }
  #bundles-block .bnd-mode-grid .bnd-btn , #bundles-tab-list .bnd-mode-grid .bnd-btn { font-size: 14.5px; padding: 12px 20px; }

  #bundles-block .bnd-card--featured , #bundles-tab-list .bnd-card--featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center;
    border-color: rgba(251, 191, 36, 0.35);
  }
  #bundles-block .bnd-card--featured .bnd-footer , #bundles-tab-list .bnd-card--featured .bnd-footer { display: none; }
  #bundles-block .bnd-card--featured .bnd-aside , #bundles-tab-list .bnd-card--featured .bnd-aside { display: block; }
  #bundles-block .bnd-aside , #bundles-tab-list .bnd-aside {
    position: relative; z-index: 1;
    background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px; padding: 20px;
  }
  #bundles-block .bnd-aside__label , #bundles-tab-list .bnd-aside__label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
    color: #a7f3d0; font-weight: 700; margin-bottom: 8px;
  }
  #bundles-block .bnd-price__cur--lg , #bundles-tab-list .bnd-price__cur--lg { font-size: 34px; margin: 4px 0 8px; }
  #bundles-block .bnd-aside__save , #bundles-tab-list .bnd-aside__save {
    display: inline-block; font-size: 12.5px; font-weight: 600; color: #fde68a;
    background: rgba(251, 191, 36, 0.14); padding: 4px 10px; border-radius: 8px; margin-bottom: 14px;
  }
  #bundles-block .bnd-btn--full , #bundles-tab-list .bnd-btn--full { display: flex; width: 100%; }

  /* СПИСОК: горизонтальные карточки во всю ширину */
  #bundles-block .bnd-mode-list.bnd-grid , #bundles-tab-list .bnd-mode-list.bnd-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #bundles-block .bnd-mode-list .bnd-card , #bundles-tab-list .bnd-mode-list .bnd-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 250px;
    column-gap: 28px; row-gap: 10px; align-items: center;
    padding: 20px 24px; border-radius: 22px;
  }
  #bundles-block .bnd-mode-list .bnd-main , #bundles-tab-list .bnd-mode-list .bnd-main { display: contents; }
  /* v2.47.11: верхняя строка — только в ЛЕВОЙ колонке: жёлтый чип прижат
     к её правому краю, т.е. стоит СПРАВА, но чуть ЛЕВЕЕ панели «Стоимость
     пакета» (не над ней) — как в эталоне заказчика */
  #bundles-block .bnd-mode-list .bnd-top     , #bundles-tab-list .bnd-mode-list .bnd-top     { grid-column: 1; grid-row: 1; }
  #bundles-block .bnd-mode-list .bnd-title   , #bundles-tab-list .bnd-mode-list .bnd-title   { grid-column: 1; grid-row: 2; font-size: 20px; }
  #bundles-block .bnd-mode-list .bnd-desc    , #bundles-tab-list .bnd-mode-list .bnd-desc    { grid-column: 1; grid-row: 3; margin-bottom: 0; font-size: 14px; }
  #bundles-block .bnd-mode-list .bnd-courses , #bundles-tab-list .bnd-mode-list .bnd-courses { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  #bundles-block .bnd-mode-list .bnd-footer , #bundles-tab-list .bnd-mode-list .bnd-footer {
    grid-column: 2; grid-row: 2 / 5;
    flex-direction: column; align-items: stretch; gap: 10px;
    /* v2.47.9: без вертикальной черты — её нет в референсе заказчика */
    border-top: 0; border-left: 0;
    padding-top: 0; padding-left: 0;
  }
  #bundles-block .bnd-mode-list .bnd-btn , #bundles-tab-list .bnd-mode-list .bnd-btn { width: 100%; }
  #bundles-block .bnd-mode-list .bnd-price__cur , #bundles-tab-list .bnd-mode-list .bnd-price__cur { font-size: 26px; }
  #bundles-block .bnd-price , #bundles-tab-list .bnd-price { align-items: flex-start; }
  /* v2.47.10: в «Списке» цена и кнопка — в панели «Стоимость пакета»
     (рамка-прямоугольник как в референсе заказчика); обычный подвал скрыт.
     v2.47.11: панель — во всю высоту контента (grid-row 1/5, stretch,
     содержимое по центру) — как в эталоне, где прямоугольник начинается
     на уровне верхней строки и тянется до низа карточки */
  #bundles-block .bnd-mode-list .bnd-footer , #bundles-tab-list .bnd-mode-list .bnd-footer { display: none; }
  #bundles-block .bnd-mode-list .bnd-aside , #bundles-tab-list .bnd-mode-list .bnd-aside {
    display: flex; flex-direction: column; justify-content: center;
    grid-column: 2; grid-row: 1 / 5;
    align-self: stretch; padding: 18px 20px;
  }
  #bundles-block .bnd-mode-list .bnd-aside .bnd-btn,
  #bundles-tab-list .bnd-mode-list .bnd-aside .bnd-btn,
  #bundles-block .bnd-mode-list .bnd-aside .bnd-btn--done , #bundles-tab-list .bnd-mode-list .bnd-aside .bnd-btn--done { width: 100%; }
  #bundles-block .bnd-mode-list .bnd-aside .bnd-price__cur--lg , #bundles-tab-list .bnd-mode-list .bnd-aside .bnd-price__cur--lg { font-size: 28px; }
  /* v2.47.11: «Ваша выгода» — НЕ прилипает к кнопке, зазор как в эталоне;
     плашка — по ширине текста, а не во всю панель (flex-контейнер) */
  #bundles-block .bnd-mode-list .bnd-aside__save , #bundles-tab-list .bnd-mode-list .bnd-aside__save { margin-bottom: 12px; align-self: flex-start; }
}

/* ═══ v2.47.10 — поиск и фильтры каталога курсов (tpl-courses #courses-filter) ═══ */
#courses-filter .cf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#courses-filter .cf-search { position: relative; }
#courses-filter .cf-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #9ca3af; pointer-events: none;
}
#courses-filter .cf-input,
#courses-filter .cf-sel {
  width: 100%; padding: 8px 12px; font-size: 14px; color: #111827;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
}
#courses-filter .cf-input { padding-left: 36px; }
#courses-filter .cf-input::placeholder { color: #9ca3af; }
#courses-filter .cf-input:focus,
#courses-filter .cf-sel:focus {
  outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
#courses-filter .cf-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6;
}
#courses-filter .cf-meta p { margin: 0; }
#courses-filter .cf-reset {
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: #4b5563;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
#courses-filter .cf-reset:hover { color: #111827; background: #f3f4f6; }
@media (min-width: 640px) {
  #courses-filter .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #courses-filter .cf-search { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  /* поиск пошире, три селекта — в одну строку */
  #courses-filter .cf-grid {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  #courses-filter .cf-search { grid-column: auto; }
}

/* ═══ v2.47.11 — кнопка-иконка «Фильтры» и мобильная шторка (#courses-filter) ═══ */
/* кнопка справа от поиска: видна только <1024px, на десктопе — строка селектов */
#courses-filter .cf-fbtn {
  display: none; position: relative; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
  color: #4b5563; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
#courses-filter .cf-fbtn svg { width: 18px; height: 18px; }
#courses-filter .cf-fbtn:hover { border-color: #d1d5db; color: #111827; }
#courses-filter .cf-fbtn--on { border-color: #10b981; color: #059669; background: #ecfdf5; }
#courses-filter .cf-fbtn__badge {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px;
  padding: 0 5px; background: #10b981; color: #ffffff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  border-radius: 999px; box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}
/* селекты-инлайны: на мобильных скрыты (там шторка), на десктопе — как было */
#courses-filter .cf-inline { display: none; }

/* шторка: fixed справа, выезжает; показывается только с классом .open */
#courses-filter .cf-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
#courses-filter .cf-drawer.open { display: block; }
#courses-filter .cf-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(17, 24, 39, 0.5);
  opacity: 0; transition: opacity 0.25s ease;
}
#courses-filter .cf-drawer.open .cf-drawer__backdrop { opacity: 1; }
#courses-filter .cf-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #ffffff; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
#courses-filter .cf-drawer.open .cf-drawer__panel { transform: translateX(0); }
#courses-filter .cf-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
}
#courses-filter .cf-drawer__title { margin: 0; font-size: 16px; font-weight: 800; color: #111827; }
#courses-filter .cf-drawer__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e5e7eb;
  background: #ffffff; color: #6b7280; cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
#courses-filter .cf-drawer__x svg { width: 16px; height: 16px; }
#courses-filter .cf-drawer__x:hover { color: #111827; background: #f9fafb; }
#courses-filter .cf-drawer__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
#courses-filter .cf-drawer__label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #6b7280; margin-bottom: 6px;
}
#courses-filter .cf-drawer__foot {
  margin-top: auto; padding: 14px 18px; border-top: 1px solid #f3f4f6;
  display: flex; gap: 10px; background: #ffffff;
}
#courses-filter .cf-drawer__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
#courses-filter .cf-drawer__btn--ghost { background: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; }
#courses-filter .cf-drawer__btn--ghost:hover { background: #f3f4f6; color: #111827; }
#courses-filter .cf-drawer__btn--primary {
  background: #10b981; color: #ffffff; border: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
#courses-filter .cf-drawer__btn--primary:hover { background: #059669; }

@media (max-width: 1023.98px) {
  /* поиск + кнопка «Фильтры» в одну строку — и на планшетной ширине тоже */
  #courses-filter .cf-grid { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; }
  #courses-filter .cf-search { grid-column: 1; }
  #courses-filter .cf-fbtn { display: inline-flex; align-self: stretch; }
}
@media (min-width: 1024px) {
  #courses-filter .cf-inline { display: block; }
  #courses-filter .cf-drawer { display: none !important; }
}

/* ═══ v2.47.12 — табы «Курсы / Бандлы» на странице курсов (#courses-tabs) ═══ */
/* чипы-табы в стиле компонентов сайта: пилюли, зелёный активный, счётчик-бейдж */
#courses-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#courses-tabs .ctab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; color: #4b5563;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 999px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
#courses-tabs .ctab:hover { border-color: #a7f3d0; color: #059669; }
#courses-tabs .ctab--active {
  color: #065f46; background: #ecfdf5; border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.16);
}
#courses-tabs .ctab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  font-size: 12px; font-weight: 800; line-height: 1;
  color: #6b7280; background: #f3f4f6; border-radius: 999px;
}
#courses-tabs .ctab--active .ctab__count { color: #ffffff; background: #10b981; }
/* на мобильных оба чипа делят строку поровну — как полноценные табы */
@media (max-width: 639.98px) {
  #courses-tabs .ctab { flex: 1 1 0; justify-content: center; }
}

/* таб «Бандлы»: фильтры курсов (направление/уровень/цена) и воронка не
   применимы к пакетам — остаётся только поиск (сетка схлопывается в 1 колонку) */
#courses-filter.cf-tab-bundles .cf-inline,
#courses-filter.cf-tab-bundles .cf-fbtn { display: none !important; }
#courses-filter.cf-tab-bundles .cf-grid { grid-template-columns: minmax(0, 1fr) !important; }
#courses-filter.cf-tab-bundles .cf-search { grid-column: auto; }
/* на случай открытой шторки при переключении таба — прячем её целиком */
#courses-filter.cf-tab-bundles .cf-drawer { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   v2.50 — мобильная шторка фильтров админки (.adm-fltbar)
   Как на витрине курсов (v2.47.11): на мобильных (<1024px) в строке остаётся
   поиск + кнопка-воронка со счётчиком активных фильтров; селекты/даты/сброс
   живут в выдвижной справа шторке (черновик значений, «Применить» коммитит).
   На десктопе (≥1024px) — прежняя строка контролов, шторка недоступна.
   ═══════════════════════════════════════════════════════════════════════ */
.adm-fltbar .adm-flt-q { flex: 1 1 auto; min-width: 0; }
.adm-fltbar .adm-flt-inline {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
}
/* кнопка-воронка справа от поиска: только на мобильных/планшетах */
.adm-fltbar .adm-fbtn {
  display: none; position: relative; flex-shrink: 0;
  align-self: stretch; min-width: 40px;
  align-items: center; justify-content: center;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
  color: #4b5563; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.adm-fltbar .adm-fbtn svg { width: 18px; height: 18px; }
.adm-fltbar .adm-fbtn:hover { border-color: #d1d5db; color: #111827; }
.adm-fltbar .adm-fbtn--on { border-color: #10b981; color: #059669; background: #ecfdf5; }
.adm-fltbar .adm-fbtn__badge {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px;
  padding: 0 5px; background: #10b981; color: #ffffff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  border-radius: 999px; box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}
/* шторка: fixed справа, выезжает; показывается только с классом .open */
.adm-fltbar .adm-fdrawer { position: fixed; inset: 0; z-index: 90; display: none; }
.adm-fltbar .adm-fdrawer.open { display: block; }
.adm-fltbar .adm-fdrawer__backdrop {
  position: absolute; inset: 0; background: rgba(17, 24, 39, 0.5);
  opacity: 0; transition: opacity 0.25s ease;
}
.adm-fltbar .adm-fdrawer.open .adm-fdrawer__backdrop { opacity: 1; }
.adm-fltbar .adm-fdrawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #ffffff; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.adm-fltbar .adm-fdrawer.open .adm-fdrawer__panel { transform: translateX(0); }
.adm-fltbar .adm-fdrawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
}
.adm-fltbar .adm-fdrawer__title { margin: 0; font-size: 16px; font-weight: 800; color: #111827; }
.adm-fltbar .adm-fdrawer__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e5e7eb;
  background: #ffffff; color: #6b7280; cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.adm-fltbar .adm-fdrawer__x svg { width: 16px; height: 16px; }
.adm-fltbar .adm-fdrawer__x:hover { color: #111827; background: #f9fafb; }
.adm-fltbar .adm-fdrawer__body {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}
.adm-fltbar .adm-fdrawer__group { min-width: 0; }
.adm-fltbar .adm-fdrawer__label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #6b7280; margin-bottom: 6px;
}
.adm-fltbar .adm-fdrawer__sel {
  width: 100%; padding: 9px 12px; font-size: 14px; color: #111827;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.adm-fltbar .adm-fdrawer__foot {
  margin-top: auto; padding: 14px 18px; border-top: 1px solid #f3f4f6;
  display: flex; gap: 10px; background: #ffffff;
}
.adm-fltbar .adm-fdrawer__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.adm-fltbar .adm-fdrawer__btn--ghost { background: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; }
.adm-fltbar .adm-fdrawer__btn--ghost:hover { background: #f3f4f6; color: #111827; }
.adm-fltbar .adm-fdrawer__btn--primary {
  background: #10b981; color: #ffffff; border: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.adm-fltbar .adm-fdrawer__btn--primary:hover { background: #059669; }
/* перенос длинных заголовков карточек (модерация, бандлы) без разрыва слов */
.adm-break { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 1023.98px) {
  /* в строке: поиск + воронка; селекты/даты/сброс — в шторке */
  .adm-fltbar .adm-fbtn { display: inline-flex; }
  .adm-fltbar .adm-flt-inline { display: none; }
}
@media (min-width: 1024px) {
  .adm-fltbar .adm-fdrawer { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.52 — мобильная админка: таблицы без переносов, списочные карточки
   ═══════════════════════════════════════════════════════════════════════ */

/* 1) Таблицы админки на мобильном: ячейки в ОДНУ строку (ФИО, город,
   название не переносятся), горизонтальный скролл контейнера.
   .adm-scroll вешается на обёртки overflow-x-auto у всех таблиц. */
.adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.adm-scroll::-webkit-scrollbar { height: 8px; }
.adm-scroll::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
.adm-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
@media (max-width: 1023.98px) {
  .adm-scroll table { min-width: 560px; }
  .adm-scroll th, .adm-scroll td { white-space: nowrap; }
  /* ячейки-кнопки: flex-td больше не рвёт сетку таблицы */
  .adm-scroll td.adm-flex-td { display: table-cell; }
  .adm-scroll td.adm-flex-td > .adm-flex-td__in { display: flex; flex-wrap: nowrap; gap: .25rem; }
}
@media (min-width: 1024px) {
  .adm-scroll td.adm-flex-td > .adm-flex-td__in { display: flex; flex-wrap: nowrap; gap: .25rem; }
}

/* 2) Списочная карточка админки (образец — карточки курсов на витрине,
   режим «список»): миниатюра слева, заголовок целиком, цена-тег справа. */
.adm-lc {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid #e5e7eb; border-radius: 14px; background: #fff;
  align-items: stretch; width: 100%; box-sizing: border-box;
}
.adm-lc:hover { border-color: #d1d5db; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06); }
.adm-lc__thumb {
  flex: 0 0 96px; width: 96px; min-height: 96px; border-radius: 10px;
  overflow: hidden; background: #f8fafc; position: relative;
}
.adm-lc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-lc__ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #eef2f7); color: #94a3b8;
}
.adm-lc__ph svg { width: 26px; height: 26px; }
.adm-lc__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.adm-lc__title { font-size: 14px; font-weight: 700; color: #111827; line-height: 1.3; margin: 0; }
.adm-lc__text { font-size: 12px; color: #6b7280; line-height: 1.35; margin: 2px 0 0; }
.adm-lc__meta { font-size: 11px; color: #9ca3af; margin-top: auto; padding-top: 6px; }
.adm-lc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.adm-lc__price { font-size: 14px; font-weight: 800; color: #111827; white-space: nowrap; }
.adm-lc__price--sale { color: #e11d48; }
.adm-lc__price--old { font-size: 11px; font-weight: 400; color: #9ca3af; text-decoration: line-through; margin-left: 6px; }
.adm-lc__badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; white-space: nowrap;
}
.adm-lc__badge--on  { background: #ecfdf5; color: #059669; }
.adm-lc__badge--off { background: #f3f4f6; color: #6b7280; }
.adm-lc__badge--sale { background: #ffe4e9; color: #be123c; }
.adm-lc__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 3) Провайдеры уведомлений: аккуратные отступы конфиг-строки (скрин 4) */
.adm-prov__cfg { margin: 6px 0 0 46px; color: #6b7280; font-size: 12px; }
@media (max-width: 640px) {
  .adm-prov__cfg { margin-left: 0; }
}
.adm-prov__btns { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3f4f6; }

/* 4) AI-чат: чипы шаблонов — сеткой в 2 колонки (кнопки не «пляшут») */
.adm-ai-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 640px) { .adm-ai-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-ai-chips .tpl-chip { justify-content: flex-start; width: 100%; box-sizing: border-box; }

/* 6) v2.53: карточка товара — категория и бейдж над заголовком (как на референсе) */
.adm-lc__topline {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.adm-lc__cat {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  background: #ecfdf5; color: #047857;
}
.adm-lc__badge--off { margin-left: 0; }
.adm-lc__topline .adm-lc__badge--on,
.adm-lc__topline .adm-lc__badge--off,
.adm-lc__topline .adm-lc__badge--sale { margin-left: auto; }
.adm-lc__title--flush { margin: 0; }

/* ═══════ v2.54: карточка товара магазина — строго по референсу заказчика ═══════
   Квадратное превью 68×68 (не тянется по высоте фото), категория + статус
   в верхней строке, заголовок в 2 строки, описание в одну строку с многоточием,
   плашка «цена + остатки» во всю ширину, кнопки в один ряд: Изменить / Скрыть
   (flex:1) + красная иконка-корзина 36×36. */
.adm-pc {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 12px; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  box-sizing: border-box; width: 100%;
}
.adm-pc__top { display: flex; align-items: flex-start; gap: 12px; }
.adm-pc__thumb {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 12px;
  overflow: hidden; background: #f1f5f9; border: 1px solid rgba(15, 23, 42, 0.06);
}
.adm-pc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-pc__thumb--empty { display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.adm-pc__info { flex: 1; min-width: 0; }
.adm-pc__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.adm-pc__cat {
  font-size: 11.5px; font-weight: 600; color: #64748b;
  background: #f1f5f9; padding: 2px 7px; border-radius: 6px;
  white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis;
}
.adm-pc__status {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 99px; white-space: nowrap;
}
.adm-pc__status--on  { background: #dcfce7; color: #15803d; }
.adm-pc__status--off { background: #f1f5f9; color: #64748b; }
.adm-pc__title {
  font-size: 14.5px; font-weight: 700; color: #0f172a; line-height: 1.25;
  margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.adm-pc__desc {
  font-size: 12px; color: #64748b; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-pc__stats {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 10px 0 0; padding: 8px 10px;
  background: #f8fafc; border-radius: 10px;
}
.adm-pc__price { display: flex; align-items: baseline; gap: 5px; min-width: 0; flex-wrap: wrap; }
.adm-pc__prefix { font-size: 12px; color: #64748b; }
.adm-pc__current { font-size: 16px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.adm-pc__current--sale { color: #e11d48; }
.adm-pc__old { font-size: 12px; color: #94a3b8; text-decoration: line-through; white-space: nowrap; }
.adm-pc__salebadge {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  background: #ffe4e9; color: #be123c; white-space: nowrap; align-self: center;
}
.adm-pc__stock { font-size: 12px; color: #64748b; font-weight: 500; white-space: nowrap; }
.adm-pc__stock--ok { color: #0d8a62; font-weight: 600; }
.adm-pc__timer { font-size: 10px; color: #e11d48; font-weight: 600; margin-top: 5px; }
.adm-pc__actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.adm-pc__btn {
  border: none; border-radius: 10px; font-size: 13px; font-weight: 600;
  padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; flex: 1; min-width: 0; white-space: nowrap;
  transition: filter 0.15s, transform 0.1s; box-sizing: border-box;
}
.adm-pc__btn:active { transform: scale(0.98); }
.adm-pc__btn--edit { background: #e0f2fe; color: #0369a1; }
.adm-pc__btn--edit:hover { filter: brightness(0.96); }
.adm-pc__btn--hide { background: #f1f5f9; color: #334155; }
.adm-pc__btn--hide:hover { filter: brightness(0.96); }
.adm-pc__btn--del {
  width: 36px; height: 35px; padding: 0; flex-shrink: 0;
  background: #fee2e2; color: #b91c1c; border: none; border-radius: 10px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: filter 0.15s, transform 0.1s;
}
.adm-pc__btn--del:active { transform: scale(0.98); }
.adm-pc__btn--del:hover { filter: brightness(0.96); }

/* v2.56: на десктопе превью товара заметно крупнее (просьба заказчика) —
   мобильный референс 68×68 не трогаем, на широких экранах карточка просторнее */
@media (min-width: 1024px) {
  .adm-pc { padding: 14px; }
  .adm-pc__top { gap: 16px; }
  .adm-pc__thumb { width: 116px; height: 116px; border-radius: 14px; }
  .adm-pc__title { font-size: 16px; -webkit-line-clamp: 2; }
  .adm-pc__desc { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .adm-pc__cat { font-size: 12.5px; }
  .adm-pc__status { font-size: 12px; }
  .adm-pc__current { font-size: 18px; }
  .adm-pc__stock { font-size: 13px; }
}

/* v2.54: подсказка-код в мессенджерах — отдельной строкой, переносится
   целиком и не вылезает за границы карточки */
.adm-code-hint {
  display: block; margin-top: 6px; padding: 6px 9px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: #475569; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap;
}

/* ─── v2.58: корзина курсов ─── */
.gc-cart-btn { position: absolute; top: .5rem; right: .5rem; z-index: 6; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: .75rem; background: rgba(255,255,255,.94); color: #374151; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: background .15s, color .15s, transform .1s; }
.gc-cart-btn:hover { background: #059669; color: #fff; }
.gc-cart-btn:active { transform: scale(.94); }

/* ─── v2.60: фокус полей форм — без двойной обводки ───
   Скрин ТЗ: у полей при фокусе зелёная рамка + ЧЁРНЫЙ браузерный outline
   снаружи (двойная обводка). Убираем outline глобально (витрина, ЛК,
   админка, модалки) — фирменная зелёная рамка/ring остаётся единственной. */
input:focus, textarea:focus, select:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

/* ─── v2.60: отзывы покупателей (как на Озоне) ─── */
.prv-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #f3f4f6; border: 1px solid #e5e7eb; padding: 0; }
.prv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prv-thumb .prv-thumb-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; pointer-events: none; }
.prv-thumb.is-video img { filter: brightness(.75); }
.prv-media-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.prv-av { width: 36px; height: 36px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; font-size: 14px; }
.prv-av--sm { width: 28px; height: 28px; font-size: 12px; }
.prv-hbar { height: 8px; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.prv-hbar > i { display: block; height: 100%; background: #fbbf24; border-radius: 9999px; }
/* Лайтбокс отзыва v2.61: на МОБИЛЬНОМ — ВО ВЕСЬ ЭКРАН, как на Озоне — фото
   занимает весь вьюпорт на тёмном фоне, панель отзыва — «стеклянный» оверлей
   снизу. На ДЕСКТОПЕ (≥768px) fullscreen не нужен — компактный белый попап
   с рамкой по центру: медиа слева, панель отзыва справа (v2.62). */
.prv-lb { position: fixed; inset: 0; z-index: 90; display: flex; align-items: stretch; justify-content: center; padding: 0; }
.prv-lb__backdrop { position: absolute; inset: 0; background: #0b0f19; }
.prv-lb__dialog { position: relative; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; border-radius: 0; overflow: hidden; display: block; }
.prv-lb__media { position: absolute; inset: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.prv-lb__media img, .prv-lb__media video { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; object-fit: contain; display: block; }
.prv-lb__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 46vh; overflow-y: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -8px 30px rgba(0,0,0,.35); }
.prv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 9999px; background: rgba(255,255,255,.92); color: #111827; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; cursor: pointer; z-index: 2; border: 0; }
.prv-lb__nav--prev { left: 12px; } .prv-lb__nav--next { right: 12px; }
/* v2.62: стрелки не загромождают экран — по умолчанию скрыты, появляются
   по тапу на фото/видео (моб) или наведению (десктоп), исчезают через 2.6 с */
.prv-lb__nav { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.prv-lb--navshown .prv-lb__nav { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .prv-lb__media:hover .prv-lb__nav { opacity: 1; pointer-events: auto; } }
.prv-lb--navshown .prv-lb__nav { transition: opacity .28s ease; }
.prv-lb__counter { position: absolute; top: 10px; left: 12px; z-index: 2; padding: 2px 10px; border-radius: 9999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.prv-lb__close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 9999px; background: rgba(255,255,255,.92); color: #111827; font-size: 16px; cursor: pointer; border: 0; display: flex; align-items: center; justify-content: center; }
/* десктоп: компактный попап (как до v2.61), а не во весь экран */
@media (min-width: 768px) {
  .prv-lb { align-items: center; padding: 12px; }
  .prv-lb__backdrop { background: rgba(17, 24, 39, .86); }
  .prv-lb__dialog { width: 100%; height: auto; max-width: 960px; max-height: 94vh; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: row; }
  .prv-lb__media { position: relative; inset: auto; background: #111827; flex: 1 1 62%; min-height: 240px; }
  .prv-lb__media img, .prv-lb__media video { width: auto; height: auto; max-width: 100%; max-height: 86vh; }
  .prv-lb__panel { position: static; left: auto; right: auto; bottom: auto; width: auto; max-width: none; flex: 0 0 38%; max-height: none; padding: 18px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; border-left: 1px solid #f3f4f6; box-shadow: none; }
}
/* Выбор звёзд в форме отзыва */
.prv-star-pick { font-size: 0; line-height: 0; display: inline-flex; gap: 4px; }
.prv-star-pick button { background: none; border: 0; padding: 0 2px; cursor: pointer; color: #d1d5db; transition: color .1s, transform .1s; }
.prv-star-pick button.is-on { color: #f59e0b; }
.prv-star-pick button:hover { transform: scale(1.15); }
/* Превью выбранных файлов в форме */
.prv-up-item { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; background: #f9fafb; }
.prv-up-item img, .prv-up-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.prv-up-item .prv-up-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 9999px; background: rgba(17,24,39,.72); color: #fff; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; }
/* v2.61: рейтинг курса на карточке каталога (сетка и список) — звезда + оценка + число отзывов */
.gc-rating { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; color: #b45309; font-weight: 700; font-size: 11px; }
.gc-rating svg { color: #f59e0b; flex-shrink: 0; }
.gc-rating-cnt { margin-left: 3px; color: #9ca3af; font-weight: 500; font-size: 11px; }
/* v2.62.1: компактный чип рейтинга бандла — рядом с жёлтым чипом в верхней
   строке (скрины 2 и 5 заказчика), клик открывает модалку отзывов.
   Карточка бандла тёмная (градиент) — значения светлые. Белой кнопки
   «Отзывы» и строки рейтинга под описанием больше нет. */
.bnd-rc {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: inherit; transition: background-color .15s, border-color .15s;
}
.bnd-rc:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(110, 231, 183, 0.45); }
.bnd-rc__star { display: inline-flex; color: #fbbf24; flex-shrink: 0; }
.bnd-rc__val { color: #ffffff; font-size: 12px; font-weight: 800; }
.bnd-rc__sep { color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.bnd-rc__cnt { color: rgba(255, 255, 255, 0.72); font-size: 11.5px; }
.bnd-rc__chev { display: inline-flex; color: rgba(255, 255, 255, 0.55); margin-left: 1px; flex-shrink: 0; }
/* v2.61: в модалке отзывов внутренний блок _prMount не дублирует заголовок модалки */
#prv-modal-mount .bg-white.border.rounded-2xl > div:first-child h2,
#prv-modal-mount h2 { display: none; }

/* ═════════════════════════════════════════════════════════════════════
   v2.65: Тарифы в ЛК — карусель на мобильном + сетка/список на десктопе.
   Мобильный: горизонтальный scroll-snap, карточка ~85% ширины, свайп,
   без скроллбара. Десктоп (md+): сетка 2 колонки или компактный список —
   переключатель в шапке блока, выбор запоминается в localStorage.
   v2.66: редизайн обоих режимов (единая tc-* разметка карточки):
   - СЕТКА (md-grid + мобильная карусель): вертикальная карточка — бейдж
     (Базовый/Рекомендуем/Максимум) сверху слева, крупная цена справа
     сверху, фичи списком, кнопки прижаты к низу; рекомендованный тариф
     выделен изумрудной рамкой (tc-rec).
   - СПИСОК (md-list): строка — название + зелёная пилюля «0 ₽ на 14 дней»,
     кнопки справа сверху, ниже описание и фичи в 2 колонки.
   ═════════════════════════════════════════════════════════════════════ */
.tariff-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.tariff-track::-webkit-scrollbar { display: none; }
.tariff-track .tariff-card {
  flex: 0 0 85%;
  min-width: 0;
  scroll-snap-align: center;
}

/* ── v2.66: единые блоки карточки тарифа (tc-*) ── */
.tc-body { display: flex; flex-direction: column; height: 100%; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tc-left { min-width: 0; }
.tc-badge {
  display: inline-flex; align-items: center; margin-bottom: 7px;
  padding: 3px 9px; border-radius: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.tc-badge--base { background: #f3f4f6; color: #6b7280; }
.tc-badge--rec  { background: #d1fae5; color: #047857; }
.tc-badge--max  { background: #fef3c7; color: #b45309; }
.tc-name { font-weight: 700; color: #111827; font-size: 15.5px; line-height: 1.25; }
.tc-pill {
  display: none; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: #d1fae5; color: #047857; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.tc-price { text-align: right; flex-shrink: 0; }
.tc-sum { font-size: 21px; font-weight: 800; color: #059669; line-height: 1.1; white-space: nowrap; }
.tc-sum--amber { color: #d97706; }
.tc-dur { font-size: 11px; color: #6b7280; margin-top: 3px; white-space: nowrap; }
.tc-desc { font-size: 12.5px; color: #6b7280; margin-top: 6px; line-height: 1.45; }
.tc-feats {
  flex: 1 1 auto; margin-top: 11px; padding-top: 11px;
  border-top: 1px solid #f3f4f6;
}
.tc-feats ul { list-style: none; margin: 0; padding: 0; }
.tc-feats li { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #374151; padding: 3px 0; }
.tc-feats li svg { flex-shrink: 0; margin-top: 1.5px; }
.tc-actions { margin-top: 13px; display: flex; gap: 8px; align-items: stretch; }
.tc-actions button:first-child { flex: 1 1 auto; }
.tariff-card.tc-rec > div {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981, 0 10px 24px -14px rgba(16, 185, 129, .4);
}

@media (min-width: 768px) {
  .tariff-track { overflow: visible; padding-bottom: 0; }
  .tariff-track.md-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tariff-track.md-grid .tariff-card { flex: none; scroll-snap-align: none; }
  .tariff-track.md-list { display: block; }
  .tariff-track.md-list .tariff-card { margin-bottom: 12px; }
  /* СПИСОК: шапка + кнопки в одну строку; ниже — описание и фичи в 2 колонки */
  .md-list .tc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "desc desc"
      "feats feats";
    column-gap: 24px;
  }
  .md-list .tc-head { grid-area: head; align-items: center; }
  .md-list .tc-price { display: none; }
  .md-list .tc-pill { display: inline-flex; }
  .md-list .tc-badge { display: none; }
  .md-list .tc-desc { grid-area: desc; margin-top: 4px; }
  .md-list .tc-feats { grid-area: feats; }
  .md-list .tc-feats ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px; row-gap: 2px;
  }
  .md-list .tc-feats li { padding: 2px 0; }
  .md-list .tc-actions { grid-area: actions; align-self: center; margin-top: 0; }
  .md-list .tc-actions button { flex: 0 0 auto; }
  .tariff-view-toggle { display: inline-flex !important; }
}
/* ── v2.67: карточки тарифа в сетке — одна высота в ряду.
   Грид-элемент .tariff-card растягивается, но внутренний div был auto —
   карточки в одной строке выходили разной высоты. ── */
.tariff-card > div { height: 100%; }

/* ── v2.67: пикер техник в анкете — карусель категорий (как «выбор новостей»
   в Яндексе) + сворачивание подчипов («Показать ещё N» / «Скрыть»). ── */
.tech-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tech-cats::-webkit-scrollbar { display: none; }
.tech-cats button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  border: 1px solid #e5e7eb; background: #ffffff; color: #374151;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.tech-cats button:hover { border-color: #34d399; }
.tech-cats button.is-active { background: #059669; border-color: #059669; color: #ffffff; }
.tech-cats .cat-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  background: #d1fae5; color: #047857;
}
.tech-cats button.is-active .cat-count { background: rgba(255, 255, 255, .25); color: #ffffff; }

.tariff-view-toggle { display: none; gap: 4px; background: #f3f4f6; border-radius: 10px; padding: 3px; }
.tariff-view-toggle button {
  padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 8px;
  color: #6b7280; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: background-color .15s, color .15s;
}
.tariff-view-toggle button.is-active { background: #059669; color: #ffffff; }

/* ── v2.68: мобильный прайс-лист и пикер техник (скрины 1-3).
   До md — компактная карточка «Техники в анкете» (пилюля лимита, прогресс,
   лента выбранных чипов, кнопка «Настроить техники»), bottom-sheet «Выбор
   техник» (поиск + сегмент-табы + галочки + «Готово (N)») и прайс карточками
   с тумблерами и автосохранением. Десктоп (md+) — прежний инлайн-пикер. ── */

/* пилюля лимита в заголовке мобильной карточки (только <md: на десктопе
   её перебивает .md:hidden, а тут дополнительно прячем по медиа — каскад) */
@media (max-width: 767.98px) {
  .tq-pill {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 999px;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
    font-size: 11px; font-weight: 700; white-space: nowrap;
  }
}

/* прогресс лимита */
.tq-progress { height: 6px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.tq-progress > div { height: 100%; border-radius: 999px; background: #10b981; transition: width .3s ease; }

/* лента выбранных чипов (горизонтальный скролл от края до края карточки) */
.tq-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.tq-chips::-webkit-scrollbar { display: none; }
.tq-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #d1fae5; color: #065f46;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tq-chip svg { color: #059669; flex: 0 0 auto; }

/* кнопка «Настроить техники» */
.tq-open-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 14px; border: 0;
  background: #059669; color: #ffffff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background-color .15s;
}
.tq-open-btn:hover { background: #047857; }
.tq-open-btn:active { transform: translateY(1px); }

/* bottom-sheet «Выбор техник» */
.pm-sheet-overlay { position: fixed; inset: 0; z-index: 70; }
.pm-sheet-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); animation: pmFade .22s ease both; }
.pm-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  background: #ffffff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  animation: pmSheetUp .3s cubic-bezier(.32, .72, .33, 1) both;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes pmSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.pm-sheet-grab { width: 44px; height: 4px; border-radius: 999px; background: #e5e7eb; margin: 10px auto 2px; flex: 0 0 auto; }
.pm-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 20px 0; flex: 0 0 auto; }
.pm-sheet-head h3 { font-size: 18px; font-weight: 800; color: #111827; line-height: 1.2; }
.pm-sheet-sub { font-size: 12.5px; color: #6b7280; margin-top: 3px; }
.pm-sheet-x {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 0; background: #f3f4f6; color: #9ca3af;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.pm-sheet-x:hover { background: #e5e7eb; color: #4b5563; }
.pm-sheet-search { position: relative; padding: 12px 20px 0; flex: 0 0 auto; }
.pm-sheet-search svg {
  position: absolute; left: 34px; top: 50%; transform: translateY(calc(-50% + 6px));
  width: 16px; height: 16px; color: #9ca3af; pointer-events: none;
}
.pm-sheet-search input {
  width: 100%; padding: 10px 14px 10px 40px;
  border-radius: 999px; border: 1px solid #e5e7eb; background: #f9fafb;
  font-size: 14px; color: #111827; outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  -webkit-appearance: none; appearance: none;
}
.pm-sheet-search input::-webkit-search-cancel-button { display: none; }
.pm-sheet-search input:focus { border-color: #34d399; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); background: #ffffff; }

/* сегмент-табы категорий в шите */
.pm-sheet-tabs { display: flex; gap: 4px; background: #f3f4f6; border-radius: 14px; padding: 4px; margin: 12px 20px 0; flex: 0 0 auto; }
.pm-sheet-tabs button {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; font-size: 13px; font-weight: 600; color: #374151;
  border-radius: 11px; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.pm-sheet-tabs button.is-active { background: #ffffff; color: #111827; box-shadow: 0 1px 4px rgba(0, 0, 0, .10); }
.pm-sheet-tabs .cat-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: #4b5563;
}
.pm-sheet-tabs button.is-active .cat-count { background: #059669; color: #ffffff; }

/* список техник в шите */
.pm-sheet-list {
  overflow-y: auto; min-height: 0; flex: 1 1 auto;
  margin-top: 6px; padding: 0 20px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.pm-tech-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 13px 0;
  border: 0; border-bottom: 1px solid #f3f4f6; background: none; cursor: pointer;
}
.pm-tech-row:last-child { border-bottom: 0; }
.pm-tech-name { font-size: 14.5px; font-weight: 500; color: #111827; line-height: 1.35; min-width: 0; }
.pm-tech-row.is-on .pm-tech-name { font-weight: 600; }
.pm-star { color: #f59e0b; margin-left: 6px; font-size: 12px; }
.pm-cb {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  border: 2px solid #d1d5db; background: #ffffff;
  display: inline-flex; align-items: center; justify-content: center; color: #ffffff;
  transition: background-color .15s, border-color .15s;
}
.pm-tech-row.is-on .pm-cb { background: #059669; border-color: #059669; }
.pm-sheet-empty { padding: 28px 0; text-align: center; font-size: 13.5px; color: #9ca3af; }
.pm-sheet-foot { flex: 0 0 auto; padding: 12px 20px 16px; border-top: 1px solid #f3f4f6; background: #ffffff; }
.pm-sheet-done {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0;
  background: #059669; color: #ffffff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background-color .15s, opacity .15s;
}
.pm-sheet-done:hover { background: #047857; }
.pm-sheet-done:disabled { opacity: .6; cursor: default; }

/* тумблер прайса (мобильные карточки услуг) */
.pm-switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: 0 0 auto; cursor: pointer; }
.pm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.pm-switch > span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: background-color .2s; pointer-events: none; }
.pm-switch > span::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.pm-switch input:checked + span { background: #059669; }
.pm-switch input:checked + span::after { transform: translateX(19px); }

/* ─── v2.69: бейджи «новое» в меню ЛК + метки «НОВОЕ» ─── */

/* чип-счётчик на вкладке меню (справа, аккуратный угол) */
.cab-tab { position: relative; }
.cab-new-badge {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px;
  background: #059669; color: #ffffff;
  font-size: 11px; font-weight: 700; line-height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(5, 150, 105, .35);
  animation: pm-badge-in .25s ease-out;
}
.cab-new-badge.hidden { display: none; }
@keyframes pm-badge-in {
  from { opacity: 0; transform: translateY(-50%) scale(.5); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
/* на мобильном полоса вкладок горизонтальная — чип не должен распирать кнопку */
@media (max-width: 1023.5px) {
  .cab-tab { padding-right: 30px !important; }
  .cab-tab .cab-new-badge { right: 4px; }
}

/* пилюля «НОВОЕ» (записи, отзывы, тренды) */
.pm-new-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; margin-left: 4px; border-radius: 9999px;
  background: #fef3c7; color: #b45309;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  vertical-align: middle; white-space: nowrap;
}
.pm-new-pill.pm-new-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #f59e0b; animation: pm-new-pulse 1.4s ease-in-out infinite;
}
@keyframes pm-new-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* карточка новой трендовой техники */
.pm-trend-new { box-shadow: 0 0 0 1px #fcd34d, 0 2px 10px rgba(245, 158, 11, .12); }
.pm-new-chip { box-shadow: 0 0 0 1px #fcd34d; }

/* ── v2.79.0: KPI-карточки дашборда админки ──
   На мобильном — горизонтальная карусель scroll-snap: карточка занимает
   ~82% ширины, следующая «выглядывает» справа (просьба со скрина 5).
   На sm+ и десктопе — обычная сетка (2 колонки, на lg — 4). */
@media (max-width: 639.98px) {
  .adm-kpi-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .adm-kpi-track::-webkit-scrollbar { display: none; }
  .adm-kpi-track > * {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
}
