/* ═══════════════════════════════════════════════════════════════════════════
   TIFAN — лендинг tifan.ru

   THESIS: страница — не рассказ о приборе, а сам прибор. Тот же угольный
   «Обсидиан», те же панели, волосяные линии и светящиеся индикаторы, что в
   продукте. Отказ от канона категории: градиентный хиро, три одинаковые
   карточки с иконками, стена логотипов, обещания роста.
   OWN-WORLD: матовый уголь #141416 с холодным боковым светом сверху-слева;
   панели #1e1e22 на волосяной рамке rgba(255,255,255,.08); единственный
   акцент — холодный свет #d2d8e2 (без фиолетового); зелёный/красный/янтарный
   только как индикаторы состояния. Табличные цифры. Evolventa в заголовках.
   STORY: селлер Ozon понимает — считают по его данным, показывают факты и
   риски, решает он. Оставляет заявку.
   FIRST VIEWPORT: слева тезис и кнопка заявки, справа живая панель сводки с
   янтарной строкой риска. На мобильном панель уходит под тезис.
   FORM: канон B2B-лендинга, закреплён брифом владельца, исполнен целиком в
   собственном мире продукта. Без ролла направлений.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Шрифт ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Evolventa';
  src: url('fonts/Evolventa-Bold.woff2') format('woff2');
  font-weight: 700;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2026, U+20BD, U+2116;
  font-style: normal;
  font-display: swap;
}

/* ── Токены ────────────────────────────────────────────────────────────── */
:root {
  --bg: #141416;
  --panel: #1e1e22;
  --panel-2: #17171a;
  --panel-head: #202024;
  --panel-sunk: #131315;

  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --line-strong: rgba(255, 255, 255, .16);

  --text: #eef0f4;
  --muted: #a2a7b2;
  --faint: #8b8f99; /* 5,1:1 на панели — прежний #7a7e88 давал только 4,1:1 */

  --accent: #d2d8e2;
  --accent-ink: #151517;

  --pos: #3ce0a4;
  --neg: #ff5f64;
  --warn: #f4b942;
  --info: #6eb4ff;

  --pos-bg: rgba(60, 224, 164, .12);
  --neg-bg: rgba(255, 95, 100, .12);
  --warn-bg: rgba(244, 185, 66, .12);
  --info-bg: rgba(110, 180, 255, .12);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --font-display: 'Evolventa', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, sans-serif;

  --gutter: 24px;
  --maxw: 1180px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ── База ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Холодный боковой свет — источник сцены, а не декоративный градиент.
   Прибит к самому верху страницы, как лампа над стойкой. */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(72% 90% at 4% -14%, rgba(210, 216, 226, .085) 0%, rgba(210, 216, 226, .028) 34%, transparent 62%),
    linear-gradient(126deg, #1d1d22 0%, #18181c 46%, #141416 88%);
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(210, 216, 226, .22); }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
.skip-2:focus { top: 60px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Табличные цифры — как в продукте, столбцы не «пляшут» */
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-head[data-stuck='true'] {
  background: rgba(19, 19, 21, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(150deg, #24252b, #15161a);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px rgba(0, 0, 0, .28);
}
.brand-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
}
.brand-bars b {
  width: 3px;
  border-radius: 4px;
  background: #d6d9e1;
  opacity: .92;
}
.brand-bars b:nth-child(1) { height: 6px; }
.brand-bars b:nth-child(2) { height: 11px; }
.brand-bars b:nth-child(3) { height: 16px; }
.brand-mark i {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 1px rgba(60, 224, 164, .32), 0 0 11px -1px rgba(60, 224, 164, .8);
  font-style: normal;
}
.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .16em;
}
.brand-sub {
  color: var(--faint);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .46em;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--text); }

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

.head-login {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.head-login:hover { color: var(--text); }

.site-head .menu-btn { display: none; }

/* Мобильное меню — раскрытие на <details>, без JS */
.mob-menu { display: none; position: relative; margin-left: auto; }
.mob-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.mob-menu summary::-webkit-details-marker { display: none; }
.mob-menu summary svg { transition: transform .18s var(--ease); }
.mob-menu[open] summary svg { transform: rotate(180deg); }
.mob-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  min-width: 216px;
  display: grid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .95);
  overflow: hidden;
  z-index: 50;
}
.mob-menu-panel a {
  padding: 12px 15px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mob-menu-panel a:last-child { border-bottom: 0; }
.mob-menu-panel a:active { background: rgba(255, 255, 255, .05); color: var(--text); }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -12px rgba(210, 216, 226, .8);
}
.btn-primary:hover {
  background: #e6eaf1;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 12px 26px -12px rgba(210, 216, 226, .9);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .075); border-color: var(--line-strong); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Секции ────────────────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }

.sec { padding-block: clamp(72px, 9vw, 118px); }
.sec + .sec { border-top: 1px solid var(--line-soft); }

.sec-title {
  font-size: clamp(28px, 3.5vw, 42px);
  max-width: 20ch;
}
.sec-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 62ch;
}
.sec-head { margin-bottom: clamp(38px, 5vw, 58px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

/* ── Первый экран ──────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 9px -1px rgba(244, 185, 66, .85);
  font-style: normal;
}

.hero h1 {
  font-size: clamp(33px, 4.5vw, 54px);
  letter-spacing: -.03em;
  line-height: 1.07;
}
.hero h1 .dim { color: var(--faint); display: block; }

.hero-lede {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-foot {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--faint);
  max-width: 48ch;
  line-height: 1.55;
}

/* ── Панель прибора (общий компонент мокапов) ──────────────────────────── */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .045);
}
/* Верхняя кромка панели ловит свет лампы сверху-слева */
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 216, 226, .5), rgba(210, 216, 226, .12) 42%, transparent 76%);
  pointer-events: none;
  z-index: 2;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.panel-head strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
}
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-pos { background: var(--pos-bg); color: var(--pos); border-color: rgba(60, 224, 164, .26); }
.chip-neg { background: var(--neg-bg); color: var(--neg); border-color: rgba(255, 95, 100, .26); }
.chip-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(244, 185, 66, .26); }
.chip-info { background: var(--info-bg); color: var(--info); border-color: rgba(110, 180, 255, .26); }
.chip-mute { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.led-pos { background: var(--pos); box-shadow: 0 0 0 1px rgba(60, 224, 164, .26), 0 0 10px -1px rgba(60, 224, 164, .6); }
.led-neg { background: var(--neg); box-shadow: 0 0 0 1px rgba(255, 95, 100, .24), 0 0 10px -1px rgba(255, 95, 100, .55); }
.led-warn { background: var(--warn); box-shadow: 0 0 0 1px rgba(244, 185, 66, .24), 0 0 10px -1px rgba(244, 185, 66, .55); }
.led-info { background: var(--info); box-shadow: 0 0 0 1px rgba(110, 180, 255, .24), 0 0 10px -1px rgba(110, 180, 255, .55); }

/* Сводка: показатели в ряд */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.metric {
  padding: 14px 13px;
  border-right: 1px solid var(--line-soft);
  min-width: 0;
}
.metric:last-child { border-right: 0; }
.metric-k {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-v {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.32vw, 19px);
  margin-top: 5px;
  letter-spacing: -.022em;
  white-space: nowrap;
}
.metric-d { font-size: 11.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up { color: var(--pos); }
.down { color: var(--neg); }
.flat { color: var(--faint); }

/* Строки-инструменты */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.row:last-child { border-bottom: 0; }
/* Строка отзывается на курсор, как в самом продукте */
.row { transition: background .16s ease; }
.row:hover { background: rgba(255, 255, 255, .035); }
.tbl tbody tr { transition: background .16s ease; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.row-t { color: var(--text); min-width: 0; }
.row-t span { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.row-v { text-align: right; white-space: nowrap; }

/* Таблица товара */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: right;
  font-weight: 600;
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: .02em;
  padding: 10px 12px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.total td {
  background: rgba(255, 255, 255, .035);
  font-weight: 700;
  border-top: 1px solid var(--line);
}
.tbl .sku { color: var(--faint); font-size: 11.5px; }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Мини-график */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .axis-t { fill: var(--faint); font-size: 9.5px; font-family: var(--font-body); }

/* Полоса-шкала: «сколько света забрала статья».
   Нейтральная холодная шкала — цветом отмечены только две строки:
   выросшая статья (красный) и то, что осталось (зелёный). */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; font-size: 13px; align-items: baseline; }
.bar-row .num { color: var(--muted); }
.bar-row .bar-fill { background: rgba(210, 216, 226, .34); }
.bar-row:nth-child(2) .bar-fill { background: rgba(210, 216, 226, .29); }
.bar-row:nth-child(3) .bar-fill { background: rgba(210, 216, 226, .24); }
.bar-row:nth-child(5) .bar-fill { background: rgba(210, 216, 226, .19); }
.bar-row:nth-child(6) .bar-fill { background: rgba(210, 216, 226, .15); }
.bar-row.is-alarm .num { color: var(--neg); }
.bar-row.is-alarm .bar-fill { background: var(--neg); }
.bar-row.is-left > span:first-child,
.bar-row.is-left .num { color: var(--pos); font-weight: 600; }
.bar-row.is-left .bar-fill { background: var(--pos); }

/* Подпись под панелью: откуда цифра и какое допущение */
.panel-note {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Метка «оценка» у прогнозных колонок */
.est {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border: 1px solid rgba(244, 185, 66, .4);
  border-radius: 3px;
  color: var(--warn);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.bar-track {
  grid-column: 1 / -1;
  display: block;   /* span по умолчанию строчный — без этого заливка не имеет размеров */
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.bar-fill { display: block; height: 100%; border-radius: 3px; }

/* ── Второй смысловой экран ───────────────────────────────────────────── */
.own-numbers { padding-top: 0; }
.own-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(210, 216, 226, .055), transparent 70%), var(--panel);
  box-shadow: 0 24px 70px -42px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.own-card h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  max-width: 14ch;
}
.own-card p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}
.own-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line-soft);
}
.own-points span {
  padding: 16px 18px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
}

/* ── Проблема ──────────────────────────────────────────────────────────── */
.problems {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.problem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.problem-i {
  margin-top: 7px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: grid;
  place-items: center;
}
.problem h3 { font-size: 18px; letter-spacing: -.015em; }
.problem p { margin-top: 9px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }

@media (min-width: 860px) {
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
}

/* ── Что делает / чего не делает ───────────────────────────────────────── */
.does {
  display: grid;
  gap: clamp(28px, 3.4vw, 44px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.does-item { border-top: 2px solid var(--line-strong); padding-top: 20px; }
.does-item h3 { font-size: 19px; }
.does-item p { margin-top: 11px; color: var(--muted); font-size: 15.5px; }

.limits {
  margin-top: clamp(44px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel-2);
  padding: clamp(24px, 3vw, 34px);
}
.limits h3 { font-size: 20px; }
.limits ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.limits li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  color: var(--muted);
  font-size: 15.5px;
  align-items: start;
}
.limits li svg { margin-top: 5px; color: var(--neg); }
.limits li b { color: var(--text); font-weight: 600; }

/* ── Сценарии ──────────────────────────────────────────────────────────── */
.scenes { display: grid; gap: clamp(56px, 7vw, 92px); }
.scene {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
/* Чётные сценарии зеркалим: панель уходит влево и получает широкую колонку —
   иначе таблица попадает в узкую и обрезается. */
.scene:nth-child(even) { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.scene:nth-child(even) .scene-text { order: 2; }
.scene-q {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 27px);
  letter-spacing: -.02em;
  line-height: 1.24;
}
.scene-q::before {
  content: '«';
  color: var(--faint);
}
.scene-q::after {
  content: '»';
  color: var(--faint);
}
.scene-a { margin-top: 18px; color: var(--muted); font-size: 15.8px; }
.scene-tag {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ── Функциональные блоки ──────────────────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
}
.module {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 21px 0;
  border-bottom: 1px solid var(--line-soft);
}
.module-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.module-h h3 { font-size: 16.5px; letter-spacing: -.01em; }
.module p { margin-top: 7px; color: var(--muted); font-size: 14.8px; max-width: 52ch; }
.tag-soon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── Как это работает ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step {
  padding: 0 clamp(16px, 2vw, 26px) 0 0;
  position: relative;
}
.step-n {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.step-n b {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--faint);
  font-weight: 700;
  letter-spacing: .04em;
}
.step-n .track {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.step-n .track::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px -1px rgba(210, 216, 226, .7);
}
.step h3 { font-size: 17px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.data-note {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.data-note div { background: var(--panel-2); padding: 22px 24px; }
.data-note h4 { font-size: 15px; font-family: var(--font-display); }
.data-note p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }



/* ── Тарифы ───────────────────────────────────────────────────────────── */
.pricing .sec-title { max-width: 14ch; }
.tariff-head .sec-lede { max-width: 70ch; }
.tariff-principle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(210, 216, 226, .055), transparent 70%), var(--panel);
  box-shadow: 0 24px 70px -42px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.tariff-principle p {
  margin-top: 12px;
  max-width: 70ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
}
.tariff-principle .btn { flex-shrink: 0; }
.tariff-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: 0 18px 48px -36px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tariff-card.featured {
  border-color: rgba(110, 180, 255, .32);
  background: linear-gradient(180deg, rgba(110, 180, 255, .07), transparent 36%), var(--panel);
}
.tariff-top {
  min-height: 170px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.tariff-name {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tariff-price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1;
  color: var(--text);
}
.tariff-price span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
}
.tariff-top p { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.tariff-specs { margin: 0; padding: 16px 0 0; display: grid; gap: 0; }
.tariff-specs div {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tariff-specs div:last-child { border-bottom: 0; }
.tariff-specs dt { color: var(--faint); font-size: 13px; }
.tariff-specs dd { margin: 0; color: var(--text); font-size: 13.5px; font-weight: 600; text-align: right; }
.tariff-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line-soft);
}
.tariff-rules div { padding: 20px 22px; background: var(--panel-2); }
.tariff-rules div:last-child { grid-column: 1 / -1; }
.tariff-rules span { color: var(--text); font-weight: 700; font-size: 14px; }
.tariff-rules p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ── Финальный CTA и модалка подключения ─────────────────────────────── */
.connect-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel-2);
  padding-block: clamp(30px, 4.5vw, 52px);
}
.connect-final > div { width: 100%; }
.connect-final h2 { font-size: clamp(30px, 4vw, 48px); max-width: 100%; }
.connect-final p { margin-top: 16px; color: var(--muted); max-width: 100%; }
.connect-final .connect-note { margin-top: 12px; color: var(--faint); font-size: 13.5px; }
.connect-final .btn { width: min(100%, 360px); }

@media (max-width: 900px) {
  .own-card { grid-template-columns: minmax(0, 1fr); }
  .own-points { grid-template-columns: minmax(0, 1fr); }
  .tariff-principle { align-items: flex-start; flex-direction: column; }
  .tariff-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariff-rules { grid-template-columns: minmax(0, 1fr); }
  .connect-final .btn { width: 100%; }
}

/* ── Подключение ───────────────────────────────────────────────────── */
.launch .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.launch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.launch-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 15.5px;
  align-items: start;
}
.launch-list li:first-child { border-top: 1px solid var(--line-soft); }
.launch-list svg { margin-top: 5px; color: var(--accent); }
.launch-list b { color: var(--text); font-weight: 600; }

/* ── Форма ─────────────────────────────────────────────────────────────── */
.apply { scroll-margin-top: 84px; }
.apply .wrap {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}
.apply .wrap.connect-final {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.apply .wrap.connect-final > div {
  width: 100%;
}
.apply .wrap.connect-final h2,
.apply .wrap.connect-final p {
  max-width: 100%;
}
.apply .wrap.connect-final .btn {
  justify-self: start;
  width: min(100%, 360px);
}
.apply-aside h2 { font-size: clamp(27px, 3.2vw, 38px); }
.apply-aside p { margin-top: 18px; color: var(--muted); font-size: 16px; }
.apply-facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.apply-facts li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
  align-items: start;
}
.apply-facts svg { margin-top: 4px; color: var(--pos); }

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.consent input[type='checkbox'] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #d2d8e2;
  cursor: pointer;
}
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent[data-invalid='true'] { color: var(--neg); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-submit .btn { padding-inline: 26px; }
.form-note { font-size: 12.5px; color: var(--faint); }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(21, 21, 23, .3);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
button[data-state='loading'] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  display: none;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.form-msg[data-show='true'] { display: flex; }
.form-msg[data-kind='ok'] { background: var(--pos-bg); border: 1px solid rgba(60, 224, 164, .28); color: #b9f2dc; }
.form-msg[data-kind='err'] { background: var(--neg-bg); border: 1px solid rgba(255, 95, 100, .28); color: #ffc7c9; }
.form-msg b { color: #fff; font-weight: 600; }
.form-msg svg { flex-shrink: 0; margin-top: 3px; }

/* ── Документ (политика конфиденциальности) ────────────────────────────── */
.doc { padding-block: clamp(48px, 7vw, 84px) clamp(64px, 8vw, 96px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc .updated { margin-top: 14px; color: var(--faint); font-size: 14px; }
.doc h2 { font-size: 19px; margin-top: 44px; }
.doc p, .doc li { color: var(--muted); font-size: 15.8px; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 9px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.doc .fill {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px dashed rgba(244, 185, 66, .45);
  border-radius: 4px;
  padding: 0 6px;
  font-size: .94em;
}
.doc .backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.doc .backlink:hover { color: var(--text); }
.head-right { margin-left: auto; }

/* ── Футер ─────────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel-sunk);
  padding-block: 54px 40px;
  position: relative;
  z-index: 1;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-about { margin-top: 16px; color: var(--faint); font-size: 14px; max-width: 46ch; }
.foot-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a,
.foot-col .foot-link {
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 14.5px;
  transition: color .18s ease;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.foot-col a:hover,
.foot-col .foot-link:hover { color: var(--text); }

.foot-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
}
.disclaimer {
  margin-top: 20px;
  font-size: 12.5px;
  color: #878b95;
  line-height: 1.55;
  max-width: 92ch;
}

/* ── Движение: приборы просыпаются ─────────────────────────────────────
   Один поставленный момент — панель зажигается один раз при появлении:
   холодный блик проходит по краю, строки набегают лесенкой. Контент
   виден по умолчанию: анимация включается только классом на <html>. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js-motion .panel[data-reveal]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 32%, rgba(210, 216, 226, .13) 46%, rgba(210, 216, 226, .03) 56%, transparent 68%);
  transform: translateX(-115%);
  opacity: 0;
}
.js-motion .panel[data-reveal].is-in::after {
  animation: sweep 1.15s var(--ease) .18s 1 both;
}
@keyframes sweep {
  0% { transform: translateX(-115%); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateX(115%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js-motion .panel[data-reveal].is-in::after { animation: none; }
  .btn:hover { transform: none; }
  .spinner { animation-duration: 0s; border-top-color: transparent; }
}

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .does { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .data-note { grid-template-columns: minmax(0, 1fr); }
  .apply .wrap, .launch .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .head-cta { display: none; }
  .head-login { display: none; }
  .site-head .menu-btn { display: inline-flex; }
  .mob-menu { display: block; }
  .scene, .scene:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .scene:nth-child(even) .scene-text { order: 0; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 15.5px; }
  .site-head .wrap { height: 60px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid-2 .field { margin-bottom: 16px; }
  .hero-actions .btn { width: 100%; }
  .problem { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .problem-i { margin-top: 0; }
  .row { grid-template-columns: 12px minmax(0, 1fr); row-gap: 6px; }
  .row-v { grid-column: 2; text-align: left; }
  .sec { padding-block: 62px; }
}

/* Узкий телефон: логотип, «Разделы» и «Подключиться» в шапку не влезали -
   страница становилась шире экрана (430 при 390, 12.09.2026). Кнопка из
   шапки прячется (такая же - сразу под заголовком), а в меню «Разделы»
   первым пунктом - «Подключиться», чтобы она была под рукой и после прокрутки. */
.mob-menu-cta { display: none; }
@media (max-width: 440px) {
  .site-head .menu-btn { display: none; }
  .mob-menu-cta { display: block; font-weight: 600; }
}
