/* ═══════════════════════════════════════════════════════════
   layout.css — топбар, hero, секции, сетки, мобиль
   Источник: UI Map (myu-to-ui-map-combined-fixed.html)
═══════════════════════════════════════════════════════════ */

/* Весь контент поверх атмосферного фона */
main, header, footer, nav, section { position: relative; z-index: 1; }
/* ── Глобальный горизонтальный паддинг ────────────────────── */
:root     { --page-pad: 64px; }
@media (max-width: 1024px) { :root { --page-pad: 40px; } }
@media (max-width: 767px)  { :root { --page-pad: 20px; } }


/* ── TOPBAR — двухрядный (Ozon-style) ────────────────────── */
/* Ряд 1 (64px): лого + каталог + поиск + иконки
   Ряд 2 (36px): навигация
   Итого: 100px */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--c-bg);
  display: flex; flex-direction: column;
}
.topbar--transparent { background: var(--c-bg); }
[data-theme="light"] .topbar,
[data-theme="light"] .topbar--transparent { background: var(--c-bg); }


/* Ряд 1 */
.topbar-main {
  height: 64px;
  display: flex; align-items: center;
  padding: 0; gap: 0;
}

.topbar-brand {
  font-family: var(--f-ui); font-size: 18px; font-weight: 700;
  color: var(--c-text); letter-spacing: -.01em;
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center;
}
.topbar-brand:hover { text-decoration: none; }
.topbar-brand-svg,
.topbar-brand svg { height: 20px !important; width: auto !important; display: block; fill: var(--c-text); color: var(--c-text); }
.topbar-brand svg * { fill: currentColor; }

.topbar-left { display: flex; align-items: center; flex-shrink: 0; }

/* Кнопка Каталог — акцентная */
.topbar-catalog-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff;
  font-size: var(--fs-base); font-weight: 700;
  padding: 0 18px; height: 40px; border-radius: var(--r-lg);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: filter var(--t-fast);
  margin-left: 18px;  /* = внутренний padding кнопки */
}
.topbar-catalog-btn:hover { filter: brightness(1.1); text-decoration: none; }

/* Поиск */
.topbar-search-wrap {
  flex: 1; max-width: 680px;
  position: relative; display: flex; align-items: center;
  margin-left: 16px;
}
.topbar-search-input {
  width: 100%; height: 42px;
  padding: 0 50px 0 18px;
  background: var(--c-raised);
  border: 1.5px solid var(--c-stroke-s);
  border-radius: var(--r-lg);
  color: var(--c-text); font-family: var(--f-ui); font-size: var(--fs-base);
  outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.topbar-search-input::placeholder { color: var(--c-muted); }
.topbar-search-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-s);
}
.topbar-search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 34px;
  background: var(--c-accent); color: #fff; border: none;
  border-radius: var(--r-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: filter var(--t-fast);
}
.topbar-search-btn:hover { filter: brightness(1.1); }
.topbar-search-icon {
  width: 18px; height: 18px; color: #fff; pointer-events: none;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .2s cubic-bezier(.4,0,.2,1), opacity .15s;
}
.topbar-search-btn.searching .topbar-search-icon {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.topbar-search-loader {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.topbar-search-btn.searching .topbar-search-loader { opacity: 1; }

/* Дропдаун поиска */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: var(--c-base); border: 1px solid var(--c-stroke-s);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; max-height: 480px; overflow-y: auto;
}
.search-dropdown-inner { padding: 8px; }
.search-group-label {
  font-size: var(--fs-label); font-family: var(--f-mono); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  padding: 8px 10px 4px;
}
.search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  text-decoration: none; color: var(--c-text);
  transition: background var(--t-fast); cursor: pointer;
}
.search-result:hover { background: var(--c-raised); text-decoration: none; }
.search-result-thumb {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--c-high); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.search-result-meta  { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 1px; }
.search-no-results   { padding: 24px; text-align: center; font-size: var(--fs-sm); color: var(--c-muted); }

/* Правые иконки — единый размер и выравнивание */
.topbar-right { display: flex; align-items: center; gap: 0; margin-left: auto; flex-shrink: 0; }

.topbar-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 12px; border-radius: var(--r-md);
  cursor: pointer; transition: background var(--t-fast);
  border: none; background: none; font-family: var(--f-ui);
  text-decoration: none; color: var(--c-text);
  min-width: 60px; min-height: 52px;
}
.topbar-action:hover { background: var(--c-raised); text-decoration: none; }

/* Единый SVG-иконка — 22×22 для всех кнопок */
.topbar-action-svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--c-text-2); display: block;
}

/* Единый лейбл */
.topbar-action-label {
  font-size: var(--fs-label); line-height: 1.4; color: var(--c-muted);
  white-space: nowrap; overflow: visible; text-overflow: clip;
  max-width: 72px; text-align: center;
}

.topbar-action--profile .topbar-action-label { color: var(--c-text); font-weight: 500; }
.topbar-action--login   .topbar-action-label { color: var(--c-accent); }

/* Аватар — диаметр = иконка(22) + gap(3) + лейбл(11) = 36px, без подписи */
.topbar-action-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; display: block; flex-shrink: 0;
  border: 1.5px solid var(--c-stroke-s);
}
/* У профиля нет подписи — центрируем по вертикали */
.topbar-action--profile {
  justify-content: center;
}
.topbar-action--profile .topbar-action-label { display: none; }

/* Ряд 2: суб-навигация */
.topbar-subnav {
  height: 36px; display: flex; align-items: center;
  padding: 0; gap: 2px;
  position: relative; overflow: hidden;
}
/* Центрируем пункты subnav и выравниваем их по контенту топбара (ряд 1).
   Раньше у subnav был ещё СВОЙ горизонтальный padding ПОВЕРХ паддинга
   .content-wrap — двойной отступ сдвигал subnav вправо относительно логотипа.
   Теперь паддинг только у .content-wrap; −14px компенсирует внутренний padding
   ссылок (14px), чтобы крайние пункты совпадали по краям с логотипом/поиском. */
.topbar-subnav > .content-wrap {
  /* Выравнивание по левому краю враппера (совпадает с контентом ряда 1). */
  justify-content: flex-start;
  padding-left:  calc(var(--page-pad) - 10px);
  padding-right: calc(var(--page-pad) - 10px);
}
.topbar-subnav-link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text);
  padding: 4px 10px; border-radius: 9999px;
  text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.topbar--hero .topbar-subnav-link {
  background: color-mix(in srgb, var(--c-raised) 50%, transparent);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}
.topbar-subnav-link:hover  { color: var(--c-text); background: color-mix(in srgb, var(--c-raised) 80%, transparent); text-decoration: none; }
.topbar-subnav-link.active { color: var(--c-accent); }
.topbar-subnav-sep { width: 1.5px; height: 16px; background: var(--c-muted); margin: 0 3px; flex-shrink: 0; }
.topbar-subnav-indicator {
  position: absolute; bottom: 0; height: 2px;
  background: var(--c-accent); border-radius: 1px 1px 0 0;
  pointer-events: none;
}

/* <1440 (планшет/неттоп): полная subnav не помещается. Убираем категории
   ARMS/LABS/GELSOFT/EQUIP (subnav_links) + их разделитель и центрируем subnav
   по горизонтали. Десктоп >1440 — полная subnav, не трогаем. FREE/физикал
   остаются, категории доступны через фильтры в /catalog. */
@media (max-width: 1440px) {
  .topbar-subnav-link--cat,
  .topbar-subnav-sep--cat { display: none; }
  .topbar-subnav > .content-wrap { justify-content: flex-start; }
}

/* Отступ под двухрядным топбаром (64 + 36 = 100px) */
.page-body { padding-top: 100px; }
/* ── CONTENT WRAP — ограничивает контент по ширине ──────────
   Фоны секций тянутся на 100%, содержимое — до --content-max.
   Используется внутри любой секции. */
.content-wrap {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  width: 100%;
}


/* ══════════════════════════════════════════════════════
   HERO — Z-Pattern
   Структура:
     ТЛ: eyebrow + title + CTA
     ТП: subtitle + tagline
     Ц:  пушка (по оси Z, чуть правее центра)
     Н:  разделитель + статистика
   Цветовой сплит: лево = bg, право = accent
   Граница под ~15° наклоном влево
══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   HERO — Z-Pattern
   ЛВ: eyebrow + title + CTA
   ПВ: описание
   Ц: пушка (абсолютная, по центру, пересекает диагональ)
   Н: разделитель + статистика (полная ширина)
   Цветовой сплит: лево=dark, право=accent, ~15° наклон
══════════════════════════════════════════════════════ */
/* ── HERO ────────────────────────────────────────────────── */
/* ── HERO WRAP — hero + stats = 100vh ────────────────────── */
.hero-wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  --hero-split: 62%;
  background: linear-gradient(to right,
    var(--c-raised) 0%,
    var(--c-raised) var(--hero-split),
    var(--c-accent) var(--hero-split),
    var(--c-accent) 100%);
}

.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 62% 38%;
  position: relative; overflow: visible;
  background: transparent;
}


.hero-atm {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 300px 300px at 20% 75%, rgba(229,56,59,.04) 0%, transparent 70%);
}

/* hero-divider удалён */

.hero-left {
  padding: var(--page-pad);
  display: flex; flex-direction: column; justify-content: flex-start;
  position: relative; z-index: 2;
  overflow: hidden;
}

.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-eyebrow-line { width: 24px; height: 1.5px; background: var(--c-accent); flex-shrink: 0; }
.hero-eyebrow-text {
  font-size: var(--fs-md); font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent);
}

.hero-title {
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900; letter-spacing: -.04em; line-height: .95;
  color: var(--c-text); margin-bottom: 20px;
  /* Компенсация side-bearing шрифта при weight 900.
     text-indent точнее margin-left — сдвигает только текст, не бокс */
  text-indent: -.1em;
}
.hero-title-accent { color: var(--c-accent); }

/* hero-sub переехал в hero-right — нижний правый угол */
.hero-sub-wrap {
  position: absolute;
  bottom: 0;              /* текст правой колонки — в НИЖНЕМ углу (не верхнем),
                             чтобы пушка (ствол/затвор вверху-справа) его не перекрывала */
  top: auto;
  right: var(--page-pad);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  /* горизонтальный scroll-сдвиг (translateX) + opacity задаются через JS */
}
/* >1440px: верхняя грань блока выравнивается по верху hero-title.
   hero-right top-align с hero-left, у которого padding-top = 100px + page-pad
   (.page-body--hero .hero-left) — это и есть верхняя грань заголовка. */
@media (min-width: 1441px) {
  .hero-sub-wrap {
    top: calc(100px + var(--page-pad));
    bottom: auto;
  }
}
/* Строка: кавычка слева + текст цитаты */
.hero-sub-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero-sub-quote {
  font-size: 64px;
  font-weight: 900;
  line-height: .8;
  color: #fff;           /* совпадает с цветом sub */
  opacity: .3;
  flex-shrink: 0;
  font-family: Georgia, serif;
  margin-top: -8px;
}
.hero-sub {
  font-size: var(--fs-xl);
  font-weight: 800;      /* пожирнее */
  line-height: 1.3;
  color: #fff;           /* всегда белый */
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Светлая тема — sub всё равно белый (он на красном фоне hero-right) */
[data-theme="light"] .hero-sub-quote { color: #fff; opacity: .3; }
[data-theme="light"] .hero-sub       { color: #fff; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-btn-ghost { border-color: var(--c-stroke-s); color: var(--c-text); background: var(--c-raised); }

/* hero-stats-row удалён — статы вынесены в hero-stats-bar под hero */

.hero-right {
  position: relative; overflow: visible;
  background: transparent;
}

/* Смещение пушки вправо — нарушение симметрии */
:root { --hero-gun-offset: var(--page-pad); }

.hero-model {
  position: absolute;
  /* clamp: гарантирует минимум 900px на любом десктопе.
     На 2560px: 47vw=1203px → cap 1100px. На 1920px: 47vw=902px.
     Убирает разницу gun-size между 2K и 1080p мониторами. */
  width: clamp(900px, 47vw, 1100px);
  left: calc(-12vw + var(--hero-gun-offset));
  top: 50%;
  transform: translate(-50%, -40%) rotate(-5deg);
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 32px 80px rgba(0,0,0,.65)) drop-shadow(0 0 60px rgba(229,56,59,.1));
  z-index: 5;
}
.hero-model img { width: 100%; height: auto; display: block; }

.hero-model-glow {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  width: 280px; height: 50px;
  background: rgba(229,56,59,.22); filter: blur(28px); border-radius: 50%;
  pointer-events: none; z-index: 2;
}

.hero-tagline {
  position: absolute; bottom: 40px; right: 32px;
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(227,227,230,.18); pointer-events: none; z-index: 2; white-space: nowrap;
}
/* ── STATS BAR — под hero, полная ширина ─────────────────── */
.hero-stats-bar {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--page-pad);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: transparent;
  flex-shrink: 0;
}
.hero-stats-logo {
  width: 150px; height: 150px;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.hero-stats-logo svg { width: 100%; height: 100%; display: block; }
.hero-stats-logo .fil0 { fill: var(--c-text) !important; }
.hero-stat-item { text-align: center; flex: 1; }
.hero-stat-num {
  font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em;
  color: var(--c-text); line-height: 1; margin-bottom: 6px;
  transition: color .2s ease;
}
.hero-stat-num span { color: inherit; }
.hero-stat-label {
  font-size: var(--fs-base); color: var(--c-muted);
  transition: color .2s ease;
}
/* Динамически — JS добавляет .on-red когда стат на красном фоне */
.hero-stat-item.on-red .hero-stat-num  { color: #fff; }
.hero-stat-item.on-red .hero-stat-label { color: rgba(255,255,255,.6); }
/* Тёмная тема — все статы белые (фон везде тёмный или красный) */
[data-theme="dark"] .hero-stat-num  { color: #fff; }
[data-theme="dark"] .hero-stat-label { color: rgba(255,255,255,.6); }


/* ── INTRO OVERLAY ──────────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--c-bg);
  cursor: pointer;
}
#intro-logo-wrap {
  position: fixed;
  top: calc(50vh - 175px);
  left: calc(50vw - 175px);
  width: 350px;
  height: 350px;
  z-index: 10001;
  cursor: pointer;
}
.intro-shard {
  position: absolute;
  inset: 0;
}
.intro-shard svg { width: 100%; height: 100%; display: block; }
.intro-shard .fil0 { fill: var(--c-text) !important; }
.intro-seal { position: absolute; inset: 0; }
.intro-seal svg { width: 100%; height: 100%; display: block; }
.intro-seal .fil0 { fill: var(--c-text) !important; }

@keyframes intro-shard-fly {
  0% {
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr));
    animation-timing-function: cubic-bezier(0.4, 0, 0.9, 0.5);
  }
  65% {
    transform: translate(calc(var(--sx) * 0.06), calc(var(--sy) * 0.06)) rotate(calc(var(--sr) * 0.06));
    animation-timing-function: cubic-bezier(0.1, 0.5, 0.35, 1);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

/* ── ОБЩИЙ КОНТЕЙНЕР СЕКЦИЙ ────────────────────────────────── */
.section {
  /* fluid: 48px на 767px → 80px на 1440px+. Убирает жёсткий прыжок у 2K/1080p. */
  padding: clamp(48px, 6.5vw, 80px) 0;
}
.section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(24px, 2.5vw, 36px);
}
.section-eyebrow {
  font-size: var(--fs-label); font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em;
  color: var(--c-text);
}
.section-link {
  font-size: var(--fs-xs); color: var(--c-accent); font-family: var(--f-mono);
  letter-spacing: .04em; text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ── Кнопка-кружок перехода на тематическую страницу ── */
.section-go {
  --sg-sz: clamp(28px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--sg-sz);
  height: var(--sg-sz);
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  opacity: .82;
  box-sizing: border-box;
  transition: width .32s cubic-bezier(.22,1,.36,1),
              padding .32s cubic-bezier(.22,1,.36,1),
              gap .22s ease,
              border-radius .32s cubic-bezier(.22,1,.36,1),
              transform .2s ease,
              opacity .18s ease,
              box-shadow .2s ease,
              filter .22s ease;
}
/* Fallback :hover — только когда JS-класс не активен */
.section-go:not(.sg-near):hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(229,56,59,.45);
  opacity: 1;
}
.section-go:hover { text-decoration: none; }
.section-go svg {
  display: block;
  width: calc(var(--sg-sz) * 0.52);
  height: calc(var(--sg-sz) * 0.52);
  flex-shrink: 0;
}

/* Типизируемый текст внутри кнопки */
.sg-label {
  flex: 0 0 auto;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: capitalize;
  text-decoration: none;
  color: #fff;
  pointer-events: none;
  transition: max-width .28s cubic-bezier(.22,1,.36,1) .06s;
}

/* ── Состояние «рядом» (proximity zone) ── */
.section-go.sg-near {
  border-radius: 20px;
  /* симметричный отступ: текст слева = стрелка справа */
  padding: 0 calc(var(--sg-sz) * 0.24) 0 calc(var(--sg-sz) * 0.24);
  gap: 11px;
  justify-content: flex-end;
  opacity: 1;
  box-shadow: 0 4px 18px rgba(229,56,59,.32);
  /* width задаётся через JS style.width */
}
.section-go.sg-near .sg-label {
  max-width: 200px;
}

/* ── Прямой ховер ── */
.section-go.sg-hover {
  box-shadow: 0 6px 28px rgba(229,56,59,.55);
  filter: brightness(1.28);
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .section-go.sg-hover { filter: brightness(1.2); }
}
/* Кнопка на следующей строке под h2 */
.section-go--below { display: flex; margin: 16px 0 20px; }
/* Заголовок + кнопка в одну строку с фиксированным отступом */
.section-go-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

/* ── GOLDEN CANON GRID ──────────────────────────────────────── */
.golden-grid {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 16px; min-height: 320px;
}
.golden-grid-right {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

/* ── ПОДПИСКИ ───────────────────────────────────────────────── */
.section-subscribe {
  padding: clamp(48px, 6.5vw, 80px) 0;
  background: var(--c-raised);
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ── Lava lamp ── */
.lava-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.lava-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.lava-blob-0 { top: -60px;  left: 10%;  animation-name: lava-0; }
.lava-blob-1 { top: 30%;   right: 8%;  animation-name: lava-1; }
.lava-blob-2 { bottom: -40px; left: 35%; animation-name: lava-2; }
.lava-blob-3 { top: 10%;   left: 55%;  animation-name: lava-3; }
.lava-blob-4 { bottom: 20%; left: -40px; animation-name: lava-4; }

@keyframes lava-0 {
  0%   { transform: translate(0,   0)   scale(1); }
  33%  { transform: translate(120px, 80px) scale(1.08); }
  66%  { transform: translate(60px, 160px) scale(0.94); }
  100% { transform: translate(180px, 60px) scale(1.04); }
}
@keyframes lava-1 {
  0%   { transform: translate(0,    0)    scale(1); }
  40%  { transform: translate(-140px, 60px) scale(0.92); }
  70%  { transform: translate(-60px, 130px) scale(1.06); }
  100% { transform: translate(-180px, 20px) scale(1); }
}
@keyframes lava-2 {
  0%   { transform: translate(0,   0)    scale(1); }
  30%  { transform: translate(90px, -80px) scale(1.1); }
  65%  { transform: translate(-60px, -120px) scale(0.96); }
  100% { transform: translate(60px, -60px) scale(1.03); }
}
@keyframes lava-3 {
  0%   { transform: translate(0,   0)    scale(1); }
  35%  { transform: translate(-80px, 100px) scale(0.9); }
  70%  { transform: translate(60px, 60px)  scale(1.12); }
  100% { transform: translate(-40px, 140px) scale(1); }
}
@keyframes lava-4 {
  0%   { transform: translate(0,   0)    scale(1); }
  45%  { transform: translate(130px, -50px) scale(1.05); }
  75%  { transform: translate(80px, -110px) scale(0.93); }
  100% { transform: translate(160px, -30px) scale(1.07); }
}

.section-subscribe .content-wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .lava-blob { animation: none; }
}
.subscribe-left { display: flex; flex-direction: column; gap: 14px; }
.subscribe-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--c-text); line-height: 1.2; }
.subscribe-desc  { font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.7; }
.subscribe-cards { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

.sub-card {
  background: var(--c-raised); border: 1px solid var(--c-stroke);
  border-radius: 14px; padding: 18px 16px; flex: 1; min-width: 140px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;   /* контент по центру; кнопка остаётся во всю ширину (stretch) */
  transition: transform .25s ease, box-shadow .25s ease;
}
.sub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(229,56,59,.22), 0 0 0 1px rgba(229,56,59,.3);
}
.sub-card.popular {
  background: var(--c-accent-s); border-color: var(--c-accent-m);
  transform: scale(1.04); box-shadow: 0 0 40px rgba(229,56,59,.12);
}
.sub-card.popular:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 8px 32px rgba(229,56,59,.22), 0 0 0 1px rgba(229,56,59,.3);
}
.sub-card-icon  { margin-bottom: 10px; display: flex; justify-content: center; align-items: center; height: 58px; }
/* размер иконки — из CMS (icon_size → --ti-size), но не больше слота:
   карточка остаётся стабильной, а визуальный «вес» лого можно балансировать
   индивидуально через настройку размера в CMS. */
.sub-card-icon .tier-icon-svg,
.tier-icon .tier-icon-svg { max-width: 100%; max-height: 100%; }
.sub-card-name  { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); }
.sub-card-price { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.03em; color: var(--c-accent); }
.sub-card-price span { font-size: var(--fs-xs); font-weight: 400; color: var(--c-muted); }
.sub-card-desc  { font-size: var(--fs-label); color: var(--c-muted); line-height: 1.5; flex: 1; }
.sub-card-btn   { margin-top: 8px; }

/* ── БЛОГ ───────────────────────────────────────────────────── */
.section-blog {
  padding: 80px 0;
}
.blog-list { display: flex; flex-direction: column; gap: 12px; }

/* ── SPOOLY ─────────────────────────────────────────────────── */
.section-spooly {
  padding: 80px 0;
  background: var(--c-base);
  border-top: 1px solid var(--c-stroke);
}
.spooly-left { display: flex; flex-direction: column; gap: 12px; }
.spooly-eyebrow {
  font-size: var(--fs-label); font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent);
  display: flex; align-items: center; gap: 8px;
}
.spooly-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--c-accent); }
.spooly-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--c-text); line-height: 1.2; }
.spooly-desc  { font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.7; }
.spooly-right { position: relative; }
.spooly-screenshot {
  height: 200px; background: var(--c-raised);
  border: 1px solid var(--c-stroke); border-radius: 14px;
  overflow: hidden; transform: rotate(1.5deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--c-base);
  border-top: 1px solid var(--c-stroke);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { font-family: var(--f-mono); font-size: var(--fs-md); font-weight: 700; color: var(--c-text); margin-bottom: 10px; display: flex; align-items: center; }
.footer-brand-svg,
.footer-brand svg { height: 18px !important; width: auto !important; display: block; fill: var(--c-text); color: var(--c-text); }
.footer-brand svg * { fill: currentColor; }
.footer-desc  { font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.7; max-width: 260px; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-muted); border: 1px solid var(--c-stroke);
  padding: 4px 9px; border-radius: var(--r-sm);
  text-decoration: none; transition: all var(--t-fast);
}
.footer-social:hover { color: var(--c-text); border-color: var(--c-stroke-s); text-decoration: none; }
.footer-col-title { font-size: var(--fs-label); font-family: var(--f-mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text);
  text-decoration: none; display: block; position: relative;
  padding-left: 0;
  transition: color .18s ease, padding-left .18s ease;
}
.footer-link::before {
  content: '>';
  position: absolute; left: 0; top: 0;
  color: var(--c-accent); font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.footer-link:hover { color: var(--c-accent); font-weight: 600; text-decoration: none; padding-left: 14px; }
.footer-link:hover::before { opacity: 1; transform: translateX(0); }
.footer-bottom { background: var(--c-accent); padding: 11px 0; }
.footer-copy,
.footer-cc     { font-size: var(--fs-xs); color: #fff; font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 500; }

/* ── MOBILE BOTTOM NAV ──────────────────────────────────────── */
.bottom-nav {
  display: none;
  flex-direction: column;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 4px 6px;
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
  background: rgba(19,19,21,.92);
  border-top: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="light"] .bottom-nav {
  background: rgba(249,249,251,.92);
  border-top-color: rgba(0,0,0,.08);
}
/* Ряд — 5 равных ячеек */
.bnav-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.bnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 9px 2px; cursor: pointer;
  position: relative; min-width: 0; min-height: 56px;
  text-decoration: none;
}
.bottom-nav a, .bottom-nav a:hover { text-decoration: none; }
.bnav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--c-muted); }
.bnav-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Лого Spooly — через mask, чтобы перекрашивалось в currentColor как остальные иконки */
.bnav-icon-spooly {
  width: 21px; height: 21px;
  background-color: currentColor;
  -webkit-mask: url("/shared/icons/spoollib.svg") center / contain no-repeat;
          mask: url("/shared/icons/spoollib.svg") center / contain no-repeat;
}
.bnav-label { font-size: 10px; color: var(--c-muted); font-family: var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* «Полоска» — индикатор сворачиваемости. Видна только в раскрытом меню
   (в свёрнутом аффорданс раскрытия — кнопка «Ещё») */
.bnav-handle {
  display: none; border: none; background: none; cursor: pointer;
  width: 60px; margin: 0 auto; padding: 7px 0 5px; flex: none;
}
.bottom-nav.expanded .bnav-handle { display: block; }
.bnav-handle::before {
  content: ''; display: block; width: 36px; height: 4px; margin: 0 auto;
  border-radius: 99px; background: var(--c-muted);
}
.bnav-item.active .bnav-icon  { color: var(--c-accent); }
.bnav-item.active .bnav-label { color: var(--c-accent); }
.bnav-dot { position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-accent); opacity: 0; }
.bnav-item.active .bnav-dot { opacity: 1; }
.bnav-more { background: none; border: none; font: inherit; }

/* ── Расширение «Ещё»: bottom-nav растёт вверх, добавляя ряды ── */
.bnav-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1);
}
.bottom-nav.expanded .bnav-extra { grid-template-rows: 1fr; }
.bnav-extra-inner {
  overflow: hidden; min-height: 0;
  display: flex; flex-direction: column;
  gap: 14px; padding-top: 14px;   /* вертикальный воздух между рядами */
}
.bottom-nav.expanded .bnav-more .bnav-icon,
.bottom-nav.expanded .bnav-more .bnav-label { color: var(--c-accent); }
.bnav-badge { position: absolute; top: 0; right: 4px; width: 8px; height: 8px; background: var(--c-accent); border-radius: 50%; border: 2px solid var(--c-bg); }

/* Sticky CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px;
  bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 99;
  background: var(--c-base);
  border: 1px solid var(--c-stroke-s); border-radius: 12px;
  padding: 10px 14px;
  align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: slideCta .2s ease;
}
@keyframes slideCta { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sticky-cta.visible { display: flex; }
.sticky-cta-info { flex: 1; }
.sticky-cta-name  { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); line-height: 1.2; }
.sticky-cta-price { font-size: var(--fs-xs); color: var(--c-accent); font-family: var(--f-mono); }

/* ── КАТАЛОГ: БАННЕР ВЫБОРА ──────────────────────────────────── */
.catalog-banner {
  position: fixed; inset: 0; z-index: 300;
  overflow: hidden;
}
/* Каждая половина — full-screen absolute, своя заливка, свой clip-path.
   padding-right/left: 50% сдвигает flex-центр в нужную половину экрана. */
.catalog-banner-half {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  text-decoration: none;
  transition: filter .35s ease;
}
.catalog-banner-half,
.catalog-banner-half:hover,
.catalog-banner-half *,
.catalog-banner-half *:hover { text-decoration: none; }

/* Неактивная половина — затемнена и обесцвечена (как выбор режима в игре) */
.catalog-banner:has(.catalog-banner-left:hover)  .catalog-banner-right,
.catalog-banner:has(.catalog-banner-right:hover) .catalog-banner-left {
  filter: brightness(0.62) saturate(0.2);
}

.catalog-banner-left {
  background: var(--c-accent);
  z-index: 1;
  justify-content: center;
  padding-right: 50%;
  clip-path: polygon(0 0, calc(50% + 8vh) 0, calc(50% - 8vh) 100%, 0 100%);
}
.catalog-banner-right {
  background: var(--c-bg);
  z-index: 0;
  justify-content: center;
  padding-left: 50%;
  clip-path: polygon(calc(50% + 8vh) 0, 100% 0, 100% 100%, calc(50% - 8vh) 100%);
}

.catalog-banner-content {
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
  position: relative; z-index: 1;
  padding: clamp(36px, 5vh, 64px) 48px 0;
}
.catalog-banner-label {
  font-size: 11px; font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; opacity: .6;
}
.catalog-banner-title {
  font-size: clamp(80px, 10vw, 150px); font-weight: 900;
  letter-spacing: -.04em; line-height: .95;
  margin-bottom: 12px;
}
.catalog-banner-sub {
  font-size: 15px; line-height: 1.6; opacity: .7; max-width: 320px;
}
.catalog-banner-cta {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; opacity: .9;
}
.catalog-banner-left .catalog-banner-label,
.catalog-banner-left .catalog-banner-title,
.catalog-banner-left .catalog-banner-sub,
.catalog-banner-left .catalog-banner-cta { color: #fff; }
.catalog-banner-right .catalog-banner-label,
.catalog-banner-right .catalog-banner-title,
.catalog-banner-right .catalog-banner-cta { color: var(--c-text); }
.catalog-banner-right .catalog-banner-sub { color: var(--c-muted); }

/* Картинки — крупные, асимметрично у диагонали */
.catalog-banner-img {
  position: absolute; bottom: 0;
  height: min(62vh, 680px); width: auto; max-width: none;
  object-fit: contain;
  pointer-events: none; user-select: none; opacity: .92;
}
/* Левая пушка — ближе к диагонали (чуть вылезает за неё и обрезается клипом) */
.catalog-banner-left  .catalog-banner-img { right: calc(50% - 14vh); }
/* Правая пушка — чуть дальше от диагонали, центрирована в правой половине */
.catalog-banner-right .catalog-banner-img { left:  calc(50% + 9vw); }

@media (max-width: 767px) {
  .catalog-banner-left {
    bottom: 50%;
    padding-right: 0;
    align-items: center;
    clip-path: none;
  }
  .catalog-banner-right {
    top: 50%;
    padding-left: 0;
    align-items: center;
    clip-path: none;
  }
  .catalog-banner-img   { display: none; }
  .catalog-banner-title { font-size: clamp(38px, 12vw, 58px); }
  .catalog-banner-content { padding: 20px 28px; gap: 8px; }
}

/* ── ФИЗИКАЛ-КАРТОЧКИ В КАТАЛОГЕ ─────────────────────────────── */
.cat-card--physical {
  box-shadow: 0 0 0 1px rgba(229,56,59,.25), 0 4px 24px rgba(229,56,59,.08);
}
.cat-card--physical:hover {
  box-shadow: 0 0 0 1px rgba(229,56,59,.4), 0 8px 32px rgba(229,56,59,.16);
}
/* ── СТРАНИЦА ФИЗИКАЛА (/item/<slug>) ────────────────────────── */
.item-page { min-height: 100vh; }
.item-hero {
  position: relative; overflow: hidden;
  background: var(--c-bg);
  min-height: 70vh;
  display: flex; align-items: center;
}
.item-hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.item-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
  filter: blur(48px) saturate(1.15);
  transform: scale(1.15);
}
.item-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,12,15,.76) 40%, rgba(12,12,15,.25) 100%);
}
.item-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 80px 0;
}
.item-hero-img-wrap {
  display: flex; justify-content: center; align-items: center;
}
#item-main-img { transition: opacity .22s ease, transform .22s ease; }
/* ТОЛЬКО главное фото — не общий img (иначе стили бьют по миниатюрам
   .item-thumb, которые теперь тоже внутри img-wrap) */
.item-hero-img-wrap .item-main-photo {
  width: 100%; max-width: 620px; height: auto;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.item-hero-info { display: flex; flex-direction: column; gap: 16px; }
.item-eyebrow {
  font-size: 9px; font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent);
  display: flex; align-items: center; gap: 6px;
}
.item-title {
  font-size: clamp(28px,4vw,52px); font-weight: 900;
  letter-spacing: -.04em; line-height: 1.05;
}
.item-subtitle { font-size: 15px; color: var(--c-muted); line-height: 1.6; }
.item-price {
  font-size: 36px; font-weight: 900; letter-spacing: -.04em;
  color: var(--c-accent);
}
.item-price sub { font-size: 14px; font-weight: 400; color: var(--c-muted); vertical-align: baseline; }

/* ITEM-POLISH: страница физикала в актуальном языке сайта */
.item-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-gallery { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.item-thumbs  { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.item-thumb {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .55;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.item-thumb:hover  { opacity: .85; transform: translateY(-1px); }
.item-thumb.active { border-color: var(--c-accent); opacity: 1; }
.item-cta-row { display: flex; gap: 10px; max-width: 440px; margin-top: 8px; }
.item-cta-row .btn { flex: 1; justify-content: center; }
.item-print-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 12px; color: var(--c-muted); text-decoration: none;
  font-family: var(--f-mono); letter-spacing: .04em;
  transition: color .15s ease;
}
.item-print-link:hover { color: var(--c-accent); }
.item-content-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px; align-items: start;
}
@media (max-width: 1024px) { .item-content-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 767px)  { .item-cta-row { max-width: none; flex-direction: column; } }

/* Промо-секция физикала на /model заменена кросс-промо карточкой
   (_cross_promo.html, стили cat-promo-card в components.css) */
@media (max-width: 767px) {
  .item-hero-inner { grid-template-columns: 1fr; }
  .item-hero-img-wrap { order: -1; }
}

/* ── СТРАНИЦА ПОДПИСКИ ───────────────────────────────────────── */
.subscribe-page { min-height: 100vh; }
.subscribe-page-header {
  padding: var(--page-top) 0 40px;
  text-align: center;
}
.subscribe-page-eyebrow {
  font-size: var(--fs-xs); font-family: var(--f-mono); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.subscribe-page-eyebrow::before,
.subscribe-page-eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--c-accent); }
.subscribe-page-title {
  font-size: clamp(28px,5vw,52px); font-weight: 900; letter-spacing: -.04em;
  margin-bottom: 14px; line-height: 1.05;
}
.subscribe-page-desc { font-size: 15px; color: var(--c-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.tier-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto 64px;
}
/* 5 в ряд: (ширина - 4 отступа) / 5 */
.tier-popular-wrap {
  flex: 0 0 calc((100% - 40px) / 5);
  min-width: 0;
}
.tier-grid .tier-card { width: 100%; }
.tier-popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: #fff;
  font-size: 9px; font-weight: 700; font-family: var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 99px; white-space: nowrap;
}
.tier-card {
  background: var(--c-raised); border: 1px solid var(--c-stroke);
  border-radius: 16px; padding: 22px 18px;
  display: flex; flex-direction: column; min-height: 260px;
  position: relative;
}
.tier-promo-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--c-accent); color: #fff;
  font-size: var(--fs-label); font-weight: 800; font-family: var(--f-mono);
  padding: 3px 9px; border-radius: var(--r-md); letter-spacing: .02em;
  z-index: 1;
}
/* Строка цен: зачёркнутая + новая рядом */
.tier-price--promo {
  display: flex;
  align-items: baseline;
  gap: var(--r-lg);
}
.tier-price-old {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: line-through;
  opacity: .45;
}
.tier-promo-timer {
  font-size: var(--fs-label); font-family: var(--f-mono); font-weight: 700;
  color: var(--c-accent); letter-spacing: .03em;
  margin-top: var(--r-sm);       /* 4px сверху — прижат к /месяц */
  margin-bottom: var(--r-2xl);   /* 20px снизу — отрыв от кнопки */
  opacity: .85;
}
.tier-card.popular {
  background: var(--c-accent-s); border-color: var(--c-accent-m);
  transform: scale(1.04); box-shadow: 0 0 32px rgba(229,56,59,.15);
}
.tier-icon    { font-size: 24px; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; height: 56px; }

/* TIER-ICONS-SVG: svg-иконка тарифа как CSS-маска → монохром по теме
   (var(--c-text): в тёмной ~белый, в светлой ~чёрный). Фолбэк — эмодзи. */
.tier-icon-svg {
  display: inline-block; flex: none;
  width: var(--ti-size, 40px); height: var(--ti-size, 40px);
  background: var(--c-text);
  -webkit-mask: var(--ti-mask) center / contain no-repeat;
          mask: var(--ti-mask) center / contain no-repeat;
}
.tier-icon-emoji { display: inline-block; }
.tier-name    { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.tier-name-en { font-size: 11px; color: var(--c-muted); font-family: var(--f-mono); margin-bottom: 14px; }
.tier-price   { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--c-accent); margin-bottom: 2px; }
.tier-price sub { font-size: 11px; font-weight: 400; color: var(--c-muted); vertical-align: baseline; }
.tier-period  { font-size: 11px; color: var(--c-muted); margin-bottom: 4px; }
.tier-divider { height: 1px; background: var(--c-stroke); margin: 12px 0 10px; }
.tier-features { display: flex; flex-direction: column; gap: 6px; flex: 1; margin-bottom: 16px; }
.tier-feature { font-size: 11px; color: var(--c-ok); display: flex; align-items: center; gap: 4px; }
.tier-spacer  { flex: 1; }
.tier-cta     { margin-top: auto; }

[data-theme="light"] .tier-card { background: #fff; border-color: var(--c-stroke); }
[data-theme="light"] .tier-card.popular { background: #fff0f0; }

/* Carousel мобильные стили — в @media (max-width: 767px) ниже */
.tier-compare-mobile { display: none; }

/* Планшет (768–1024): тарифы 3 в ряд — десктопные 5 на планшете тесноваты */
@media (min-width: 768px) and (max-width: 1024px) {
  .tier-popular-wrap { flex: 0 0 calc((100% - 20px) / 3); }
}
/* Крупные телефоны / узкие планшеты (600–767): 2 карточки в карусели вместо 1 */
@media (min-width: 600px) and (max-width: 767px) {
  .subscribe-page .tier-popular-wrap { flex: 0 0 calc(50% - 6px); }
}

/* Биллинг-тоггл: «скоро» на годовом тарифе + тач-высота на тач-устройствах */
.tab-soon {
  font-size: 8px; font-weight: 700; font-family: var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent); margin-left: 5px; vertical-align: middle;
}
@media (max-width: 1024px) {
  .subscribe-page .tabs .tab { padding: 11px 18px; }
}

/* ── СТРАНИЦА КАТАЛОГА ──────────────────────────────────────── */
.catalog-page { min-height: 100vh; }
/* blobs видны только на мобиле (включаются в @media ниже) */
.catalog-page .section-blobs { display: none; }
.catalog-header {
  padding: var(--page-top) 0 40px;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
}
.catalog-title { font-size: 36px; font-weight: 900; letter-spacing: -.03em; }
.catalog-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.catalog-filters {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-bottom: 24px;
}
/* On desktop, filter-chips is invisible (display:contents) — chips are direct flex children of filter-row */
.filter-chips { display: contents; }
.catalog-grid {
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}
.cat-card--wide { grid-column: span 2; }

/* ── БЛОГ — страница /blog ──────────────────────────────────── */
.blog-page-header {
  padding: var(--page-top) 0 24px;
}
.blog-page-title  { font-size: 36px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 6px; }
.blog-page-sub    { font-size: 13px; color: var(--c-muted); }
.blog-filters     { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 24px; }
.blog-pinned-label {
  font-size: var(--fs-label); font-family: var(--f-mono);
  color: var(--c-accent); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.blog-feed {
  display: flex; gap: 20px;
  padding-bottom: 80px;
  align-items: flex-start;
}
.blog-feed-col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
}
/* старый grid — оставляем для совместимости если где-то используется */
.blog-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 80px;
}

/* ── СТРАНИЦА МОДЕЛИ ────────────────────────────────────────── */
.model-page { min-height: 100vh; }
.model-hero {
  position: relative; overflow: hidden;
  background: var(--c-bg);
}
.model-hero > .content-wrap { position: relative; z-index: 2; }
.model-hero-inner { display: grid; grid-template-columns: 38.2% 61.8%; min-height: 60vh; }
.model-hero-left  { padding: 40px 48px 40px 0; display: flex; flex-direction: column; justify-content: space-between; }
.model-hero-top   { display: flex; flex-direction: column; }
.model-hero-bottom { display: flex; flex-direction: column; gap: 16px; }
.model-hero-meta  { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.model-meta-tags  { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.model-hero-right { position: relative; display: flex; align-items: stretch; padding: 40px 0 40px 32px; }
.model-hero-img   { width: 100%; max-width: 560px; transform: rotate(-2deg); filter: drop-shadow(0 24px 60px rgba(0,0,0,.6)); transition: transform 6s ease-out; align-self: center; }
.model-content    { padding: 56px 0; }
.model-files-section { margin-bottom: 48px; }

/* Gallery */
.model-gallery-wrap   { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.model-gallery-main   { width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--c-raised); box-shadow: 0 16px 48px rgba(0,0,0,.35); cursor: zoom-in; flex-shrink: 0; }
.model-gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity .18s ease, transform .25s ease; }
.model-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; justify-content: flex-end; }
.model-gallery-thumb  { width: 108px; height: 104px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .55; transition: opacity .15s, border-color .15s; }
/* Карусель превью: до 6 в строку, листается кликом по крайней миниатюре */
.model-gallery-thumbs.mgt-viewport {
  flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; margin-left: auto;
}
.mgt-track { display: flex; gap: 8px; flex-wrap: nowrap; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.mgt-track .model-gallery-thumb { flex: 0 0 auto; }
.model-gallery-thumb:hover  { opacity: .8; }
.model-gallery-thumb.active { border-color: var(--c-accent); opacity: 1; }

/* Turntable — вращение модели перетаскиванием */
/* Плавная высота при переключении крутилка(1:1) ⇄ фото(4:3) — без скачка секции */
.model-media-main { width: 100%; position: relative; transition: height .4s cubic-bezier(.4,0,.2,1); }
.model-media-main.media-animating { overflow: hidden; }
.model-turntable {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; user-select: none; touch-action: pan-y;
}
.model-turntable.dragging { cursor: grabbing; }
.model-turntable > img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  pointer-events: none; -webkit-user-drag: none;
}
.model-turntable .tt-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--c-muted); background: var(--c-base);
  border: 1px solid var(--c-stroke); padding: 4px 11px; border-radius: 20px;
  opacity: .9; pointer-events: none; transition: opacity .3s; white-space: nowrap;
}
.model-turntable.interacted .tt-hint { opacity: 0; }

/* Кнопка полноэкранного просмотра — «объёмное стекло»: блик только на канте
   (тиснении), без центрального блика. */
.tt-fs-btn {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
  background: rgba(28,28,31,.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  /* тиснение: светлый кант сверху-слева, тень снизу-справа — без блика в центре */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 6px 18px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.94);
  transition: opacity .2s ease, transform .2s ease, background .16s ease;
}
.model-turntable:hover .tt-fs-btn,
.model-turntable.interacted .tt-fs-btn { opacity: 1; transform: scale(1); }
.tt-fs-btn:hover { background: rgba(28,28,31,.7); }
/* Светлая тема — кнопка светлая (тёмная читалась плохо) */
html[data-theme="light"] .tt-fs-btn {
  background: rgba(255,255,255,.6); color: #1c1c1f;
  border-color: rgba(0,0,0,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(0,0,0,.14),
    0 6px 18px rgba(0,0,0,.18);
}
html[data-theme="light"] .tt-fs-btn:hover { background: rgba(255,255,255,.85); }
.tt-fs-btn svg { width: 17px; height: 17px; pointer-events: none; }
/* На тач-устройствах кнопка видна сразу (нет hover); 44px — HIG touch target */
@media (hover: none) { .tt-fs-btn { opacity: 1; transform: none; width: 44px; height: 44px; } }

/* Полноэкранная крутилка */
.tt-fs {
  position: fixed; inset: 0; z-index: 950; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tt-fs.is-open { display: flex; }
/* Сцена по ширине вьюпорта (минус небольшой отступ по бокам), не квадрат —
   широкие модели заполняют кадр, а не «письмуются». */
.tt-fs-stage {
  width: 94vw; height: 90vh;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; user-select: none; touch-action: pan-y;
}
.tt-fs-stage.dragging { cursor: grabbing; }
.tt-fs-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  pointer-events: none; -webkit-user-drag: none;
}
.tt-fs-close {
  position: fixed; top: 18px; right: 22px; z-index: 951;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff;
  font-size: 20px; line-height: 1; padding: 8px 11px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.tt-fs-close:hover { background: rgba(255,255,255,.22); }
.tt-fs-hint {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,.55);
  font-size: 12px; font-family: var(--f-mono); letter-spacing: .04em;
  pointer-events: none; z-index: 951;
}
/* Миниатюра «вращение» */
.model-gallery-thumb.tt-thumb {
  position: relative; width: 108px; height: 104px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  background: var(--c-raised);
}
.model-gallery-thumb.tt-thumb img { width: 100%; height: 100%; object-fit: contain; }
.model-gallery-thumb.tt-thumb .tt-thumb-ico {
  position: absolute; bottom: 2px; right: 3px; font-size: 12px; line-height: 1;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb-stage { position: relative; max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.lb-img { display: block; max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); object-fit: contain; transform-origin: center; transition: opacity .15s; user-select: none; -webkit-user-drag: none; }
/* Анимация только при tap-zoom/клавишах, не при drag/pinch */
.lb-img.lb-anim { transition: opacity .15s, transform .22s cubic-bezier(.25,.46,.45,.94); }
.lb-close { position: fixed; top: 18px; right: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 20px; line-height: 1; padding: 8px 11px; border-radius: 8px; cursor: pointer; transition: background .15s; z-index: 901; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 30px; width: 48px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; transition: background .15s; z-index: 901; user-select: none; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-counter { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.45); font-size: var(--fs-sm); font-family: var(--f-mono); z-index: 901; pointer-events: none; letter-spacing: .04em; }
@media (max-width: 767px) {
  /* Картинка почти на весь экран, кнопки — маленькие оверлеи поверх */
  .lb-stage { max-width: 100vw; max-height: calc(100svh - 56px); width: 100vw; }
  .lb-img   { max-width: 100vw; max-height: calc(100svh - 56px); }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 20px; border-radius: 50%; background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); }
  .lb-prev  { left: 8px; }
  .lb-next  { right: 8px; }
  .lb-close { top: max(env(safe-area-inset-top,0px), 14px); right: 14px; }
  .lb-counter { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
.model-files-title { font-size: var(--fs-md); font-weight: 700; margin-bottom: 20px; letter-spacing: -.01em; }
.model-files-list  { display: flex; flex-direction: column; gap: 10px; }

/* Model actions row */
.model-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Like button */
.model-like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--c-stroke-s);
  color: var(--c-muted); font-size: var(--fs-sm); font-family: var(--f-ui);
  padding: 6px 12px; border-radius: var(--r-lg); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.model-like-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; transition: fill var(--t-fast), stroke var(--t-fast); }
.model-like-btn:hover { color: var(--c-accent); border-color: var(--c-accent-m); background: var(--c-accent-s); }
.model-like-btn:hover svg { stroke: var(--c-accent); }
.model-like-btn.is-liked { color: var(--c-accent); border-color: var(--c-accent-m); background: var(--c-accent-s); }
.model-like-btn.is-liked svg { fill: var(--c-accent); stroke: var(--c-accent); }

/* Downloads — как лайки/поделиться, но некликабельно (просто рамка-пилюля) */
.model-dl-count {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--c-stroke-s); color: var(--c-muted);
  font-size: var(--fs-sm); font-family: var(--f-ui);
  padding: 6px 12px; border-radius: var(--r-lg);
  white-space: nowrap; cursor: default; flex-shrink: 0; margin-left: auto;
}
.model-dl-count svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Share button */
.model-share-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--c-stroke-s); color: var(--c-muted); font-size: var(--fs-sm); font-family: var(--f-ui); padding: 6px 12px; border-radius: var(--r-lg); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); white-space: nowrap; flex-shrink: 0; }
.model-share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.model-share-btn:hover { color: var(--c-text); border-color: var(--c-stroke-s); background: var(--c-raised); }

/* Toast */
.toast { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--c-raised); border: 1px solid var(--c-stroke-s); color: var(--c-text); font-size: var(--fs-sm); padding: 10px 20px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); z-index: 800; opacity: 0; transition: opacity var(--t-base), transform var(--t-base); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--c-stroke); }
.specs-table tr:last-child { border-bottom: none; }
.specs-key { padding: 10px 0; font-size: var(--fs-sm); color: var(--c-muted); width: 40%; vertical-align: top; }
.specs-val { padding: 10px 0; font-size: var(--fs-sm); color: var(--c-text); font-weight: 500; vertical-align: top; }

/* ── СЕКЦИЯ МОДОВ (model.html и item.html) ──────────────────── */
.model-mods-section {
  padding: 48px 0 0;
  border-top: 1px solid var(--c-stroke);
}
.model-mods-title {
  font-size: var(--fs-md); font-weight: 700;
  color: var(--c-text-2); margin-bottom: 20px;
}
.model-mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
/* Модификатор только для model.html: одна строка + листалка вместо стака
   в несколько рядов (на /item грид со стаком остаётся — там выбор чекбоксами) */
.model-mods-grid--carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.model-mods-grid--carousel::-webkit-scrollbar { display: none; }
.model-mods-grid--carousel .mod-card { flex: 0 0 190px; scroll-snap-align: start; }
.mods-carousel-nav {
  display: none; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 48px;
}
.mods-carousel-nav.is-active { display: flex; }
.model-mods-grid--carousel.has-nav { margin-bottom: 14px; }

/* ── ADMIN ──────────────────────────────────────────────────── */
.admin-app { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--c-base);
  border-right: 1px solid var(--c-stroke);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
  padding: 18px 10px;
}
.admin-logo { font-family: var(--f-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); padding: 0 8px; margin-bottom: 24px; display: flex; align-items: center; gap: 6px; }
.admin-logo span { color: var(--c-accent); }
.admin-logo-tag { font-size: var(--fs-label); color: var(--c-muted); font-family: var(--f-mono); background: var(--c-raised); border: 1px solid var(--c-stroke); padding: 1px 5px; border-radius: var(--r-sm); }
.admin-nav-section { font-size: var(--fs-label); font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); padding: 0 8px; margin: 16px 0 5px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 7px; padding: 7px 8px;
  border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--c-muted);
  cursor: pointer; transition: all var(--t-fast);
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--f-ui); text-decoration: none;
}
.admin-nav-item:hover  { background: var(--c-raised); color: var(--c-text); }
.admin-nav-item.active { background: var(--c-accent-s); color: var(--c-accent); font-weight: 600; }
.admin-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.admin-sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-stroke); }
.admin-main { flex: 1; overflow-x: hidden; background: var(--c-bg); }
.admin-section { padding: 40px 48px; max-width: 1400px; }
.admin-page-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.admin-page-title span { color: var(--c-accent); }
.admin-page-desc { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 32px; line-height: 1.6; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.admin-table th { text-align: left; padding: 10px 14px; font-size: var(--fs-label); font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); border-bottom: 1px solid var(--c-stroke); font-weight: 600; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-stroke); color: var(--c-text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--c-raised); }
.admin-table-wrap { background: var(--c-base); border: 1px solid var(--c-stroke); border-radius: var(--r-xl); overflow: hidden; }
.admin-form { display: flex; flex-direction: column; gap: 20px; max-width: 700px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-full { grid-column: 1 / -1; }

/* ── АДАПТИВ ────────────────────────────────────────────────── */

/* ── ПЛАНШЕТ + МОБИЛЬ (≤1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  /* HERO: на планшете коллапсируем в 1 колонку — пушка внизу.
     На телефоне эти правила перебиваются !important в блоке 767px */
  .hero-wrap {
    background: linear-gradient(to bottom,
      var(--c-raised) 0%, var(--c-raised) 52%, rgba(229,56,59,.07) 100%);
  }
  .hero-cta-bar { background: var(--c-raised); }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-left { padding: 110px var(--page-pad) 0; }
  .hero-right { display: flex; align-items: center; justify-content: center; overflow: visible; }
  .hero-model {
    position: relative;
    width: clamp(400px, 70vw, 580px);
    left: auto; top: auto;
    transform: rotate(-6deg) translateX(4%);
    filter: drop-shadow(0 24px 60px rgba(0,0,0,.6))
            drop-shadow(0 0 60px rgba(229,56,59,.12));
  }
  .hero-model-glow { display: none; }
  .hero-sub-wrap   { display: none; }
  .hero-tagline    { display: none; }
  .hero-stats-logo { display: none; }
  .hero-stat-item  { flex: 1; }

  .section-blog    { grid-template-columns: 1fr; }
  .section-spooly  { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .section-subscribe { grid-template-columns: 1fr; gap: 32px; }
  .model-hero-inner  { grid-template-columns: 1fr; }
  .model-hero-right  { min-height: 300px; padding: 0 0 32px; align-items: center; }
  /* Планшет (768–1024): 2 колонки — 1 колонка слишком пуста, карточки-гиганты.
     Телефон (≤767) остаётся 1 колонкой через мобильный блок ниже. */
  .catalog-grid                 { grid-template-columns: repeat(2, 1fr); }
  /* .catalog-grid .cat-card--wide (0,2,0) бьёт components.css .cat-card--wide (0,1,0) */
  .catalog-grid .cat-card--wide { grid-column: span 2; }
  .blog-secondary-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-feed         { gap: 14px; }
}


/* ── СВЕТЛАЯ ТЕМА ─────────────────────────────────────────── */

/* /item/... — баннер в светлой теме должен быть светлым */
[data-theme="light"] .item-hero-bg::after {
  background: linear-gradient(to right, rgba(240,240,242,.67) 35%, rgba(240,240,242,.25) 100%);
}
[data-theme="light"] .item-hero-bg img { opacity: .30; }
[data-theme="light"] .item-title,
[data-theme="light"] .item-subtitle { color: var(--c-text); }

[data-theme="light"] .sub-card { background: var(--c-base); }
[data-theme="light"] .sub-card.popular { background: #fff0f0; }
[data-theme="light"] .model-card-sm { background: var(--c-base); border-color: var(--c-stroke); }
[data-theme="light"] .model-card-lg { background: linear-gradient(135deg,rgba(240,228,228,.95),rgba(228,228,242,.95)); border-color: rgba(200,36,39,.18); }

/* ── TOPBAR — прозрачный вариант для hero ─────────────────── */


/* ── КОМПАКТНЫЙ ТОПБАР — всплывает при скролле ─────────────── */
/* Точная копия topbar-main (только первая строка, без subnav).
   Все внутренние элементы используют глобальные классы без переопределений. */
.topbar-compact {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: 64px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-stroke);
  display: flex; align-items: center;
  padding: 0; gap: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .25s ease, opacity .2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-compact.is-visible {
  transform: translateY(0);
  opacity: 1;
}
/* Пока открыт баннер каталога — топбар статичен, без анимации */
body.catalog-banner-open .topbar-compact {
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Скрываем основной топбар при появлении компактного */
.topbar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .2s ease, opacity .15s ease;
}
.topbar { transition: transform .25s ease, opacity .2s ease, background .2s ease; }

/* На страницах с прозрачным топбаром hero-wrap начинается с нуля */
.page-body--hero   { padding-top: 0; }
/* Топбар в потоке, но с фоном (каталог, etc.) */
.page-body--sticky { padding-top: 0; }



/* ══════════════════════════════════════════════════════
   HERO TOPBAR — полный топбар на главной
   position: relative (скроллится с страницей)
   background: transparent (фон hero виден под ним)
   Hero-wrap уходит на -100px вверх чтобы заполнить пространство
══════════════════════════════════════════════════════ */
/* Топбар в потоке с фоном — для страниц без hero-изображения */
.topbar--sticky {
  position: relative;
  background: var(--c-bg);
}

.topbar--hero {
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}

/* На hero странице нет отступа сверху — топбар в потоке */
.page-body--hero { padding-top: 0; }

/* Hero-wrap тянется вверх на высоту топбара (100px)
   Фон hero секции физически покрывает область топбара */
.page-body--hero .hero-wrap { margin-top: -100px; }

/* Контент hero-left опускается ниже топбара */
.page-body--hero .hero-left {
  padding-top: calc(100px + var(--page-pad));
}

/* ── HERO TOPBAR — правые иконки всегда белые (обе темы) ── */
.topbar--hero .topbar-right .topbar-action       { color: #fff; }
.topbar--hero .topbar-right .topbar-action-svg   { color: rgba(255,255,255,.9); }
.topbar--hero .topbar-right .topbar-action-label { color: rgba(255,255,255,.75); }
.topbar--hero .topbar-right .topbar-action:hover { background: rgba(255,255,255,.12); }

/* Аватарка — белый кружок 3px */
.topbar--hero .topbar-action-avatar { border: 3px solid #fff !important; }

/* Рипл: 2 сплошных круга позади аватарки; hover-in и hover-out — зеркальные */
.topbar--hero .topbar-action--profile {
  position: relative;
  z-index: 0; /* stacking context для дочерних z-index */
}
.topbar--hero .topbar-action--profile .topbar-action-avatar {
  position: relative;
  z-index: 3; /* аватарка поверх обоих кругов */
}
.topbar--hero .topbar-action--profile::before,
.topbar--hero .topbar-action--profile::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
/* Круг 2 (ближний, 60%) — уходит последним */
.topbar--hero .topbar-action--profile::before {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.6);
  z-index: 2;
  transition: opacity .125s ease .125s;
}
/* Круг 3 (дальний, 36%) — уходит первым */
.topbar--hero .topbar-action--profile::after {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.36);
  z-index: 1;
  transition: opacity .125s ease 0s;
}
/* Hover-in: круг 2 без задержки → круг 3 через .125s */
.topbar--hero .topbar-action--profile:hover::before {
  opacity: 1;
  transition: opacity .125s ease 0s;
}
.topbar--hero .topbar-action--profile:hover::after {
  opacity: 1;
  transition: opacity .125s ease .125s;
}

/* Eyebrow внутри hero-sub-wrap — на красном фоне, белый цвет */
.hero-sub-wrap .hero-eyebrow-line { background: rgba(255,255,255,.6); }
.hero-sub-wrap .hero-eyebrow-text { color: rgba(255,255,255,.7); }

/* ── HERO CTA BAR — под hero-wrap, фон продолжает hero ── */
.hero-cta-bar {
  --hero-split: 62%;
  background: linear-gradient(to right,
    var(--c-raised) 0%,
    var(--c-raised) var(--hero-split),
    var(--c-accent) var(--hero-split),
    var(--c-accent) 100%);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-cta-bar .content-wrap {
  display: flex; justify-content: center; gap: 16px;
}

/* ── HERO SCROLL ANIMATION ────────────────────────────────────── */
/* Когда добавляется класс .hero--scrolled */

/* Правая секция расширяется */
.hero--scrolled .hero-right {
  transition: flex-basis .5s ease;
}
.hero { transition: none; }
.hero .hero-left  { transition: opacity .4s ease, transform .4s ease; }
.hero .hero-right { transition: flex-basis .5s ease; }

/* hero-left элементы уходят влево */
/* eyebrow/sub анимируются через JS прогресс */

/* hero-model scrolled state — transition управляется JS */

/* Заголовок — морфинг через JS */
.hero-title { transition: none; }

/* ── HERO CURSOR ───── */
.hero-cursor {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink .8s linear infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 65%, 100% { opacity: 0; } }

/* ══════════════════════════════════════════════════════
   FLAGSHIP SECTION
══════════════════════════════════════════════════════ */
.flagship-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  grid-template-rows: 460px;
  gap: 10px;
  position: relative;  /* нужно для absolute canvas внутри */
}

/* ── Главная карточка ── */
.flagship-main {
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-raised);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 100%;
  z-index: 1;  /* выше wave-canvas (z-index:0) */
}
.flagship-main:hover { text-decoration: none; }

.flagship-main-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--c-high);
}
.flagship-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  will-change: transform;
}
/* Hover scale — только вне карусели */
.flagship-main:not(.fc-active):not(.fc-pending):hover .flagship-main-img img { transform: scale(1.05); }

/* Оверлей — больше нет затемнения */
.flagship-main-overlay { display: none; }

/* Нижняя полоска с названием */
.flagship-main-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; overflow: hidden;
  transition: opacity .3s ease;
}
.fm-title-layer, .fm-hover-layer {
  position: absolute; inset: 0;
  padding: 0 22px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s;
}
.fm-title-layer { transform: translateX(0); opacity: 1; }
.flagship-main:not(.fc-active):not(.fc-pending):hover .fm-title-layer { transform: translateX(-110%); opacity: 0; }
.fm-hover-layer { transform: translateX(110%); opacity: 0; justify-content: space-between; }
.flagship-main:not(.fc-active):not(.fc-pending):hover .fm-hover-layer { transform: translateX(0); opacity: 1; }
.fm-name { font-size: var(--fs-lg); font-weight: 600; color: #fff; flex: 1; }
.fm-desc { font-size: var(--fs-sm); color: rgba(255,255,255,.8); flex: 1; line-height: 1.4; }

/* Карусель: скрываем нижний бар */
.flagship-main.fc-pending .flagship-main-bottom,
.flagship-main.fc-active  .flagship-main-bottom  { opacity: 0; pointer-events: none; transition: opacity .15s ease; }

/* ── Боковая сетка ── */
.flagship-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  position: relative;
  z-index: 1;
  gap: 8px;
  height: 100%;
}

.flagship-side-card {
  border-radius: 10px; overflow: hidden;
  background: var(--c-raised);
  position: relative; cursor: pointer;
  text-decoration: none; display: flex; flex-direction: column;
  transition: none;
}
.flagship-side-card:hover { text-decoration: none; }
.flagship-side-card--wide { grid-column: span 2; }

.flagship-side-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--c-high);
}
.flagship-side-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  /* FLAGSHIP-ZOOM: без will-change — иначе браузер кэширует растр по мелкому
     размеру side-карточки и scale() тянет малопиксельный битмап → «попиксельный»
     зум. Без него растр берётся на destination-разрешении (у крупной карточки
     will-change оставлен — там растра хватает). */
}
.flagship-side-card:not(.fc-active):not(.fc-pending):hover .flagship-side-img img { transform: scale(1.05); }

.flagship-side-overlay { display: none; }

.flagship-side-card.fc-pending .flagship-side-bottom,
.flagship-side-card.fc-active  .flagship-side-bottom  { opacity: 0; pointer-events: none; transition: opacity .15s ease; }

.flagship-side-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 52px; overflow: hidden;
  border-top: 1px solid var(--c-stroke);
  background: var(--c-raised);
  transition: opacity .3s ease;
}
.fs-title-layer, .fs-hover-layer {
  position: absolute; inset: 0; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .18s;
}
.fs-title-layer { transform: translateX(0); opacity: 1; }
.flagship-side-card:not(.fc-active):not(.fc-pending):hover .fs-title-layer { transform: translateX(-110%); opacity: 0; }
.fs-hover-layer { transform: translateX(110%); opacity: 0; justify-content: center; }
.flagship-side-card:not(.fc-active):not(.fc-pending):hover .fs-hover-layer { transform: translateX(0); opacity: 1; }
.fs-name { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Адаптив */
@media (max-width: 1024px) {
  /* grid-template-rows:auto обязателен — иначе остаётся базовая фиксированная
     строка 460px, и одноколоночный планшетный стек ломается (галерея «пропадает») */
  .flagship-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .flagship-main { height: 280px; }
  .flagship-side-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
}
/* flagship-side-grid 767px — handled in main mobile block */

/* ══════════════════════════════════════════════════════
   СЕКЦИЯ «О НАС»
══════════════════════════════════════════════════════ */
/* ── IDX-15: Видео-секция ─────────────────────────────────── */

/*
 * Концепция: секция фиксированной высоты 550px.
 * Слой 0 (ambilight): размытая копия видео заливает весь фон — создаёт
 *   атмосферный ореол вокруг основного видео.
 * Слой 1 (sv-glass): затемнение + шум поверх амбилайта.
 * Слой 2 (sv-video): основное видео, object-fit:contain — без обрезки
 *   и деформации. Прозрачные поля (letterbox) «просвечивают» амбилайт.
 * Слой 3 (sv-caption): подпись поверх всего.
 */
.section-video {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
}

/* Слой 0: амбилайт заполняет весь фон секции */
.section-video-ambilight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .7s ease;
  z-index: 0;
}
.section-video-ambilight.sv-ambilight--active { opacity: 1; }
.sv-ambilight-video {
  position: absolute;
  inset: -8%;           /* небольшой запас чтобы blur не давал белых краёв */
  width: 116%;
  height: 116%;
  object-fit: cover;    /* заливает всю площадь фона */
  filter: blur(56px) saturate(2) brightness(.85);
  transform: none;
}

/* Виньетка: затемнение от краёв секции внутрь, поверх амбилайта */
.section-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(0,0,0,.45) 70%,
    rgba(0,0,0,.82) 100%
  );
}

/* Слой 1: стекло — затемнение + шум-текстура */
.sv-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, .32);
}
.sv-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: .04;
  mix-blend-mode: overlay;
}

/* Слой 2 (виньетка, выше стекла, ниже видео) */
.section-video::before { z-index: 2; }

/* ── Светлая тема: осветление вместо затемнения ── */
[data-theme="light"] .section-video {
  background: #f8f8f8;
}
[data-theme="light"] .sv-ambilight-video {
  filter: blur(56px) saturate(1.6) brightness(1.18);
}
[data-theme="light"] .section-video::before {
  background: radial-gradient(ellipse at center,
    transparent 28%,
    rgba(255,255,255,.32) 68%,
    rgba(255,255,255,.70) 100%
  );
}
[data-theme="light"] .sv-glass {
  background: rgba(255,255,255,.28);
}

/* Слой 3: основное видео — contain, без обрезки */
.sv-video,
.sv-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 3;
}
.sv-poster { display: none; }

/* prefers-reduced-motion: видео → постер */
@media (prefers-reduced-motion: reduce) {
  .sv-video           { display: none; }
  .sv-poster          { display: block; }
  .sv-ambilight-video { display: none; }
}

/* Слой 4: подпись */
.sv-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}

/* Мобиль: амбилайт включён (убирает чёрные letterbox-полосы), высота поменьше */
@media (max-width: 767px) {
  .section-video            { height: 280px; }
  /* display: none убрано — амбилайт заливает фон вместо чёрных полос */
  .sv-ambilight-video       { filter: blur(36px) saturate(2) brightness(.82); } /* чуть легче */
  .sv-glass                 { background: rgba(0,0,0,.25); }
}

/* ── PROMO-7: Полоска акции с тикером ───────────────────────
 * Структура:
 *  .promo-strip
 *    .pst.pst--ltr   (верхний тикер, едет влево)
 *    .promo-strip-body  (контент)
 *    .pst.pst--rtl   (нижний тикер, едет вправо)
 *
 * Тикер: повторяющийся gradient 100° — создаёт наклонённые
 * параллелограммы акцентного и base цвета без DOM-оверхеда.
 * Анимация background-position — GPU-акселерируется.
 * ─────────────────────────────────────────────────────────── */

/* ── Локальные блобы-секций (about + promo-strip) ──────────────
 * Общий компонент. Рендерится первым дочерним элементом секции.
 * z-index: 0 → рендерится выше фона, ниже контента (z-index:1).
 * Контейнер overflow:hidden — клипит блобы по границам секции,
 * позволяя родителю иметь overflow:visible (нужно для Мио).
 * ─────────────────────────────────────────────────────────── */
.section-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  border-radius: inherit;
}
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.section-blob-1 {
  width: 55%; height: 200px;
  background: radial-gradient(circle, var(--atm-violet) 0%, transparent 70%);
  top: -40px; left: -8%;
  animation: sbDrift1 26s ease-in-out infinite alternate;
}
.section-blob-2 {
  width: 42%; height: 170px;
  background: radial-gradient(circle, var(--atm-blue) 0%, transparent 70%);
  top: 15%; right: -5%;
  animation: sbDrift2 20s ease-in-out infinite alternate;
}
.section-blob-3 {
  width: 50%; height: 190px;
  background: radial-gradient(circle, var(--atm-indigo) 0%, transparent 70%);
  bottom: -40px; left: 28%;
  animation: sbDrift3 32s ease-in-out infinite alternate;
}
/* Акцентный блоб — привязка к бренду, очень тонкий */
.section-blob-accent {
  width: 30%; height: 160px;
  background: radial-gradient(ellipse 120% 80%, rgba(229,56,59,.045) 0%, transparent 70%);
  bottom: 10%; right: 18%;
  border-radius: 60% 40% 55% 45%;
  animation: sbDrift4 24s ease-in-out infinite alternate;
}
@keyframes sbDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(55px, 28px) scale(1.09); }
}
@keyframes sbDrift2 {
  from { transform: translate(0, 0) scale(1.03); }
  to   { transform: translate(-45px, 22px) scale(0.94); }
}
@keyframes sbDrift3 {
  from { transform: translate(0, 0) scale(0.97); }
  to   { transform: translate(-28px, -22px) scale(1.06); }
}
@keyframes sbDrift4 {
  from { transform: translate(0, 0) scale(0.94) rotate(-5deg); }
  to   { transform: translate(30px, -18px) scale(1.06) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .section-blob { animation: none !important; }
}

/* Контент секций — выше блобов */
.section-about .content-wrap,
.promo-strip-body,
.pst { position: relative; z-index: 1; }

.promo-strip {
  position: relative;
  isolation: isolate;
  background: var(--c-base);
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  overflow: hidden;
}

/* Тикер-полоска: чистый CSS-градиент, без DOM-контента.
 * 45deg → полосы идут под ~45° (края параллелограммов «/»).
 * x-период при 45°: T × √2 ≈ 34 × 1.414 ≈ 48px → шаг анимации. */
.pst {
  height: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    45deg,
    var(--c-accent) 0px,
    var(--c-accent) 17px,
    var(--c-raised) 17px,
    var(--c-raised) 34px
  );
}
.pst--ltr { animation: pst-ltr 2s linear infinite; }
.pst--rtl { animation: pst-rtl 2s linear infinite; }

@keyframes pst-ltr { to   { background-position-x: -48px; } }
@keyframes pst-rtl { from { background-position-x: -48px; } to { background-position-x: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pst--ltr, .pst--rtl { animation: none; }
}

/* Внутренний контент */
.promo-strip-body { padding: 18px 0; }

.psb-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.psb-text { flex: 1; min-width: 0; }

.psb-eyebrow {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.psb-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 4px;
}

.psb-prize {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.psb-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.psb-urgency {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
}

.psb-timer {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  font-family: var(--f-mono);
  color: var(--c-accent);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}

.psb-cta { flex-shrink: 0; }

@media (max-width: 767px) {
  .psb-grid      { flex-direction: column; align-items: flex-start; gap: 14px; }
  .psb-action    { align-items: flex-start; }
  .psb-timer     { font-size: 22px; }
}

/* ── Страница акции /promo/<slug> ───────────────────────────
 * Слои: фон (размытое фото или X-pattern) → затемнение → карточка
 * ─────────────────────────────────────────────────────────── */

.promo-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c-bg);
}
.promo-page-bg-img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(40px) saturate(1.3) brightness(.55);
}
[data-theme="light"] .promo-page-bg-img {
  filter: blur(40px) saturate(1.1) brightness(1.2);
}
.promo-page-bg-overlay {
  position: absolute;
  inset: 0;
}
[data-theme="dark"]  .promo-page-bg-overlay { background: rgba(12,12,15,.50); }
[data-theme="light"] .promo-page-bg-overlay { background: rgba(240,240,242,.45); }

/* X-pattern container (без баннера) */
.promo-page-bg--pattern { background: var(--c-bg); }
.promo-page-bg--pattern canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.promo-page-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 110px var(--page-pad) 80px;
}

/* Карточка контента */
.promo-page-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  border: 1px solid var(--c-stroke-s);
  padding: 40px 48px;
  backdrop-filter: blur(24px) saturate(1.2);
}
[data-theme="dark"]  .promo-page-card { background: rgba(19,19,21,.86); }
[data-theme="light"] .promo-page-card { background: rgba(240,240,242,.90); }

.promo-page-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.promo-page-badge {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid;
}
.promo-page-badge--active {
  background: rgba(74,222,128,.12);
  color: var(--c-ok);
  border-color: rgba(74,222,128,.25);
}
.promo-page-badge--ended {
  background: var(--c-raised);
  color: var(--c-muted);
  border-color: var(--c-stroke);
}
.promo-page-type {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.promo-page-h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 14px;
}

.promo-page-desc {
  font-size: var(--fs-md);
  color: var(--c-text-2);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 560px;
}

/* Блок таймера */
.promo-page-timer-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.promo-page-timer-label {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
}
.promo-page-timer {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  font-family: var(--f-mono);
  color: var(--c-accent);
  letter-spacing: -.02em;
}

/* Блок приза */
.promo-page-prize {
  background: var(--c-raised);
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.promo-page-prize-label {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.promo-page-prize-value {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-text);
  line-height: 1.05;
}
.promo-page-prize-sub {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: 6px;
}

/* Блок победы */
.promo-page-win {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

/* Разделитель */
.promo-page-divider {
  border: none;
  border-top: 1px solid var(--c-stroke);
  margin: 24px 0;
}

/* Строка дат */
.promo-page-dates {
  display: flex;
  gap: 24px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .promo-page-layout { padding: 90px var(--page-pad) 60px; }
  .promo-page-card   { padding: 24px 20px; border-radius: var(--r-xl); }
}

/* ────────────────────────────────────────────────────────── */
.section-about {
  padding: 80px 0;
  background: var(--c-base);
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.about-eyebrow {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.about-heading {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--c-text);
}

.about-body {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--c-text-2);
  margin-bottom: 14px;
}
.about-body:last-of-type { margin-bottom: 0; }

.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-stats {
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about-stat {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.about-stat:last-child { border-bottom: none; }

.about-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
}

.about-stat-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-align: right;
}

.about-quote {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-raised);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════════════════════════════════════════════════
   СЕКЦИЯ «КОММЕРЧЕСКИЕ ЗАКАЗЫ»
══════════════════════════════════════════════════════ */
.section-commercial {
  padding: 80px 0;
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  transition: background-color .42s ease, border-color .42s ease;
  position: relative;
  isolation: isolate;
}
.section-commercial .content-wrap { position: relative; z-index: 2; }

/* ── Прогресс-бары (верх / низ секции) ─────── */
.comm-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  transition: opacity .35s ease;
}
.comm-bar--top    { top: 0; }
.comm-bar--bottom { bottom: 0; }

.comm-bar__track { display: none; }

.comm-bar__fill {
  position: absolute;
  top: 0; bottom: 0;
  width: 0;
  background: rgba(229,56,59,.32);
  overflow: hidden;
  opacity: 0;
}
.comm-bar--bottom .comm-bar__fill { left: 0; }
.comm-bar--top    .comm-bar__fill { right: 0; }

@keyframes comm-fill-grow {
  0%   { width: 0%;   opacity: 0; }
  7%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.comm-bar__spark {
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent          0%,
    rgba(229,56,59,.25) 20%,
    rgba(229,56,59,.72) 40%,
    rgba(229,56,59,1)   50%,
    rgba(229,56,59,.72) 60%,
    rgba(229,56,59,.25) 80%,
    transparent          100%
  );
}
.comm-bar--bottom .comm-bar__spark { left: -100px; }
.comm-bar--top    .comm-bar__spark { left: 100%; }

@keyframes comm-spark-ltr {
  0%   { left: -100px; opacity: 1; }
  100% { left: 100%;   opacity: 0.8; }
}
@keyframes comm-spark-rtl {
  0%   { left: 100%;   opacity: 1; }
  100% { left: -100px; opacity: 0.8; }
}

/* ── Shimmer на изображениях ─────────────────── */
.comm-slot__shimmer {
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 40%;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.07) 50%, transparent 75%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

@keyframes comm-shimmer {
  0%   { left: -50%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* Скрываем бары при форме и ховере */
.section-commercial.comm--form-open .comm-bar,
.section-commercial.comm--hover .comm-bar {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .comm-bar__spark,
  .comm-slot__shimmer { display: none; }
  .comm-bar__fill { animation: none !important; }
}

.section-commercial.comm--form-open {
  background: var(--c-accent);
  border-color: transparent;
}

.section-commercial.comm--form-open .comm-eyebrow {
  color: rgba(255,255,255,.72);
}

.section-commercial.comm--form-open .comm-title {
  color: #fff;
}

.section-commercial.comm--form-open .btn--outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.section-commercial.comm--form-open .btn--outline:hover {
  background: rgba(255,255,255,.12);
}

.section-commercial.comm--form-open .comm-nav-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.section-commercial.comm--form-open .comm-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.25);
}
.section-commercial.comm--form-open .comm-nav-btn:disabled {
  opacity: .25;
}

.section-commercial.comm--form-open .comm-dot {
  background: rgba(255,255,255,.35);
}
.section-commercial.comm--form-open .comm-dot--active {
  background: #fff;
}

.comm-eyebrow {
  font-size: var(--fs-label);
  font-family: var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.comm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.comm-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-text);
  margin: 0;
}

/* Stage — контейнер для галереи и формы */
.comm-stage {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: var(--r-lg);
  transition: height .48s cubic-bezier(.22,1,.36,1);
}

/* Сетка карточек */
.comm-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Карточка */
.comm-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-raised);
  cursor: default;
}

.comm-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стеклянный оверлей ховера */
.comm-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .28s ease, backdrop-filter .28s ease, -webkit-backdrop-filter .28s ease;
}

.comm-card-name {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0,0,0,.35),
    0 6px 22px rgba(0,0,0,.7),
    0 -1px 0 rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease .1s, transform .22s ease .1s;
}
[data-theme="light"] .comm-card-name {
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,.5),
    0 6px 28px rgba(0,0,0,.75),
    0 -1px 0 rgba(255,255,255,.08);
}

/* Ховер: тёмная тема */
.comm-slot--hovered .comm-card-overlay {
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(5px) saturate(1.15);
  -webkit-backdrop-filter: blur(5px) saturate(1.15);
}
/* Ховер: светлая тема — плотнее, чтобы текст читался */
[data-theme="light"] .comm-slot--hovered .comm-card-overlay {
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(4px) saturate(1.1);
  -webkit-backdrop-filter: blur(4px) saturate(1.1);
}

.comm-slot--hovered .comm-card-name {
  opacity: 1;
  transform: translateY(0);
}


/* Панель формы */
.comm-form-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  transform: translateX(100%);
  background: var(--c-accent);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.comm-form-wrap {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  width: 100%;
  max-width: 580px;
}

.comm-form-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
}

.comm-form-fields .field { margin-bottom: 9px; }
.comm-form-fields .field:last-child { margin-bottom: 0; }

.comm-form-success {
  text-align: center;
  padding: 20px 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-text);
}

/* Навигация */
.comm-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.comm-nav-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-raised);
  border: 1px solid var(--c-stroke);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--c-text);
  transition: background var(--t-fast), opacity var(--t-fast);
  flex-shrink: 0;
}
.comm-nav-btn:hover:not(:disabled) { background: var(--c-stroke); }
.comm-nav-btn:disabled { opacity: .3; cursor: default; }

.comm-dots { display: flex; gap: 7px; align-items: center; }

.comm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-stroke);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.comm-dot--active {
  background: var(--c-accent);
  transform: scale(1.45);
}

/* Адаптив */
@media (max-width: 767px) {
  .comm-stage { height: 260px; }
  .comm-grid  { grid-template-columns: 1fr; }
  .comm-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── SPOOLY CARD — макет принтера ────────────────────────── */
/* Внешняя обёртка — только наклон */
.spooly-card-outer {
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.spooly-card-outer:hover { transform: rotate(0deg) scale(1.01); }

.spooly-card {
  background: var(--c-raised);
  border: 1px solid var(--c-stroke);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.spooly-card:hover { transform: rotate(0deg) scale(1.01); }
/* geometricPrecision — не снэппит позиции символов к пикселям до поворота */
.spooly-card,
.spooly-card * {
  text-rendering: geometricPrecision;
}

.spooly-card-bar {
  height: 34px;
  background: #1c1c1f;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
}
.spooly-card-url {
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 700;
  color: rgba(227,227,230,.55);
}

.spooly-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.spooly-card-header {
  display: flex; align-items: center; gap: 10px;
}
.spooly-card-name {
  font-size: var(--fs-md); font-weight: 700; color: var(--c-text);
}
.spooly-card-btn {
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  background: var(--c-accent); color: #fff; border-radius: 5px;
}

.spooly-card-main {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
}
.spooly-card-photo {
  border-radius: 8px; overflow: hidden;
  background: var(--c-high); height: 100px;
}
.spooly-card-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spooly-card-metric {
  background: var(--c-bg);
  border: 1px solid var(--c-stroke);
  border-radius: 7px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.spooly-card-metric--accent .spooly-card-metric-value { color: var(--c-accent); }
.spooly-card-metric-label {
  font-size: var(--fs-label); font-family: var(--f-mono);
  letter-spacing: .07em; color: var(--c-muted); text-transform: uppercase;
}
.spooly-card-metric-value {
  font-size: var(--fs-base); font-weight: 700; color: var(--c-text);
}
.spooly-card-ok {
  font-size: 11px !important; padding: 2px 8px;
  background: var(--c-ok-s); color: var(--c-ok);
  border-radius: 4px; width: fit-content;
}

/* ── FOOTER SOCIAL ICONS — круглые, иконка белая ─────────── */
@keyframes ft-wave {
  0%        { transform: translateY(0);    box-shadow: 0 0    0   rgba(0,0,0,0), 0 0    0  transparent;           animation-timing-function: cubic-bezier(.45,0,.55,1); }
  14%       { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,.14), 0 3px 10px var(--icon-shadow, rgba(100,20,20,.45)); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  28%, 100% { transform: translateY(0);    box-shadow: 0 0    0   rgba(0,0,0,0), 0 0    0  transparent; }
}
/* ft-wave-off: останавливает анимацию; возврат делается через CSS transition в JS */
.footer-social-icon.ft-wave-off {
  animation: none !important;
}
/* ft-hovered объявлен ПОСЛЕ ft-wave-off — побеждает его !important за счёт порядка источника */
.footer-social-icon.ft-hovered {
  animation: none !important;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, opacity .15s ease;
  flex-shrink: 0;
  /* bg задаётся через inline style из CMS */
  animation: ft-wave 3.8s linear infinite;
  will-change: transform;
  /* animation-delay назначается через JS */
}
@media (prefers-reduced-motion: reduce) {
  .footer-social-icon { animation: none; }
}
.footer-social-icon svg {
  width: 16px; height: 16px;
  display: block; flex-shrink: 0;
  fill: #fff;
}
/* Белый fill только для дефолтных иконок; CMS-иконки (.custom-svg-icon) берут цвет из svg_color */
.footer-social-icon:not(.custom-svg-icon) svg * { fill: #fff; stroke: none; }

/* ── КНОПКА «НАВЕРХ» ─────────────────────────────────────── */
.btt-btn {
  position: fixed;
  bottom: 24px; right: 36px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(229,56,59,.35);
}
.btt-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btt-btn.btt--visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.btt-btn.btt--visible:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 28px rgba(229,56,59,.55);
}
@media (max-width: 767px) {
  /* Позиционируем над bottom-nav (высота ~62px), 26px зазора */
  .btt-btn {
    bottom: calc(62px + 26px + env(safe-area-inset-bottom));
    right: 20px;
  }
}

/* ── КАСТОМНЫЙ СКРОЛЛБАР — оверлей поверх контента ──────────── */
#custom-sb {
  position: fixed;
  top: 0; right: 3px;
  width: 6px; height: 100vh;
  z-index: 9997;
  pointer-events: none;
}
body.catalog-banner-open #custom-sb { display: none; }
#custom-sb-thumb {
  position: absolute;
  right: 0; top: 0;
  width: 5px;
  min-height: 36px;
  background: var(--c-accent);
  border-radius: 3px;
  opacity: 0;
  transition: opacity .28s ease, width .15s ease, background-color .25s ease;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
}
#custom-sb-thumb.csb-visible              { opacity: .55; }
#custom-sb-thumb:hover                    { opacity: .9;  width: 7px; }
#custom-sb-thumb.csb-dragging             { opacity: 1;   width: 7px; cursor: grabbing; }
/* Повышенная непрозрачность когда ползунок белый (на акцентном фоне) */
#custom-sb-thumb.csb-on-accent.csb-visible   { opacity: .75; }
#custom-sb-thumb.csb-on-accent:hover         { opacity: 1; }
#custom-sb-thumb.csb-on-accent.csb-dragging  { opacity: 1; }

/* ── Маскот Мио ────────────────────────────────────────────── */
.mio-mascot {
  pointer-events: none;
  user-select: none;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 767px) { .mio-mascot { display: none !important; } }

/* Flagship — поверх верхнего края карточки, правее центра */
.flagship-main-wrap {
  position: relative;
  overflow: visible;
  height: 100%;
}
.mio-mascot--flagship {
  position: absolute;
  bottom: 100%;
  right: 18%;
  transform: translate(var(--mio-x, 0px), var(--mio-y, 0px));
  z-index: 5;
}

/* About — выглядывает снизу секции «О нас» */
/* z-index:1 поднимает stacking context секции выше следующей (section-commercial),
   иначе comm-bar--top (z-index:5 внутри section-commercial) закрывает Мио */
.section-about { overflow: visible; z-index: 1; } /* override hidden — внутри нет обрезаемого контента */
.mio-mascot--about {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(calc(-50% + var(--mio-x, 0px))) translateY(calc(50% + var(--mio-y, 0px)));
  z-index: 5;
}

/* Subscribe — сидит на верхнем крае карточки popular */
.tier-popular-wrap { position: relative; overflow: visible; }
.mio-mascot--subscribe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(calc(-50% + var(--mio-x, 0px))) translateY(calc(-100% + var(--mio-y, 0px)));
  z-index: 5;
}

/* Model — опирается слева от галереи */
.model-gallery-outer {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}
.mio-mascot--model {
  align-self: flex-end;
  margin-right: calc(-8px + var(--mio-x, 0px));
  margin-bottom: var(--mio-y, 0px);
  z-index: 2;
}

/* Account — справа от имени в шапке профиля */
/* ── АККАУНТ ────────────────────────────────────────────── */
.account-page {
  padding: var(--page-top) 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

/* Кнопка «назад» в стиле section-go: статичный акцентный кружок со скобкой влево,
   без proximity-раскрытия (отдельный класс, чтобы main.js его не подхватил) */
.go-back {
  --gb-sz: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.go-back-circle {
  width: var(--gb-sz);
  height: var(--gb-sz);
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .9;
  transition: transform .2s ease, box-shadow .2s ease, opacity .18s ease;
}
.go-back-circle svg {
  width: calc(var(--gb-sz) * 0.52);
  height: calc(var(--gb-sz) * 0.52);
  display: block;
}
.go-back:hover .go-back-circle { opacity: 1; transform: scale(1.08); box-shadow: 0 6px 20px rgba(229,56,59,.45); }
.go-back-label { font-size: 13px; color: var(--c-muted); transition: color .15s; }
.go-back:hover .go-back-label { color: var(--c-text); }

/* ── Карточка «Мои доступные модели»: обложка как liquid-glass фон ── */
.card.acc-dl-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 20px;
}
/* Слой 1: размытая обложка. Тёмная тема — затемняем, светлая — осветляем */
.acc-dl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dl-cover);
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(.4) saturate(1.15);
  transform: scale(1.2);            /* прячем размытые края за рамкой */
  z-index: -2;
}
[data-theme="light"] .acc-dl-card::before {
  filter: blur(16px) brightness(1.55) saturate(1.05);
}
/* Слой 2: liquid-glass — диагональный блик + радиальный свет + шум-текстура */
.acc-dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%),
    radial-gradient(130% 90% at 50% -10%, rgba(255,255,255,.07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .9;
}
/* Нет обложки → стекло не нужно, остаётся обычный фон .card */
.acc-dl-card:not([style*="--dl-cover"])::before,
.acc-dl-card:not([style*="--dl-cover"])::after { content: none; }

/* Шапка: badge НАД названием, по центру */
.acc-dl-head { text-align: center; margin-bottom: 16px; }
.acc-dl-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.acc-dl-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: 99px;
  /* сплошной цвет (100% непрозрачность) — читается на любом фоне, вкл. светлый */
}
.acc-dl-badge.is-free { background: var(--c-ok);     color: #07210f; }
.acc-dl-badge.is-tier { background: var(--c-accent); color: #fff;    }
.acc-dl-badge.is-otp  { background: var(--c-warn);   color: #241a02; }

/* Название модели — одна строка с …, по центру, читается поверх стекла */
.acc-dl-title {
  display: block;
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
[data-theme="light"] .acc-dl-title { text-shadow: 0 1px 8px rgba(255,255,255,.65); }
.acc-dl-title:hover { color: var(--c-accent); }

/* Файловые строки — полупрозрачное стекло поверх обложки */
.acc-dl-files { display: flex; flex-direction: column; gap: 8px; }
.acc-dl-file {
  background: rgba(10,10,14,.42);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .acc-dl-file {
  background: rgba(255,255,255,.55);
  border-color: rgba(0,0,0,.08);
}
.card.account-profile-card {
  position: relative;
  overflow: visible;
}
.mio-mascot--account {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(calc(-50% + var(--mio-x, 0px))) translateY(calc(-100% + var(--mio-y, 0px)));
}

/* FAQ — справа от заголовка */
.faq-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px; /* override inline style from template */
}
.faq-head-text { flex: 1; }
.mio-mascot--faq {
  transform: translate(var(--mio-x, 0px), var(--mio-y, 0px));
  align-self: flex-end;
}

/* ── Скрыть на десктопе — показать только на мобиле ─────────── */
.topbar-settings-btn { display: none !important; }
.flagship-carousel-controls,
.sub-carousel-nav,
.blog-carousel-nav,
.tier-carousel-nav  { display: none; }

/* Стили карусельных кнопок (видны только на мобиле) */
.carousel-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-raised); border: 1px solid var(--c-stroke);
  color: var(--c-text); cursor: pointer; font-size: 20px; line-height: 1;
  transition: background .15s;
}
.carousel-nav-btn:hover { background: var(--c-high); }
.carousel-nav-btn:disabled { opacity: .35; cursor: default; }
.carousel-nav-btn svg { display: block; }   /* идеальное центрирование вместо кривых глифов ‹ › */
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-stroke); transition: background .2s, width .2s, border-radius .2s;
  flex-shrink: 0;
}
.carousel-dot.active { background: var(--c-accent); width: 18px; border-radius: 3px; }

/* ── Settings dropdown (мобиль) ──────────────────────────────── */
#settings-dropdown {
  min-width: 180px;
}
#settings-dropdown .dropdown-section-title {
  font-size: var(--fs-label); font-family: var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-muted); padding: 6px 14px 4px; margin-top: 6px;
}
#settings-dropdown .dropdown-section-title:first-child { margin-top: 0; }

@media (max-width: 767px) {

  /* ══════════════════════════════════════════════════════════
     ТОПБАР — 56px, только лого + шестерня + корзина + профиль
  ══════════════════════════════════════════════════════════ */
  .topbar-subnav       { display: none; }
  .topbar-main         { height: 56px; padding: 0; }
  .topbar-compact      { height: 56px; }
  .topbar-catalog-btn  { display: none; }
  .topbar-search-wrap  { display: none; }
  .topbar-action-label { display: none; }
  .topbar-action       { min-width: 44px; min-height: 44px; padding: 0 8px; }

  /* Прячем отдельные настройки, показываем шестерню */
  #currency-btn, #lang-btn, #theme-toggle,
  #currency-btn-compact, #lang-btn-compact, #theme-toggle-compact { display: none !important; }
  .topbar-settings-btn { display: flex !important; }

  /* Лого топбара — тема-зависимый цвет (как на десктопе). Явный fill на svg *
     через var(--c-text), а не currentColor — иначе Samsung Internet рвёт каскад
     и красит серым. var(--c-text): белый в тёмной теме, тёмный в светлой */
  .topbar-brand { color: var(--c-text) !important; }
  .topbar-brand-svg,
  .topbar-brand svg { height: 16px !important; fill: var(--c-text) !important; }
  .topbar-brand svg * { fill: var(--c-text) !important; }

  /* Лого футера — тема-зависимый цвет (та же логика) */
  .footer-brand { color: var(--c-text) !important; }
  .footer-brand svg { fill: var(--c-text) !important; }
  .footer-brand svg * { fill: var(--c-text) !important; }

  /* Стеклянный топбар: полупрозрачный фон + blur */
  .topbar {
    background: rgba(12,12,15,.78) !important;
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  }
  [data-theme="light"] .topbar {
    background: rgba(240,240,242,.80) !important;
  }

  /* Обычные страницы (fixed topbar): padding-top = 56px.
     --sticky и --hero: топбар relative (в потоке) — padding-top не нужен. */
  .page-body { padding-top: 56px; }

  /* AUTH — карточка по центру оставшегося экрана (100svh - высота топбара) */
  .auth-wrap { min-height: calc(100svh - 56px); padding: 16px; }
  .auth-card { padding: 32px 24px; }

  /* ══════════════════════════════════════════════════════════
     HERO — верх+низ сплит (вместо лево+право).
     JS анимирует --hero-split от 78% → 0 при скролле.
  ══════════════════════════════════════════════════════════ */
  .page-body--hero .hero-wrap { margin-top: -56px !important; }

  .hero-wrap {
    height: 100svh;
    position: relative; /* якорь для .hero-stats-logo */
    background: linear-gradient(
      to bottom,
      var(--c-raised) 0%,
      var(--c-raised) var(--hero-split, 70%),
      var(--c-accent)  var(--hero-split, 70%),
      var(--c-accent)  100%
    );
  }

  .hero { display: block; position: relative; min-height: 0; overflow: visible; }

  /* Заголовок — по центру экрана */
  .hero-left {
    position: absolute !important;
    inset: 0;
    padding: 64px var(--page-pad) 32% !important;
    z-index: 3;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom,
      rgba(19,19,21,.65) 0%,
      rgba(19,19,21,.38) 48%,
      transparent 100%
    );
  }
  /* Светлая тема: осветляющий градиент (белый→прозрачный) — тёмный текст читается */
  [data-theme="light"] .hero-left {
    background: linear-gradient(to bottom,
      rgba(240,240,242,.78) 0%,
      rgba(240,240,242,.45) 48%,
      transparent 100%
    );
  }
  /* Светлая тема: на мобиле hero-фон светлый (нет правой красной зоны как на ПК),
     поэтому белые иконки топбара невидимы → делаем их тёмными по теме */
  [data-theme="light"] .topbar--hero .topbar-right .topbar-action     { color: var(--c-text); }
  [data-theme="light"] .topbar--hero .topbar-right .topbar-action-svg { color: var(--c-text-2); }
  [data-theme="light"] .topbar--hero .topbar-right .topbar-action-label { color: var(--c-muted); }
  [data-theme="light"] .topbar--hero .topbar-right .topbar-action:hover { background: rgba(0,0,0,.06); }
  [data-theme="light"] .topbar--hero .topbar-action-avatar { border-color: var(--c-text) !important; }
  .hero-title {
    font-size: clamp(52px, 14vw, 80px);
    line-height: .88;
    margin-bottom: 0;
    text-align: center;
  }
  /* Исправить цвет акцентной строки — без background-clip */
  .hero-title-accent {
    color: var(--c-accent) !important;
    -webkit-text-fill-color: var(--c-accent) !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
  }

  .hero-right {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
  }

  /* Пушка — шире вьюпорта (scale 1.15) для визуальной крупности */
  .hero-model {
    position: relative !important;
    width: calc(100vw - 8px) !important; max-width: none !important;
    left: auto !important; top: auto !important;
    transform: rotate(-8deg) scale(1.15) !important;
    filter:
      drop-shadow(0 24px 64px rgba(0,0,0,.65))
      drop-shadow(0 0 80px rgba(229,56,59,.22)) !important;
  }
  .hero-model-glow { display: none; }
  .hero-sub-wrap   { display: none; }

  /* STATS BAR — сетка 2×2, без обводки и градиента */
  .hero-stats-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0;
    z-index: 3; /* flex-item держит z-index без position:relative */
    background: none;
  }
  /* Лого — на визуальной границе градиента (--hero-split default 70%).
     position:absolute относительно .hero-wrap (ближайший positioned ancestor). */
  .hero-stats-logo {
    display: block !important;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 144px;
    height: 144px;
    z-index: 5;
  }
  .hero-stat-item {
    flex: unset;
    text-align: center;
    padding: 10px 8px;
    border: none !important;
  }
  .hero-stat-num   { font-size: var(--fs-xl); }
  .hero-stat-label { font-size: var(--fs-xs); }

  /* CTA-bar: акцентный фон — продолжение нижней части hero */
  .hero-cta-bar {
    background: var(--c-accent) !important;
    padding: 16px 0;
  }
  .hero-cta-bar .content-wrap { gap: 10px; flex-wrap: nowrap; }
  /* Оба CTA: ghost на акцентном фоне */
  .hero-cta-bar .btn {
    flex: 1; justify-content: center;
    font-size: var(--fs-sm); padding: 0 12px;
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.7) !important;
    box-shadow: none !important;
  }
  .hero-cta-bar .btn--primary {
    border-color: rgba(255,255,255,.95) !important;
    background: rgba(255,255,255,.12) !important;
  }

  /* ══════════════════════════════════════════════════════════
     СЕКЦИИ — базовые отступы
  ══════════════════════════════════════════════════════════ */
  .section { padding: 44px 0; }

  /* ══════════════════════════════════════════════════════════
     FLAGSHIP — единая карусель: все карточки одинаковой высоты.
     display:contents на side-grid → дети в одном flex-контейнере.
  ══════════════════════════════════════════════════════════ */
  .flagship-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .flagship-grid::-webkit-scrollbar { display: none; }

  .flagship-main-wrap {
    flex: 0 0 calc(100vw - var(--page-pad) * 2);
    scroll-snap-align: start;
    margin-bottom: 0;
  }
  .flagship-main { width: 100%; height: 280px; }

  /* display:contents — children участвуют напрямую в flagship-grid */
  .flagship-side-grid { display: contents; }

  .flagship-side-card {
    flex: 0 0 calc(100vw - var(--page-pad) * 2);
    height: 280px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
  }
  .flagship-side-card--wide { flex: 0 0 calc(100vw - var(--page-pad) * 2); }

  /* Боковые карточки флагмана = стиль главной карточки */
  .flagship-side-bottom {
    height: 80px;
    background: transparent;
    border-top: none;
  }
  .fs-title-layer,
  .fs-hover-layer {
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    padding: 0 18px;
  }
  .fs-name { color: #fff; font-size: var(--fs-lg); font-weight: 600; }

  /* Section-go — крупнее на мобиле, текст крупнее */
  .section-go { --sg-sz: 36px; font-size: 15px; }

  /* COMM: на мобиле кнопка-стрелка уходит под заголовок (как section-go--below).
     На десктопе остаётся inline. Иначе раскрывающаяся при скролле пилюля
     «обсудить» сжимает длинный заголовок раздела. */
  .section-commercial .section-go-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Carousel nav */
  .flagship-carousel-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding-top: 14px;
  }

  /* ══════════════════════════════════════════════════════════
     ПОДПИСКИ — стопка карт с peek соседних (book-page эффект)
  ══════════════════════════════════════════════════════════ */

  /* Лава-лампа на мобиле — ярче, насыщеннее */
  :root {
    --lava-c1: rgba(229,56,59,.65);
    --lava-c2: rgba(180,40,140,.55);
    --lava-c3: rgba(229,56,59,.50);
    --lava-c4: rgba(100,60,200,.50);
    --lava-c5: rgba(229,56,59,.42);
  }
  .lava-blob { filter: blur(40px); }

  .section-subscribe { padding: 44px 0; }
  .section-subscribe .content-wrap { display: block !important; }

  /* subscribe-left: заголовок + кнопка в одну строку (как section-go-head).
     flex: 0 0 auto на заголовке — кнопка прижата к тексту, не улетает к краю. */
  .subscribe-left {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 20px;
  }
  .subscribe-title { flex: 0 0 auto; min-width: 0; }
  .subscribe-left .section-go { flex-shrink: 0; }
  .subscribe-left .subscribe-desc { flex-basis: 100%; margin-top: 0; }
  .subscribe-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden; /* предотвращает клиппинг hover box-shadow снизу */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding-left: 28px;
    padding-right: 28px;
    padding-top: 12px;   /* место для translateY(-6px) hover */
    margin-top: -12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .subscribe-cards::-webkit-scrollbar { display: none; }
  .sub-card {
    flex: 0 0 calc(100vw - 56px) !important;
    min-width: 0 !important;
    scroll-snap-align: center;
    transform: none;
  }
  /* На тач-устройствах hover-transform не нужен — убираем клиппинг */
  .sub-card:hover, .sub-card.popular:hover { transform: none; }
  .sub-card.popular { transform: none; }
  .sub-carousel-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding-top: 12px;
  }

  /* ══════════════════════════════════════════════════════════
     СТРАНИЦА ПОДПИСОК — карусель тарифов (book-page peek)
  ══════════════════════════════════════════════════════════ */
  .subscribe-page-header { padding: 40px 0 28px; }
  .tier-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 28px;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    margin-bottom: 0;
    /* padding-top даёт вертикальный воздух для Мио: translateY(-100%) поднимает
       маскот на всю его высоту (~116px при width 90) над popular-картой, а
       overflow-x:auto клипает вертикаль. Поэтому запас = высота маскота.
       margin-top компенсирует → позиция карточек не меняется. */
    padding: 116px 28px 12px;
    margin-top: -116px;
    max-width: none;
    justify-content: flex-start;
    align-items: flex-start;
    scrollbar-width: none;
  }
  .tier-grid::-webkit-scrollbar { display: none; }
  .tier-popular-wrap {
    flex: 0 0 calc(100vw - 56px);
    min-width: 0;
    scroll-snap-align: start;
  }
  .tier-card.popular { transform: none; }
  .tier-popular-wrap:hover { transform: none; }
  .tier-popular-badge { font-size: 8px; padding: 2px 8px; }
  .tier-carousel-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding-top: 12px; margin-bottom: 32px;
  }
  /* таблица сравнения: десктоп скрыт, мобиль-вариант видим */
  #tier-compare-desktop { display: none; }
  .tier-compare-mobile {
    display: block;
    background: var(--c-base); border: 1px solid var(--c-stroke);
    border-radius: var(--r-xl); overflow: hidden;
  }
  .tier-cmp-name {
    font-size: 11px; font-weight: 700; font-family: var(--f-mono);
    letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
    padding: 14px 16px 12px; border-bottom: 1px solid var(--c-stroke);
  }
  .tier-cmp-list { list-style: none; padding: 0; margin: 0; transition: opacity .12s ease; }
  .tier-cmp-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 16px; gap: 12px; border-bottom: 1px solid var(--c-stroke);
  }
  .tier-cmp-row:last-child { border-bottom: none; }
  .tier-cmp-feat { font-size: 13px; color: var(--c-text); flex: 1; }
  .tier-cmp-val  { font-size: 14px; font-weight: 700; flex-shrink: 0; }
  .tier-cmp-check { color: var(--c-ok); }
  .tier-cmp-dash  { color: var(--c-muted); font-weight: 400; font-size: 16px; }

  /* ══════════════════════════════════════════════════════════
     О НАС — исправление overflow (about-split уже 1fr от 1024px)
  ══════════════════════════════════════════════════════════ */
  .section-about { padding: 44px 0; overflow: hidden; }
  .about-split   { display: block !important; }
  .about-left    { margin-bottom: 28px; }
  .about-heading { font-size: clamp(22px, 6.5vw, 32px); word-break: break-word; }
  .about-body    { overflow-wrap: break-word; font-size: var(--fs-sm); }
  .about-cta     { gap: 8px; }
  .about-right   { gap: 14px; }
  .about-stats   { display: grid; grid-template-columns: 1fr 1fr; }
  .about-stat {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
  }
  .about-stat-num   { font-size: 22px; }
  .about-stat-label { font-size: 11px; text-align: left; line-height: 1.3; word-break: break-word; }
  .about-quote      { font-size: var(--fs-xs); padding: 12px 14px; word-break: break-word; overflow-wrap: break-word; }

  /* ══════════════════════════════════════════════════════════
     КОММЕРЧЕСКИЕ ЗАКАЗЫ — touch-swipe добавлен через JS
  ══════════════════════════════════════════════════════════ */
  .section-commercial { padding: 44px 0; }
  .comm-stage { height: 260px; touch-action: pan-y; }

  /* ══════════════════════════════════════════════════════════
     БЛОГ — featured full-width, secondary = book-page carousel
  ══════════════════════════════════════════════════════════ */
  .section-blog { padding: 44px 0; }
  .blog-card--featured { height: 220px; margin-bottom: 14px; }
  .blog-secondary {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* предотвращает вертикальный скролл внутри карточек */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .blog-secondary::-webkit-scrollbar { display: none; }
  .blog-card--secondary {
    flex: 0 0 calc(100vw - 56px) !important;
    width: auto !important;
    height: 200px !important;
    scroll-snap-align: center;
    overflow: hidden; /* карточка не скроллится вертикально */
  }
  .blog-carousel-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding-top: 12px;
  }

  /* ══════════════════════════════════════════════════════════
     SPOOLY — вертикальный стек, карточка адаптирована
  ══════════════════════════════════════════════════════════ */
  .section-spooly { padding: 44px 0; }
  .section-spooly .content-wrap { display: block !important; }

  /* spooly-left: eyebrow + [title + section-go в ряд] + desc */
  .spooly-left {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 20px;
  }
  .spooly-eyebrow { flex-basis: 100%; }
  .spooly-title { flex: 0 0 auto; min-width: 0; }
  .spooly-left .section-go { flex-shrink: 0; }
  .spooly-desc { flex-basis: 100%; margin-top: 0; }
  .spooly-card { transform: none; }
  .spooly-card:hover { transform: none; }
  .spooly-card-main { grid-template-columns: 1fr !important; }
  .spooly-card-photo { height: 140px; }
  .spooly-card-metrics { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .spooly-card-metric { padding: 6px 8px; }
  .spooly-card-metric-label { font-size: 9px; }
  .spooly-card-metric-value { font-size: var(--fs-sm); }

  /* ══════════════════════════════════════════════════════════
     ФУТЕР — бренд во всю ширину, ссылки в 2 колонки
  ══════════════════════════════════════════════════════════ */
  .footer {
    padding-top: 40px;
    padding-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin-bottom: 24px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-desc   { max-width: 100%; text-align: center; }
  .footer-bottom {
    flex-direction: column; gap: 8px; text-align: center;
    /* 11px visible (symmetric with padding-top) + 64px under nav + safe-area */
    padding-bottom: calc(75px + env(safe-area-inset-bottom));
  }
  /* .footer-logo не существует в HTML — используем .footer-brand */
  .footer-brand  { justify-content: center; }
  /* .footer-social — это отдельная ссылка, центрировать нужно контейнер .footer-socials */
  .footer-socials { justify-content: center; }

  /* ══════════════════════════════════════════════════════════
     BOTTOM NAV — показываем на моб (колонка рядов из базы)
  ══════════════════════════════════════════════════════════ */
  .bottom-nav {
    display: flex;   /* flex-direction:column наследуется из базы */
    transition: opacity .22s ease, transform .22s ease;
  }
  .bottom-nav--hidden {
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
  }
  .page-body,
  .page-body--sticky,
  .page-body--hero   { padding-bottom: 0; }

  /* ══════════════════════════════════════════════════════════
     КАТАЛОГ (/catalog)
  ══════════════════════════════════════════════════════════ */
  .catalog-page { position: relative; isolation: isolate; }
  .catalog-page .section-blobs { display: block; }
  .catalog-page .content-wrap  { position: relative; z-index: 1; }
  /* padding-left/right = 0: горизонтальный отступ берётся из content-wrap */
  .catalog-header  { padding: var(--page-top) 0 24px; flex-direction: column; align-items: flex-start; }
  .catalog-controls { width: 100%; }
  .catalog-controls .search-wrap { width: 100% !important; }
  .catalog-controls .search-input { width: 100%; }
  .catalog-filters { gap: 0; padding-bottom: 12px; }
  /* filter-chips — display:contents (desktop rule), chips прямо во filter-row */
  .catalog-filters .filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .catalog-filters .sort-dropdown { margin-left: 0 !important; }
  /* одна колонка, все карточки на всю ширину */
  .catalog-grid    { padding-bottom: 80px; grid-template-columns: 1fr; gap: var(--page-pad); }
  .cat-card        { height: 380px; }
  .cat-card-header { padding: 12px 12px 10px; gap: 5px; }
  .cat-card-title  { font-size: 15px; }
  .cat-card-subtitle { font-size: 11px; -webkit-line-clamp: 2; line-clamp: 2; }
  .access-chip     { font-size: 12px; padding: 3px 8px; gap: 4px; border-radius: 6px; }
  .catalog-grid .cat-card--wide  { grid-column: span 1; }
  .cat-card--wide                { height: 380px; }
  .cat-card--wide .cat-card-title { font-size: 15px; }

  /* ══════════════════════════════════════════════════════════
     БЛОГ-СТРАНИЦА (/blog)
  ══════════════════════════════════════════════════════════ */
  .blog-page-header    { padding: 28px 0 16px; }
  .blog-secondary-grid { grid-template-columns: 1fr; gap: 10px; }
  .blog-feed           { flex-direction: column; gap: 12px; }
  .bpost-cover         { height: 180px; }
  /* HIG touch targets в нижней строке карточки + перенос вместо сжатия */
  .bpost-bottom-row    { flex-wrap: wrap; row-gap: 8px; }
  .bpost-react-chip    { min-height: 44px; padding: 0 12px; }
  .bpost-toggle        { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; }

  /* ══════════════════════════════════════════════════════════
     СТРАНИЦА МОДЕЛИ (/model/...)
  ══════════════════════════════════════════════════════════ */
  .model-hero-left  { padding: 60px 0 40px; gap: 40px; }
  .model-hero-inner { grid-template-columns: 1fr; }
  .model-hero-right { min-height: 300px; padding: 0 0 32px; align-items: center; }
  .model-gallery-main { aspect-ratio: 4/3; }
  .model-content    { padding: 32px 0; }

  /* ══════════════════════════════════════════════════════════
     АДМКА
  ══════════════════════════════════════════════════════════ */
  .admin-sidebar  { display: none; }
  .admin-section  { padding: 20px 16px; }
  .admin-form-row { grid-template-columns: 1fr; }

  /* ══════════════════════════════════════════════════════════
     APPLE HIG TOUCH TARGETS — min 44×44pt
  ══════════════════════════════════════════════════════════ */
  .btn         { min-height: 44px; }
  .btn--icon   { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
  .filter-btn,
  .filter-chip { min-height: 44px; }

  /* ══════════════════════════════════════════════════════════
     АККАУНТ (/account)
  ══════════════════════════════════════════════════════════ */
  .account-page { padding-top: 20px; padding-bottom: 24px; }

  /* Mio на /account показываем и на мобиле (вопреки глобальному скрытию маскотов):
     профиль-карточка резервирует под неё margin-top:100px из inline-стиля.
     Повышенная специфичность (.mio-mascot.mio-mascot--account) бьёт глобальный
     .mio-mascot{display:none} */
  .mio-mascot.mio-mascot--account { display: block !important; }

  /* MYO-AUD: на «О нас» оставляем небольшую копию Мио (выглядывает снизу секции,
     по центру — позиция из базы работает на узком экране). Десктоп не трогаем. */
  .mio-mascot.mio-mascot--about {
    display: block !important; width: 92px !important;
    --mio-x: 0px !important; --mio-y: -20px !important;  /* инлайн из CMS бьём !important */
  }

  /* MYO-AUD: subscribe — Мио на верхней кромке popular-карточки (карусель тарифов),
     уменьшена. flagship-Мио НЕ возвращаем (карусель карточек — нет места);
     model-Мио остаётся скрытой (продукт-центричная страница). */
  .mio-mascot.mio-mascot--subscribe { display: block !important; width: 90px !important; }

  /* Профиль: кнопки Admin/Выйти уходят на вторую строку */
  .account-profile-row { flex-wrap: wrap; }
  .account-profile-btns { margin-left: 0; width: 100%; }

  /* Покупки: таблица со скроллом вместо обрезки */
  .account-page .admin-table-wrap { overflow-x: auto !important; }

  /* Кнопки подписки: текст не влезает в 3 кнопки в ряд → свайп-карусель
     (как catalog-filters / tier-carousel). flex:0 0 auto бьёт inline flex:1 */
  .account-sub-btns {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .account-sub-btns::-webkit-scrollbar { display: none; }
  .account-sub-btns .btn {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* Строка заказа: meta (дата+статус) уходит под имя.
     !important нужен — inline style в шаблоне имеет align-items:center */
  .account-order-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
  }
  .account-order-hdr > div { width: 100%; }

  /* Настройки: label+chips стекаются на очень узких экранах */
  .account-settings-row { flex-wrap: wrap; gap: 10px; }
  .account-settings-row > div:first-child { flex: 1 1 0; min-width: 120px; }

  /* ══════════════════════════════════════════════════════════
     СТРАНИЦА МОДЕЛИ — галерея над stats
     Порядок: title → gallery → msc-grid → CTA
  ══════════════════════════════════════════════════════════ */
  .model-hero-inner  { display: flex; flex-direction: column; }
  /* display:contents растворяет model-hero-left — его дети становятся
     прямыми flex-детьми model-hero-inner и участвуют в order-сортировке */
  .model-hero-left   { display: contents; }
  .model-hero-top    { order: 1; padding-top: 24px; margin-bottom: 20px; }
  .model-hero-right  { order: 2; min-height: 0; padding: 0 0 20px; align-items: flex-start; }
  .msc-grid          { order: 3; margin-bottom: 20px; }
  .model-hero-bottom { order: 4; padding-bottom: 40px; }

  /* Миниатюры галереи: вместо рваного wrap (прижим вправо, дыры) —
     одна скроллируемая строка с выпуском под края экрана */
  .model-gallery-thumbs {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  .model-gallery-thumbs::-webkit-scrollbar { display: none; }
  .model-gallery-thumb { flex: 0 0 auto; }

  /* Фуллскрин-крутилка: крестик — 44px touch target (HIG) */
  .tt-fs-close { min-width: 44px; min-height: 44px; }

  /* ══════════════════════════════════════════════════════════
     МОДЫ / МОДПАКИ — горизонтальная карусель
  ══════════════════════════════════════════════════════════ */
  .model-mods-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad));
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .model-mods-grid::-webkit-scrollbar { display: none; }
  .model-mods-grid .mod-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
  /* на тач-скролле стрелки не нужны */
  .mods-carousel-nav { display: none !important; }
  .model-mods-grid--carousel.has-nav { margin-bottom: 0; }

  /* ══════════════════════════════════════════════════════════
     ПРОЧИЕ КОМПОНЕНТЫ
  ══════════════════════════════════════════════════════════ */
  .golden-grid       { grid-template-columns: 1fr; }
  .golden-grid-right { grid-template-rows: auto; }
}
