/* ═══════════════════════════════════════════════════════════════════════
   MRB Security — партнёрская программа для ИБ-компаний.

   Тёмная тема здесь не украшение, а язык рынка: партнёр смотрит на
   страницу глазами человека, который весь день видит консоли, панели
   мониторинга и отчёты сканеров. Поэтому база — глубокий navy-чёрный,
   акцент — бирюза контура (guard), фирменный синий MRB остаётся для
   действий. Янтарный ровно один: цифра, ради которой написан блок.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Фон: три ступени глубины, чтобы длинная тёмная страница не читалась
     одним полотном. void — самый низ, panel — то, что «лежит» сверху. */
  --void:        #04090f;
  --deep:        #081422;
  --raise:       #0a1626;
  --panel:       #0c1a2b;
  --panel-soft:  #101f33;

  /* Бирюза ИБ-контура. 400 — светящийся акцент на тёмном (7.3:1),
     600 — заливки и линии, на светлом не используется вовсе. */
  --guard-200:   #8fd9cd;
  --guard-300:   #4cc4b1;
  --guard-400:   #2dd4bf;
  --guard-500:   #12a08a;
  --guard-600:   #0a7f6c;

  /* Фирменный синий MRB — только действия и ссылки, чтобы не спорить
     с бирюзой за смысл «безопасность». */
  --brand-300:   #6fb4f5;
  --brand-400:   #3da5f5;
  --brand-500:   #2e8fe8;
  --brand-600:   #1560d4;

  /* Единственный тёплый цвет на сайте. Красить им что-то кроме ключевой
     метрики нельзя — акцент перестанет быть акцентом. */
  --amber-300:   #f7c65b;
  --amber-400:   #f0ac2b;

  /* Красный — состояние «до»: то, что защитить нельзя. Появляется только
     там, где рядом есть парное состояние «после» в бирюзе, иначе на сайте
     про безопасность он читается как сообщение об аварии на самом сайте. */
  --signal-300:  #fca5a5;
  --signal-400:  #f87171;
  --signal-500:  #e04b4b;

  /* Текст. bone — основной на тёмном (14.8:1), 500 — вторичный (6.1:1),
     600 — подписи, ниже опускаться нельзя. */
  --bone:        #e8f0fb;
  --bone-400:    #b9cbe2;
  --bone-500:    #93a9c4;
  --bone-600:    #7288a6;

  --line:        rgba(146, 180, 220, 0.14);
  --line-strong: rgba(146, 180, 220, 0.26);
  --line-guard:  rgba(45, 212, 191, 0.30);

  --shell:       min(1240px, 100% - 2.5rem);
  --radius:      14px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);

  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem;  --space-8: 2rem;    --space-12: 3rem;
  --space-16: 4rem;   --space-24: 6rem;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Якорные ссылки не должны загонять заголовок под липкую шапку. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--brand-300);
  text-decoration-color: rgba(111, 180, 245, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-soft), text-decoration-color 0.2s var(--ease-soft);
}
a:hover { color: var(--brand-400); text-decoration-color: currentColor; }

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

::selection { background: rgba(45, 212, 191, 0.28); color: #fff; }

/* ── Служебное ─────────────────────────────────────────────────────── */

.shell { width: var(--shell); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200; padding: 0.75rem 1.25rem;
  background: var(--guard-400); color: #04090f;
  font-weight: 600; border-radius: 0 0 10px 10px;
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tabular { font-variant-numeric: tabular-nums; }

/* ── Секции ────────────────────────────────────────────────────────── */

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; overflow: hidden; }
.section--deep  { background: var(--deep); }
.section--raise { background: var(--raise); }

/* Волосяная линия между полосами одного тона: без неё две тёмные секции
   подряд сливаются, и ритм страницы пропадает. */
.section--hair { border-top: 1px solid var(--line); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Метка секции набирается обычным текстом, а не капсом с разрядкой:
   девять одинаковых МОНО-МЕТОК подряд — самый узнаваемый признак
   сгенерированного лендинга. Строчные буквы и обычный шрифт делают её
   подписью, а не элементом интерфейса. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--guard-400); margin-bottom: 1.25rem;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow::before {
  content: ''; width: 1.75rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--guard-400));
}

.section__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

.section__lede {
  margin-top: 1.25rem; max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--bone-500); line-height: 1.7;
}

.accent-guard { color: var(--guard-400); }
.accent-brand { color: var(--brand-400); }

/* ── Фактура фона ──────────────────────────────────────────────────── */

/* Сетка координат: та же фактура, что у панелей мониторинга. Держится
   очень слабой — она подложка, а не рисунок. */
.grid-bed::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(146, 180, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 180, 220, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
}

.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: 0.28; z-index: 0;
}
.glow--guard { background: radial-gradient(circle, #12a08a 0%, transparent 68%); }
.glow--brand { background: radial-gradient(circle, #1560d4 0%, transparent 68%); }

/* ── Кнопки ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; min-height: 48px; padding: 0.85rem 1.7rem;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 15px/1 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.2s var(--ease-soft),
              border-color 0.2s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--guard-400); color: #04090f;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
}
.btn--primary:hover {
  background: var(--guard-300); color: #04090f;
  box-shadow: 0 8px 30px -8px rgba(45, 212, 191, 0.65);
}

.btn--ghost {
  background: rgba(146, 180, 220, 0.05);
  border-color: var(--line-strong); color: var(--bone);
}
.btn--ghost:hover {
  background: rgba(146, 180, 220, 0.1);
  border-color: var(--line-guard); color: var(--bone);
}

.btn--sm { min-height: 42px; padding: 0.6rem 1.15rem; font-size: 14px; }
.btn--wide { width: 100%; }

/* ── Появление при скролле ─────────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Хроника: последовательный выход детей контейнера ──────────────────
   Каждый прямой потомок появляется в свой момент — задержку по индексу
   проставляет js через --d, шаг задаётся data-step на контейнере. Так
   сетка перестаёт «проявляться плитой» и читается как ход событий. */
.seq > * {
  opacity: 0;
  transform: translateY(16px);
  /* Задержек нет: очередь задаёт прокрутка, переход только сглаживает
     порог. Короткий — чтобы обратный ход тоже читался мгновенно. */
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.seq > *.is-on { opacity: 1; transform: none; }

/* Разделитель «граница ответственности» в scope — не событие хроники,
   он появляется вместе с контейнером. */
.scope__mid { transition-delay: 0s !important; }

/* ── Хроника первого экрана ────────────────────────────────────────────
   Бейдж → заголовок → текст → кнопки → приписка: страница открывается
   как первый кадр, а не вспыхивает целиком. Работает без прокрутки. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero__inner > div > * { animation: hero-in 0.7s var(--ease-out) both; }
.hero__inner > div > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > div > *:nth-child(2) { animation-delay: 0.18s; }
.hero__inner > div > *:nth-child(3) { animation-delay: 0.34s; }
.hero__inner > div > *:nth-child(4) { animation-delay: 0.46s; }
.hero__inner > div > *:nth-child(5) { animation-delay: 0.58s; }
.hero__inner > div > *:nth-child(6) { animation-delay: 0.70s; }
.hero__inner > .hud { animation: hero-in 0.9s var(--ease-out) 0.55s both; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .seq > * { opacity: 1; transform: none; transition: none; }
  .hero__inner > div > *, .hero__inner > .hud { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═══ ШАПКА ═════════════════════════════════════════════════════════ */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 9, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(4, 9, 15, 0.92);
}

.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--bone); flex-shrink: 0;
}
.brand__mark { width: 34px; height: 28px; object-fit: contain; }
.brand__name {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 17px; letter-spacing: -0.02em; line-height: 1;
}
/* Слово Security — бирюзой: с первого взгляда видно, что этот сайт про
   работу с ИБ-рынком, а не ещё одна витрина услуг MRB Digital. */
.brand__name em { font-style: normal; color: var(--guard-400); }
.brand__sub {
  display: block; margin-top: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-600);
}

.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav__link {
  color: var(--bone-400); text-decoration: none;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  padding: 0.5rem 0; position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--guard-400);
  transition: width 0.25s var(--ease-out);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }
.nav > .btn { display: none; }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 9px; cursor: pointer; color: var(--bone);
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative; transition: background 0.2s var(--ease-soft);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; transition: transform 0.25s var(--ease-out);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-out);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link {
    padding: 0.95rem 0; border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav__link::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.25rem; }
}

/* ═══ ХИРО ══════════════════════════════════════════════════════════ */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(ellipse 120% 90% at 15% -10%, #0d2136 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 90% 20%, #07231f 0%, transparent 60%),
    var(--void);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.95rem 0.5rem 0.7rem;
  border: 1px solid var(--line-guard); border-radius: 100px;
  background: rgba(45, 212, 191, 0.07);
  color: var(--guard-300); margin-bottom: 1.75rem;
}
.hero__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--guard-400); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero__title {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  letter-spacing: -0.035em;
}
/* Ключевые слова подсвечены не заливкой, а подчёркиванием-контуром:
   заголовок остаётся читаемым, а взгляд всё равно цепляется. */
.hero__title mark {
  background: none; color: var(--guard-400);
  position: relative; white-space: nowrap;
}
.hero__title mark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.02em;
  height: 0.055em; background: rgba(45, 212, 191, 0.4);
}

/* На узком экране запрет переноса режет слово: 320 px не хватает даже
   на «берёте под защиту». Ниже 420 px строка переносится как обычная. */
@media (max-width: 420px) {
  .hero__title mark { white-space: normal; }
  /* Перенесённый фрагмент подчёркивается только по последней строке —
     линия под половиной фразы читается как опечатка вёрстки. */
  .hero__title mark::after { display: none; }
}

.hero__text {
  margin-top: 1.6rem; max-width: 54ch;
  font-size: clamp(1.02rem, 1.7vw, 1.19rem);
  color: var(--bone-400); line-height: 1.72;
}
.hero__text + .hero__text { margin-top: 1rem; color: var(--bone-500); }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero__note {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 1.5rem; color: var(--bone-600);
  font-size: 13px;
}
.hero__note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--guard-500); }

/* ═══ HUD: СХЕМА КОНТУРА ════════════════════════════════════════════ */

/* Главный аргумент партнёрства нельзя объяснить списком услуг — нужна
   граница. Наша зона нарисована вложенной внутрь контура партнёра:
   видно, что мы не рядом и не вместо, а внутри того, что он защищает. */
.hud {
  position: relative;
  border: 1px solid var(--line-guard);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.06), transparent 55%),
    rgba(7, 18, 28, 0.72);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.06),
    0 30px 80px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Бегущая по периметру засветка — контур «под наблюдением», а не чертёж. */
.hud::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0%, transparent 72%,
    rgba(45, 212, 191, 0.85) 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 7s linear infinite;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

.hud__bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding-bottom: 0.9rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.hud__bar .mono { color: var(--guard-400); }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }

/* Внешний контур — зона партнёра. Пунктир бежит: это его наблюдение. */
.hud__outer {
  position: relative; padding: 1.15rem;
  border-radius: 12px;
  background-color: rgba(45, 212, 191, 0.035);
  background-image:
    repeating-linear-gradient(90deg, var(--guard-500) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, var(--guard-500) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--guard-500) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--guard-500) 0 8px, transparent 8px 16px);
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: dash-drift 3.5s linear infinite;
}
/* Стартовые позиции продублированы во from: иначе анимация считает их от
   значения по умолчанию и первый кадр смещает все четыре линии разом. */
@keyframes dash-drift {
  from { background-position: 0 0, 0 100%, 0 0, 100% 0; }
  to   { background-position: 16px 0, -16px 100%, 0 -16px, 100% 16px; }
}

.hud__label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.8rem;
  margin-bottom: 1rem;
}
.hud__label b { color: var(--guard-300); font-weight: 500; }
.hud__label span { color: var(--bone-600); font-size: 10px; }

/* Внутренний контур — наша часть: сплошная рамка, у неё есть приёмка. */
.hud__inner {
  position: relative; overflow: hidden;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 96, 212, 0.09), rgba(10, 22, 38, 0.6));
}
/* Угловые маркеры вместо толстой рамки: технический язык, а не коробка. */
.hud__inner::before, .hud__inner::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--brand-400); opacity: 0.7;
}
.hud__inner::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.hud__inner::after  { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

/* Луч сканирования снят: бегущая по панели полоса — киберпанк-штамп,
   который делал схему похожей на заставку, а не на рабочий макет. */
.hud__scan { display: none; }

.hud__blocks {
  position: relative; display: grid; gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 480px) { .hud__blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* На узком экране «Автоматизация» занимала ячейку от края до края и на
   глаз слипалась с соседней «Поддержкой»: между словами оставалось шесть
   пикселей и ни одного поля. Даём зазор побольше и мельче шрифт: с
   переносами по слогам подписи разъезжались швом посреди слова, а так
   самое длинное название встаёт в строку целиком. */
@media (max-width: 479px) {
  .hud__blocks { gap: 9px; }
  .hud__block {
    padding: 0.65rem 0.4rem;
    font-size: 10.5px;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
}

.hud__block {
  padding: 0.7rem 0.6rem;
  border: 1px solid var(--line); border-radius: 7px;
  background: rgba(146, 180, 220, 0.045);
  font-size: 12px; line-height: 1.35; color: var(--bone-400);
  text-align: center;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft),
              color 0.3s var(--ease-soft);
}
.hud__block.is-lit {
  border-color: var(--line-guard); background: rgba(45, 212, 191, 0.1);
  color: var(--bone);
}

.hud__flow {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0.9rem 0 0.15rem; color: var(--guard-400);
}
.hud__flow span {
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
  opacity: 0.25; animation: rise 1.9s var(--ease-soft) infinite;
}
.hud__flow span:nth-child(2) { animation-delay: 0.24s; }
.hud__flow span:nth-child(3) { animation-delay: 0.48s; }
.hud__flow span:nth-child(4) { animation-delay: 0.72s; }
.hud__flow span:nth-child(5) { animation-delay: 0.96s; }
@keyframes rise {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-4px); }
}

/* Журнал: намеренно латиницей и в моношрифте — это не текст для чтения,
   а узнаваемая фактура того, что партнёр забирает себе в мониторинг. */
.hud__log {
  margin-top: 1rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  height: 84px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 76%, transparent);
}
.hud__log-track { animation: log-roll 16s linear infinite; }
@keyframes log-roll { to { transform: translateY(-50%); } }

.log-line {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 2.5px 0; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--bone-600);
}
.log-line b { color: var(--guard-300); font-weight: 400; }
.log-line u { text-decoration: none; color: var(--bone-500); }
.log-line i { margin-left: auto; font-style: normal; color: var(--guard-400); }
@media (max-width: 420px) { .log-line u { display: none; } }

/* ═══ ПОЛОСА МЕТРИК ═════════════════════════════════════════════════ */

/* ── Ряд ключевых цифр ─────────────────────────────────────────────────
   Был серой плашкой с сеткой в один пиксель — читалось таблицей, вставленной
   в страницу, а не её частью. Теперь ряд лежит прямо на фоне полосы: у
   каждой цифры своя короткая линейка сверху, разделителей нет, подпись
   ограничена по ширине, чтобы строки не расходились в длину. */

.stats {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--void);
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
}

/* Мягкое пятно под рядом: ровная заливка на всю ширину читается плоско. */
.stats::before {
  content: '';
  position: absolute;
  left: 8%;
  top: -60%;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 160, 138, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.stats__row {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .stats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat { display: grid; gap: 0.85rem; align-content: start; }

/* Линейка над цифрой — единственный разделитель. Она же несёт цвет:
   янтарная у главной цифры, бирюзовая у остальных. */
.stat__rule {
  display: block;
  width: 2.2rem;
  height: 2px;
  background: var(--guard-400);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 620ms var(--ease-out);
}

.stats.is-seen .stat__rule { transform: scaleX(1); }
.stats.is-seen .stat:nth-child(2) .stat__rule { transition-delay: 90ms; }
.stats.is-seen .stat:nth-child(3) .stat__rule { transition-delay: 180ms; }
.stats.is-seen .stat:nth-child(4) .stat__rule { transition-delay: 270ms; }

.stat--key .stat__rule { background: var(--amber-400); }

.stat__value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--bone);
  display: flex;
  align-items: flex-start;
  gap: 0.06em;
}

.stat__value sup {
  position: relative;
  top: 0.12em;
  font-size: 0.34em;
  font-weight: 700;
  line-height: 1;
  color: var(--guard-400);
}

/* Единственная янтарная цифра на странице — та, ради которой блок и
   написан: сколько решений уже сдано с описанным контуром. */
.stat--key .stat__value { color: var(--amber-400); }
.stat--key .stat__value sup { color: var(--amber-300); }

.stat__label {
  max-width: 22ch;
  font-size: clamp(0.82rem, 1.4vw, 0.94rem);
  line-height: 1.5;
  color: var(--bone-600);
}

/* ═══ БОЛИ ══════════════════════════════════════════════════════════ */

.pains {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px)  { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pains { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pain {
  background: var(--void); padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: 0.85rem;
  transition: background 0.3s var(--ease-soft);
}
.pain:hover { background: var(--panel); }
.pain__icon {
  --gl-accent: var(--guard-200);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--guard-400); flex-shrink: 0;
}
.pain__icon svg { width: 24px; height: 24px; }
.pain h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pain p { font-size: 14.5px; color: var(--bone-500); line-height: 1.6; }

/* ═══ ШАГИ СВЯЗКИ ═══════════════════════════════════════════════════ */

.steps { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step {
  background: var(--deep); padding: clamp(1.9rem, 3.6vw, 2.9rem);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Полоса сверху загорается на наведении — три шага читаются как цепь,
   а не как три независимых карточки. */
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--guard-400), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.step:hover::before { transform: scaleX(1); }

.step__num {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
  letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--guard-600);
  transition: color 0.35s var(--ease-soft), -webkit-text-stroke-color 0.35s var(--ease-soft);
}
.step:hover .step__num { color: rgba(45, 212, 191, 0.12); -webkit-text-stroke-color: var(--guard-400); }

.step h3 { margin-top: 1.3rem; font-size: clamp(1.15rem, 2.2vw, 1.42rem); }
.step p { margin-top: 0.85rem; padding-bottom: 1.6rem; font-size: 15px; color: var(--bone-500); line-height: 1.7; }
.step__who {
  display: inline-block; align-self: flex-start; margin-top: auto; padding: 0.3rem 0.65rem;
  border-radius: 5px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.step__who--you { background: rgba(45, 212, 191, 0.12); color: var(--guard-300); }
.step__who--us  { background: rgba(61, 165, 245, 0.12); color: var(--brand-300); }

/* ═══ ГРАНИЦА ОТВЕТСТВЕННОСТИ ═══════════════════════════════════════ */

.scope { display: grid; gap: clamp(2rem, 4vw, 3.5rem); position: relative; }
@media (min-width: 900px) {
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Пунктир ровно между колонками — та же граница, что и на схеме
     в первом экране, только развёрнутая в текст. */
  .scope::before {
    content: ''; position: absolute; top: 8%; bottom: 8%; left: 50%;
    width: 1px; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg,
      var(--guard-600) 0 7px, transparent 7px 15px);
    opacity: 0.7;
  }
  .scope__mid {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    padding: 0.4rem 0.9rem; border-radius: 6px;
    background: var(--void); border: 1px solid var(--line-guard);
    color: var(--guard-400); white-space: nowrap;
  }
}
.scope__mid { display: none; }
@media (min-width: 900px) { .scope__mid { display: block; } }

.scope__col {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--void); position: relative;
}
/* Колонка партнёра — бирюзой (его контур), наша — синим (наши действия).
   Разные цвета важнее, чем разные иконки: границу видно боковым зрением. */
.scope__col--ours   { border-color: rgba(61, 165, 245, 0.28); }
.scope__col--theirs { border-color: var(--line-guard); }

.scope__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.6rem; }
.scope__head h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.scope__tag {
  margin-left: auto; padding: 0.28rem 0.6rem; border-radius: 5px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.scope__col--ours   .scope__tag { background: rgba(61, 165, 245, 0.13); color: var(--brand-300); }
.scope__col--theirs .scope__tag { background: rgba(45, 212, 191, 0.13); color: var(--guard-300); }

.scope__list { display: flex; flex-direction: column; gap: 0.15rem; }
.scope__list li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.75rem 0.5rem; border-radius: 8px;
  font-size: 15px; line-height: 1.55; color: var(--bone-400);
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.scope__list li:hover { background: rgba(146, 180, 220, 0.05); color: var(--bone); }
.scope__list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.scope__col--ours   .scope__list svg { color: var(--brand-400); }
.scope__col--theirs .scope__list svg { color: var(--guard-400); }

.scope__foot {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--bone-600); line-height: 1.6;
}

/* ═══ АРТЕФАКТЫ ПРИЁМКИ ═════════════════════════════════════════════ */

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--deep); padding: clamp(1.6rem, 3vw, 2.2rem);
  position: relative; transition: background 0.3s var(--ease-soft);
}
.card:hover { background: var(--panel); }
.card__icon {
  --gl-accent: var(--guard-200);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 10px; color: var(--guard-400);
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.18);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-soft);
}
.card:hover .card__icon { transform: translateY(-2px); background: rgba(45, 212, 191, 0.15); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 1.35rem; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin-top: 0.7rem; font-size: 14.5px; color: var(--bone-500); line-height: 1.65; }

/* ═══ ТЕРМИНАЛ ПРИЁМКИ ══════════════════════════════════════════════ */

.handover { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .handover { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

/* Лист передачи. Оформлен как документ, а не как окно консоли: обычный
   текст вместо мониторного, заголовок по-русски, без точек-«кнопок», без
   каретки и статуса live. Точки-отбивки между пунктом и отметкой — приём
   из бумажных актов и прайсов, он тут по делу. */
.hand {
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(10, 22, 38, 0.75); overflow: hidden;
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.8);
}
.hand__bar {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line);
}
.hand__title { font-size: 14px; font-weight: 600; color: var(--bone); letter-spacing: -0.01em; }
.hand__date { margin-left: auto; font-size: 11.5px; color: var(--bone-600); }

.hand__body { padding: 1rem 1.1rem 1.2rem; font-size: 13.5px; line-height: 2.1; min-height: 300px; }
.hand__row { display: flex; align-items: baseline; gap: 0.7rem; opacity: 0; }
.hand__row.is-in { animation: type-in 0.4s var(--ease-out) forwards; }

/* Кадры появления строки жили в css старого терминала и уехали вместе
   с ним — без них строки листа оставались прозрачными навсегда. */
@keyframes type-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.hand__row .n { color: var(--bone-400); }
.hand__row .dots { flex: 1; border-bottom: 1px dotted rgba(146, 180, 220, 0.25); min-width: 1rem; transform: translateY(-4px); }
.hand__row .ok   { color: var(--guard-300); }
.hand__row .warn { color: var(--amber-300); }
.hand__row .fix  { color: var(--brand-300); }
.hand__row--total {
  margin-top: 0.6rem; padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.hand__row--total .total { color: var(--bone); font-weight: 600; }

/* ═══ ФОРМАТЫ СОТРУДНИЧЕСТВА ════════════════════════════════════════ */

.formats { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 980px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.format {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--deep); padding: clamp(1.6rem, 3vw, 2.3rem);
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-soft);
}
.format:hover {
  border-color: var(--line-guard); transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}
/* Средний формат — самый частый в реальных сделках, поэтому он и
   выделен: подсказка вместо ценника, которого у партнёрства нет. */
.format--pick { border-color: rgba(45, 212, 191, 0.34); background: var(--panel); }
.format__pick {
  position: absolute; top: 0; right: 0;
  padding: 0.35rem 0.8rem; border-radius: 0 var(--radius) 0 10px;
  background: var(--guard-400); color: #04090f;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}

.format__num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--guard-400); margin-bottom: 1rem;
}
.format h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.format > p { margin-top: 1rem; font-size: 15px; color: var(--bone-500); line-height: 1.7; }
.format__points {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.format__points li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 14px; color: var(--bone-400); line-height: 1.5;
}
.format__points li::before {
  content: ''; width: 12px; height: 1px; background: var(--guard-500);
  flex-shrink: 0; margin-top: 10px;
}
.format__foot { margin-top: auto; padding-top: 1.6rem; }

/* ═══ НАПРАВЛЕНИЯ ВНЕ ИБ ════════════════════════════════════════════ */

.domains { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 700px)  { .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .domains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.domain {
  background: var(--void); padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: background 0.3s var(--ease-soft);
}
.domain:hover { background: var(--deep); }
.domain__idx {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--guard-500); flex-shrink: 0; padding-top: 4px;
}
.domain h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.domain p { margin-top: 0.55rem; font-size: 14px; color: var(--bone-500); line-height: 1.6; }

/* ═══ ОТРАСЛИ ═══════════════════════════════════════════════════════ */

.industries { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.industry {
  padding: 0.65rem 1.1rem; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(146, 180, 220, 0.04);
  font-size: 14.5px; color: var(--bone-400);
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
              background 0.25s var(--ease-soft);
}
.industry:hover { border-color: var(--line-guard); color: var(--bone); background: rgba(45, 212, 191, 0.07); }
.industry b { font-weight: 500; color: var(--guard-400); font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-left: 0.4rem; }

/* ═══ FAQ ═══════════════════════════════════════════════════════════ */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%; display: flex; align-items: flex-start; gap: 1.25rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.24rem); letter-spacing: -0.02em;
  line-height: 1.35; color: var(--bone);
  transition: color 0.2s var(--ease-soft);
}
.faq__q:hover { color: var(--guard-300); }

.faq__sign {
  margin-left: auto; flex-shrink: 0; width: 22px; height: 22px;
  position: relative; margin-top: 2px; color: var(--guard-400);
}
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-soft);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  max-width: 68ch; padding-bottom: clamp(1.4rem, 2.6vw, 2rem);
  font-size: 15.5px; color: var(--bone-500); line-height: 1.75;
}

/* ═══ ФИНАЛЬНЫЙ БЛОК И ФОРМА ════════════════════════════════════════ */

.final {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 20% 10%, #0b2b26 0%, transparent 58%),
    radial-gradient(ellipse 80% 70% at 85% 90%, #0a1f3d 0%, transparent 60%),
    var(--deep);
  border-top: 1px solid var(--line);
}
.final__inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 1000px) { .final__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); } }

.final__title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.final__text { margin-top: 1.3rem; max-width: 48ch; font-size: 1.08rem; color: var(--bone-400); line-height: 1.7; }

/* Визитка перед контактами. Единственное фото на странице — намеренно:
   один человек, который читает запросы, убедительнее галереи команды.
   Фото цветное и круглое — ч/б заказчик забраковал ещё на mrbdigital. */
.person {
  display: flex; gap: 1.1rem; align-items: flex-start;
  margin: 2rem 0 1.6rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(146, 180, 220, 0.04);
}
.person__photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; object-position: top;
  flex-shrink: 0;
  border: 2px solid rgba(45, 212, 191, 0.35);
}
.person__quote {
  font-size: 14.5px; line-height: 1.6; color: var(--bone-400);
  margin: 0 0 0.75rem;
}
.person__name { font-size: 14px; font-weight: 600; color: var(--bone); margin: 0; }
.person__role { font-size: 12px; color: var(--bone-600); margin: 0.15rem 0 0; }

@media (max-width: 479px) {
  .person { flex-direction: column; gap: 0.9rem; }
}

/* Строка команды: круглые лица внахлёст, без подписей — визитка выше
   говорит «читаю сам», а этот ряд показывает, кто стоит за ним. Порядок
   людей — принятое правило подачи команды, менять только по нему. */
.crew {
  display: flex;
  margin: 1.4rem 0 1.8rem;
}

.crew img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--raise);
  background: var(--panel);
  margin-left: -9px;
  transition: transform 200ms var(--ease-out);
}

.crew img:first-child { margin-left: 0; }

/* Под курсором лицо выходит из ряда — строка живая, но без подписей. */
@media (hover: hover) {
  .crew img:hover { transform: translateY(-5px) scale(1.12); z-index: 1; position: relative; }
}

.contacts { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-row {
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--bone-400); text-decoration: none; font-size: 15.5px;
  min-height: 44px;
}
.contact-row svg { width: 17px; height: 17px; color: var(--guard-400); flex-shrink: 0; }
.contact-row span { color: var(--bone-600); font-size: 13px; margin-left: auto; }
.contact-row:hover { color: var(--bone); }

.form {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(4, 9, 15, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.5rem, 3vw, 2.3rem);
}
.form__head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.6rem; }
.form__head h3 { font-size: 1.25rem; }
.form__head .mono { margin-left: auto; color: var(--guard-500); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: 0.5rem;
  font-size: 13px; font-weight: 500; color: var(--bone-400);
}
.field label span { color: var(--guard-400); }

.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  min-height: 48px;
  background: rgba(146, 180, 220, 0.05);
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--bone); font: 400 15px/1.5 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-600); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--guard-400);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
/* Ошибка стоит у своего поля, а не общим списком сверху: иначе на
   телефоне человек её просто не увидит. */
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.field__error {
  display: none; margin-top: 0.45rem;
  font-size: 12.5px; color: #fca5a5;
}
.field.has-error .field__error { display: block; }

.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form__note { margin-top: 1rem; font-size: 12.5px; color: var(--bone-600); line-height: 1.55; }
.form__note a { color: var(--bone-500); }

.form__status {
  display: none; margin-top: 1.1rem; padding: 0.85rem 1rem;
  border-radius: 9px; font-size: 14px; line-height: 1.5;
}
.form__status.is-ok {
  display: block; background: rgba(45, 212, 191, 0.1);
  border: 1px solid var(--line-guard); color: var(--guard-200);
}
.form__status.is-err {
  display: block; background: rgba(248, 113, 113, 0.09);
  border: 1px solid rgba(248, 113, 113, 0.3); color: #fca5a5;
}

.btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }

/* ═══ ПОДВАЛ ════════════════════════════════════════════════════════ */

.footer { background: var(--void); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; }
.footer__top {
  display: grid; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) { .footer__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }

.footer__about { max-width: 42ch; margin-top: 1.25rem; font-size: 14px; color: var(--bone-600); line-height: 1.65; }
.footer h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-600);
  margin-bottom: 1.1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a { color: var(--bone-400); text-decoration: none; font-size: 14.5px; }
.footer__links a:hover { color: var(--guard-300); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding-top: 2rem; font-size: 13px; color: var(--bone-600);
}
.footer__bottom p { max-width: 60ch; line-height: 1.6; }
.footer__bottom .mono { margin-left: auto; color: var(--guard-500); }

/* ═══ ЧЕРТЕЖИ УЗЛОВ ═════════════════════════════════════════════════ */

.gl {
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  width: 100%; height: 100%;
}

/* ═══ ПОЛОСА ПРОЧИТАННОГО ═══════════════════════════════════════════ */

/* Ширина через scaleX, а не width: трансформация не заставляет браузер
   пересчитывать раскладку на каждом кадре прокрутки. */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transform-origin: left; z-index: 120;
  background: linear-gradient(90deg, var(--brand-500), var(--guard-400));
  will-change: transform;
}

/* ═══ ПЯТНО ЗА УКАЗАТЕЛЕМ ═══════════════════════════════════════════ */

/* Плоская тёмная заливка на всю ширину выглядит как незаполненное место.
   Пятно даёт полосе объём и показывает, что страница живая. */
.spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.4s var(--ease-soft);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(45, 212, 191, 0.09), transparent 70%);
}
.has-spot:hover .spot { opacity: 1; }
@media (hover: none) { .spot { display: none; } }

/* ═══ СЦЕНА: СБОРКА КОНТУРА ═════════════════════════════════════════ */

/* Идёт прокруткой, а не временем: анимация по таймеру успевает
   закончиться до того, как до неё доскроллили, — её просто не видят. */

/* ── Сцена: разрез контура ─────────────────────────────────────────────
   Один объект, который прирастает слоями по ходу прокрутки. Слои идут
   снизу вверх, поэтому стопка развёрнута column-reverse, а в разметке
   лежат в естественном порядке. Прогресс каждого слоя приходит из JS
   переменной --on: 0 — слоя нет, 1 — слой на месте. */


/* ── Сцена: пролёт узлов ───────────────────────────────────────────────
   Пять узлов идут слева направо и всю дорогу меняются местами: пока их
   порядок случаен, проверять нечего. В середине каждый встаёт на свою
   дорожку, получает подпись, дальше уходит строем.

   Позиции считает JS и пишет их в --x, --y, --rot и --calm: держать это
   на ключевых кадрах нельзя, потому что положение зависит и от прокрутки,
   и от времени сразу. --calm — насколько узел успокоился: 0 в полёте,
   1 на своём месте; от него зависят подпись, свечение и рамка. */

.fly { position: relative; height: 300vh; background: var(--void); }

.fly__stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fly__head { display: grid; margin-bottom: clamp(1.4rem, 3.5vw, 2.6rem); }
.fly__head > * { grid-area: 1 / 1; }

.fly__title {
  font-size: clamp(1.6rem, 4.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

.fly__title small {
  display: block;
  margin-top: 0.9rem;
  max-width: 48ch;
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--bone-500);
  letter-spacing: 0;
}

.fly__title--before { color: var(--bone); }
.fly__title--before em { font-style: normal; color: var(--signal-400); }
.fly__title--after { color: var(--bone); opacity: 0; transform: translateY(10px); }
.fly__title--after em { font-style: normal; color: var(--guard-400); }
.fly.is-set .fly__title--before { opacity: 0; transform: translateY(-10px); }
.fly.is-set .fly__title--after { opacity: 1; transform: none; }

/* Полоса пролёта. Узлы летят внутри неё и обрезаются по краям — вход и
   выход из кадра должны быть настоящими, а не проявлением на месте. */
.fly__band {
  position: relative;
  height: clamp(190px, 30vw, 300px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Ось, вдоль которой идёт строй: под ней узлы выравниваются в середине. */
.fly__axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-guard) 22%, var(--line-guard) 78%, transparent);
  opacity: 0.5;
}

.fly__unit {
  --x: -20%;
  --y: 0px;
  --rot: 0deg;
  --calm: 0;
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(44px, 7vw, 78px);
  margin-left: calc(clamp(44px, 7vw, 78px) / -2);
  transform: translate3d(var(--x), calc(-50% + var(--y)), 0);
  will-change: transform;
}

.fly__body {
  display: block;
  transform: rotate(var(--rot));
  color: var(--bone-500);
  filter: drop-shadow(0 0 calc(var(--calm) * 14px) rgba(45, 212, 191, 0.55));
}

.fly__unit .fly__gl {
  display: block;
  width: 100%;
  /* height задаётся пропорцией, а не 100% из общего .gl: у контейнера узла
     своей высоты нет, и иконка схлопывалась в ноль. */
  height: auto;
  aspect-ratio: 1 / 1;
  stroke-width: 2;
  color: color-mix(in srgb, var(--guard-400) calc(var(--calm) * 100%), var(--bone-600));
}

/* Подпись держится под узлом и проявляется только когда он встал. */
.fly__tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.55rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 9.5rem;
  text-align: center;
  opacity: calc(var(--calm) * var(--calm));
  transition: opacity 220ms linear;
}

.fly__tag b {
  display: block;
  font-size: 0.86rem;
  color: var(--guard-200);
  letter-spacing: -0.01em;
}

.fly__tag i {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--bone-600);
}

.fly__foot {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-top: clamp(1.1rem, 2.6vw, 1.9rem);
}

.fly__state {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--bone);
  letter-spacing: -0.01em;
  transition: color 320ms var(--ease-out);
}

.fly.is-set .fly__state { color: var(--guard-200); }

.fly__cap {
  margin-left: auto;
  text-align: right;
  color: var(--bone-600);
  max-width: 24ch;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fly__hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-600);
  transition: opacity 420ms var(--ease-out);
}

.fly.is-set .fly__hint { opacity: 0; }

.fly__hint span {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, var(--guard-400));
}

/* Полоса пролёта на телефоне ниже, узлы мельче, вторая строка подписи
   снимается: пять подписей в две строки перекрывают друг друга. */
@media (max-width: 639px) {
  .fly { height: 260vh; }
  .fly__stage { padding-top: 4.5rem; }
  .fly__title { font-size: 1.32rem; }
  .fly__title small { font-size: 13px; margin-top: 0.45rem; }
  .fly__band { height: 168px; }
  .fly__tag { max-width: 5.6rem; }
  .fly__tag i { display: none; }
  .fly__tag b { font-size: 0.68rem; line-height: 1.2; }
  .fly__cap { display: none; }
  .fly__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fly { height: auto; }
  .fly__stage { position: static; min-height: 0; padding: clamp(3rem, 8vw, 6rem) 0; }
  .fly__hint { display: none; }
}

.hud__name { font-size: 13px; font-weight: 600; color: var(--bone-400); letter-spacing: -0.01em; }
.hud__pick { margin-left: auto; color: var(--bone-600); font-size: 9.5px; }
.hud__bar 
/* Узел контура — кнопка, а не подпись: на первом экране должно быть
   что-то, что отзывается на действие. */
.hud__block {
  /* Сброс кнопочных умолчаний. font целиком брать нельзя: он затирает
     размер, заданный выше, и мобильное правило вместе с ним. */
  font-family: inherit;
  font-weight: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}
.hud__block:hover { border-color: var(--line-guard); color: var(--bone); }
.hud__block.is-lit {
  border-color: var(--guard-400); background: rgba(45, 212, 191, 0.14);
  color: var(--bone); box-shadow: 0 0 18px -6px rgba(45, 212, 191, 0.5);
}

.hud__deliver {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.35rem 0.5rem; text-align: center; font-size: 9.5px;
  color: var(--bone-600); min-height: 2.2em;
}
.hud__deliver b {
  color: var(--guard-300); font-weight: 500;
  transition: opacity 0.2s var(--ease-soft);
}
.hud__deliver.is-swap b { opacity: 0; }

/* Отказ в доступе — тоже правильная работа контура, поэтому он красный,
   а не «ошибка»: партнёр должен видеть, что политика срабатывает. */
.log-line i.is-deny { color: var(--signal-400); }

/* ═══ БАГ-РАССКАЗЧИК ════════════════════════════════════════════════ */

/* Пиксельный монстр 7×7. Клетки рисует js из карты кадра; здесь — только
   сетка, палитра состояний и походка. Размер клетки задаёт --cell. */
.bug { --cell: 8px; }

.bug__px {
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  grid-auto-rows: var(--cell);
  width: calc(var(--cell) * 7);
}

.bug__px i { background: transparent; }
.bug__px i.on { background: var(--signal-400); }
.bug__px i.eye { background: #030910; }

/* Состояния по главам: заведённый (красный) → встревоженный (янтарный)
   → выведенный из строя (серый, лежит на боку). */
.bug--amber .bug__px i.on { background: var(--amber-400); }
.bug--down .bug__px i.on { background: var(--bone-600); }
.bug--down .bug__px { transform: rotate(90deg); }

/* Ходок: приклеен к низу окна, x двигает js по ходу прокрутки. */
.bug--walker {
  position: fixed;
  left: 0;
  bottom: 3.4rem;
  z-index: 89;
  opacity: 0;
  transition: opacity 500ms var(--ease-soft);
  pointer-events: none;
  will-change: transform;
}

body.has-bug .bug--walker { opacity: 1; }

/* Финал истории: вирус пропадает — тает вверх. Класс вешает js на
   последней главе; откат прокрутки возвращает его. */
.bug--walker.is-gone {
  opacity: 0 !important;
  filter: blur(2px);
  transition: opacity 900ms var(--ease-soft), filter 900ms var(--ease-soft);
}

.bug--walker.is-gone .bug__px { translate: 0 -18px; transition: translate 900ms var(--ease-soft); }

.bug--walker.is-hop .bug__px { animation: bug-hop 460ms var(--ease-out); }

@keyframes bug-hop {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -16px; }
  70% { translate: 0 2px; }
}

.bug--walker .bug__px { transition: transform 400ms var(--ease-soft); }

/* Реплика: короткая строка над монстром. Появляется на смене главы. */
.bug__say {
  position: absolute;
  bottom: calc(var(--cell) * 7 + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px 8px 8px 2px;
  background: var(--panel);
  color: var(--bone-400);
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 350ms var(--ease-soft), transform 350ms var(--ease-soft);
}

.bug--walker.is-talking .bug__say { opacity: 1; transform: translateX(-50%) translateY(0); }

/* У правого края бабл прижимается хвостом к монстру справа — иначе он
   уходил за окно вместе с финальной репликой. */
.bug--walker.is-right .bug__say {
  left: auto;
  right: 0;
  transform: translateY(4px);
  border-radius: 8px 8px 2px 8px;
}

.bug--walker.is-right.is-talking .bug__say { transform: translateY(0); }

.bug--walker.is-left .bug__say {
  left: 0;
  right: auto;
  transform: translateY(4px);
  border-radius: 8px 8px 8px 2px;
}

.bug--walker.is-left.is-talking .bug__say { transform: translateY(0); }

/* Спавн сыграл — копия в титре гаснет: по сюжету монстр один, он
   «спрыгнул» вниз и пошёл по странице. */
body.has-bug .bug--spawn { opacity: 0; transition: opacity 600ms var(--ease-soft); }

/* Спавн в первом титре: строка взлома печатается, потом баг собирается
   из случайных клеток. Клетки мигают в шахматном беспорядке и застывают
   в форме — js только включает классы по таймингу титра. */
.titr__hack {
  min-height: 1.3em;
  font-size: 14px;
  color: var(--signal-400);
  letter-spacing: 0.22em;
  opacity: 0;
}

/* Штамп-вердикт: появляется после строки взлома. Красная рамка и косой
   оттиск — итог понятен даже тому, кто не читал строку. */
.titr__stamp {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--signal-400);
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal-400);
  opacity: 0;
  transform: rotate(-4deg) scale(1.35);
}

.titr.is-breached .titr__stamp {
  animation: stamp-hit 360ms var(--ease-out) both;
}

/* На телефоне штамп ужимается и умеет переноситься: разрядка 0.3em
   выталкивала его за край экрана. */
@media (max-width: 480px) {
  .titr__stamp {
    max-width: 92%;
    white-space: normal;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }
}

@keyframes stamp-hit {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.6); }
  60% { opacity: 1; transform: rotate(-4deg) scale(0.96); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

.titr.is-hacked .titr__hack { opacity: 1; }

.titr.is-hacked .titr__num {
  transform: rotate(2deg) translateX(0.8ch);
  transition: transform 200ms steps(2);
}

/* Момент взлома. Заголовок резко кособочится и трясётся, по экрану бьёт
   вспышка с глитч-полосами — читается как сбой, а не как переход. Наклон
   остаётся: сломанное не выпрямляется само. */
.titr.is-hacked .titr__text {
  animation: hack-jolt 520ms steps(4, end) both;
  transform: rotate(-4.5deg) skewX(-9deg) translate(-0.6ch, 0.15em);
  transition: none;
}

@keyframes hack-jolt {
  0% { transform: none; }
  25% { transform: rotate(2.8deg) skewX(4deg) translateX(1ch); }
  50% { transform: rotate(-6deg) skewX(-12deg) translate(-1.2ch, 0.3em); }
  75% { transform: rotate(-3.2deg) skewX(-6deg) translateY(-0.1em); }
  100% { transform: rotate(-4.5deg) skewX(-9deg) translate(-0.6ch, 0.15em); }
}

.titr__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0 12px,
      rgba(224, 40, 27, 0.16) 12px 15px,
      transparent 15px 44px,
      rgba(45, 212, 191, 0.12) 44px 46px),
    rgba(255, 255, 255, 0.12);
  mix-blend-mode: screen;
}

.titr.is-hacked .titr__flash { animation: hack-flash 620ms steps(5) both; }

@keyframes hack-flash {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0.7; transform: translateY(-6px); }
  70% { opacity: 0.9; transform: translateY(4px); }
  100% { opacity: 0; transform: none; }
}

.bug--spawn { --cell: 12px; margin-top: 0.4rem; min-height: calc(var(--cell) * 7); }

.bug--spawn .bug__px { opacity: 0; }
.titr.is-hacked .bug--spawn .bug__px { opacity: 1; }

.titr.is-hacked .bug--spawn .bug__px i.on {
  animation: px-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--px-d) * 1ms);
}

@keyframes px-in {
  0% { opacity: 0; transform: translate(var(--px-x), var(--px-y)) scale(0.4); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 900px) { .bug--walker { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .bug--walker { display: none; }
  .bug--spawn .bug__px { opacity: 1; }
  .titr.is-hacked .bug--spawn .bug__px i.on { animation: none; }
  .titr.is-hacked .titr__text { animation: none; }
  .titr.is-hacked .titr__flash { animation: none; }
}

/* ═══ КИНО-КАРКАС ═══════════════════════════════════════════════════ */

/* Интертитр — полноэкранный кадр с одной фразой между актами. Высота
   больше экрана, внутренность липкая: фраза успевает постоять в кадре,
   пока прокрутка идёт, — как титр в кино, а не как заголовок в ленте.
   Фон глубже основного: свет «гаснет» между сценами. */
.titr {
  position: relative;
  height: 190vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(8, 20, 34, 0.0) 0%, rgba(2, 5, 9, 0.85) 100%),
    #030910;
}

.titr__stage {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 0 1.5rem;
  text-align: center;
}

.titr__num {
  color: var(--guard-400);
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.titr__text {
  max-width: 21ch;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--bone);
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

.titr__text em { font-style: normal; color: var(--guard-400); }

.titr.is-on .titr__num,
.titr.is-on .titr__text { opacity: 1; transform: none; }

.titr.is-on .titr__num { transition-delay: 250ms; }

/* Маркер главы: тихая строка в левом нижнем углу. Смена номера идёт
   вертикальным сдвигом — как счётчик кадров. */
.chapter {
  position: fixed; left: 1.4rem; bottom: 1.3rem; z-index: 90;
  color: var(--bone-600);
  letter-spacing: 0.2em;
  transition: opacity 300ms var(--ease-soft);
}

.chapter #chapterNum { color: var(--guard-400); }

.chapter.is-swap { opacity: 0; }

@media (max-width: 900px) { .chapter { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .titr { height: auto; padding: 5rem 0; background: #030910; }
  .titr__stage { position: static; height: auto; }
  .titr__num, .titr__text { opacity: 1; transform: none; }
}

/* ═══ БЫЛО → СТАЛО ══════════════════════════════════════════════════ */

/* Смысл секции про приёмку — в двух числах: сколько нашли и сколько
   осталось. Абзацем это читали через раз, крупной цифрой — сразу. */
.delta {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Три ячейки в две колонки давали пустое место справа внизу — читалось
   как потерянный четвёртый блок. На узком экране ставим их в столбик. */
@media (max-width: 619px) { .delta { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 620px) { .delta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.delta__cell {
  position: relative; background: var(--void);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}
.delta__num {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.12em;
}
.delta__num sup { position: relative; top: -0.5em; font-size: 0.4em; line-height: 0; }
.delta__cell--was  .delta__num { color: var(--signal-400); }
.delta__cell--now  .delta__num { color: var(--guard-400); }
.delta__cell--term .delta__num { color: var(--amber-400); }
.delta__label { margin-top: 0.7rem; font-size: 13px; line-height: 1.5; color: var(--bone-500); }
.delta__tag {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-600); display: block; margin-bottom: 0.85rem;
}

/* Стрелка между «было» и «стало» — на стыке ячеек, а не отдельной
   колонкой: колонка съедала бы ширину на телефоне. */
.delta__cell--now::before {
  content: ''; position: absolute; left: -1px; top: 50%;
  width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--void); border-right: 1px solid var(--line);
  border-top: 1px solid var(--line); z-index: 2;
}
@media (max-width: 619px) { .delta__cell--now::before { display: none; } }

/* Канвас с «потоком событий» снят: летящие через всю страницу чёрточки
   читались как сгенерированная заставка, а не как оформление. Секции
   остаются на полупрозрачных фонах — теперь под ними просто тёмный тон. */
body > header, body > main, body > footer, .progress { position: relative; z-index: 1; }

.section--deep  { background: rgba(8, 20, 34, 0.86); }
.section--raise { background: rgba(10, 22, 38, 0.86); }
.stats          { background: rgba(8, 20, 34, 0.88); }
.fly            { background: transparent; }
.footer         { background: rgba(4, 9, 15, 0.9); }
.header         { z-index: 100; }

/* Полосы без собственного тона показывают поток целиком — там он и
   должен быть виден сильнее всего. */
.section:not(.section--deep):not(.section--raise):not(.final) { background: transparent; }

/* ═══ ФОНОВАЯ ШЕСТЕРНЯ ══════════════════════════════════════════════ */

/* Крутится медленно и постоянно — узел, который работает, пока человек
   читает. Свешивается за край секции, поэтому обязана лежать внутри
   блока с overflow: hidden, иначе растягивает страницу вширь и на
   телефоне появляется горизонтальная прокрутка на пустое место. */
.cog {
  position: absolute; pointer-events: none; z-index: 0;
  fill: none; stroke: currentColor; stroke-width: 0.6;
  color: var(--guard-600); opacity: 0.3;
  --gl-accent: currentColor;
  animation: cog-spin 44s linear infinite;
}
@keyframes cog-spin { to { transform: rotate(360deg); } }

.cog--faq { right: -13rem; top: 38%; width: 28rem; height: 28rem; }
@media (max-width: 900px) { .cog--faq { width: 17rem; height: 17rem; right: -7rem; top: auto; bottom: -4rem; } }


}
