/* Сайт Geo BRAIN. Раскладка: колонка до 1240 пикс., светлые разделы с
   текстом чередуются с тёмными сценами (.stage), где показывается сама
   программа; в шапке и в финале поле изолиний. Движение при прокрутке
   задаёт site.js через переменные --p, --spread и класс .is-in.
   Шрифты свои (fonts/, лицензия OFL), внешних запросов нет */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic.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-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* бумага и тушь с холодным оттенком, акцент как в программе */
  --bg: #f3f5f6;
  --surface: #ffffff;
  --tint: #e9eef1;
  --ink: #0d1820;
  --ink-2: #3a4853;
  --muted: #61707b;
  --line: #d3dbe0;
  --accent: #1c6cc1;
  --accent-ink: #ffffff;
  --accent-soft: #dce8f6;
  --link: #1a62ae;
  --mark-base: #8a969e;
  --contour: rgba(24, 70, 100, 0.17);
  --contour-hot: 0.6;
  /* зоны перспективности, те же, что на карте программы */
  --zone-0: #12123a;
  --zone-1: #2a78d6;
  --zone-2: #eda100;
  --zone-3: #eb6834;
  --zone-4: #e34948;
  --shadow-sm: 0 1px 2px rgba(13, 24, 32, 0.06);
  --shadow: 0 2px 6px rgba(13, 24, 32, 0.05), 0 40px 80px -30px rgba(13, 24, 32, 0.35);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-display: 'Geologica', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.8rem;
  --fs-sm: 0.92rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 2.7vw, 3.6rem);
  --fs-hero: clamp(2.5rem, 1.2rem + 3.9vw, 4.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1217;
    --surface: #121b22;
    --tint: #0f181e;
    --ink: #e4ebf0;
    --ink-2: #b3c0c9;
    --muted: #8796a1;
    --line: #22303a;
    --accent: #5ba2ee;
    --accent-ink: #061420;
    --accent-soft: #14273a;
    --link: #7fb7f3;
    --mark-base: #6c7a84;
    --contour: rgba(140, 186, 214, 0.13);
    --contour-hot: 0.7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1217;
  --surface: #121b22;
  --tint: #0f181e;
  --ink: #e4ebf0;
  --ink-2: #b3c0c9;
  --muted: #8796a1;
  --line: #22303a;
  --accent: #5ba2ee;
  --accent-ink: #061420;
  --accent-soft: #14273a;
  --link: #7fb7f3;
  --mark-base: #6c7a84;
  --contour: rgba(140, 186, 214, 0.13);
  --contour-hot: 0.7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* тёмная сцена в любой теме: здесь показывается сама программа */
.stage {
  --bg: #070b0f;
  --surface: #0f171d;
  --tint: #0b1116;
  --ink: #e9eff3;
  --ink-2: #b8c4cd;
  --muted: #8494a0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #5ba2ee;
  --accent-ink: #061420;
  --accent-soft: #14273a;
  --link: #8cc0f5;
  --mark-base: #6c7a84;
  --contour: rgba(140, 186, 214, 0.12);
  --contour-hot: 0.75;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 50px 100px -30px rgba(0, 0, 0, 0.9);
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.032em; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
/* сокращение с «и» внутри нельзя набирать прописными */
.nocaps { text-transform: none; letter-spacing: 0.04em; }

/* --- кнопки-капсулы */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font: 650 var(--fs-md) / 1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: var(--fs-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- шапка: прозрачная над полем изолиний, плотная при прокрутке */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.bar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
.bar__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}
.brand img { display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }

/* --- поле изолиний (шапка и финал), выше и ниже раздела с запасом под
   сдвиг при прокрутке */
.field {
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 160%;
  pointer-events: none;
  will-change: transform;
}

/* --- первый экран */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -65px;
  padding-block: calc(65px + clamp(48px, 6vw, 88px)) clamp(16px, 3vw, 40px);
}
.hero .field {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 44%, transparent 66%);
  mask-image: linear-gradient(to bottom, #000 0 44%, transparent 66%);
}
.hero__in { position: relative; display: grid; }
.hero__text { max-width: 1160px; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin-bottom: 28px;
}
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 58ch; margin-bottom: 34px; }

/* снимок окна в шапке откинут назад и выпрямляется при прокрутке */
.showcase {
  --p: 1;
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  perspective: 2400px;
  isolation: isolate;
}
.showcase .shot {
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(0.84 + 0.16 * var(--p)));
  will-change: transform;
}
.showcase__glow {
  position: absolute;
  inset: 12% 4% -8%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(45% 55% at 30% 50%, color-mix(in srgb, var(--zone-1) 55%, transparent), transparent 70%),
    radial-gradient(40% 50% at 72% 55%, color-mix(in srgb, var(--zone-3) 45%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: calc(0.18 + 0.32 * var(--p));
}

.shot { margin: 0; }
.shot img, .shot picture { display: block; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot img[width="1920"] { aspect-ratio: 16 / 10; }

.legend {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.legend__title { font-weight: 600; color: var(--ink); }
.legend__row { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35);
}
.legend__note { color: var(--muted); font-size: var(--fs-xs); }

/* --- три цифры под шапкой; первая из раздела «Проверка» */
.proof { padding-block: clamp(44px, 6vw, 76px); }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.proof__item { border-top: 2px solid var(--accent); padding-top: 20px; min-width: 0; }
.proof__num {
  display: block;
  font: 700 clamp(2.3rem, 1.5rem + 2.2vw, 3.5rem) / 1 var(--font-display);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.proof__item p { color: var(--ink-2); max-width: 36ch; }

/* --- разделы */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section--tint { background: var(--tint); }
.stage { padding-block: clamp(88px, 12vw, 160px); }
.section__head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: 20px; max-width: 60ch; }
.note { font-size: var(--fs-sm); color: var(--muted); margin-top: 40px; max-width: 70ch; }

/* раздел с текстом и картинкой рядом */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature__text { min-width: 0; }
.feature__text .section__lead { margin-bottom: 8px; }
/* заголовок в половине ширины мельче, иначе встаёт лесенкой */
.feature__text h2, .check__text h2 { font-size: clamp(2rem, 1.3rem + 1.7vw, 2.85rem); }
.points { margin: 28px 0 0; display: grid; gap: 4px; }
.points > div { padding-block: 18px; border-top: 1px solid var(--line); }
.points dt { font: 600 var(--fs-h3) / 1.3 var(--font-display); letter-spacing: -0.01em; }
.points dd { margin: 8px 0 0; color: var(--ink-2); }

/* советник: три пункта в ряд и окно советника во всю ширину; подписи
   стоят над его частями, рекомендации занимают слева около 31% окна */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.trio > div { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--ink-2); }
.advisor { margin: 0; }
.advisor__open { display: block; cursor: zoom-in; }
.advisor__labels {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.advisor__label { padding-top: 10px; border-top: 2px solid var(--accent); }
.advisor__label--model { border-top-color: var(--zone-3); }
.advisor img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.advisor figcaption { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); max-width: 70ch; }

/* слои критериев: картинки одна над другой, раздвигаются по --spread.
   Размеры в долях картинки слоя 1110 x 579 на поле 1440 x 1089 и в cqw
   (сотая ширины поля), см. packaging/site/art.py */
.layers {
  --spread: 1;
  --g: calc(1.528 + 5.416 * var(--spread));
  --t: calc(2.083 + 5.556 * var(--spread));
  position: relative;
  margin: 0;
  aspect-ratio: 1440 / 1089;
  container-type: inline-size;
}
.layer {
  --top: 0;
  --off: calc(var(--k) * var(--g) + var(--top) * var(--t));
  --mid: calc((4 * var(--g) + var(--t)) / 2);
  position: absolute;
  inset: 0;
  transform: translateY(calc((var(--mid) - var(--off)) * 1cqw));
  will-change: transform;
  pointer-events: none;
}
.layer img {
  position: absolute;
  left: 0;
  top: 23.416%;
  width: 77.083%;
  height: auto;
}
.layer__label {
  position: absolute;
  left: 74.167%;
  top: 52.709%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  font-size: clamp(11px, 0.9cqw + 6px, 15px);
  color: var(--ink-2);
  white-space: nowrap;
  opacity: calc(var(--spread) * 1.4 - 0.4);
}
.layer__label::before {
  content: "";
  width: 3cqw;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
}
.layer--top .layer__label { color: var(--ink); font-weight: 600; }

/* --- шаги программы: текст прокручивается, снимок стоит */
.tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 72px);
}
.tour__steps { list-style: none; margin: 0; padding: 0; }
.tour__step {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.tour__step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 6vh; }
.tour__step:last-child { min-height: 70vh; }
.tour__step.is-active { opacity: 1; }
.tour__n {
  font: 650 var(--fs-sm) / 1 var(--font-display);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tour__step h3 {
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 14px 0 14px;
}
.tour__step p { color: var(--ink-2); max-width: 36ch; }
.tour__inline { display: none; }
.tour__media { position: relative; min-width: 0; }
.tour__sticky { position: sticky; top: clamp(84px, 13vh, 150px); }
.tour__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tour__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.tour__shot.is-active { opacity: 1; transform: none; }
.tour__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.tour__count b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tour__name { color: var(--ink); font-weight: 600; }
.tour__progress {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.tour__progress button {
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tour__progress i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.4s;
}
.tour__progress .is-done i { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.tour__progress .is-active i { background: var(--accent); }
.tour__progress button:hover i { background: color-mix(in srgb, var(--accent) 70%, transparent); }

/* --- модели плитками */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile--wide { grid-column: span 7; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__art {
  display: block;
  width: 100%;
  height: clamp(220px, 23vw, 300px);
  object-fit: cover;
  background: var(--tint);
}
/* схемы без своего фона вписываются целиком */
.tile__art--fit { object-fit: contain; padding: 16px; }
.tile__body { padding: 26px 28px 30px; display: grid; gap: 14px; }
.tile__body p { color: var(--ink-2); }
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  font-size: var(--fs-sm);
  line-height: 1.4;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* --- проверка */
.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.check__text h2 { margin-bottom: 24px; }
.check__text p { color: var(--ink-2); max-width: 58ch; }
.check__text p + p { margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-2px);
}

.chart {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.chart__head { display: grid; gap: 4px; margin-bottom: 18px; }
.chart__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }
.chart__sub { color: var(--muted); font-size: var(--fs-sm); }
.chart__plot { position: relative; overflow-x: auto; }
.chart__svg {
  display: block;
  width: 100%;
  min-width: 420px;
  height: auto;
  font-family: var(--font-body);
  font-size: 14px;
  overflow: visible;
}
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__ticks text { fill: var(--muted); text-anchor: middle; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart__ticks .chart__axis { font-size: 12px; }
.chart__label { fill: var(--ink); font-weight: 600; }
.chart__range { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
.dot { stroke: var(--surface); stroke-width: 2; }
.dot--main { fill: var(--accent); }
.dot--base { fill: var(--mark-base); }
.dot:hover, .dot:focus-visible { stroke: var(--ink); outline: none; }
.chart__values text { fill: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-sm);
  line-height: 1.35;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: var(--shadow-sm);
}
.chart__note { font-size: var(--fs-sm); color: var(--muted); margin-top: 14px; }
.chart__table { margin-top: 12px; font-size: var(--fs-sm); }
.chart__table summary { cursor: pointer; color: var(--link); width: max-content; }
.chart__table table { border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td {
  padding: 6px 18px 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.chart__table thead th { color: var(--muted); }
.chart__table tbody th { color: var(--ink); font-weight: 500; }

/* --- что уходит в сеть */
.netlist {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0 40px;
}
.netlist > div { border-top: 1px solid var(--line); padding-block: 24px 28px; min-width: 0; }
.netlist svg {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.netlist dt { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.netlist dt { margin-bottom: 8px; }
.netlist dd { margin: 0; color: var(--ink-2); }

/* --- финал: доступ на тёмной сцене с изолиниями */
.cta { position: relative; overflow: hidden; }
.cta .field {
  -webkit-mask-image: radial-gradient(90% 80% at 75% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(90% 80% at 75% 45%, #000 25%, transparent 80%);
}
.cta__in { position: relative; }
.cta h2 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem); max-width: 16ch; }
.cta__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 36px);
  min-width: 0;
}
.card p { color: var(--ink-2); }
.card .btn { margin-top: 6px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.todo {
  display: inline-block;
  padding: 5px 12px;
  border: 1px dashed var(--zone-3);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* --- подвал */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-sm);
  color: var(--muted);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.foot__brand p { margin-top: 12px; max-width: 32ch; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }

/* --- появление при прокрутке: только со скриптом и без запрета движения */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-motion) [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.9s var(--ease) calc(var(--i, 0) * 90ms),
      transform 1.1s var(--ease) calc(var(--i, 0) * 90ms);
  }
  .js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; }
}

/* --- узкие экраны */
@media (max-width: 1080px) {
  .feature, .check { grid-template-columns: minmax(0, 1fr); }
  .layers { max-width: 760px; }
  .tile, .tile--wide { grid-column: span 6; }
}
@media (max-width: 1000px) {
  .proof__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proof__item { padding-block: 20px 26px; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .trio > div { padding-block: 20px 24px; }
  .tour__grid { grid-template-columns: minmax(0, 1fr); }
  .tour__media { display: none; }
  .tour__step,
  .tour__step:first-child,
  .tour__step:last-child {
    min-height: 0;
    opacity: 1;
    padding-block: 32px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }
  .tour__step p { max-width: 60ch; }
  .tour__inline {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin-top: 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .bar__in { justify-content: space-between; }
}
@media (max-width: 720px) {
  .tile, .tile--wide { grid-column: span 12; }
  .cta__cards { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .tour__shot, .tour__step { transition: none; }
}
