/* =====================================================================
   AGENT5-AI — стили сайта
   Концепция: «приборная панель для взрослого бизнеса». Глубокий графит,
   красный Агент5 — как сигнал и свечение, а не заливка. Широкий дисплейный
   гротеск Unbounded перекликается с логотипом, текст — Golos Text,
   данные и подписи — JetBrains Mono. Все шрифты под лицензией OFL.
   ===================================================================== */

/* ---------- Шрифты (локально, работают через file://) ---------- */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('./assets/fonts/unbounded-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('./assets/fonts/unbounded-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url('./assets/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url('./assets/fonts/unbounded-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('./assets/fonts/unbounded-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('./assets/fonts/unbounded-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url('./assets/fonts/golos-text-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url('./assets/fonts/golos-text-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url('./assets/fonts/golos-text-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url('./assets/fonts/golos-text-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url('./assets/fonts/golos-text-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url('./assets/fonts/golos-text-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('./assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('./assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('./assets/fonts/jetbrains-mono-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('./assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }

/* ---------- Токены. Тёмная тема — основная ---------- */
:root {
  --bg: #0A0A0B;          /* фон страницы */
  --bg-2: #111114;        /* фон приподнятых блоков */
  --surface: rgba(255,255,255,.035);  /* стекло карточек */
  --line: rgba(255,255,255,.09);      /* тонкие линии 1px */
  --line-2: rgba(255,255,255,.16);
  --fg: #EDEDEF;          /* основной текст */
  --muted: #9C9CA6;       /* второстепенный текст (AA на --bg) */
  --brand: #B80000;       /* фирменный красный Агент5 — заливки, кнопки */
  --brand-ink: #FF4D4D;   /* красный для текста и линий на тёмном (AA) */
  --glow: rgba(184,0,0,.35);
  --noise-opacity: .05;
  --header-bg: rgba(10,10,11,.72);
  --spot: rgba(255,77,77,.13);

  --f-display: 'Unbounded', 'Golos Text', Arial, sans-serif;
  --f-body: 'Golos Text', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1360px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
:root[data-a5="light"] {
  --bg: #F3F4F6;
  --bg-2: #FFFFFF;
  --surface: rgba(255,255,255,.7);
  --line: rgba(10,10,11,.09);
  --line-2: rgba(10,10,11,.18);
  --fg: #0E0E11;
  --muted: #5A5A64;
  --brand: #B80000;
  --brand-ink: #B80000;
  --glow: rgba(184,0,0,.18);
  --noise-opacity: .035;
  --header-bg: rgba(243,244,246,.78);
  --spot: rgba(184,0,0,.07);
  color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
/* лёгкое зерно поверх фона */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 768px) { .wrap { padding-left: max(40px, env(safe-area-inset-left)); padding-right: max(40px, env(safe-area-inset-right)); } }

.eyebrow {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-ink); box-shadow: 0 0 12px var(--brand-ink); }
.accent { color: var(--brand-ink); }

/* ---------- Кнопки ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--ghost::after { background: linear-gradient(105deg, transparent 30%, var(--spot) 50%, transparent 70%); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 40px -12px var(--glow); }
.btn--primary:hover { background: #D00000; box-shadow: 0 14px 50px -10px var(--glow); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--fg); }

/* ---------- Прелоадер ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #0A0A0B;
  animation: pre-safety .4s 2.6s forwards; /* страховка: если JS упал, прелоадер исчезнет сам */
}
@keyframes pre-safety { to { opacity: 0; visibility: hidden; } }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.preloader__logo { width: 220px; clip-path: inset(0 100% 0 0); }
.preloader__count { font: 500 15px/1 var(--f-mono); color: #9C9CA6; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.preloader__pct { color: #FF4D4D; margin-left: 2px; }

/* ---------- Хедер ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; height: 76px; }
.header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.header__logo img { width: 132px; height: auto; }
.logo-light { display: none !important; }
[data-a5="light"] .logo-light { display: block !important; }
[data-a5="light"] .logo-dark { display: none !important; }
.header__product { font: 700 13px/1 var(--f-display); letter-spacing: .02em; padding-left: 14px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.header__product em { font-style: normal; color: var(--brand-ink); }
.nav { margin-left: auto; display: none; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 10px 12px; font-size: 14.5px; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .25s var(--ease); }
.nav__list a:hover { color: var(--fg); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1/1; transition: opacity .3s, transform .5s var(--ease); }
.i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-a5="light"] .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-a5="light"] .i-moon { opacity: 1; transform: none; }
.header__actions .btn { display: none; }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.burger span { width: 18px; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 16px var(--gutter-r) 28px var(--gutter); }
.mobile-menu__list { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu__list a { display: block; padding: 14px 0; font: 600 20px/1.2 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; }
@media (min-width: 640px) { .header__actions .btn { display: inline-flex; } }
@media (min-width: 1180px) { .nav { display: block; } .burger { display: none; } .header__actions { margin-left: 8px; } .mobile-menu { display: none !important; } }
@media (max-width: 420px) { .header__product { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 56px 96px; overflow-x: clip; }
.hero__title .line { display: block; }
.hero::before { /* мягкое красное свечение за сценой */
  content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; opacity: .55; z-index: -1;
}
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(44px, 7vw, 132px); line-height: .98; letter-spacing: -0.03em;
  margin: 0; text-wrap: balance;
}
.hero__title .w { display: inline-block; will-change: transform, opacity, filter; }
.hero__grid { display: grid; gap: 48px; margin-top: 52px; align-items: center; }
.hero__lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 52ch; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 24px; }
.hero__facts li { padding: 16px 0 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact__k { font: 600 15px/1.2 var(--f-display); letter-spacing: -.01em; }
.fact__v { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 140px; }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
}
@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- Сцена потока данных ---------- */
.scene { position: relative; margin: 0; max-width: 100%; }
.scene__svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene__svg text { font-family: var(--f-body); }
.scene__grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.scene__lines path { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.pk { fill: var(--brand-ink); }
.pk--out { fill: var(--fg); filter: none; }
.node rect { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; }
.node--1c .node__rows rect { fill: var(--surface); stroke: var(--line); }
.node__ico { fill: none; stroke: var(--brand-ink); stroke-width: 1.8; }
.t-title { font: 700 20px var(--f-display) !important; fill: var(--fg); }
.t-mono { font: 500 11.5px var(--f-mono) !important; fill: var(--muted); }
.t-dim { fill: var(--muted); }
.t-tag { font: 600 9.5px var(--f-mono) !important; letter-spacing: .12em; fill: var(--brand-ink); }
.t-core { font: 700 12.5px var(--f-display) !important; fill: #fff; letter-spacing: .02em; }
.t-ch { font: 600 14px var(--f-body) !important; fill: var(--fg); }
.core__body { fill: var(--brand); }
.core__ring { fill: none; stroke: var(--brand-ink); stroke-width: 1; stroke-dasharray: 3 7; transform-origin: 320px 220px; }
.core__shield { fill: none; stroke: #fff; stroke-width: 1.8; }
.core__check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch__dot { fill: var(--brand); }
.ch--own rect { stroke: var(--brand-ink); }
.ch__ico { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node, .scene__grid, .scene__lines, .answer {
  position: relative; width: min(360px, 100%); margin: 6px 0 0 auto;
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.answer__q { font-size: 13px; color: var(--muted); }
.answer__a { font-size: 15px; color: var(--fg); }
.answer__num { font: 700 24px/1.1 var(--f-display); letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.answer__file { justify-self: start; font: 500 12px var(--f-mono); color: var(--brand-ink); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.answer__note { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .answer { width: 100%; margin-top: 12px; } }
/* на широких экранах карточка встаёт в свободный угол под узлом 1С — без наложения */
@media (min-width: 1280px) { .answer { position: absolute; left: 0; bottom: 0; width: 52%; margin: 0; } }

/* ---------- Конфигурации (marquee) ---------- */
.configs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 28px; overflow: hidden; }
.configs__label { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.configs__label b { color: var(--fg); font-weight: 600; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 22px; padding-right: 22px; font: 500 clamp(22px, 2.6vw, 38px)/1.1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee__item i { width: 9px; height: 9px; border-radius: 2px; background: var(--brand-ink); transform: rotate(45deg); flex-shrink: 0; }
.marquee__item span.dim { color: var(--muted); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }


/* =====================================================================
   Секции — общие
   ===================================================================== */
.sec-head { max-width: 860px; margin-bottom: 56px; }
.sec-title { font: 600 clamp(34px, 4.6vw, 72px)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.sec-lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.soon { font-style: normal; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #C98A1A; border: 1px solid rgba(201,138,26,.45); padding: 4px 7px; border-radius: 6px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }

/* =====================================================================
   7. Калькулятор
   ===================================================================== */
.calc { padding-block: 120px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .calc { padding-block: 180px; } }
.calc__box { position: relative; border: 1px solid var(--line-2); border-radius: 28px; background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.calc__progress { height: 2px; background: var(--line); }
.calc__bar { display: block; height: 100%; background: var(--brand-ink); transform-origin: left; transform: scaleX(.25); transition: transform .7s var(--ease); }
.calc__steps { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.calc__steps button { background: none; border: 0; color: var(--muted); font: 500 14px/1 var(--f-body); padding: 18px 14px; white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.calc__steps b { font: 500 12px var(--f-mono); color: var(--muted); margin-right: 6px; }
.calc__steps button.is-active { color: var(--fg); border-bottom-color: var(--brand-ink); }
.calc__steps button.is-active b, .calc__steps button.is-done b { color: var(--brand-ink); }
.calc__body { display: grid; gap: 0; }
.calc__stage { padding: 32px 22px 24px; min-width: 0; }
.calc__panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__q { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 30px; padding: 0; }
.field { margin-bottom: 34px; }
.field__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.field__row label, .field__label { font-size: 16px; color: var(--fg); max-width: 46ch; }
.field__label { margin: 0 0 14px; }
.field__val { font: 600 26px/1 var(--f-display); letter-spacing: -.02em; color: var(--brand-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__scale { display: flex; justify-content: space-between; font: 500 11.5px var(--f-mono); color: var(--muted); margin-top: 10px; }
.field__err { display: block; font-style: normal; font-size: 13px; color: var(--brand-ink); margin-top: 8px; }

/* ползунок */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --p: 50%; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand-ink) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brand-ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand-ink); box-shadow: 0 0 0 6px var(--glow); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand-ink); }

/* чипы, сегменты, переключатели */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip input, .seg__opt input, .toggle input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s; }
.chip input:checked + span { border-color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.chip input:focus-visible + span, .seg__opt input:focus-visible + span, .toggle input:focus-visible + .toggle__ui, .check input:focus-visible + .check__ui { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--line-2); margin-bottom: 30px; }
.seg__opt span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 12px; font-size: 15px; cursor: pointer; color: var(--muted); transition: background-color .25s var(--ease), color .25s; }
.seg__opt input:checked + span { background: var(--brand); color: #fff; }
.toggles { display: grid; gap: 14px; margin-top: 24px; }
.toggle { position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.toggle__ui { flex-shrink: 0; width: 46px; height: 26px; border-radius: 26px; background: var(--line-2); position: relative; transition: background-color .3s var(--ease); margin-top: 1px; }
.toggle__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--brand); }
.toggle input:checked + .toggle__ui::after { transform: translateX(20px); background: #fff; }
.toggle__text { font-size: 15.5px; line-height: 1.4; }
.toggle__text small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* живая панель */
.calc__live { border-top: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-content: start; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.calc__live > .res__label { grid-column: 1 / -1; }
.live__row { display: flex; flex-direction: column; gap: 4px; }
.live__row span { font-size: 13.5px; color: var(--muted); }
.live__num { font: 600 clamp(26px, 2.6vw, 40px)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live__plan { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.live__plan .res__label { width: 100%; }
.live__plan b { font: 600 18px var(--f-display); }
.live__plan span:last-child { color: var(--muted); font-size: 14px; }
.res__label { display: block; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1024px) {
  .calc__body { grid-template-columns: minmax(0, 1fr) 340px; }
  .calc__stage { padding: 48px 48px 32px; }
  .calc__live { border-top: 0; border-left: 1px solid var(--line); padding: 48px 32px; grid-template-columns: 1fr; gap: 26px; }
  .calc__box.is-result .calc__body { grid-template-columns: minmax(0, 1fr); }
}
.calc__box.is-result .calc__live { display: none; }

/* навигация шагов */
.calc__nav { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.calc__nav .btn[hidden] { display: none; }
.calc__nav #calc-next { margin-left: auto; }
@media (min-width: 1024px) { .calc__nav { padding: 22px 48px; } }
@media (max-width: 767px) {
  .calc__nav .btn { padding: 0 16px; }
  .calc__nav { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 5; background: var(--bg); }
  .calc__nav .btn { flex: 1; }
}
.calc__box.is-result .calc__nav { display: none; }

/* результат */
.res__hero { display: grid; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.res__big { display: block; margin-top: 10px; }
.res__big b { font: 600 clamp(64px, 9vw, 140px)/.9 var(--f-display); letter-spacing: -.04em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.res__big small { display: block; font-size: 16px; color: var(--muted); margin-top: 10px; }
.res__side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.res__mid { display: block; margin-top: 8px; font: 600 clamp(22px, 2.4vw, 34px)/1.1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .res__hero { grid-template-columns: 1.2fr 1fr; align-items: end; } .res__side { grid-template-columns: 1fr; } }
.res__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.res__rate label { font-size: 15px; color: var(--muted); }
.input { height: 50px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 500 16px var(--f-body); transition: border-color .25s var(--ease); }
.input:focus { outline: none; border-color: var(--brand-ink); }
.input[aria-invalid="true"] { border-color: var(--brand-ink); }
.input--num { width: 140px; font: 600 18px var(--f-mono); font-variant-numeric: tabular-nums; }
.res__list { margin: 0; padding: 12px 0 0; display: grid; }
.res__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.res__row dt { color: var(--muted); }
.res__row dd { margin: 0; font: 500 15.5px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res__row.is-total dt { color: var(--fg); font-weight: 600; }
.res__row.is-total dd { color: var(--brand-ink); font-weight: 600; }
.res__note { font-size: 13.5px; color: var(--muted); margin: 18px 0 0; max-width: 80ch; }
.res__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 560px) { .res__cta .btn { flex: 1 1 100%; } .res__side { grid-template-columns: 1fr; } }

/* форма заявки */
.lead { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 28px; background: var(--surface); padding: 32px 22px; scroll-margin-top: 100px; }
@media (min-width: 1024px) { .lead { padding: 48px; } }
.lead__head { margin-bottom: 26px; }
.lead__head .sec-lead { margin-top: 8px; }
.lead__head .calc__q { margin-bottom: 0; }
.lead__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .lead__grid { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 8px; }
.fld > span { font-size: 14px; color: var(--muted); }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14.5px; cursor: pointer; }
.check__ui { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check input:checked + .check__ui { background: var(--brand); border-color: var(--brand); }
.check input:checked + .check__ui::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--brand-ink); }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.lead__status { margin: 0; font-size: 14.5px; color: var(--muted); }
.lead__status.is-ok { color: #3BB273; }
.lead__status.is-err { color: var(--brand-ink); }
.btn:disabled { opacity: .6; cursor: progress; }


/* =====================================================================
   Общие секции
   ===================================================================== */
.sec { padding-block: 120px; position: relative; }
@media (min-width: 1024px) { .sec { padding-block: 170px; } }
.sec + .sec { border-top: 1px solid var(--line); }

/* ---------- 5. Проблема → решение ---------- */
.problem__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .problem__grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.problem__tag { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.problem__tag--ok { color: var(--brand-ink); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: c; }
.chain li { position: relative; display: grid; gap: 4px; padding: 20px 22px 20px 64px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); counter-increment: c; }
.chain li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 22px; top: 21px; font: 500 13px var(--f-mono); color: var(--muted); }
.chain__who { font: 600 17px/1.2 var(--f-display); letter-spacing: -.01em; }
.chain__what { color: var(--muted); font-size: 15.5px; }
.chain__end { border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent) !important; }
.chain__end .chain__what { color: var(--fg); }
.phone { max-width: 440px; border: 1px solid var(--line-2); border-radius: 30px; padding: 16px; background: var(--bg-2); display: grid; gap: 10px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.phone__bar { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
.phone__ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 11px var(--f-display); }
.phone__time { margin-left: auto; font: 500 12px var(--f-mono); color: var(--muted); }
.bubble { margin: 0; max-width: 88%; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.bubble--me { justify-self: end; background: var(--brand); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.bubble--file { display: flex; align-items: center; gap: 10px; font: 500 14px var(--f-mono); }
.file-chip { font: 700 10px var(--f-mono); background: var(--brand); color: #fff; border-radius: 6px; padding: 4px 6px; }
.phone__note { margin: 4px 0 0; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.problem__result { margin: 22px 0 0; font-size: 17px; color: var(--muted); }
.problem__result b { color: var(--fg); }

/* ---------- 6. Bento ---------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } .card--xl { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, minmax(0,1fr)); } .card--xl { grid-column: span 2; grid-row: span 2; } }
.card { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; background: var(--surface); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card::before { /* spotlight-follow: координаты --mx/--my задаёт app.js */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); margin-bottom: 26px; }
.card__ico svg, .sec-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font: 600 21px/1.2 var(--f-display); letter-spacing: -.015em; margin: 0 0 10px; }
.card--xl .card__title { font-size: clamp(26px, 2.6vw, 40px); max-width: 16ch; }
.card__text { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.qs { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.qs li { padding: 10px 16px; border-radius: 999px 999px 999px 6px; background: color-mix(in srgb, var(--brand) 18%, transparent); border: 1px solid color-mix(in srgb, var(--brand-ink) 35%, transparent); font-size: 14.5px; }

/* ---------- 8. Как это работает ---------- */
.how__wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .how__wrap { grid-template-columns: 5fr 7fr; gap: 64px; } .how__head { position: sticky; top: 140px; align-self: start; } }
.how__progress { display: none; }
@media (min-width: 1024px) { .how__progress { display: block; width: 2px; height: 160px; background: var(--line); margin-top: 40px; overflow: hidden; } .how__progress span { display: block; width: 100%; height: 100%; background: var(--brand-ink); transform-origin: top; transform: scaleY(0); } }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how__step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color .5s var(--ease), background-color .5s var(--ease); }
@media (min-width: 1024px) { .how__step { min-height: 38vh; align-items: center; } }
.how__step.is-on { border-color: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
.how__num { font: 600 clamp(36px, 4vw, 60px)/1 var(--f-display); letter-spacing: -.03em; color: var(--line-2); transition: color .5s var(--ease); }
.how__step.is-on .how__num { color: var(--brand-ink); }
.how__k { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.how__step h3 { font: 600 clamp(20px, 1.8vw, 26px)/1.2 var(--f-display); letter-spacing: -.015em; margin: 8px 0 8px; }
.how__step p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 52ch; }

/* ---------- 9. Сценарии ---------- */
.sc-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .sc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1280px) { .sc-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.sc { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-height: 300px; overflow: hidden; outline-offset: 4px; }
.sc__area { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.sc__q { margin: 0; font: 600 20px/1.25 var(--f-display); letter-spacing: -.015em; }
.sc__ba { margin-top: auto; display: grid; gap: 10px; }
.sc__ba p { margin: 0; font-size: 14.5px; color: var(--muted); display: grid; gap: 2px; }
.sc__ba b { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.sc__ba p:last-child b { color: var(--brand-ink); }
/* hover-раскрытие: на устройствах с мышью «До/После» проявляется при наведении */
@media (hover: hover) and (pointer: fine) {
  .sc__ba { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .sc:hover .sc__ba, .sc:focus-visible .sc__ba, .sc:focus-within .sc__ba { opacity: 1; transform: none; }
  .sc::after { content: "Наведите — покажем до и после"; position: absolute; left: 24px; bottom: 24px; font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); transition: opacity .3s; }
  .sc:hover::after, .sc:focus-visible::after { opacity: 0; }
}

/* ---------- 10. Безопасность ---------- */
.security__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .security__grid { grid-template-columns: 5fr 7fr; gap: 64px; } .security__grid > div { position: sticky; top: 140px; align-self: start; } }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .sec-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.sec-list li { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sec-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.sec-list h3 { font: 600 17px/1.25 var(--f-display); letter-spacing: -.01em; margin: 2px 0 6px; }
.sec-list p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 11. Типовые результаты ---------- */
.cases__list { display: grid; gap: 14px; }
@media (min-width: 1024px) { .cases__list { grid-template-columns: 1fr 1fr; } }
.case { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: var(--surface); display: grid; gap: 22px; }
.case__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.case__head h3 { font: 600 22px/1.2 var(--f-display); letter-spacing: -.015em; margin: 0; }
.case__head span { color: var(--muted); font-size: 14.5px; }
.case__tag { margin-left: auto; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 6px; }
.case__ba { display: grid; gap: 12px; }
@media (min-width: 640px) { .case__ba { grid-template-columns: 1fr 1fr; } }
.case__ba p { margin: 0; font-size: 15px; color: var(--muted); display: grid; gap: 4px; }
.case__ba b { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.case__ba p:last-child b { color: var(--brand-ink); }
.case__nums { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.case__nums span { display: block; font-size: 12.5px; color: var(--muted); }
.case__nums b { font: 600 clamp(18px, 1.6vw, 24px)/1.2 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- 12. Сравнение ---------- */
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp tbody th { font-weight: 600; width: 22%; }
.cmp td { color: var(--muted); }
.cmp td span:last-child { display: inline; }
.cmp .is-us { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--fg); }
.cmp thead .is-us { color: var(--brand-ink); font-weight: 700; }
.m { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; border: 1.5px solid var(--muted); }
.m--full { background: var(--brand-ink); border-color: var(--brand-ink); }
.m--half { background: linear-gradient(90deg, var(--muted) 50%, transparent 50%); }
.cmp__legend { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cmp__legend .m { margin: 0 4px 0 14px; } .cmp__legend .m:first-child { margin-left: 0; }

/* ---------- 13. Видео ---------- */
.video__ph { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(60% 80% at 70% 20%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%), linear-gradient(160deg, var(--bg-2), var(--bg)); }
.video__play { width: 88px; height: 88px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand) 18%, transparent); }
.video__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video__cap { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 14. Тарифы ---------- */
.plans { display: grid; gap: 14px; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 30px 30px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.plan.is-hot { border-color: color-mix(in srgb, var(--brand-ink) 60%, transparent); box-shadow: 0 30px 80px -40px var(--glow); }
.plan::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%); }
.plan:hover::before { opacity: 1; }
.plan__tag { position: absolute; top: 22px; right: 22px; font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 6px 10px; border-radius: 8px; }
.plan__name { font: 600 24px var(--f-display); letter-spacing: -.02em; margin: 0; }
.plan__price { margin: 12px 0 0; display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font: 600 clamp(36px, 3.4vw, 52px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); }
.plan__per { margin: 0 0 18px; color: var(--brand-ink); font-size: 14.5px; font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--brand-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan li .soon { margin-left: 6px; }
.plan__extra { margin: 18px 0 18px; color: var(--muted); font-size: 14px; }
.plan .btn { width: 100%; }
.plans__note { margin: 22px 0 0; color: var(--muted); font-size: 14.5px; max-width: 90ch; }

/* ---------- 15. FAQ ---------- */
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 64px; } .faq__grid > div:first-child { position: sticky; top: 140px; align-self: start; } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font: 600 clamp(17px, 1.4vw, 20px)/1.3 var(--f-display); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .4s var(--ease), border-color .3s; }
.qa summary i svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; }
.qa[open] summary i { transform: rotate(45deg); border-color: var(--brand-ink); }
.qa__a p { margin: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ---------- 16. CTA ---------- */
.cta__box { display: grid; gap: 40px; border: 1px solid var(--line-2); border-radius: 32px; padding: 36px 22px; background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), var(--surface); }
@media (min-width: 1024px) { .cta__box { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px; } }
.cta__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.cta__points li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.cta__points li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--brand-ink); }
.demo-form { align-self: center; }

/* ---------- 17. Футер (без анимации) ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 32px; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand img { width: 160px; }
.footer__slogan { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__nav a, .footer__contacts a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--fg); }
.footer__contacts { display: grid; gap: 10px; align-content: start; }
.footer__label { margin: 0 0 4px; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__contacts .footer__phone { font: 600 20px var(--f-display); color: var(--fg); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.footer__legal p { margin: 0; }
.footer__legal b { color: var(--fg); font-weight: 600; }
.footer__bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
.footer .logo-light { display: none !important; }
[data-a5="light"] .footer .logo-light { display: block !important; }
[data-a5="light"] .footer .logo-dark { display: none !important; }

/* ---------- 18. Cookie ---------- */
.cookie { position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie p { margin: 0; flex: 1 1 260px; font-size: 14px; color: var(--muted); }
.cookie a { color: var(--fg); }

/* ---------- Заглушка этапа ---------- */
.stage-note { padding-block: 120px; }
.stage-note__text { font: 500 clamp(20px, 2vw, 28px)/1.35 var(--f-display); letter-spacing: -.01em; max-width: 30ch; color: var(--muted); margin: 0; }

/* ---------- Курсор: фирменная стрелка ----------
   Нативный CSS-курсор — без задержек и лишнего JS. Над ссылками и кнопками стрелка краснеет. */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3l17 8.6-7.4 1.9L10.4 21z' fill='%230A0A0B' stroke='%23FFFFFF' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='13.5' r='1.6' fill='%23FF4D4D'/%3E%3C/svg%3E") 4 3, auto; }
  a, button, label, summary, [role="button"], .btn { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3l17 8.6-7.4 1.9L10.4 21z' fill='%23B80000' stroke='%23FFFFFF' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='13.5' r='1.6' fill='%23FFFFFF'/%3E%3C/svg%3E") 4 3, pointer; }
  input, textarea { cursor: text; }
}

/* ---------- Свечение за курсором ---------- */
.spotlight {
  position: fixed; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--spot), transparent 72%);
  opacity: 0; transition: opacity .6s var(--ease); will-change: transform;
}
.spotlight.is-live { opacity: 1; }

/* ---------- Доступность: меньше движения ---------- */
@media (hover: none), (pointer: coarse) { .js .preloader { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js .preloader { display: none; }
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* заголовки в узких «липких» колонках — компактнее */
@media (min-width: 1024px) {
  .how__head .sec-title, .security__grid .sec-title, .faq__grid .sec-title { font-size: clamp(32px, 3.3vw, 54px); }
}
.sc { min-height: 260px; }
.case__nums b { white-space: nowrap; }
@media (max-width: 480px) { .case__nums { grid-template-columns: 1fr 1fr; } .case__nums div:last-child { grid-column: 1 / -1; } }

/* =====================================================================
   Страница политики ПДн
   ===================================================================== */
.policy { padding-block: 64px 120px; }
.policy__head { max-width: 900px; margin-bottom: 56px; }
.policy__head .sec-title { font-size: clamp(32px, 4vw, 60px); }
.policy-back { display: inline-flex !important; }
.policy__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .policy__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; } .policy__toc { position: sticky; top: 110px; align-self: start; } }
.policy__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.policy__toc a { color: var(--muted); text-decoration: none; }
.policy__toc a:hover { color: var(--fg); }
.policy__text { max-width: 72ch; }
.policy__text section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.policy__text h2 { font: 600 clamp(20px, 1.8vw, 26px)/1.25 var(--f-display); letter-spacing: -.015em; margin: 0 0 16px; }
.policy__text p, .policy__text li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.policy__text p { margin: 0 0 12px; }
.policy__text b { color: var(--fg); font-weight: 600; }
.policy__text ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.policy__text a { color: var(--brand-ink); }
.policy-page .header__actions { margin-left: auto !important; }

/* =====================================================================
   Фирменный скроллбар страницы
   ===================================================================== */
html { scrollbar-width: thin; scrollbar-color: var(--brand) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-ink), var(--brand)); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-ink); }

/* ---------- Навигатор-скролл с тегами разделов (десктоп) ---------- */
.rail { display: none; }
@media (min-width: 1280px) and (hover: hover) {
  .rail { display: block; position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); top: 50%; transform: translate(12px, -50%); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .rail.is-visible { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
}
.rail__track { position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.rail__fill { position: absolute; inset: 0; background: var(--brand-ink); transform-origin: top; transform: scaleY(0); }
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.rail__list a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; height: 14px; }
.rail__list i { width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); border: 1px solid var(--line-2); background: var(--bg); transition: background-color .3s, border-color .3s, transform .3s var(--ease); flex-shrink: 0; }
.rail__tag { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--bg-2) 90%, transparent); border: 1px solid var(--line); opacity: 0; transform: translateX(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s; pointer-events: none; }
.rail:hover .rail__tag { opacity: 1; transform: none; }
.rail__list a.is-on .rail__tag { opacity: 1; transform: none; color: var(--fg); border-color: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
.rail__list a.is-on i { background: var(--brand-ink); border-color: var(--brand-ink); transform: rotate(45deg) scale(1.15); }
.rail__list a:hover i { border-color: var(--brand-ink); }
.rail__list a:hover .rail__tag { color: var(--fg); }
.rail:not(:hover) .rail__list a.is-on .rail__tag { opacity: .9; }

/* =====================================================================
   Слайдер диалогов
   ===================================================================== */
.dlg { display: grid; gap: 14px; max-width: 480px; }
.dlg__tags { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.dlg__tags::-webkit-scrollbar { height: 4px; }
.dlg__tags::-webkit-scrollbar-thumb { border: 0; border-radius: 4px; background: var(--line-2); }
.dlg__tag { flex-shrink: 0; scroll-snap-align: start; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 13.5px var(--f-body); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s; }
.dlg__tag:hover { color: var(--fg); }
.dlg__tag.is-on { color: #fff; background: var(--brand); border-color: var(--brand); }
.dlg .phone { max-width: none; }
.dlg__chat { display: grid; gap: 10px; align-content: start; min-height: 310px; }
@media (max-width: 560px) { .dlg__chat { min-height: 360px; } }
.dlg__ctrl { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.dlg__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: border-color .25s; }
.dlg__btn:hover { border-color: var(--brand-ink); }
.dlg__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dlg__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.dlg__bar span { display: block; height: 100%; background: var(--brand-ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Вопросы по ролям в карточке «Возможности» ---------- */
.qroles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; width: fit-content; max-width: 100%; }
.qroles__tab { height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 500 14px var(--f-body); cursor: pointer; transition: background-color .25s, color .25s; }
.qroles__tab.is-on { background: var(--brand); color: #fff; }
#qs-list { margin-top: 16px; }

/* ---------- Фото менеджера в подвале ---------- */
.footer__person { display: flex; gap: 14px; align-items: center; margin: 4px 0; }
.footer__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-ink); flex-shrink: 0; }
.footer__person div { display: grid; gap: 2px; }
.footer__person b { font-weight: 600; font-size: 15px; }
.footer__person span { font-size: 13px; color: var(--muted); }
.footer__person a { color: var(--fg) !important; font-size: 15px; }

/* ---------- Pinned «Как это работает» (класс ставит app.js на десктопе) ---------- */
.how--pinned { min-height: 100vh; display: flex; align-items: center; padding-block: 120px; }
.how--pinned .how__wrap { width: 100%; }
.how--pinned .how__head { position: static; }
.how--pinned .how__steps { position: relative; height: min(440px, 56vh); }
.how--pinned .how__step { position: absolute; inset: 0; min-height: 0; padding: 48px 44px; align-items: center; }
.how--pinned .how__step h3 { font-size: clamp(26px, 2.4vw, 38px); }
.how--pinned .how__step p { font-size: 17px; }
.how--pinned .how__num { font-size: clamp(64px, 6vw, 110px); }
.how--pinned .how__progress { height: 220px; }

/* ---------- Плавный возврат наклона ---------- */
.tilt { transition: transform .5s var(--ease), border-color .4s var(--ease); will-change: transform; }
.tilt:hover { transition: transform .12s linear, border-color .4s var(--ease); }
/* единая «плавающая» карточка: наклон + подсветка под курсором — как в тарифах */
.sc::before, .case::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%); }
.sc:hover::before, .case:hover::before { opacity: 1; }
.sc:hover, .case:hover, .plan:hover { border-color: var(--line-2); }
.plan.is-hot:hover { border-color: color-mix(in srgb, var(--brand-ink) 70%, transparent); }
.sc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%); }
.sc:hover::before { opacity: 1; }

/* ---------- Мобильная схема hero ---------- */
.scene__svg--m { display: none; }
@media (max-width: 560px) {
  .scene__svg--d { display: none; }
  .scene__svg--m { display: block; max-width: 400px; margin: 0 auto; }
}
.t-mono--m { font-size: 12.5px !important; }
.t-tag--m { font-size: 10.5px !important; }
.t-ch--m { font-size: 16px !important; }
.t-core--m { font-size: 13px !important; }
.core__ring--m { transform-origin: 180px 262px; }

/* навигатор: на экранах без широкого поля подпись видна только при наведении */
@media (max-width: 1599px) { .rail:not(:hover) .rail__list a.is-on .rail__tag { opacity: 0; } }

/* ---------- Reveal (класс .is-in ставит IntersectionObserver в app.js) ---------- */
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
.reveal-on .reveal { transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), filter .9s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) { .reveal-on .reveal:not(.is-in) { filter: blur(6px); } }
.reveal-on .hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
.reveal-on .tilt.is-in { transition: transform .5s var(--ease), border-color .4s var(--ease), opacity .9s cubic-bezier(.22,1,.36,1), filter .9s cubic-bezier(.22,1,.36,1); }
.reveal-on .tilt.is-in:hover { transition: transform .12s linear, border-color .4s var(--ease); }

/* ---------- Производительность на телефонах: без тяжёлого backdrop-blur ---------- */
@media (max-width: 767px) {
  .header.is-scrolled, .answer, .calc__box, .cookie { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.is-scrolled { background: var(--bg); }
}
