/* ============================================================================
   Arko — дизайн-система.

   Единый стиль с innovarm.am: те же цвета логотипа компании (синий #375BEB →
   индиго #7678ED → фиолетовый #C089F6), тот же Inter, то же ощущение — светлое
   полотно, крупные мягкие скругления, рассеянные тени, градиент как
   единственный яркий акцент.

   Что пришлось развести с лендингом и почему:
   • Лендинг стоит на чистом белом. Лента маркетплейса — на slate-50: сотни
     белых карточек на белом фоне сливаются в простыню, нужна подложка.
   • У лендинга воздух между блоками огромный, здесь он вдвое меньше: на
     витрине ценна плотность, человек пришёл смотреть товар, а не читать.
   • Градиент работает точечно — кнопка покупки, логотип, активный раздел.
     Если раскрасить им половину экрана, кнопка «в корзину» перестанет быть
     заметной, а она здесь главная.

   Тёмной темы нет намеренно: покупатель выбирает вещь по фотографии, тёмный
   фон меняет восприятие цвета товара и растит процент возвратов.
   ============================================================================ */

:root {
  /* --- Фирменные цвета innovarm.am --- */
  --logo-blue:   #375BEB;   /* синий из знака InnovArm */
  --logo-indigo: #7678ED;
  --logo-violet: #C089F6;

  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-500: #3B82F6;
  --brand:     #2563EB;     /* основной: кнопки, ссылки, активное */
  --brand-700: #1D4ED8;
  --brand-900: #1E3A8A;

  --accent-100: #F3E8FF;
  --accent-500: #A855F7;
  --accent:     #9333EA;
  --accent-700: #7E22CE;

  /* Градиент — подпись бренда. Один и тот же угол везде, иначе элементы
     выглядят собранными из разных макетов. */
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  --grad-soft: linear-gradient(135deg, var(--brand-50) 0%, var(--accent-100) 100%);

  /* --- Нейтральные (slate, как на лендинге) --- */
  --ink:     #0F172A;
  --ink-2:   #1E293B;
  --ink-3:   #334155;
  --muted:   #64748B;       /* 4.8:1 на белом — годится для текста */
  --slate-400: #94A3B8;
  --line:    #E2E8F0;
  --line-2:  #CBD5E1;
  --tint:    #F1F5F9;       /* мягкая заливка блоков */
  --tint-2:  #E2E8F0;

  --bg:      #F8FAFC;       /* полотно ленты */
  --surface: #FFFFFF;       /* карточка */

  /* --- Состояния --- */
  --ok:     #059669;
  --warn:   #D97706;
  --danger: #DC2626;
  --sale:   #E11D48;

  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;
  /* Тени рассеянные и «дальние», как на лендинге: короткая жёсткая тень
     делает интерфейс дешёвым. */
  --shadow:    0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.18);
  --shadow-md: 0 20px 60px -28px rgba(15,23,42,.26);
  --shadow-lg: 0 32px 80px -28px rgba(15,23,42,.30);
  --shadow-brand: 0 18px 50px -18px rgba(37,99,235,.55);
  --wrap: 1480px;

  --font: 'Inter', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Заголовки с плотным трекингом — узнаваемая черта лендинга. */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Текст градиентом — тот же приём, что в заголовке лендинга. */
.text-grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Шапка ============================================================ */
.topbar {
  background: var(--surface); color: var(--muted);
  font-size: 12.5px; border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 36px; }
.topbar a:hover { color: var(--brand); }
.topbar .spacer { flex: 1; }

/* Шапка светлая с размытием — как навигация лендинга, а не тёмная плашка. */
.header {
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
/* Знак: скруглённый квадрат с фирменным градиентом. Тот же силуэт, что у
   значка InnovArm на лендинге. */
.logo-badge {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-brand); flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.logo-text {
  font-weight: 800; font-size: 23px; letter-spacing: -.045em; color: var(--ink);
}
.logo-text em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalog-btn {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--grad); color: #fff; border: 0;
  padding: 10px 17px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-brand); transition: transform .2s, box-shadow .2s;
}
.catalog-btn:hover { transform: translateY(-1px); box-shadow: 0 22px 60px -18px rgba(37,99,235,.62); }
.catalog-btn:active { transform: scale(.98); }

.search { flex: 1; position: relative; max-width: 760px; }
.search input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 46px 0 15px; background: var(--tint); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--slate-400); }
.search input:focus {
  outline: none; background: #fff; border-color: var(--brand-200);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.search button {
  position: absolute; right: 5px; top: 5px; width: 32px; height: 32px;
  border: 0; border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center;
}

.head-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.head-icon {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 12px; border-radius: 13px; position: relative;
  color: var(--muted); font-size: 10.5px; font-weight: 500; transition: background .18s, color .18s;
}
.head-icon:hover { background: var(--tint); color: var(--brand); }
.head-icon .badge {
  position: absolute; top: 2px; right: 7px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--grad); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}
.lang-switch { display: flex; gap: 2px; background: var(--tint); border-radius: 11px; padding: 3px; }
.lang-switch a { padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lang-switch a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }

.catnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a {
  padding: 12px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  color: var(--ink-3); border-bottom: 2px solid transparent; transition: color .16s;
}
.catnav a:hover { color: var(--brand); }
.catnav a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ===== Выпадающий каталог =============================================== */
.mega { display: none; position: absolute; left: 0; right: 0; z-index: 39; }
.mega.open { display: block; }
.mega-inner {
  background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid var(--line); border-top: 0;
  box-shadow: var(--shadow-lg); padding: 22px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 6px 26px; max-height: 70vh; overflow-y: auto;
}
.mega-col h4 { font-size: 14px; margin: 10px 0 7px; color: var(--brand); }
.mega-col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--ink-3); }
.mega-col a:hover { color: var(--brand); }
.mega-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.28); backdrop-filter: blur(2px); z-index: 38; display: none; }
.mega-backdrop.open { display: block; }

/* ===== Лента товаров ==================================================== */
.feed {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}
.pcard {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pcard:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pcard-img { position: relative; aspect-ratio: 3/4; background: var(--tint); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--slate-400); }
.pcard-body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-price { display: flex; align-items: baseline; gap: 7px; }
.pcard-price b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.pcard-price .old { font-size: 12.5px; color: var(--slate-400); text-decoration: line-through; }
.pcard-price.sale b { color: var(--sale); }
.pcard-title {
  font-size: 13px; line-height: 1.35; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-seller { font-size: 11.5px; color: var(--muted); }
.pcard-seller:hover { color: var(--brand); }
.pcard-rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.pcard-rating .stars { color: var(--warn); letter-spacing: -1px; }
.pcard-foot { margin-top: auto; padding-top: 9px; display: flex; gap: 6px; }
.pcard .btn-cart {
  flex: 1; border: 0; background: var(--brand-50); color: var(--brand);
  border-radius: 11px; padding: 9px; font-size: 12.5px; font-weight: 650;
  transition: background .18s, color .18s;
}
.pcard .btn-cart:hover, .pcard .btn-cart.in { background: var(--grad); color: #fff; }
.pcard .btn-fav {
  width: 36px; border: 1px solid var(--line); background: #fff; border-radius: 11px;
  display: grid; place-items: center; color: var(--slate-400); transition: color .18s, border-color .18s;
}
.pcard .btn-fav:hover, .pcard .btn-fav.on { color: var(--sale); border-color: var(--sale); }

/* Плашки. Рекламная метка обязана быть видимой и честной — скрытая реклама
   в выдаче это обман покупателя и претензия регулятора. */
.pcard-badges { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge-disc { background: var(--sale); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.badge-ad {
  background: rgba(15,23,42,.55); color: #fff; font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 7px; letter-spacing: .03em; backdrop-filter: blur(4px);
}
.badge-new { background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.badge-soon { background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }

/* ===== Страница товара ================================================== */
.pdp { display: grid; grid-template-columns: 96px minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 9px; position: sticky; top: 84px; }
.pdp-thumbs img, .pdp-thumbs .ph {
  width: 88px; aspect-ratio: 3/4; object-fit: cover; border-radius: 13px;
  border: 2px solid transparent; background: var(--tint); cursor: pointer;
}
.pdp-thumbs img.on { border-color: var(--brand); }
/* Главное фото ограничено по ширине и отцентровано. Без ограничения на
   широком мониторе колонка растягивается до 900px, а при пропорции 3:4 это
   1200px высоты — карточка уезжает за экран целиком, и покупатель не видит
   ни описания, ни отзывов без долгой прокрутки. */
.pdp-main > img, .pdp-main > .ph {
  width: 100%; max-width: 430px; margin: 0 auto;
  border-radius: var(--radius); background: var(--tint);
  aspect-ratio: 3/4; object-fit: contain;
}
.pdp-main > .ph { display: grid; place-items: center; color: var(--slate-400); }
.buybox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; position: sticky; top: 84px; box-shadow: var(--shadow-md);
}
.buybox .price-now { font-size: 31px; font-weight: 800; letter-spacing: -.035em; }
.buybox .price-now.sale { color: var(--sale); }
.buybox .price-old { font-size: 15px; color: var(--slate-400); text-decoration: line-through; margin-left: 8px; }
.variant-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 14px; }
.variant-chip {
  border: 1px solid var(--line-2); background: #fff; border-radius: 12px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; transition: all .16s;
}
.variant-chip:hover { border-color: var(--brand); color: var(--brand); }
.variant-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.variant-chip:disabled { opacity: .36; text-decoration: line-through; cursor: not-allowed; }

/* ===== Кнопки и формы =================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 11px 22px;
  font-weight: 600; font-size: 14.5px; transition: all .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 24px 66px -18px rgba(37,99,235,.62); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: var(--line-2); background: var(--tint); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 13px; background: #fff; outline: none; transition: border-color .18s, box-shadow .18s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.11);
}
textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

/* Поле в горизонтальной форме обязано уметь сжиматься. По умолчанию у input
   width:100%, и во flex-строке он выдавливает соседнюю кнопку за границу
   карточки — так «Отклонить» уезжала за край на узкой колонке. */
form[style*="display:flex"] input,
form[style*="display:inline-flex"] input { min-width: 0; }

.msg { padding: 12px 15px; border-radius: 13px; margin-bottom: 14px; font-size: 14px; }
.msg-ok { background: #ECFDF5; color: #065F46; }
.msg-err { background: #FEF2F2; color: #991B1B; }
.msg-info { background: var(--brand-50); color: var(--brand-900); }
.msg-warn { background: #FFFBEB; color: #92400E; }
.legal h2 { font-size: 16.5px; margin: 20px 0 6px; }
.legal h2:first-child { margin-top: 0; }

/* ===== Блоки, карточки, таблицы ========================================= */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.section { margin: 30px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 13.5px; color: var(--brand); font-weight: 600; }

/* Плашка-«eyebrow» из лендинга: капс с разрядкой в круглой рамке. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.9);
  padding: 7px 15px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; color: var(--muted);
  box-shadow: var(--shadow);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 650; padding: 10px 11px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 12px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:hover td { background: var(--tint); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.chip-ok { background: #ECFDF5; color: #047857; }
.chip-warn { background: #FFFBEB; color: #B45309; }
.chip-err { background: #FEF2F2; color: #B91C1C; }
.chip-neutral { background: var(--tint); color: var(--ink-3); }
.chip-info { background: var(--accent-100); color: var(--accent-700); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 13px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.stat .value { font-size: 25px; font-weight: 800; letter-spacing: -.03em; margin-top: 5px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ===== Кабинеты ========================================================= */
/* Кабинет светлый, как весь остальной интерфейс. Тёмная боковая панель
   выбивалась бы из стиля лендинга — а Arko должен читаться как часть
   одной компании, а не отдельный продукт. */
.cab { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.cab-side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 0; }
.cab-side .logo { padding: 0 18px 18px; }
.cab-side nav a {
  display: flex; align-items: center; gap: 9px; padding: 9px 18px;
  font-size: 13.5px; color: var(--ink-3); border-left: 3px solid transparent;
  transition: background .16s, color .16s;
}
.cab-side nav a:hover { background: var(--tint); color: var(--brand); }
.cab-side nav a.on {
  background: var(--brand-50); color: var(--brand-700);
  border-left-color: var(--brand); font-weight: 600;
}
.cab-side .group {
  padding: 16px 18px 6px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .13em; color: var(--slate-400); font-weight: 700;
}
.cab-main { padding: 24px 28px 60px; background: var(--bg); min-width: 0; }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cab-head h1 { margin: 0; font-size: 24px; }

/* ===== Пагинация, крошки, пустые состояния ============================== */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 16px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.pager { display: flex; gap: 7px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 11px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 13.5px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--grad); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { color: var(--line-2); margin-bottom: 14px; }

/* ===== Подвал =========================================================== */
.footer { background: var(--ink); color: #94A3B8; margin-top: 52px; padding: 38px 0 24px; font-size: 13.5px; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 11px; }
.footer a { display: block; padding: 3px 0; color: #94A3B8; }
.footer a:hover { color: #fff; }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px;
}

/* ===== Печать этикеток ================================================== */
/* Этикетки печатают пачкой. Всё лишнее убираем, каждая — своя страница:
   иначе штрихкод разрежется между листами и не прочитается сканером. */
@media print {
  body { background: #fff; }
  .topbar, .header, .catnav, .footer, .cab-side, .no-print { display: none !important; }
  .cab { display: block; }
  .cab-main { padding: 0; }
  .label-sheet { page-break-after: always; }
  .label-sheet:last-child { page-break-after: auto; }
}
.label-sheet {
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 13px;
  margin-bottom: 11px; background: #fff; width: 320px; display: inline-block; vertical-align: top;
}
.label-sheet .l-title { font-size: 12px; font-weight: 700; line-height: 1.25; margin-bottom: 2px; }
.label-sheet .l-sub { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.label-sheet svg { max-width: 100%; height: auto; }

/* ===== Адаптив ========================================================== */
@media (max-width: 1100px) {
  .pdp { grid-template-columns: 76px minmax(0, 1fr); }
  .buybox { grid-column: 1 / -1; position: static; }
  .mega-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cab { grid-template-columns: 1fr; }
  .cab-side { display: flex; overflow-x: auto; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cab-side nav { display: flex; }
  .cab-side nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .cab-side nav a.on { border-left: 0; border-bottom-color: var(--brand); }
  .cab-side .group, .cab-side .logo { display: none; }
  .cab-main { padding: 16px; }
  .header .wrap { height: auto; padding: 11px 16px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .head-icon span:last-child { display: none; }
  .feed { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .topbar .hide-sm { display: none; }
}

/* Двухколоночные экраны (корзина, оформление, заказ, кабинеты): на узком
   экране колонки встают друг под друга. До 2026-09-26 правая колонка
   фиксированной ширины сжимала форму оформления на телефоне до 50 px. */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) !important; }
  .split > .card[style*="sticky"] { position: static !important; }
}

/* ===== Кабинет покупателя (2026-09-27) ==================================
   Меню слева на компьютере; на телефоне меню — плитка на главной кабинета,
   в разделах вместо него ссылка «← Профиль» (как в приложении WB). */
.acc-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; margin: 18px 0 40px; }
.acc-side { position: sticky; top: 84px; }
.acc-me { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.acc-me b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-me .muted { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ava { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-block; }
.acc-ava-letter { display: inline-grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--logo-blue), var(--logo-violet)); }
.acc-menu { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.acc-menu a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.acc-menu a span { flex: 1; }
.acc-menu a svg:last-child { color: var(--slate-400, #94A3B8); }
.acc-menu a:hover { background: var(--tint, #F1F5F9); }
.acc-menu a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.acc-menu a em { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.acc-menu .acc-logout { color: var(--muted); }
.acc-menu-mobile { display: none; padding: 6px; }
.acc-title { font-size: 26px; margin: 0 0 14px; }
.acc-back { display: none; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.acc-hero { display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.acc-hero-me { display: flex; gap: 14px; align-items: center; min-width: 0; }
.acc-code { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); }
.acc-qr svg { display: block; width: 96px; height: 96px; }
.acc-code-num { font-size: 30px; font-weight: 850; letter-spacing: .08em; line-height: 1.1; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.acc-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.acc-tile b { font-size: 24px; font-weight: 800; }
.acc-tile span { font-size: 13.5px; color: var(--muted); }
.acc-tile em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.acc-strip { display: flex; gap: 12px; overflow-x: auto; padding-top: 10px; }
.acc-strip > div { flex: 0 0 auto; width: 96px; }
.acc-thumb { display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; overflow: hidden; background: var(--tint, #F1F5F9); color: #94A3B8; }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-row { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.card > .acc-row:first-child { border-top: 0; padding-top: 0; }
.acc-row-title { font-size: 14px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-steps { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.acc-steps span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--tint, #F1F5F9); color: var(--muted); }
.acc-steps span.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.acc-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.acc-actions:empty { display: none; }
.acc-review { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.acc-review input[name=text] { flex: 1; min-width: 140px; }
.acc-reply { margin-top: 6px; padding: 8px 10px; background: var(--tint, #F1F5F9); border-radius: 9px; font-size: 13px; }
.acc-radio { display: flex; gap: 9px; align-items: center; padding: 9px 11px; border: 1px solid var(--line-2, #E2E8F0); border-radius: 10px; margin-bottom: 7px; cursor: pointer; font-weight: 500; }
.acc-radio input { width: auto; }

@media (max-width: 860px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .acc-side { display: none; }
  .acc-back { display: inline-flex; }
  .acc-home .acc-menu-mobile { display: grid; }
  .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-title { font-size: 22px; }
  .acc-hero { padding: 14px; }
  .acc-code { width: 100%; }
}

/* ===== Нижняя панель вкладок на телефоне — как в приложении ============= */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); position: relative; padding: 2px 0; }
  .tabbar a.on { color: var(--brand); font-weight: 600; }
  .tabbar a .badge { position: absolute; top: -3px; left: calc(50% + 6px); }
  .tabbar .tab-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 20px; }
}
/* Запущено как приложение (с экрана «Домой») — верхняя полоса языков и
   ссылок продавцам не нужна, место на экране дороже. */
@media (display-mode: standalone) {
  .topbar { display: none; }
}
.install-bar { display: none; }
.install-bar.show { display: flex; gap: 10px; align-items: center; position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 61;
  background: #0F172A; color: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: 0 10px 30px rgba(15,23,42,.3); font-size: 13.5px; }
.install-bar img { width: 34px; height: 34px; border-radius: 8px; }
.install-bar span { flex: 1; }
.install-bar button { border: 0; border-radius: 9px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.install-bar .ib-go { background: #fff; color: #0F172A; }
.install-bar .ib-x { background: transparent; color: #CBD5E1; font-size: 18px; padding: 4px 6px; }
@media (min-width: 861px) { .install-bar.show { left: auto; right: 20px; bottom: 20px; max-width: 380px; } }
/* Подсказка установки поверх сайта: iPhone (куда нажать в Safari) и
   Android-браузеры без кнопки установки. Стрелка указывает на кнопку браузера. */
.ig[hidden], .ig [hidden] { display: none !important; }
.ig { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ig-card { background: #fff; border-radius: 18px; padding: 18px; max-width: 380px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.35); font-size: 15px; }
.ig-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 17px; }
.ig-head img { width: 40px; height: 40px; border-radius: 10px; }
.ig-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ig-steps li { display: flex; gap: 10px; align-items: center; background: #F8FAFC; border-radius: 12px; padding: 10px; }
.ig-steps p { margin: 0 0 10px; }
.ig-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #2563EB; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ig-ic { flex: 0 0 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: center; }
.ig-small { color: #64748B; font-size: 13px; }
.ig-btn, .ig-ok { display: block; width: 100%; text-align: center; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.ig-btn { background: #2563EB; color: #fff; margin-bottom: 10px; }
.ig-ok { background: #F1F5F9; color: #0F172A; }
.ig-arrow { position: fixed; display: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.ig[data-arrow="bottom"] .ig-arrow { display: block; left: calc(50% - 27px); bottom: calc(6px + env(safe-area-inset-bottom)); animation: igDown 1s ease-in-out infinite; }
.ig[data-arrow="more"] .ig-arrow { display: block; right: 8px; bottom: calc(6px + env(safe-area-inset-bottom)); animation: igDown 1s ease-in-out infinite; }
.ig[data-arrow="top"] .ig-arrow { display: block; right: 14px; top: calc(6px + env(safe-area-inset-top)); transform: rotate(180deg); animation: igUp 1s ease-in-out infinite; }
.ig[data-arrow="bottom"], .ig[data-arrow="more"] { align-items: flex-start; padding-top: 40px; }
.ig[data-arrow="top"] { align-items: flex-end; padding-bottom: 40px; }
@keyframes igDown { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(0); } }
@keyframes igUp { 0%, 100% { transform: rotate(180deg) translateY(-10px); } 50% { transform: rotate(180deg) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ig-arrow { animation: none !important; } }

/* ===== Карточка товара уровня WB (2026-09-28) ========================== */
.pdp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); background: var(--slate-50, #F8FAFC); scrollbar-width: none; }
.pdp-gallery::-webkit-scrollbar { display: none; }
.pdp-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 3/4; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; }
.pdp-dots { display: none; justify-content: center; gap: 6px; margin-top: 8px; }
.pdp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.pdp-dots i.on { background: var(--brand); }
@media (max-width: 860px) { .pdp-thumbs { display: none; } .pdp-dots { display: flex; } .pdp { grid-template-columns: minmax(0, 1fr) !important; } }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(2,6,23,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-x { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; cursor: pointer; }
.price-hist { margin: 0 0 12px; font-size: 13px; }
.price-hist summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.bb-delivery { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 5px; }
.bb-seller { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.bb-seller-name { font-weight: 700; color: var(--ink, #0F172A); }
.rv-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.rv-avg { display: grid; justify-items: start; gap: 2px; }
.rv-avg b { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rv-bars { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.rv-bar { display: grid; grid-template-columns: 32px 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; color: inherit; }
.rv-bar i { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; display: block; }
.rv-bar em { display: block; height: 100%; background: #F59E0B; border-radius: 4px; }
.rv-photos-title { font-weight: 700; font-size: 14px; margin: 4px 0 8px; }
.rv-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.rv-ph { flex: 0 0 76px; height: 76px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.rv-photos.small .rv-ph { flex-basis: 64px; height: 64px; }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; }
.rv-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: inherit; white-space: nowrap; }
.rv-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.rv-sort { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.rv-sort a.on { color: var(--brand); font-weight: 700; }
.rv-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; object-fit: cover; flex: 0 0 36px; }
.rv-txt { font-size: 14px; margin-top: 6px; white-space: pre-line; }
.rv-reply { margin-top: 8px; padding: 9px 12px; background: var(--tint); border-radius: 9px; font-size: 13.5px; }
.rv-useful { margin-top: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: inherit; }
.rv-useful.on { border-color: var(--brand); color: var(--brand); background: var(--tint); }
.feed-row { grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.feed-row > * { scroll-snap-align: start; }
@media (max-width: 600px) { .feed-row { grid-auto-columns: 46%; } }

.acc-review-box { margin-top: 8px; }
.acc-review-box summary { list-style: none; display: inline-flex; }
.acc-review-box summary::-webkit-details-marker { display: none; }
.acc-review-form { display: grid; gap: 8px; margin-top: 10px; max-width: 520px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { display: none; }
.star-pick label { font-size: 28px; color: var(--line); cursor: pointer; line-height: 1; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #F59E0B; }

/* Телефон: фото → цена и покупка → описание и отзывы (как в приложении WB).
   .pdp-main «растворяется» (display: contents), и его блоки встают в общий
   поток с покупкой; порядок задаётся order. */
@media (max-width: 860px) {
  .pdp { display: flex !important; flex-direction: column; gap: 14px; }
  .pdp-main { display: contents; }
  .pdp-main > * { order: 3; }
  .pdp-main > .pdp-gallery, .pdp-main > .pdp-dots, .pdp-main > .ph { order: 1; }
  .buybox { order: 2; }
  .pdp-main > .card { margin-top: 0 !important; }
}
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .sticky-buy.show { display: flex; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 60;
    gap: 10px; align-items: center; background: #fff; border-top: 1px solid var(--line); padding: 8px 14px; box-shadow: 0 -6px 18px rgba(15,23,42,.08); }
  .sticky-buy b { font-size: 18px; white-space: nowrap; }
  .sticky-buy .btn { flex: 1; }
}

/* ===== Фильтры каталога как у WB (2026-09-28) =========================== */
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.listing-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.flt-drawer > summary { display: none; list-style: none; }
.flt-drawer > summary::-webkit-details-marker { display: none; }
.flt { display: grid; gap: 4px; }
.flt-group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.flt-group > summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.flt-group > summary::after { content: '⌄'; color: var(--muted); }
.flt-group[open] > summary::after { content: '⌃'; }
.flt-body { display: grid; gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.flt-opt { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.flt-opt input { width: auto; margin: 0; }
.flt-opt span { flex: 1; }
.flt-opt em { font-style: normal; color: var(--muted); font-size: 12px; }
.flt-price { display: flex; gap: 6px; align-items: center; }
.flt-price input { min-width: 0; }
.flt-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.flt-size input { display: none; }
.flt-size span { display: inline-block; min-width: 40px; text-align: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; cursor: pointer; }
.flt-size input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--brand); font-weight: 700; }
.flt-actions { display: flex; gap: 8px; padding-top: 10px; }
.sort-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-row .chip { text-decoration: none; }
.flt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.flt-chip { padding: 6px 11px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 13px; font-weight: 600; }
.flt-chip.reset { background: none; color: var(--muted); }
@media (max-width: 860px) {
  .listing { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .listing-side { position: static; max-height: none; overflow: visible; }
  .flt-drawer > summary { display: inline-flex; }
  .flt-drawer[open] > .flt { position: fixed; inset: 0; z-index: 92; background: #fff; overflow-y: auto; padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); }
  .flt-drawer[open] .flt-actions { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 93; }
  .flt-drawer[open] .flt-actions .btn { flex: 1; }
  .sort-row { flex-wrap: nowrap; overflow-x: auto; }
  .sort-row .chip { white-space: nowrap; }
}

/* Подсказки поиска */
form.search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.14); padding: 8px; max-height: 70vh; overflow-y: auto; text-align: left; }
.suggest[hidden] { display: none; }
.sg-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 8px 4px; text-transform: uppercase; letter-spacing: .03em; }
.sg-clear, .sg-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.sg-row { display: flex; align-items: center; }
.sg-row a, .sg-q { flex: 1; display: block; padding: 8px; border-radius: 9px; color: inherit; font-size: 14px; }
.sg-row a:hover, .sg-q:hover, .sg-p:hover { background: var(--tint); }
.sg-pills { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 8px 8px; }
.sg-pills a { padding: 6px 11px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 13px; }
.sg-p { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 9px; color: inherit; font-size: 13.5px; }
.sg-p img, .sg-p i { width: 40px; height: 48px; object-fit: cover; border-radius: 7px; background: var(--line); display: block; }
.sg-p b { white-space: nowrap; }

/* Корзина с галочками */
.cart-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cart-bar .cart-check { margin-right: auto; }
.cart-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.cart-check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.cart-row.off > :not(.cart-check) { opacity: .5; }

.show-sm { display: none; }
@media (max-width: 600px) { .show-sm { display: inline; } }
@media (max-width: 600px) {
  .cart-row { position: relative; gap: 10px !important; }
  .cart-row > div:nth-child(3) { padding-right: 0; }
  .cart-price { display: none; }
  .cart-row .cart-ctrl { gap: 4px !important; }
  .cart-row .cart-ctrl .btn { padding: 6px 9px; min-width: 32px; }
  .cart-bar .btn { flex: 1; }
}
@media (max-width: 600px) { .cart-ctrl .hide-sm { display: none; } }

.cart-price-m { display: none; }
@media (max-width: 600px) { .cart-price-m { display: block; font-weight: 800; font-size: 16px; margin-bottom: 2px; } }

/* Акции площадки */
.promo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; }
.promo-strip.big { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.promo-banner { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-lg, 18px); color: #fff; background: linear-gradient(135deg, var(--pc, #E11D48), color-mix(in srgb, var(--pc, #E11D48) 55%, #7C3AED)); box-shadow: 0 10px 24px color-mix(in srgb, var(--pc, #E11D48) 30%, transparent); }
.promo-banner b { font-size: 20px; letter-spacing: -.02em; }
.promo-banner span { font-size: 13.5px; opacity: .95; }
.promo-banner em { font-style: normal; font-size: 13px; opacity: .85; }
.promo-banner.wide { margin: 6px 0 14px; }
.badge-promo { background: #7C3AED; color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.pdp-promo { display: block; margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700; background: var(--pc, #E11D48); }

/* Сообщения */
.chat { display: grid; gap: 12px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 12px; background: var(--slate-50, #F8FAFC); border: 1px solid var(--line); border-radius: 14px; }
.msg-b { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg-b.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 14px 14px 4px 14px; }
.msg-b.staff:not(.mine) { border-color: #7C3AED; }
.msg-meta { font-size: 11.5px; opacity: .7; margin-bottom: 2px; }
.msg-t { white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 52px; max-height: 160px; }
.chat-row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.chat-row:hover { background: var(--tint); }
.chat-last { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

.pcard-note { font-size: 12px; font-weight: 700; color: var(--ok); margin-top: 2px; }

.pp-map { height: 380px; border-radius: 16px; border: 1px solid var(--line); margin: 12px 0 18px; z-index: 0; }
@media (max-width: 600px) { .pp-map { height: 300px; } }

.shop-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.shop-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--tint); color: var(--brand); display: grid; place-items: center; font-size: 28px; font-weight: 800; overflow: hidden; flex: 0 0 64px; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-head > div:nth-child(2) { flex: 1 1 240px !important; }
.shop-head .muted span { white-space: nowrap; }
@media (max-width: 600px) { .shop-actions { flex: 1 1 100%; } .shop-actions .btn { width: 100%; } }

/* Баннеры главной (lib/banners.js): слайдер как у WB — один баннер на ширину, свои пропорции под экран */
.hero-slider { position: relative; }
.hero-banners { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius-lg, 18px); scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-banners::-webkit-scrollbar { display: none; }
.hero-banner { position: relative; display: block; scroll-snap-align: start; border-radius: var(--radius-lg, 18px); overflow: hidden; aspect-ratio: 10 / 3; background: var(--grad-soft, #eef); }
.hero-banner picture, .hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero-video.on { opacity: 1; }
.hero-banner > span { z-index: 1; }
.hero-banner > span { position: absolute; left: 4%; bottom: 10%; max-width: 60%; color: #fff; font-weight: 800; font-size: clamp(16px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media (max-width: 1023px) { .hero-banner { aspect-ratio: 2 / 1; } }
@media (max-width: 599px) { .hero-banner { aspect-ratio: 3 / 2; } .hero-banner > span { max-width: 85%; } }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.hero-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2, #CBD5E1); cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button.on { width: 22px; background: var(--brand); }
.hero-arrow { position: absolute; top: calc(50% - 18px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(255,255,255,.88); color: var(--ink, #0F172A); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,.12)); opacity: 0; transition: opacity .2s; }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
.hero-slider:hover .hero-arrow { opacity: 1; }
@media (hover: none) { .hero-arrow { display: none; } }

/* Секции и страницы из кабинета/агента (lib/sitecontent.js) */
.site-section { border-radius: var(--radius-lg, 18px); }
.site-section[style] { padding: 22px 20px; }
.site-section-body { font-size: 15px; line-height: 1.55; }
.site-section-body img, .site-page img { max-width: 100%; height: auto; border-radius: 12px; }
.site-cta { text-align: center; display: grid; gap: 10px; justify-items: center; }
.site-cta h2 { margin: 0; }
.btn-light { background: #fff; color: var(--brand); }

/* ===== Космические сцены-баннеры (lib/scenes.js) ===== */
.scene { position: absolute; inset: 0; overflow: hidden; color: #fff; container-type: size;
  background: radial-gradient(120% 140% at 75% 50%, #1B1F5E 0%, #0E1240 45%, #070A24 100%); }
.sc-hue-b { background: radial-gradient(120% 140% at 75% 50%, #12307A 0%, #0B1A4D 45%, #050B26 100%); }
.sc-hue-c { background: radial-gradient(120% 140% at 75% 50%, #3A1E6E 0%, #1D1147 45%, #0B0726 100%); }
.sc-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o); animation: sc-twinkle var(--d) ease-in-out infinite; }
@keyframes sc-twinkle { 50% { opacity: .15; transform: scale(.6); } }
.sc-neb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; mix-blend-mode: screen; }
.sc-neb1 { width: 60%; height: 120%; left: 38%; top: -20%; background: radial-gradient(circle, #375BEB 0%, transparent 65%); animation: sc-drift 18s ease-in-out infinite alternate; }
.sc-neb2 { width: 45%; height: 100%; left: 62%; top: 10%; background: radial-gradient(circle, #C089F6 0%, transparent 65%); animation: sc-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes sc-drift { to { transform: translate(-8%, 6%) scale(1.15); } }
.sc-comet { position: absolute; top: 12%; left: -20%; width: 22%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); box-shadow: 0 0 8px #C089F6; transform: rotate(-14deg); animation: sc-comet 9s linear infinite; opacity: 0; }
@keyframes sc-comet { 0% { left: -25%; top: 8%; opacity: 0; } 4% { opacity: 1; } 22% { left: 110%; top: 38%; opacity: 0; } 100% { left: 110%; top: 38%; opacity: 0; } }
/* система: планета + две орбиты справа */
.sc-system { position: absolute; right: 8%; top: 50%; width: min(78cqh, 46cqw); aspect-ratio: 1; transform: translateY(-50%); }
.sc-planet { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #9DB4FF 0%, #5C7CF5 22%, #375BEB 45%, #4B2FA8 75%, #2A1660 100%);
  box-shadow: 0 0 40px rgba(118,123,237,.7), 0 0 120px rgba(192,137,246,.35), inset -12px -14px 30px rgba(10,6,40,.6); animation: sc-breathe 6s ease-in-out infinite; }
@keyframes sc-breathe { 50% { box-shadow: 0 0 60px rgba(118,123,237,.9), 0 0 160px rgba(192,137,246,.5), inset -12px -14px 30px rgba(10,6,40,.6); } }
.sc-planet svg { width: 46%; height: 46%; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.sc-planet-tech { background: radial-gradient(circle at 32% 28%, #A5F3FC 0%, #38BDF8 20%, #375BEB 50%, #1E1B6B 100%); }
.sc-planet-tech::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(0deg, transparent 0 9%, rgba(255,255,255,.08) 9% 10%); animation: sc-spin 30s linear infinite; }
.sc-planet-ring b { position: absolute; inset: -38% -55%; border-radius: 50%; border: 3px solid rgba(192,137,246,.75); transform: rotate(-18deg) scaleY(.32); box-shadow: 0 0 18px rgba(192,137,246,.6); }
.sc-planet-pom { background: radial-gradient(circle at 32% 28%, #FDA4AF 0%, #E11D48 35%, #9F1239 70%, #4C0519 100%); box-shadow: 0 0 40px rgba(244,63,94,.55), 0 0 120px rgba(192,137,246,.35), inset -12px -14px 30px rgba(40,4,16,.6); }
.sc-planet-pom svg { color: #FFE4E6; }
.sc-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(192,137,246,.35); animation: sc-spin var(--t) linear infinite; }
.sc-o1 { inset: 14%; } .sc-o2 { inset: -2%; animation-direction: reverse; border-color: rgba(118,123,237,.3); }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r, 50cqh))); }
.sc-o1 .sc-sat { --r: calc(min(78cqh, 46cqw) * .36); } .sc-o2 .sc-sat { --r: calc(min(78cqh, 46cqw) * .52); }
.sc-sat-in { position: absolute; width: clamp(26px, 9cqh, 64px); height: clamp(26px, 9cqh, 64px); margin: calc(clamp(26px, 9cqh, 64px) / -2); border-radius: 30%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(55,91,235,.85), rgba(192,137,246,.85));
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 18px rgba(192,137,246,.55); backdrop-filter: blur(4px);
  animation: sc-counter var(--t) linear infinite; }
.sc-sat-in svg { width: 56%; height: 56%; }
/* иконка держится «прямо», пока орбита крутится: обратный поворот на ту же скорость */
@keyframes sc-counter { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }
.sc-o1 .sc-sat-in { --t: 18s; } .sc-o2 .sc-sat-in { --t: 30s; }
.sc-o2 .sc-sat-in { animation-name: sc-counter-r; }
@keyframes sc-counter-r { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) + 360deg)); } }
.sc-rocket { position: absolute; width: clamp(28px, 11cqh, 70px); color: #fff; filter: drop-shadow(0 0 10px #C089F6); left: -10%; top: 70%; animation: sc-fly 7s ease-in-out infinite; }
.sc-rocket::after { content: ''; position: absolute; left: 50%; top: 92%; width: 4px; height: 160%; transform: translateX(-50%); background: linear-gradient(#C089F6, transparent); border-radius: 4px; }
@keyframes sc-fly { 0% { left: -12%; top: 82%; transform: rotate(55deg); } 60% { left: 112%; top: 4%; transform: rotate(55deg); } 100% { left: 112%; top: 4%; transform: rotate(55deg); } }
/* текст слева */
.sc-text { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); max-width: 48%; display: grid; gap: clamp(4px, 2cqh, 14px); z-index: 2; }
.sc-text b { font-family: var(--font-display, inherit); font-size: clamp(22px, 13cqh, 64px); line-height: 1.02; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff 0%, #DCE4FF 45%, #E9D5FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(192,137,246,.35); animation: sc-rise .9s ease-out both; }
.sc-text em { font-style: normal; font-size: clamp(12px, 5cqh, 22px); color: #C7D2FE; animation: sc-rise .9s .15s ease-out both; }
.sc-text u { text-decoration: none; justify-self: start; margin-top: clamp(2px, 1.5cqh, 10px); padding: clamp(6px, 2.6cqh, 12px) clamp(12px, 4cqh, 22px); border-radius: 99px; font-weight: 700; font-size: clamp(12px, 4.2cqh, 17px);
  background: linear-gradient(135deg, #375BEB, #7678ED 50%, #C089F6); box-shadow: 0 0 24px rgba(118,123,237,.6); animation: sc-rise .9s .3s ease-out both, sc-glow 3s 1s ease-in-out infinite; }
@keyframes sc-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes sc-glow { 50% { box-shadow: 0 0 40px rgba(192,137,246,.9); } }
.hero-banner:hover .sc-text u { transform: translateY(-1px); }
/* телефон: система сверху справа меньше, текст снизу на всю ширину */
@media (max-width: 599px) {
  .sc-system { right: -8%; top: 30%; width: min(78cqh, 52cqw); }
  .sc-text { top: auto; bottom: 8%; transform: none; max-width: 90%; gap: 3px; }
  .sc-text b { font-size: clamp(18px, 10.5cqh, 30px); max-width: 78%; }
  .sc-text em { font-size: clamp(11px, 5cqh, 14px); max-width: 80%; }
}
.hero-banner.has-scene > span { display: none; }
@media (prefers-reduced-motion: reduce) { .scene *, .scene *::after { animation: none !important; } .sc-comet, .sc-rocket { display: none; } }

/* ----- сцены v2: больше звёзд, падающие звёзды, насыщеннее, 3D-объекты ниш ----- */
.scene { filter: saturate(1.25); }
.sc-neb { opacity: .72; }
.sc-neb3 { width: 40%; height: 90%; left: 18%; top: 30%; background: radial-gradient(circle, #7678ED 0%, transparent 60%); animation: sc-drift 26s ease-in-out infinite alternate; opacity: .45; }
/* звёздная пыль: два слоя мелких звёзд летят с разной скоростью (параллакс) */
.sc-dust { position: absolute; inset: -50% 0 0 -50%; width: 200%; height: 200%; opacity: .55;
  background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 120px, #E9D5FF, transparent), radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent), radial-gradient(1px 1px at 230px 170px, #C7D2FE, transparent);
  background-size: 260px 200px; animation: sc-fall 60s linear infinite; }
.sc-dust2 { background-size: 380px 300px; opacity: .35; animation-duration: 95s; animation-direction: reverse; }
@keyframes sc-fall { to { transform: translate(25%, 25%); } }
.sc-comet2 { animation-delay: 3.2s; animation-duration: 11s; top: 4%; }
.sc-comet3 { animation-delay: 6.4s; animation-duration: 13s; width: 14%; box-shadow: 0 0 10px #7DD3FC; }
.sc-planet { animation: sc-breathe 6s ease-in-out infinite, sc-bob 8s ease-in-out infinite; }
@keyframes sc-bob { 50% { translate: 0 -3%; } }
.sc-sat-in { box-shadow: 0 0 22px rgba(192,137,246,.75), inset 0 0 10px rgba(255,255,255,.25); }

/* 3D-объект ниши — между текстом и планетой */
.sc-obj { position: absolute; left: 60%; top: 52%; translate: -50% -50%; z-index: 1; filter: drop-shadow(0 0 22px rgba(118,123,237,.55)); animation: sc-float 6s ease-in-out infinite; }
@keyframes sc-float { 50% { translate: -50% -56%; } }
.sc-3d { perspective: 900px; }
.sc-box { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; animation: sc-turn 14s linear infinite; }
@keyframes sc-turn { from { transform: rotateX(-12deg) rotateY(0deg); } to { transform: rotateX(-12deg) rotateY(360deg); } }
.sc-box > i { position: absolute; left: 50%; top: 50%; display: block; backface-visibility: hidden; }
.sc-box > .f-front, .sc-box > .f-back { width: var(--w); height: var(--h); }
.sc-box > .f-left, .sc-box > .f-right { width: var(--d); height: var(--h); }
.sc-box > .f-top, .sc-box > .f-bottom { width: var(--w); height: var(--d); }
.sc-box > .f-front { transform: translate(-50%, -50%) translateZ(calc(var(--d) / 2)); }
.sc-box > .f-back { transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.sc-box > .f-left { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.sc-box > .f-right { transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.sc-box > .f-top { transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.sc-box > .f-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* смартфон */
.sc-phone-wrap { position: relative; perspective: 900px; }
.sc-phone .sc-box { --w: 24cqh; --h: 50cqh; --d: 2.4cqh; animation-duration: 10s; }
.sc-phone .sc-box > i { border-radius: 3.6cqh; }
.sc-phone .f-left, .sc-phone .f-right, .sc-phone .f-top, .sc-phone .f-bottom { border-radius: 2cqh !important; background: linear-gradient(90deg, #8E9BC7, #E5E9F7, #8E9BC7); }
.sc-phone .f-front { background: #05060F; border: .7cqh solid #1C2033; box-sizing: border-box; overflow: hidden; }
.sc-phone .f-front::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 0%, #375BEB 0%, #4C1D95 55%, #0B0B2A 100%); }
.ph-island { position: absolute; top: 2.2cqh; left: 50%; translate: -50% 0; width: 7cqh; height: 1.8cqh; border-radius: 9px; background: #000; z-index: 1; }
.ph-apps { position: absolute; top: 7cqh; left: 2.2cqh; right: 2.2cqh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqh; z-index: 1; }
.ph-apps b, .ph-dock b { aspect-ratio: 1; border-radius: 28%; background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(192,137,246,.55)); box-shadow: 0 0 6px rgba(192,137,246,.6); }
.ph-apps b:nth-child(3n) { background: linear-gradient(135deg, #7DD3FC, #375BEB); } .ph-apps b:nth-child(4n+1) { background: linear-gradient(135deg, #F9A8D4, #C089F6); }
.ph-dock { position: absolute; bottom: 2.2cqh; left: 2.2cqh; right: 2.2cqh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqh; padding: 1cqh; border-radius: 2cqh; background: rgba(255,255,255,.14); z-index: 1; }
.sc-phone .f-back { background: linear-gradient(145deg, #5B6BD6 0%, #3B2A8C 55%, #241A5C 100%); border: .5cqh solid #9AA7E0; box-sizing: border-box; }
.ph-cam, .ph-cam2 { position: absolute; top: 2.4cqh; left: 2.4cqh; width: 10cqh; height: 10cqh; border-radius: 2.6cqh; background: rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr 1fr; gap: .8cqh; padding: 1cqh; box-sizing: border-box; }
.ph-cam b, .ph-cam2 b { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #64748B, #020617 70%); border: .35cqh solid #CBD5E1; }
.ph-cam2 { grid-template-columns: 1fr; width: 5.5cqh; height: 10cqh; }
.sc-phone2 { position: absolute; left: 90%; top: 18%; scale: .72; opacity: .9; }
.sc-phone2 .sc-box { animation-duration: 13s; animation-direction: reverse; }
.sc-phone2 .f-back { background: linear-gradient(145deg, #E9D5FF, #A78BFA 55%, #6D28D9); }

/* посылка Arko */
.sc-parcel .sc-box { --w: 24cqh; --h: 20cqh; --d: 24cqh; animation-duration: 12s; }
.sc-parcel .sc-box > i { background: linear-gradient(135deg, #E8C8A0, #C9965F); box-shadow: inset 0 0 2cqh rgba(90,50,10,.25); }
.sc-parcel s { position: absolute; left: 0; right: 0; top: 50%; height: 3cqh; translate: 0 -50%; background: linear-gradient(90deg, #375BEB, #7678ED, #C089F6); box-shadow: 0 0 10px rgba(118,123,237,.8); }
.sc-parcel s.v { left: 50%; right: auto; top: 0; bottom: 0; width: 3cqh; height: auto; translate: -50% 0; }
.sc-parcel em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 9cqh; color: rgba(55,91,235,.85); }

/* сумка-шопер */
.sc-bag .sc-box { --w: 22cqh; --h: 26cqh; --d: 8cqh; animation-duration: 11s; }
.sc-bag .sc-box > i { background: linear-gradient(160deg, #C089F6 0%, #7678ED 50%, #375BEB 100%); box-shadow: inset 0 0 3cqh rgba(255,255,255,.18); }
.sc-bag .f-front, .sc-bag .f-back { overflow: visible; }
.sc-bag em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 5.5cqh; color: #fff; letter-spacing: -.02em; text-shadow: 0 0 10px rgba(255,255,255,.6); }
.bag-h { position: absolute; left: 25%; right: 25%; bottom: 92%; height: 9cqh; border: 1cqh solid #E9D5FF; border-bottom: 0; border-radius: 9cqh 9cqh 0 0; }

/* домик */
.sc-house .sc-box { --w: 24cqh; --h: 17cqh; --d: 20cqh; animation-duration: 16s; }
.sc-house .sc-box > i { background: linear-gradient(160deg, #F5F3FF, #C7D2FE); }
.sc-house .f-top, .sc-house .f-bottom { background: #A5B4FC !important; }
.sc-house .door { position: absolute; left: 40%; bottom: 0; width: 20%; height: 55%; border-radius: 1.4cqh 1.4cqh 0 0; background: linear-gradient(#7678ED, #375BEB); }
.sc-house .win { position: absolute; left: 12%; top: 22%; width: 20%; height: 32%; border-radius: .8cqh; background: radial-gradient(circle, #FDE68A, #F59E0B); box-shadow: 0 0 12px #FBBF24; }
.sc-house .win.w2 { left: auto; right: 12%; }
.sc-house .f-left .win, .sc-house .f-right .win { left: 30%; width: 40%; }
.sc-house .f-roof1, .sc-house .f-roof2 { width: calc(var(--w) * 1.08); height: calc(var(--d) * .76); background: linear-gradient(135deg, #7678ED, #4C1D95); }
.sc-house .f-roof1 { transform: translate(-50%, -50%) translateY(calc(var(--h) / -2 - var(--d) / 4)) translateZ(calc(var(--d) / 4)) rotateX(45deg); }
.sc-house .f-roof2 { transform: translate(-50%, -50%) translateY(calc(var(--h) / -2 - var(--d) / 4)) translateZ(calc(var(--d) / -4)) rotateX(-45deg); }
.sc-house .f-gable1, .sc-house .f-gable2 { width: var(--d); height: calc(var(--d) / 2); background: #DDD6FE; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sc-house .f-gable1 { transform: translate(-50%, -50%) translateY(calc(var(--h) / -2 - var(--d) / 4)) rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.sc-house .f-gable2 { transform: translate(-50%, -50%) translateY(calc(var(--h) / -2 - var(--d) / 4)) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }

/* Арарат у горизонта */
.sc-obj-ararat { left: auto; right: 2%; top: auto; bottom: -2%; translate: 0 0; width: 62%; animation: none; filter: drop-shadow(0 -6px 30px rgba(192,137,246,.55)); }
.sc-ararat svg { width: 100%; display: block; }
.sc-obj-ararat::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 30%; background: radial-gradient(ellipse at 50% 100%, rgba(192,137,246,.55), transparent 70%); }

@media (max-width: 599px) {
  .sc-obj { left: 48%; top: 25%; scale: .5; }
  .sc-obj-ararat { left: auto; right: 0; top: auto; bottom: 0; width: 90%; scale: 1; opacity: .7; }
  .sc-phone2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sc-dust { animation: none !important; } }
.sc-house .f-roof1, .sc-house .f-roof2, .sc-house .f-gable1, .sc-house .f-gable2 { backface-visibility: visible !important; }
.sc-house .f-top { opacity: 0; }

/* 3D-модель ниши летает вокруг планеты по своей (эллиптической) орбите: сверху уходит ЗА планету и уменьшается,
   снизу выходит вперёд и крупнее. Эллипс = два «качания» по X и Y со сдвигом на четверть оборота. */
.sc-system { --S: min(78cqh, 46cqw); }
.sc-planet { z-index: 2; }
.sc-orb3 { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.sc-ox { position: absolute; animation: sc-ox 13s ease-in-out infinite alternate; }
.sc-oy { position: absolute; animation: sc-oy 13s ease-in-out -6.5s infinite alternate; }
@keyframes sc-ox { from { transform: translateX(calc(var(--S) * -.62)); } to { transform: translateX(calc(var(--S) * .58)); } }
@keyframes sc-oy { from { transform: translateY(calc(var(--S) * -.3)) scale(.6); } to { transform: translateY(calc(var(--S) * .3)) scale(1); } }
.sc-orb3 { z-index: 1; animation: sc-oz 13s -6.5s infinite alternate; }
@keyframes sc-oz { 0%, 49% { z-index: 1; } 51%, 100% { z-index: 3; } }
.sc-orb3 .sc-obj { position: absolute; left: 0; top: 0; translate: -50% -50%; scale: .62; animation: none; filter: drop-shadow(0 0 18px rgba(118,123,237,.6)); }
.sc-orb3 .sc-phone2 { scale: .7; }
@media (max-width: 599px) {
  .sc-system { --S: min(78cqh, 52cqw); }
  .sc-orb3 .sc-obj { left: 0; top: 0; scale: .42; }
}

/* ===== 2026-10-13: телефон — каталог в правом углу; живая нижняя панель; мягкие анимации витрины ===== */
@media (max-width: 860px) {
  .header .logo { order: 0; }
  .header .head-icons { order: 1; margin-left: auto; }
  .header .catalog-btn { order: 2; padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 14px; flex-shrink: 0; }
  .header .catalog-btn span { display: none; }
  .header .search { order: 3; }
}
/* нижняя панель: «пилюля» под активным разделом, подпрыгивание иконки, отклик на нажатие */
@media (max-width: 860px) {
  .tabbar a { transition: color .25s; -webkit-tap-highlight-color: transparent; }
  .tabbar a::before { content: ''; position: absolute; top: -1px; left: 50%; width: 46px; height: 30px; margin-left: -23px; border-radius: 15px;
    background: linear-gradient(135deg, var(--brand-50, #EFF6FF), #F3E8FF); transform: scale(.4); opacity: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s; z-index: -1; }
  .tabbar a.on::before { transform: scale(1); opacity: 1; }
  .tabbar a { z-index: 0; }
  .tabbar a svg, .tabbar a .tab-ava { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .tabbar a.on svg { transform: translateY(-1px) scale(1.12); animation: tab-pop .5s cubic-bezier(.34,1.56,.64,1); }
  .tabbar a:active svg { transform: scale(.82); }
  .tabbar a.on span:not(.badge) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tabbar a .badge { animation: badge-pop .45s cubic-bezier(.34,1.56,.64,1); }
}
@keyframes tab-pop { 0% { transform: scale(.8); } 60% { transform: translateY(-3px) scale(1.2); } 100% { transform: translateY(-1px) scale(1.12); } }
@keyframes badge-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* карточки и плитки плавно появляются при прокрутке (public/js/shop.js ставит .reveal → .in) */
.reveal { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.feed .card, .feed > a, .feed > div { transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; }
@media (hover: hover) { .feed > *:hover { transform: translateY(-4px); box-shadow: var(--shadow-md, 0 12px 30px rgba(15,23,42,.12)); } }
.btn { transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.96); }
.section-head h2 { position: relative; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 32px; height: 3px; border-radius: 3px; background: var(--grad); }
.feed-more { display: flex; justify-content: center; margin: 18px 0 8px; min-height: 48px; }
.feed-more.loading button { pointer-events: none; opacity: .6; }
.feed-more.loading button::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sc-spin .7s linear infinite; }
.home-empty { text-align: center; padding: 40px 20px; display: grid; gap: 10px; justify-items: center; }
.home-empty-ic { font-size: 44px; animation: sc-bob 3s ease-in-out infinite; }
.home-empty h2 { margin: 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .tabbar a.on svg { animation: none; } }

/* Окно выбора языка при первом визите (views/layout.js, ctx.askLang) */
.lang-pick { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(120% 120% at 70% 30%, rgba(55,91,235,.55), rgba(7,10,36,.82)); backdrop-filter: blur(6px); animation: lp-in .35s ease-out; }
.lang-pick-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 26px 22px 20px; text-align: center; display: grid; gap: 14px; justify-items: center;
  box-shadow: 0 30px 80px -20px rgba(30,27,75,.6); animation: lp-card .5s cubic-bezier(.22,1,.36,1); }
.lang-pick-card h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.lang-pick-card h2 small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.lang-pick-opts { display: grid; gap: 10px; width: 100%; }
.lang-pick-opts a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line);
  font-size: 17px; color: var(--ink); transition: transform .2s, border-color .2s, background .2s; }
.lang-pick-opts a span { font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 99px; padding: 3px 9px; }
.lang-pick-opts a:hover, .lang-pick-opts a:focus-visible { border-color: var(--brand); background: var(--brand-50); transform: translateY(-2px); }
.lang-pick-card p { margin: 0; font-size: 12px; color: var(--muted); }
@keyframes lp-in { from { opacity: 0; } }
@keyframes lp-card { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* «Вас ожидает до …» в доставках покупателя */
.acc-wait{display:inline-block;margin-top:6px;padding:3px 10px;border-radius:999px;background:var(--brand-soft, rgba(55,91,235,.1));color:var(--brand);font-size:12.5px;font-weight:700}

/* История посылки (продавец и покупатель) */
.trk-d{margin-top:6px}
.trk-d summary{cursor:pointer;font-size:12.5px;color:var(--brand);font-weight:600;list-style:none}
.trk-d summary::-webkit-details-marker{display:none}
.trk-d summary::after{content:' ▾'}
.trk{list-style:none;margin:8px 0 0;padding:0 0 0 4px;font-size:12.5px;min-width:220px}
.trk li{position:relative;padding:0 0 9px 18px;color:var(--muted,#94a3b8)}
.trk li::before{content:'';position:absolute;left:0;top:4px;width:9px;height:9px;border-radius:50%;background:var(--line,#e2e8f0)}
.trk li::after{content:'';position:absolute;left:4px;top:14px;bottom:-2px;width:1px;background:var(--line,#e2e8f0)}
.trk li:last-child::after{display:none}
.trk li.on{color:var(--text,inherit)}
.trk li.on::before{background:var(--brand)}
.trk li.cur span{font-weight:700}
.trk li.cur::before{box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.trk li.bad::before{background:var(--danger,#dc2626)}
.trk time{display:block;font-size:11.5px;color:var(--muted,#94a3b8)}

/* Сканер камерой в терминале пункта */
.cam-btn{white-space:nowrap}
.cam-box{position:fixed;inset:0;z-index:9999;background:rgba(2,6,23,.88);display:flex;align-items:center;justify-content:center;padding:16px}
.cam-in{position:relative;width:100%;max-width:420px;text-align:center;color:#fff}
.cam-in video{width:100%;border-radius:16px;background:#000;display:block}
.cam-v{position:relative}
.cam-frame{position:absolute;inset:14% 22%;border:3px solid #fff;border-radius:18px;pointer-events:none}
.cam-in p{margin:12px 0}
form:has(input[data-scan]){flex-wrap:wrap}
input[data-scan]{flex:1 1 230px;min-width:0}

/* iPhone приближает страницу, если у поля шрифт мельче 16px, и человек
   теряется на экране оформления. На телефонах поля — не мельче 16px. */
@media (max-width: 900px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: max(16px, 1em) !important; }
  .btn, button.btn { min-height: 34px; }
}

/* Видно поиску и экранным чтецам, не видно глазами (H1 главной витрины) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
