/*
 * ЕДИНЫЙ ИСТОЧНИК ПРАВДЫ для стекла и цветовой темы UnitVR.
 * Все компоненты используют ТОЛЬКО эти CSS-переменные — никогда не хардкодят свои
 * rgba/blur/box-shadow значения локально. Правка стиля стекла = правка ЭТОГО файла,
 * изменение расходится по всему приложению автоматически (прямое требование Михаила, С151).
 *
 * История: рецепт менялся дважды за ночь С151 (см. reference-glass-canon-2026 в памяти
 * агента) — сначала окантовка/просвечивание были неверными, затем плотность 0.42 давала
 * либо тусклость, либо жёсткую окантовку при попытке компенсировать. Текущие значения —
 * финальные, подтверждённые Михаилом визуально на попапе поддержки.
 */

:root[data-theme="dark"] {
  --fg: #eceef2;
  --fg-dim: #a8abbc;
  --fg-mute: #7c8096;

  --scene:
    radial-gradient(circle at 78% -8%, rgba(255, 154, 77, .32), transparent 46%),
    radial-gradient(circle at 15% 108%, rgba(90, 140, 255, .24), transparent 46%),
    linear-gradient(160deg, #1c1408 0%, #0d0e14 55%, #08090e 100%);

  /* ===== ГЛАВНЫЕ ТОКЕНЫ СТЕКЛА (менять ТОЛЬКО здесь) ===== */
  --glass-bg: rgba(18, 18, 21, .72);
  --glass-img: linear-gradient(160deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 100%);
  --glass-blur: blur(30px) saturate(140%) brightness(1.0);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .32);
  --glass-radius: 18px;

  /* плотнее вариант для мелких элементов (тайлы игр, карточки шлемов) */
  --glass-tile-bg: rgba(20, 20, 24, .5);
  --glass-tile-blur: blur(18px) saturate(150%) brightness(1.02);
  /* С152 (3-й проход): раньше только верхний блик 1px — окантовка "исчезала" книзу
     карточки. inset 0 0 0 1px даёт РАВНОМЕРНЫЙ тонкий контур по всему периметру. */
  --glass-tile-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 5px 14px rgba(0, 0, 0, .24);
  --gfoot-gradient: linear-gradient(90deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.14) 100%);

  --glass-helm-bg: rgba(20, 20, 24, .48);
  --glass-helm-active-bg: rgba(38, 32, 26, .62);
  /* С152: контур 1.5px (было 1px — слишком тонко, читалось как "срезанное" рядом с
     несимметричной внешней тенью 0 5px). Внешняя тень заменена на симметричную
     0 0 14px, чтобы не создавать ложное ощущение перекоса выделенной карточки. */
  --glass-helm-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1.5px rgba(138, 180, 255, .55), 0 0 14px rgba(0, 0, 0, .22);

  /* окантовка попап-окон (поддержка/тариф/трансляция), С152. ⚠️ Первая попытка подняла
     плотность до 0.86 + добавила blur(6px) на оверлей ПОД окном — суммарный эффект убил
     матовость: стекло перестало просвечивать сцену и превратилось в сплошную тонировку
     («не видно матовость, видно тёмное окошко» — Михаил). Вернул плотность к уровню
     обычного .glass (0.72, тот самый, подтверждённый визуально в С151) — разделение от
     фона теперь даёт ТОЛЬКО оверлей (см. --overlay-*), не сама панель. */
  --glass-sup-bg: rgba(18, 18, 21, .45);
  --glass-sup-blur: blur(16px) saturate(160%) brightness(1.05);
  --glass-sup-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 28px rgba(0, 0, 0, .4);
  --sup-panel-bg: rgba(255, 255, 255, .96);
  --sup-panel-fg: #16171c;
  --sup-panel-fg-dim: #6b6d78;

  /* контейнер-обёртка правой колонки (KPI+таймер+библиотека) — один большой кусок
     тёмного стекла, внутри которого лежат светло-серые вставки (см. --inset-*) */
  --main-panel-bg: rgba(16, 16, 20, .58);
  --main-panel-blur: blur(28px) saturate(150%) brightness(1.0);
  --main-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 24px rgba(0, 0, 0, .3);
  --inset-bg: rgba(255, 255, 255, .045);
  --inset-border: rgba(255, 255, 255, .09);

  /* капсула подписи под обложкой игры (С152) — заметно светлее .inset-bg, ближе к
     референсу Stardog: явная светлая плашка, а не тонкая подложка того же тона */
  --gfoot-bg: rgba(255, 255, 255, .12);
  --gfoot-border: rgba(255, 255, 255, .16);

  /* С152: оверлей под модалками слегка размывает сцену за окном (Михаил — «попап теряется
     на фоне большого числа обложек игр»). ⚠️ Первая попытка (0.32 + blur 6px) в СУММЕ с
     поднятой плотностью самой панели убила матовость целиком — стекло перестало
     просвечивать. Плотность панели вернул к 0.72 (см. --glass-sup-bg), поэтому здесь
     оставляю МЯГКИЙ вариант: blur всего 3px, затемнение чуть выше исходного 0.18 — этого
     достаточно, чтобы окно отделялось от фона, но сцена всё ещё видна сквозь стекло. */
  --overlay-bg: rgba(8, 9, 16, .24);
  --overlay-blur: blur(3px);

  --chip: rgba(10, 10, 14, .45);
  --accent: #8ab4ff;
  --accent2: #b89bff;
  --accent-fg: #0d1017;
  /* ⭐ С181 (Михаил, «сайт весь прям сильно фиолетовый»): --accent теперь единый бренд-цвет
     кнопок/ссылок (совпадает с кабинетом), но если ВСЯ декоративная графика (диаграммы,
     статусы) тоже перекрашена в него — страница выглядит однотонной. --accent-warm — тёплый
     тон ТОЛЬКО для иллюстративной графики (столбики выручки, сетка роста), не для интерактива;
     --ok/--warn остаются смысловыми (успех/ожидание), не декоративными. */
  --accent-warm: #ffb066;
  --accent-warm2: #ff9a4d;
  --ok: #7ee6a0;
  --warn: #ffd180;
  --bad: #ff9fac;
}

:root[data-theme="light"] {
  --fg: #eef0f4;
  --fg-dim: #c2c7d2;
  --fg-mute: #9aa0ad;

  --scene:
    radial-gradient(circle at 72% 18%, rgba(210, 160, 110, .16), transparent 34%),
    radial-gradient(circle at 24% 30%, rgba(150, 175, 205, .14), transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(120, 140, 170, .12), transparent 42%),
    radial-gradient(circle at 40% 95%, rgba(190, 150, 110, .10), transparent 38%),
    linear-gradient(155deg, #2a2e36 0%, #1c1f26 45%, #14161c 100%);

  --glass-bg: rgba(50, 54, 62, .58);
  --glass-img: linear-gradient(150deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 42%, rgba(0, 0, 0, .03) 100%);
  --glass-blur: blur(26px) saturate(110%) brightness(1.0);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 28px rgba(0, 0, 0, .22);
  --glass-radius: 18px;

  --glass-tile-bg: rgba(46, 50, 58, .5);
  --glass-tile-blur: blur(18px) saturate(105%) brightness(1.0);
  --glass-tile-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px rgba(0, 0, 0, .18);
  --gfoot-gradient: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.18) 100%);

  --glass-helm-bg: rgba(46, 50, 58, .46);
  --glass-helm-active-bg: rgba(58, 62, 72, .6);
  --glass-helm-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1.5px rgba(255, 255, 255, .2), 0 0 16px rgba(0, 0, 0, .16);

  --glass-sup-bg: rgba(50, 54, 62, .4);
  --glass-sup-blur: blur(16px) saturate(130%) brightness(1.05);
  --glass-sup-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 28px rgba(0, 0, 0, .3);
  --sup-panel-bg: rgba(255, 255, 255, .97);
  --sup-panel-fg: #16171c;
  --sup-panel-fg-dim: #6b6d78;

  --main-panel-bg: rgba(40, 44, 52, .5);
  --main-panel-blur: blur(26px) saturate(120%) brightness(1.0);
  --main-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 22px rgba(0, 0, 0, .22);
  --inset-bg: rgba(255, 255, 255, .06);
  --inset-border: rgba(255, 255, 255, .12);
  --gfoot-bg: rgba(255, 255, 255, .16);
  --gfoot-border: rgba(255, 255, 255, .2);

  --overlay-bg: rgba(8, 9, 16, .24);
  --overlay-blur: blur(3px);

  --chip: rgba(10, 10, 14, .35);
  --accent: #8ab4ff;
  --accent2: #b89bff;
  --accent-fg: #0d1017;
  /* ⭐ С181 (Михаил, «сайт весь прям сильно фиолетовый»): --accent теперь единый бренд-цвет
     кнопок/ссылок (совпадает с кабинетом), но если ВСЯ декоративная графика (диаграммы,
     статусы) тоже перекрашена в него — страница выглядит однотонной. --accent-warm — тёплый
     тон ТОЛЬКО для иллюстративной графики (столбики выручки, сетка роста), не для интерактива;
     --ok/--warn остаются смысловыми (успех/ожидание), не декоративными. */
  --accent-warm: #ffb066;
  --accent-warm2: #ff9a4d;
  --ok: #7ee6a0;
  --warn: #ffd180;
  --bad: #ff9fac;
}

/* ===== БАЗОВЫЙ КЛАСС СТЕКЛА (используется всеми .glass-панелями) ===== */
.glass {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--glass-bg);
  background-image: var(--glass-img);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glass-shadow);
}

.glass-tile {
  background-color: var(--glass-tile-bg);
  backdrop-filter: var(--glass-tile-blur);
  -webkit-backdrop-filter: var(--glass-tile-blur);
  box-shadow: var(--glass-tile-shadow);
}

/* стекло попапа техподдержки — плотнее .glass (см. --glass-sup-* выше) */
.glass-sup {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--glass-sup-bg);
  backdrop-filter: var(--glass-sup-blur);
  -webkit-backdrop-filter: var(--glass-sup-blur);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glass-sup-shadow);
}

/* контейнер-обёртка правой колонки — один большой кусок тёмного стекла (С152) */
.main-panel {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--main-panel-bg);
  backdrop-filter: var(--main-panel-blur);
  -webkit-backdrop-filter: var(--main-panel-blur);
  box-shadow: var(--main-panel-shadow);
}

/* С152: светло-серые вставки внутри тёмного стекла (по образцу референса Stardog —
   большая тёмная стеклянная область, внутри которой лежат светлые под-панели с мягкой
   серой окантовкой). Используется для таймера/библиотеки игр внутри .main-panel. */
.inset-panel {
  border-radius: 16px;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
}
/* компактные чипы-теги (по образцу «Seekingalpha/CNBC» на референсе) для KPI */
.chip-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
  font-size: 13px;
  color: var(--fg-dim);
}

/* grain — то, что отличает матовое стекло от чистого (см. reference-glass-canon-2026) */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: overlay;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-1, #0d0e14);
  color: var(--fg);
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; color: var(--fg-dim); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:root[data-theme="dark"] {
  --bg-2: #1c1408;
}

.site {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -8%, rgba(255, 154, 77, .30), transparent 46%),
    radial-gradient(circle at 15% 108%, rgba(90, 140, 255, .22), transparent 46%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 55%, #08090e 100%);
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  position: relative;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text {
  background: linear-gradient(100deg, #8ab4ff 0%, #b89bff 25%, #ffb066 50%, #b89bff 75%, #8ab4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
}
@keyframes logo-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-text { animation: none; }
}
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 14px; color: var(--fg-dim); transition: color .15s; }
.nav a:hover { color: var(--fg); }
.header-spacer { flex: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--fg); border-radius: 2px; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 15;
}
.nav-mobile {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  right: 20px;
  z-index: 20;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--fg-dim);
}
.nav-mobile a:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.nav-mobile a.btn-accent { justify-content: center; margin-bottom: 8px; color: var(--accent-fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #2a2b33;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  color: inherit;
}
.btn-ghost { color: var(--fg-dim); }
.btn-ghost:hover { color: var(--fg); border-color: #444; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--accent-fg);
  border: none;
  font-weight: 600;
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ===== Hero (один статичный экран — карусель убрана, С181) ===== */
.hero {
  position: relative;
  height: 780px;
  overflow: hidden;
  max-width: 1520px;
  margin: 0 auto;
  border-radius: 24px;
}
.hero-static {
  display: flex;
  align-items: center;
  padding: 0 64px;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
}
.hero-copy { position: relative; max-width: 560px; z-index: 2; }
.hero-copy .eyebrow {
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: .16em;
}
.hero-copy h1 {
  font-size: 66px;
  line-height: 1.06;
  margin-bottom: 30px;
  font-weight: 600;
}
.grad-accent {
  background: linear-gradient(100deg, #8ab4ff 0%, #b89bff 35%, #ffb066 70%, #b89bff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .grad-accent { animation: none; }
}
.hero-points {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-teaser {
  font-size: 14px;
  font-style: italic;
  color: var(--fg-mute);
  margin: 0 0 24px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: var(--fg-dim);
}
.hero-points .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(138, 180, 255, .14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.hero-visual {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 920px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
/* ===== Sections ===== */
.section { padding: 80px 40px; }
.section-tight { padding: 40px 40px 80px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
}
.section-head h2 { font-size: 34px; }
.section-head p { margin-top: 12px; font-size: 15.5px; }

/* ===== Feature story rows (текст + мокап, чередование) ===== */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 56px 60px;
}
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse .story-visual { order: 2; }
.story-row.reverse .story-copy { order: 1; }
.story-copy .eyebrow { margin-bottom: 12px; }
.story-copy h3 { font-size: 30px; margin-bottom: 16px; }
.story-copy p { font-size: 16px; }
.story-visual { padding: 0; min-width: 0; }
.story-copy { min-width: 0; }

.mock {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  height: 320px;
  background: linear-gradient(150deg, var(--m1, #1c1408) 0%, var(--m2, #0d0e14) 100%);
  color: var(--fg-dim);
  text-align: center;
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 55%);
}
.mock-icon { font-size: 34px; opacity: .85; position: relative; }
.mock-label { font-size: 13px; letter-spacing: .03em; position: relative; color: var(--fg-mute); }

/* ===== Story figures — крупные содержательные визуалы вместо иконки-заглушки ===== */
.story-fig {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* --- Выручка: крупные KPI-цифры + столбчатый график --- */
.revenue-fig { background: linear-gradient(150deg, #2a1a10 0%, #14161c 100%); }
.revenue-kpis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.revenue-kpis > div { display: flex; flex-direction: column; gap: 6px; }
.rk-num { font-size: 26px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.rk-num.accent { color: var(--accent-warm); }
.rk-label { font-size: 11.5px; color: var(--fg-mute); letter-spacing: .02em; }
.revenue-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.revenue-bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-warm) 0%, var(--accent-warm2) 100%);
  opacity: .85;
}
.revenue-bar:last-child { opacity: 1; }

/* --- Обновления: список статусов синхронизации --- */
.updates-fig { background: linear-gradient(150deg, #182338 0%, #0d0e14 100%); justify-content: center; gap: 14px; }
.update-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}
.update-row > div { flex: 1; min-width: 0; }
.update-dot-ico {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(126, 230, 160, .5);
}
.update-dot-ico.loading {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(255, 209, 128, .5);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.update-dot-ico.idle { background: var(--fg-mute); box-shadow: none; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.update-title { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.update-sub { font-size: 12px; color: var(--fg-mute); margin-top: 2px; }
.update-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(126, 230, 160, .12);
  color: var(--ok);
}
.update-badge.pending { background: rgba(255, 209, 128, .14); color: var(--warn); }

/* --- Рост: сетка ячеек шлемов, часть подсвечена --- */
.growth-fig { background: linear-gradient(150deg, #2a1a10 0%, #1c1408 100%); align-items: center; }
.growth-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 280px;
}
.growth-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.growth-cell.active {
  background: linear-gradient(150deg, var(--accent-warm) 0%, var(--accent-warm2) 100%);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(255, 176, 102, .35);
}
.growth-caption { text-align: center; }
.growth-num { display: block; font-size: 22px; font-weight: 600; color: var(--fg); }
.growth-label { display: block; font-size: 12px; color: var(--fg-mute); margin-top: 4px; }

/* ===== Feature grid (компактные факты) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card { padding: 26px; }
.feature-card .fi { font-size: 26px; margin-bottom: 14px; display: block; }
.feature-card h4 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 13.5px; }

/* ===== Demo CTA block ===== */
.demo-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
}
.demo-block .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(126, 230, 160, .12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.demo-block h3 { font-size: 28px; margin-bottom: 10px; }
.demo-block p { max-width: 480px; margin: 0 auto 24px; }

/* ===== Footer ===== */
.footer {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2a2b33;
  font-size: 13px;
  color: var(--fg-mute);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .btn-ghost { display: none; }
  .header > .btn-accent { display: none; }
  .nav-toggle { display: flex; }
  .header { padding: 16px 20px; gap: 10px; }
  .story-row, .story-row.reverse { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .story-row.reverse .story-visual { order: 1; }
  .story-row.reverse .story-copy { order: 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { height: auto; padding-top: 40px; padding-bottom: 40px; }
  .hero-static { flex-direction: column; padding-left: 24px; padding-right: 24px; text-align: center; }
  .hero-copy { max-width: 100%; }
  .hero-points { align-items: center; }
  .hero-points li { text-align: left; }
  .hero-visual { position: static; width: 100%; margin-top: 24px; transform: none; }
}
@media (max-width: 720px) {
  .section, .section-tight { padding: 50px 16px; }
  .hero-copy h1 { font-size: 34px; }
  .story-row { padding: 28px 20px; gap: 32px; }
  .feature-card { padding: 20px; }
  .revenue-kpis { gap: 8px; }
}

/* ===== Страница "Возможности" ===== */
.features-toc { max-width: 900px; margin: 0 auto 40px; padding: 24px 28px; }
.features-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 20px;
}
.features-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--fg-dim);
  transition: background .15s, color .15s;
}
.features-toc-link:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.features-toc-icon { flex-shrink: 0; font-size: 17px; }

.features-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-block {
  padding: 32px;
  scroll-margin-top: 24px;
}
.feature-block-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.feature-block-copy h3 { font-size: 22px; margin-bottom: 10px; }
.feature-block-copy p { font-size: 15.5px; color: var(--fg-dim); line-height: 1.6; max-width: 640px; }

.feat-shot-ready {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.feat-shot-ready img { display: block; width: 100%; height: auto; }
.feat-shot-slot {
  margin-top: 18px;
  padding: 40px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .015);
}
.feat-shot-slot-icon { font-size: 26px; opacity: .45; margin-bottom: 8px; }
.feat-shot-slot-desc { font-size: 12.5px; color: var(--fg-mute); max-width: 460px; margin: 0 auto; line-height: 1.5; }

/* ===== Страница "О нас" ===== */
.about-stats {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 32px 40px;
}
.about-story {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 40px;
}
.about-story h3 { font-size: 20px; margin-bottom: 16px; }
.about-story p { font-size: 15.5px; color: var(--fg-dim); line-height: 1.7; }
.about-story p + p { margin-top: 14px; }
.about-values { margin-top: 0; }

/* ===== Страница "Тарифы" ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 56px;
}
.pricing-grid-single { grid-template-columns: 1fr; max-width: 480px; }
.pricing-card { padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pricing-card-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
}
.pricing-card-name { font-size: 26px; font-weight: 700; margin: 10px 0 8px; color: var(--fg); }
.pricing-card-price { font-size: 34px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.pricing-card-price span { font-size: 14px; font-weight: 500; color: var(--fg-mute); }
.pricing-card-note { font-size: 14px; color: var(--fg-mute); line-height: 1.5; margin-bottom: 4px; }
.pricing-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; text-align: left; width: 100%; }
.pricing-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.pricing-card .btn { margin-top: 28px; }
.pricing-modules-head { margin-top: 8px; }

/* ===== Страница "В разработке" ===== */
.roadmap-product { max-width: 860px; margin: 0 auto 32px; padding: 48px; }
.roadmap-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 209, 128, .14);
  color: var(--warn);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.roadmap-product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.roadmap-product-icon { font-size: 32px; flex-shrink: 0; }
.roadmap-product h2 { font-size: 26px; }
.roadmap-product .tagline { font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.roadmap-product .desc { font-size: 15.5px; color: var(--fg-dim); line-height: 1.7; margin-bottom: 20px; }
.roadmap-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.roadmap-product .pricing-list { margin-top: 0; margin-bottom: 28px; }

/* ===== Страница "Контакты" ===== */
.contacts-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}
.contacts-info { padding: 32px; }
.contacts-info-row { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.contacts-info-row:last-child { border-bottom: none; }
.contacts-info-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-mute); margin-bottom: 4px; }
.contacts-info-row a, .contacts-info-row span { font-size: 16px; color: var(--fg); }
.contacts-info-row a:hover { color: var(--accent); }

.contacts-form-card { padding: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-mute); }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-size: 14.5px;
  color: var(--fg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 11px 14px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .06);
}
.contact-form button { align-self: flex-start; }
.contact-form-error { font-size: 13px; color: #ff8a8a; margin: 0; }
.contact-form-done { text-align: center; padding: 40px 20px; }
.contact-form-done-icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(126, 230, 160, .14);
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.contact-form-done p { color: var(--fg-dim); font-size: 15px; }

@media (max-width: 720px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .feature-block { padding: 24px; }
}

/* ===== Мобильные доводки (ОБЯЗАТЕЛЬНО в конце файла — у .pricing-card/.roadmap-product/
   .about-stats/.about-story есть свои базовые правила ниже по файлу в разделах страниц;
   при равной специфичности побеждает то, что идёт ПОЗЖЕ в файле, а не то, что внутри
   @media — эти overrides должны физически идти после всех page-специфичных секций) ===== */
@media (max-width: 720px) {
  .pricing-card { padding: 28px 20px; }
  .roadmap-product { padding: 28px 20px; }
  .roadmap-product-head > div { flex: 1; min-width: 0; }
  .about-stats { padding: 24px 20px; }
  .about-story { padding: 28px 20px; }

  /* единый читаемый размер текста-абзацев вместо разнобоя 13.5-16px */
  .feature-card p { font-size: 15px; }
  .pricing-list li { font-size: 15px; }
  .chip-tag { font-size: 14px; }
  .nav-mobile a { font-size: 16px; }
}
