/* ==========================================================================
   YAKOBSON V. — одностраничный сайт
   Порядок: шрифты → токены → база → компоненты по разделам → движение
   ========================================================================== */

/* ---------- Шрифт Inter (self-hosted, OFL — assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations'),
       url('assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('assets/fonts/inter-latin-wght-normal.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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Метрический фолбэк: Arial, подогнанный под метрики Inter, — без скачка вёрстки при подмене шрифта */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* ==========================================================================
   Темы. ВСЕ цвета сайта — здесь; ниже по файлу только var(--…).
   Светлая (по умолчанию) — как демо «Джарвис-гид» /ru/, тёмная — как основной сайт yakobsonv.com.
   Тема ставится встроенным скриптом в <head> до отрисовки (атрибут data-theme на <html>).
   Контраст обеих тем: node scripts/contrast.mjs (читает значения прямо из этого файла).
   ========================================================================== */
:root {
  /* Общее для обеих тем: «железо» устройств (корпус ноутбука и планшета) */
  --hw-1: #2e3234;
  --hw-2: #1a1c1e;
  --hw-3: #141617;
  --hw-tablet: #303538;
  --hw-edge: #3a4042;
  --hw-cam: #0b0c0d;
  --hw-cam-ring: #2b3032;
  --hw-deck-1: #121415;
  --hw-deck-2: #2b2f32;
  --hw-deck-3: #40464a;
  --hw-lip-1: #5a6165;
  --hw-lip-2: #2a2e31;
  --hw-lip-3: #17191b;
  --hw-notch: #1c1f21;
  --hw-thickness: #0b0c0d;
  --hw-shine: rgba(255, 255, 255, 0.08);
  --hw-shine-soft: rgba(255, 255, 255, 0.05);
  --hw-inset: rgba(0, 0, 0, 0.6);
  --hw-inset-soft: rgba(0, 0, 0, 0.35);
  --mask-solid: #000;            /* непрозрачная часть масок (альфа-канал, не цвет на экране) */

  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 64px;
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1160px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --section-space: clamp(88px, 11vw, 168px);
}

/* ---------- Светлая тема (по умолчанию, в т. ч. без JS) ---------- */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f5f0;
  --surface: #fcfcf8;            /* карточки, панели */
  --surface-soft: #edf0e9;
  --surface-strong: #dce0d6;
  --text: #272a23;
  --text-soft: #464b42;
  --muted: #5f655a;              /* второстепенный текст */
  --accent: #2b716b;             /* акцент для текста и рамок */
  --accent-strong: #235e59;
  --accent-deco: #3b938c;        /* кольца, линии, точка этапов */
  --accent-tint: #e1ede9;
  --accent-line: rgba(43, 113, 107, 0.4);
  --line: #dce0d6;
  --line-strong: #c5cbbf;
  --control: #7d8378;            /* рамки контролов, ≥ 3:1 */
  --positive: #2f6b3f;
  --btn-bg: #272a23;             /* основная кнопка — «чернильная» */
  --btn-bg-hover: #3b3f37;
  --btn-text: #fcfcf8;
  --btn-shadow: 0 12px 28px -18px rgba(39, 42, 35, 0.6);
  --btn-shadow-hover: 0 16px 32px -18px rgba(39, 42, 35, 0.7);
  --btn-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ghost-bg: rgba(252, 252, 248, 0.7);
  --header-bg: rgba(245, 245, 240, 0.86);
  --backdrop: rgba(39, 42, 35, 0.25);
  --shadow-soft: 0 24px 60px -38px rgba(39, 42, 35, 0.3);
  --shadow-strong: 0 30px 60px -36px rgba(39, 42, 35, 0.38);
  --shadow-step: 0 18px 40px -32px rgba(39, 42, 35, 0.3);
  --highlight: rgba(255, 255, 255, 0.9);
  --glow-a: rgba(59, 147, 140, 0.1);
  --glow-b: rgba(59, 147, 140, 0.05);
  --grid-line: rgba(39, 42, 35, 0.045);
  --card-tint-a: rgba(59, 147, 140, 0.08);
  --card-tint-b: rgba(59, 147, 140, 0.025);
  --card-border: #dce0d6;
  --card-border-current: #c5cbbf;
  --dot-off: #7d8378;
  --dot-track: #dce0d6;
  --rail: rgba(95, 101, 90, 0.55);
  --pulse-core: #ffffff;
  --pulse-glow: 0 0 0 5px rgba(59, 147, 140, 0.14), 0 2px 10px rgba(43, 113, 107, 0.3);
  --step-glow-border: rgba(43, 113, 107, 0.5);
  --step-glow-bg: rgba(59, 147, 140, 0.1);
  --step-glow-bg-2: rgba(225, 237, 233, 0.55);
  --step-glow-shadow: 0 18px 40px -28px rgba(43, 113, 107, 0.4);
  --band-a: rgba(225, 237, 233, 0.75);
  --band-b: rgba(237, 240, 233, 0.75);
  --device-shadow: rgba(39, 42, 35, 0.3);
  --device-floor: rgba(39, 42, 35, 0.22);
  --device-aura: rgba(59, 147, 140, 0.14);
  --art-1: #3b938c;
  --art-2: #a9cfc8;
  --art-3: #2b716b;
  --art-ink: #fcfcf8;

  /* Экран ноутбука: светлый интерфейс в токенах темы */
  --screen-bg: #fcfcf8;
  --screen-text: #272a23;
  --screen-muted: #5f655a;
  --screen-positive: #2f6b3f;
  --screen-panel-a: #f3f5ef;
  --screen-panel-b: #f8f9f4;
  --screen-panel-line: #dce0d6;
  --screen-feature: #e7f0ec;
  --screen-badge-text: #2b716b;
  --screen-badge-bg: #e1ede9;
  --screen-badge-line: rgba(43, 113, 107, 0.35);
  --screen-glow-a: rgba(59, 147, 140, 0.06);
  --screen-glow-b: rgba(59, 147, 140, 0.03);
  --screen-edge: rgba(39, 42, 35, 0.08);

  /* Планшет: светлый серо-зелёный интерфейс */
  --t-bg: #edf0e9;
  --t-surface: #fcfcf8;
  --t-text: #272a23;
  --t-muted: #5f655a;
  --t-accent: #2b716b;
  --t-line: #dce0d6;
  --t-dot: #c5cbbf;
  --t-shadow: rgba(39, 42, 35, 0.3);
  --t-glow: rgba(59, 147, 140, 0.08);
}

/* ---------- Тёмная тема (основной сайт yakobsonv.com, акцент «шампань») ---------- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0e0d0b;
  --surface: #1c1916;
  --surface-soft: #161412;
  --surface-strong: #2a2521;
  --text: #f2e9da;
  --text-soft: #d9cfbe;
  --muted: #a89e8c;
  --accent: #d4b896;
  --accent-strong: #e0c8a8;
  --accent-deco: #d4b896;
  --accent-tint: rgba(212, 184, 150, 0.14);
  --accent-line: rgba(212, 184, 150, 0.38);
  --line: #2a2521;
  --line-strong: #3a332d;
  --control: #766c60;
  --positive: #8ac58c;
  --btn-bg: #d4b896;
  --btn-bg-hover: #e0c8a8;
  --btn-text: #0e0d0b;
  --btn-shadow: 0 10px 34px -14px rgba(212, 184, 150, 0.42);
  --btn-shadow-hover: 0 14px 40px -14px rgba(212, 184, 150, 0.58);
  --btn-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --ghost-bg: rgba(242, 233, 218, 0.03);
  --header-bg: rgba(14, 13, 11, 0.8);
  --backdrop: rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  --shadow-strong: 0 40px 80px -36px rgba(0, 0, 0, 0.9);
  --shadow-step: 0 24px 50px -34px rgba(0, 0, 0, 0.9);
  --highlight: rgba(255, 255, 255, 0.05);
  --glow-a: rgba(212, 184, 150, 0.1);
  --glow-b: rgba(196, 166, 130, 0.07);
  --grid-line: rgba(242, 233, 218, 0.035);
  --card-tint-a: rgba(212, 184, 150, 0.12);
  --card-tint-b: rgba(212, 184, 150, 0.04);
  --card-border: rgba(212, 184, 150, 0.18);
  --card-border-current: rgba(212, 184, 150, 0.38);
  --dot-off: #766c60;
  --dot-track: #3a332d;
  --rail: rgba(168, 158, 140, 0.6);
  --pulse-core: #fbf3e6;
  --pulse-glow: 0 0 0 5px rgba(212, 184, 150, 0.16), 0 0 22px 6px rgba(212, 184, 150, 0.42);
  --step-glow-border: rgba(212, 184, 150, 0.7);
  --step-glow-bg: rgba(212, 184, 150, 0.14);
  --step-glow-bg-2: rgba(212, 184, 150, 0.06);
  --step-glow-shadow: 0 0 0 1px rgba(212, 184, 150, 0.12), 0 20px 60px -22px rgba(212, 184, 150, 0.4);
  --band-a: rgba(212, 184, 150, 0.05);
  --band-b: rgba(212, 184, 150, 0.02);
  --device-shadow: rgba(0, 0, 0, 0.85);
  --device-floor: rgba(0, 0, 0, 0.7);
  --device-aura: rgba(212, 184, 150, 0.22);
  --art-1: #d4b896;
  --art-2: #f2e9da;
  --art-3: #a8865e;
  --art-ink: #1c1916;

  /* Экран ноутбука: тёмный интерфейс в токенах темы */
  --screen-bg: #12100e;
  --screen-text: #f2e9da;
  --screen-muted: #a89e8c;
  --screen-positive: #8ac58c;
  --screen-panel-a: rgba(242, 233, 218, 0.055);
  --screen-panel-b: rgba(242, 233, 218, 0.015);
  --screen-panel-line: rgba(242, 233, 218, 0.07);
  --screen-feature: rgba(212, 184, 150, 0.1);
  --screen-badge-text: #d4b896;
  --screen-badge-bg: rgba(212, 184, 150, 0.14);
  --screen-badge-line: rgba(212, 184, 150, 0.38);
  --screen-glow-a: rgba(212, 184, 150, 0.08);
  --screen-glow-b: rgba(212, 184, 150, 0.04);
  --screen-edge: rgba(255, 255, 255, 0.04);

  /* Планшет: светлый тёплый интерфейс («бумага» в тон шампани) */
  --t-bg: #ece4d6;
  --t-surface: #f8f3ea;
  --t-text: #1f1b16;
  --t-muted: #574d40;
  --t-accent: #765629;
  --t-line: #d8ccb7;
  --t-dot: #c4b59c;
  --t-shadow: rgba(31, 27, 22, 0.5);
  --t-glow: rgba(118, 86, 41, 0.1);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}
html.is-menu-open { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

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

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  /* при переходе по якорю содержимое раздела встаёт сразу под шапкой, а не после верхнего отступа */
  scroll-margin-top: calc(16px - var(--section-space));
}
.section--tight { --section-space: clamp(72px, 8vw, 120px); }

/* Заголовки разделов: крупно, плотный трекинг */
.h2 {
  font-size: clamp(2rem, 1.15rem + 3.7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2__soft { color: var(--muted); }
.h2--center { text-align: center; }
.h2--caps { letter-spacing: -0.04em; }
.h2--xl { font-size: clamp(1.5rem, 7.4vw, 5.5rem); }
/* Заголовок, на который переведён фокус после перехода из меню */
h2[tabindex='-1']:focus { outline: none; }

.h2--md { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.04em; }
.h2__accent { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  max-width: 34em;
}

/* Надзаголовок раздела (как eyebrow на yakobsonv.com) */
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Плашки-метки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--ghost-bg);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.3;
}

/* Ссылка-стрелка: самостоятельная ссылка с целью нажатия ≥ 44 px */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.link-arrow:hover { color: var(--accent); }
/* Ссылка внутри предложения: по WCAG 2.5.8 на строчные ссылки в тексте требование к размеру цели не распространяется */
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; color: var(--text); }

/* Спрайт знака логотипа — только источник для <use> */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { flex: none; }
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-shadow), var(--btn-highlight);
}
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: var(--btn-shadow-hover), var(--btn-highlight); }
.btn--ghost {
  border-color: var(--control);
  background: var(--ghost-bg);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-tint); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent-tint); }
.icon-btn--sm { width: 44px; height: 44px; }
.icon-btn .i-play,
[aria-pressed='true'] .i-pause { display: none; }
[aria-pressed='true'] .i-play { display: block; }
.icon-btn[aria-pressed='true'],
.btn[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }
.btn .i-play { display: none; }
.btn[aria-pressed='true'] .i-play { display: block; }

/* Индикаторы (общие для карусели и ниш) */
.dots { display: flex; justify-content: center; flex-wrap: wrap; }
.dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot-off);
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}
.dot:hover::before { background: var(--muted); }
.dot[aria-current='true']::before {
  width: 26px;
  background: linear-gradient(90deg, var(--accent-deco) calc(var(--p, 1) * 100%), var(--dot-track) 0);
}

/* ---------- 1. Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-inline: var(--gutter);
}
/* Логотип yakobsonv.com: знак (цвет — акцент темы через currentColor) + «Yakobson V» с акцентной точкой */
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo__mark { flex: none; width: 32px; height: 32px; color: var(--accent); transition: transform 0.3s var(--ease); }
a.logo:hover .logo__mark { transform: scale(1.05); }
.logo__word { color: var(--text); }
.logo__dot { color: var(--accent); }
.menu-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.menu-toggle:hover { border-color: var(--accent); background: var(--accent-tint); }
/* До инициализации меню кнопка занимает место, но не показывается: без JS она не работает */
html:not(.has-menu) .menu-toggle { visibility: hidden; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* Переключатель темы: круглый, луна (включить тёмную) / солнце (вернуть светлую) */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-tint); }
.theme-toggle .i-sun,
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
html:not(.has-theme-toggle) .theme-toggle { visibility: hidden; }
.menu-toggle__icon,
.menu-toggle__icon::before {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle__icon { position: relative; transform: translateY(-3px); }
.menu-toggle__icon::before { content: ''; position: absolute; top: 6px; width: 11px; }

/* ---------- Полноэкранное меню ---------- */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 85% 10%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 10% 95%, var(--glow-b), transparent 70%),
    var(--bg);
}
.menu::backdrop { background: var(--backdrop); }
.menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) 32px;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-close:hover { border-color: var(--accent); }
.menu__nav { flex: 1; display: flex; align-items: center; padding-block: 24px; }
.menu__body { width: 100%; max-width: var(--container); margin-inline: auto; }
.menu__section {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu__list { list-style: none; padding: 0; }
.menu__list li + li { border-top: 1px solid var(--line); }
.menu__list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'num label' '. hint';
  align-items: baseline;
  column-gap: clamp(14px, 3vw, 32px);
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.menu__list a:hover { color: var(--accent); transform: translateX(8px); }
.menu__num {
  grid-area: num;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;   /* «01» и «02» одной ширины — пункты начинаются с одной линии */
  letter-spacing: 0;
  color: var(--muted);
}
.menu__label {
  grid-area: label;
  font-size: clamp(1.625rem, 1rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.menu__ext { margin-left: 0.25em; font-size: 0.55em; font-weight: 500; color: var(--muted); vertical-align: 0.6em; }
.menu__hint { grid-area: hint; color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (min-width: 768px) {
  .menu__list a { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'num label hint'; }
  .menu__hint { text-align: right; font-size: 15px; }
}
.menu__foot {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}
.menu__foot .menu__section { margin: 6px 0 0; }
.menu__cabinet,
.menu__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.menu__cabinet { justify-self: start; }
.menu__cabinet:hover,
.menu__mail:hover { color: var(--accent); }
.menu__faint { color: var(--muted); font-weight: 400; }
.menu__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* ---------- 2. Первый экран ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 38% at 30% 38%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 72% 58%, var(--glow-b), transparent 70%);
}
.hero__glow::after {
  /* тонкая сетка-подложка */
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, var(--mask-solid) 20%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 50%, var(--mask-solid) 20%, transparent 75%);
}
.hero__inner { display: grid; justify-items: center; text-align: center; }
.hero__eyebrow { margin-bottom: clamp(16px, 2.4vw, 26px); }
.hero__title {
  font-size: clamp(2rem, 1rem + 5.4vw, 6rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__accent { color: var(--accent); }
.hero__sub {
  max-width: 44em;
  margin-top: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  margin-top: 14px;
}
.hero__note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.hero__chips { justify-content: center; margin-top: 22px; }
.hero__fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 10px; }
.hero__fit .chips { justify-content: center; }
.hero__fit-label { font-size: 12px; }
.round-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--control);
  background: radial-gradient(circle at 50% 30%, var(--accent-tint), transparent 70%);
  color: var(--accent);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.round-link:hover { border-color: var(--accent); transform: translateY(2px); }

@media (max-width: 559px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: min(100%, 320px); }
}

/* ---------- 3. Ноутбук ---------- */
.overview { position: relative; overflow: hidden; }
.laptop-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 60px);
  padding: 0 var(--gutter) 40px;
  perspective: 1800px;
  perspective-origin: 50% 20%;
}
.laptop-stage::before {
  content: '';
  position: absolute;
  inset: 10% 15% 0;
  z-index: -1;
  background:
    radial-gradient(45% 50% at 35% 50%, var(--glow-a), transparent 70%),
    radial-gradient(45% 50% at 68% 45%, var(--glow-b), transparent 70%);
  filter: blur(10px);
}
.laptop {
  --rx: 4deg;
  --ry: 0deg;
  --deck: 0.6;
  position: relative;
  width: min(620px, 100%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: 50% 85%;
}
.laptop__lid {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(170deg, var(--hw-1), var(--hw-2) 60%, var(--hw-3));
  border: 1px solid var(--hw-edge);
  box-shadow:
    inset 0 1px 0 var(--hw-shine),
    inset 0 0 0 1px var(--hw-inset),
    0 40px 80px -36px var(--device-shadow);
}
.laptop__cam {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--hw-cam);
  box-shadow: 0 0 0 1px var(--hw-cam-ring);
}
/* Экран держит пропорцию строго: интерфейс лежит поверх (position: absolute) и не может
   растянуть экран в «вертикальный планшет». Если текст всё же не влез (узкий телефон,
   увеличенный шрифт) — он прокручивается внутри экрана, а не ломает силуэт ноутбука. */
.laptop__screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(70% 60% at 100% 0%, var(--screen-glow-a), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, var(--screen-glow-b), transparent 70%),
    var(--screen-bg);
  box-shadow: inset 0 0 0 1px var(--screen-edge);
  color: var(--screen-text);
}
.laptop__base { position: relative; margin-inline: -7%; }
.laptop__deck {
  display: block;
  height: calc(4px + 14px * var(--deck));
  background: linear-gradient(180deg, var(--hw-deck-1) 0%, var(--hw-deck-2) 55%, var(--hw-deck-3) 100%);
  clip-path: polygon(6.5% 0, 93.5% 0, 100% 100%, 0 100%);
}
.laptop__lip {
  position: relative;
  display: block;
  height: 9px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, var(--hw-lip-1) 0%, var(--hw-lip-2) 45%, var(--hw-lip-3) 100%);
  box-shadow: 0 1px 0 var(--hw-shine-soft) inset;
}
.laptop__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: var(--hw-notch);
}
.laptop__shadow {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -30px;
  z-index: -1;
  height: 36px;
  background: radial-gradient(closest-side, var(--device-floor), transparent);
  filter: blur(6px);
}
.overview__head { display: grid; justify-items: center; gap: 14px; }
.overview__demo { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.demo-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deco); }
.overview__note {
  max-width: 40em;
  margin: 12px auto 0;
  padding-inline: var(--gutter);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Вкладки превью дашборда — под ноутбуком (на экране для целей 44 px места нет) */
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-inline: var(--gutter);
}
.dash-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.dash-tab:hover { border-color: var(--accent); background: var(--accent-tint); }
.dash-tab[aria-selected='true'] { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); }

/* Интерфейс на экране ноутбука — минимальный кегль 11 px */
.dash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 14px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.dash__bar { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash__dots { display: flex; flex: none; gap: 5px; }
.dash__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--screen-panel-line); box-shadow: inset 0 0 0 1px var(--screen-muted); opacity: 0.6; }
.dash__path { flex: 1; min-width: 0; overflow: hidden; color: var(--screen-muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.dash__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--screen-badge-line);
  background: var(--screen-badge-bg);
  color: var(--screen-badge-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash__live { width: 6px; height: 6px; border-radius: 50%; background: var(--screen-positive); }
/* Область вкладок: если содержимое вкладки выше экрана — прокручивается внутри экрана (фокус — Tab) */
.dash__panes {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-radius: 6px;
}
.dash__pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash__pane:focus-visible { outline-offset: -2px; }
.dash.is-tabbed .dash__pane { min-height: 100%; }
.dash__pane > * { flex: none; }
.dash__pane--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-content: start; gap: 14px 16px; }
.dash__col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dash__h { margin-top: 2px; color: var(--screen-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Обзор. Первая колонка чуть шире: «Органический трафик» в одну строку */
.dash__kpis { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 10px 10px 9px;
  border-radius: 10px;
  border: 1px solid var(--screen-panel-line);
  background: linear-gradient(160deg, var(--screen-panel-a), var(--screen-panel-b));
}
.kpi:first-child { background: linear-gradient(160deg, var(--screen-feature), var(--screen-panel-b)); }
.kpi__label { color: var(--screen-muted); font-size: 11px; }
.kpi__value { font-size: 22px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.2; white-space: nowrap; }
.kpi__unit { color: var(--screen-muted); font-size: 11px; }
.kpi__delta { color: var(--screen-positive); font-size: 11px; font-weight: 600; }
/* График органического трафика (как в «Обзоре» на yakobsonv.com) — занимает свободную высоту экрана */
.dash__pane > .dash__chart { flex: 1 1 0; width: 100%; min-height: 0; max-height: 120px; }
.dash:not(.is-tabbed) .dash__pane > .dash__chart { flex-basis: 48px; }
.dash__chart-grid { fill: none; stroke: var(--screen-panel-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash__chart-area { fill: var(--screen-feature); }
.dash__chart-line { fill: none; stroke: var(--screen-badge-text); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dash__table-wrap {
  padding: 8px 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--screen-panel-line);
  background: var(--screen-panel-b);
}
.dash__table { width: 100%; font-size: 12px; }
.dash__table caption { padding-bottom: 4px; font-weight: 600; text-align: left; }
.dash__table th,
.dash__table td { padding: 5px 4px; border-top: 1px solid var(--screen-panel-line); text-align: right; font-weight: 400; }
.dash__table th:first-child { text-align: left; }
.dash__table tbody th { color: var(--screen-text); }
.dash__table .is-up { color: var(--screen-positive); font-weight: 600; }
.dash__foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; color: var(--screen-muted); font-size: 11px; }
.dash__foot dt { display: inline; }
.dash__foot dd { display: inline; margin-left: 6px; color: var(--screen-text); font-weight: 600; }

/* Сводка вкладки: подпись, крупное значение, динамика */
.dsum__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--screen-muted); font-size: 12px; }
.dsum__period { font-size: 11px; }
.dsum__value { font-size: 26px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; white-space: nowrap; }
.dsum__delta { margin-left: 6px; color: var(--screen-positive); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.dsum__delta--muted { color: var(--screen-muted); }
.dsum__unit { color: var(--screen-muted); font-size: 11px; }

.dtiles { display: grid; gap: 6px; }
.dtiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dtile {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--screen-panel-line);
  background: linear-gradient(160deg, var(--screen-panel-a), var(--screen-panel-b));
}
.dtiles--flat .dtile { padding: 0; border: 0; background: none; }
.dtile dt { color: var(--screen-muted); font-size: 11px; }
.dtile__v { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.dtile__d { color: var(--screen-positive); font-size: 11px; font-weight: 600; }

.dtable { width: 100%; font-size: 12px; }
.dtable th,
.dtable td { padding: 4px; border-top: 1px solid var(--screen-panel-line); text-align: right; font-weight: 400; white-space: nowrap; }
.dtable tr > :first-child { padding-left: 0; text-align: left; white-space: normal; }
.dtable tr > :last-child { padding-right: 0; }
.dtable thead th { border-top: 0; color: var(--screen-muted); font-size: 11px; }
.dtable thead th:nth-child(3) { text-align: center; }
.dtable tbody th { color: var(--screen-text); }
.dtable tbody td:nth-child(2) { font-weight: 650; }
.dtable .is-up { color: var(--screen-positive); font-weight: 600; }
.spark { width: 52px; height: 14px; margin-inline: auto; fill: none; stroke: var(--screen-badge-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.dbars { display: grid; gap: 6px; padding: 0; list-style: none; }
.dbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.dbars__num { color: var(--screen-muted); font-size: 11px; white-space: nowrap; }
.dbar {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--screen-badge-text) var(--v, 0%), var(--screen-panel-line) 0);
}
.dtile .dbar { margin-top: 4px; }

.drows { display: grid; padding: 0; list-style: none; }
.drows li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-top: 1px solid var(--screen-panel-line); }
.drows li:first-child { border-top: 0; }
.drows li > :last-child { color: var(--screen-muted); white-space: nowrap; }

.dfeed { display: grid; gap: 6px; padding: 0; list-style: none; }
.dfeed li { display: flex; align-items: baseline; gap: 8px; }
.dfeed__text { flex: 1; min-width: 0; }
.dfeed__time { flex: none; color: var(--screen-muted); font-size: 11px; white-space: nowrap; }
.dpill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--screen-badge-line);
  background: var(--screen-badge-bg);
  color: var(--screen-badge-text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.dpill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dpill--muted { border-color: var(--screen-panel-line); background: var(--screen-panel-a); color: var(--screen-muted); }

.dline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 6px; border-top: 1px solid var(--screen-panel-line); color: var(--screen-muted); font-size: 12px; }
.dline div { display: flex; gap: 8px; }
.dline dd { color: var(--screen-text); font-weight: 600; }

/* Компактный экран (телефон, узкий планшет): ничего не убираем, а перекладываем.
   «Обзор»: показатели — одной лентой с горизонтальным свайпом (видны 2 карточки и край третьей),
   таблица без переносов; весь текст ≥ 11 px. Остальные вкладки — в одну колонку с прокруткой внутри экрана. */
@container (max-width: 575px) {
  .dash { --dash-px: 10px; gap: 6px; padding: 7px var(--dash-px); font-size: 11px; line-height: 1.2; }
  .dash__bar { gap: 8px; }
  .dash__dots { display: none; }
  .dash__badge { padding: 0 7px; letter-spacing: 0.04em; }
  .dash__pane { gap: 6px; }
  .dash__pane--split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dash__col { gap: 6px; }
  .dash__kpis {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 144px;
    gap: 5px;
    margin-inline: calc(-1 * var(--dash-px));
    padding-inline: var(--dash-px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--dash-px);
    scrollbar-width: none;
  }
  .dash__kpis::-webkit-scrollbar { display: none; }
  .dash__pane > .dash__chart { display: none; }
  .kpi {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'label label' 'value delta';
    align-items: baseline;
    gap: 0 6px;
    padding: 6px 8px;
    border-radius: 8px;
    scroll-snap-align: start;
  }
  .kpi__label { grid-area: label; }
  .kpi__value { grid-area: value; font-size: 15px; }
  .kpi__delta { grid-area: delta; justify-self: end; white-space: nowrap; }
  .kpi__unit { grid-column: 1 / -1; }
  .dash__table-wrap { padding: 3px 8px 1px; border-radius: 8px; }
  .dash__table { font-size: 11px; }
  .dash__table caption { padding-bottom: 2px; }
  .dash__table th,
  .dash__table td { padding: 2px 4px; white-space: nowrap; }
  .dash__foot { gap: 2px 12px; }
  .dash__foot dd { margin-left: 5px; }
  .dsum__head { font-size: 11px; }
  .dsum__value { font-size: 19px; }
  .dsum__delta { font-size: 11px; }
  .dtile { padding: 5px 7px; }
  .dtile__v { font-size: 14px; }
  .dtable { font-size: 11px; }
  .dtable th,
  .dtable td { padding: 2px 4px; }
  .dline { font-size: 11px; }
}
/* Телефон: таблица без подложки — экономим высоту, чтобы «Обзор» помещался без прокрутки */
@container (max-width: 439px) {
  .dash__table-wrap { padding: 0; border: 0; border-radius: 0; background: none; }
  .dash__table tr > :first-child { padding-left: 0; }
  .dash__table tr > :last-child { padding-right: 0; }
}
/* Широкий компактный экран (≈ 480–675 px окна): места по высоте больше — даём воздух */
@container (min-width: 440px) and (max-width: 575px) {
  .dash { --dash-px: 12px; gap: 9px; padding-block: 10px; }
  .kpi { padding: 8px 9px; }
  .kpi__value { font-size: 17px; }
  .dash__table-wrap { padding: 4px 8px 2px; }
  .dash__table th,
  .dash__table td { padding-block: 4px; }
}

/* Телефон: экран шире за счёт отступов и тонкой рамки, пропорция 3:2 (как у 13" ноутбуков
   Surface/Framework; MacBook Air — 1.54), основание тоньше — силуэт ноутбука сохраняется */
@media (max-width: 559px) {
  .laptop-stage { padding-inline: 12px; }
  .laptop__lid { padding: 10px 8px 9px; border-radius: 14px 14px 6px 6px; }
  .laptop__cam { top: 3px; width: 4px; height: 4px; margin-left: -2px; }
  .laptop__screen { aspect-ratio: 3 / 2; border-radius: 5px; }
  .laptop__base { margin-inline: -3%; }
  .laptop__deck { height: calc(3px + 9px * var(--deck)); }
  .laptop__lip { height: 7px; border-radius: 0 0 12px 12px; }
  .laptop__notch { height: 3px; }
}

/* ---------- Проверка сайта (Lighthouse — на yakobsonv.com) ---------- */
.check__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.check__intro { display: grid; justify-items: start; gap: 16px; }
.check__panel {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.check__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.check__bar .dash__dots i { background: var(--line-strong); box-shadow: none; opacity: 1; }
.check__path { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.check__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.check__badge .dash__live { background: var(--positive); }
.check__body { display: grid; justify-items: start; gap: 16px; padding: 22px clamp(18px, 3vw, 28px) 24px; }
.check__h { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.check__steps { display: grid; gap: 10px; padding: 0; list-style: none; color: var(--text-soft); font-size: 15px; line-height: 1.45; }
.check__steps li { display: flex; gap: 12px; }
.check__n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
}
.check__hint { display: grid; gap: 8px; padding: 18px clamp(18px, 3vw, 28px) 22px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.check__hint p:last-child { color: var(--text-soft); font-size: 14px; line-height: 1.55; }
@media (min-width: 900px) {
  .check__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- 4. Карусель направлений ---------- */
.directions { overflow: hidden; }
.directions__head,
.process__head { display: grid; justify-items: center; gap: 16px; text-align: center; }
.directions__head .lead,
.process__head .lead { max-width: 44em; }
.directions__all { display: flex; justify-content: center; margin-top: 28px; padding-inline: var(--gutter); }
.carousel {
  --card-w: min(300px, 78vw);
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
}
/* Базовый вид (без JS): сетка карточек */
.carousel__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(120% 70% at 100% 0%, var(--card-tint-a), transparent 60%),
    linear-gradient(165deg, var(--card-tint-b), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--highlight);
}
.dcard__num { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.dcard__art { width: 150px; height: auto; margin: 4px 0 6px; color: var(--art-ink); }
/* Цвета абстрактной графики — из темы; чередование даёт каждой карточке свой оттенок */
.dcard { --a1: var(--art-1); --a2: var(--art-2); }
.dcard:nth-child(3n + 2) { --a1: var(--art-3); --a2: var(--art-1); }
.dcard:nth-child(3n) { --a1: var(--art-2); --a2: var(--art-3); }
.dcard__title { font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -0.025em; }
.dcard__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.dcard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--control);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.dcard__more::after {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.dcard__more:hover { border-color: var(--accent); background: var(--accent-tint); }

/* Объёмная карусель (после инициализации JS) */
.carousel.is-ready { overflow-x: hidden; overflow-x: clip; padding-block: 8px 4px; }
.carousel.is-ready .carousel__list {
  display: block;
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1300px;
  perspective-origin: 50% 45%;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.carousel.is-ready .dcard {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w);
  height: 384px;
  min-height: 0;
  margin-left: calc(var(--card-w) / -2);
  transform-origin: 50% 50%;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease), filter 0.65s var(--ease);
  backface-visibility: hidden;
}
.carousel.is-ready .dcard::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--bg);
  opacity: var(--dim, 0);
  pointer-events: none;
  transition: opacity 0.65s var(--ease);
}
.carousel.is-instant .dcard,
.carousel.is-instant .dcard::after { transition: none !important; }
.carousel.is-ready .dcard:not(.is-current) { cursor: pointer; }
.carousel.is-ready .dcard:not(.is-current) > * { pointer-events: none; }
.carousel.is-ready .dcard.is-current {
  border-color: var(--card-border-current);
  box-shadow: var(--shadow-strong), inset 0 1px 0 var(--highlight);
}
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-inline: var(--gutter);
}
/* Телефон: девять индикаторов в одну строку. Ряд выходит за поля на всю ширину окна,
   каждая точка делит её поровну (до 48 px) и получает высоту 48 px: зона нажатия
   ≈ 43×48 при 390 px вместо 39×44, а видимая точка остаётся прежней — 8 px. */
@media (max-width: 559px) {
  .carousel__controls { flex-wrap: wrap; gap: 4px 16px; }
  .carousel__controls .dots {
    order: -1;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
  }
  .carousel__controls .dot { flex: 1 1 0; width: auto; min-width: 0; max-width: 48px; height: 48px; }
}

/* ---------- 5. Платформы: вводный текст и бегущая строка CMS ---------- */
.cms { margin-top: calc(-0.5 * var(--section-space)); }
.cms__head { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.cms__head .lead { max-width: 40em; }
.cms__band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--band-a), var(--band-b));
}
.cms__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  min-height: 60px;
  padding: 8px var(--gutter);
}
/* Подпись — отдельная колонка с разделителем; лента начинается справа от неё и проявляется из маски */
.cms__label {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.cms__viewport { flex: 1; min-width: 0; overflow: hidden; }
.cms__track { display: flex; }
.cms__list { display: flex; flex-wrap: wrap; padding: 0; list-style: none; }
.cms__list li {
  position: relative;
  padding: 4px 22px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.cms__name { font-weight: 600; }
.cms__sub { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.cms__list li::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent-deco);
  opacity: 0.8;
}
.cms__band.is-ready .cms__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--mask-solid) 44px, var(--mask-solid) calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, var(--mask-solid) 44px, var(--mask-solid) calc(100% - 44px), transparent 100%);
}
.cms__band.is-ready .cms__track {
  width: max-content;
  animation: cms-marquee var(--marquee-duration, 40s) linear infinite;
}
.cms__band.is-ready .cms__list { flex-wrap: nowrap; }
.cms__band.is-paused .cms__track { animation-play-state: paused; }
@keyframes cms-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
/* Без JS список переносится — подпись CMS может не влезть в строку целиком */
.cms__band:not(.is-ready) .cms__list li { white-space: normal; }

/* ---------- 6. Ниши в планшете ---------- */
.niches__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.niches__intro { display: grid; justify-items: start; gap: 18px; }
.niches__more { color: var(--muted); font-size: 15px; line-height: 1.55; }
.niches__device { display: grid; justify-items: center; gap: 20px; perspective: 1600px; }
.tablet {
  width: min(100%, 520px);
  padding: 14px;
  border-radius: 36px;
  border: 1px solid var(--hw-edge);
  background: linear-gradient(145deg, var(--hw-tablet), var(--hw-2) 55%, var(--hw-3));
  box-shadow:
    inset 0 1px 0 var(--hw-shine),
    inset 0 0 0 4px var(--hw-inset-soft),
    -10px 12px 0 -3px var(--hw-thickness),
    -22px 40px 70px -24px var(--device-shadow),
    0 0 90px -30px var(--device-aura);
  transform: rotateY(-13deg) rotateX(6deg) rotateZ(1.2deg);
  transition: transform 0.9s var(--ease);
}
.niches__device:hover .tablet,
.niches__device:focus-within .tablet { transform: rotateY(-7deg) rotateX(3deg) rotateZ(0.6deg); }
.tablet__screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background:
    radial-gradient(80% 60% at 100% 0%, var(--t-glow), transparent 70%),
    var(--t-bg);
  color: var(--t-text);
}
.tui { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 14px 16px 18px; }
.tui__bar { display: flex; align-items: center; gap: 12px; color: var(--t-muted); font-size: 12px; font-weight: 600; }
.tui__dots { display: flex; gap: 5px; }
.tui__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-dot); }
.tui__app { flex: 1; }
.tui__count { font-variant-numeric: tabular-nums; }
.tui__slides { display: grid; gap: 12px; flex: 1; }
.tui__slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--t-line);
  background: var(--t-surface);
  box-shadow: 0 16px 34px -24px var(--t-shadow);
}
.tui__kicker { color: var(--t-accent); font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.tui__title { font-size: clamp(21px, 1rem + 1vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.tui__text { color: var(--t-muted); font-size: clamp(15px, 0.9rem + 0.25vw, 17px); line-height: 1.55; }
/* Крупный порядковый номер ниши — декоративный, скрыт от скринридера (альтернативный текст "") */
.tui__slides { counter-reset: niche; }
.tui__slide { counter-increment: niche; }
.tui__slide::after {
  content: '0' counter(niche) / '';
  margin-top: auto;
  align-self: flex-end;
  color: var(--t-line);
  font-size: clamp(56px, 3rem + 3vw, 96px);
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
/* С JS: на экране одна ниша, остальные в той же ячейке сетки — высота не прыгает */
.niches__device.is-ready .tui__slides { gap: 0; }
.niches__device.is-ready .tui__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.niches__device.is-ready .tui__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.niches__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; }
.niches__buttons { display: flex; gap: 10px; }
@media (min-width: 900px) {
  .niches__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
/* Телефон: ландшафтный 4:3 на узкой колонке раздувался в «квадрат» под текст.
   Здесь планшет честно стоит вертикально — портретные 3:4, ширина как у реального
   устройства в руке; содержимое ниши помещается с запасом. */
@media (max-width: 559px) {
  .tablet { width: min(100%, 320px); padding: 10px; border-radius: 28px; transform: rotateY(-7deg) rotateX(4deg); }
  .tablet__screen { aspect-ratio: 3 / 4; border-radius: 20px; }
  .tui { padding: 12px; }
  .tui__slide { padding: 14px; }
}

/* ---------- Реальные данные ---------- */
.proof { border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--band-a), var(--band-b)); }
.proof__inner {
  display: grid;
  gap: 10px 32px;
  align-items: center;
  padding-block: clamp(24px, 3vw, 36px);
}
.proof__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.proof__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deco); box-shadow: 0 0 0 4px var(--accent-tint); }
.proof__text { color: var(--text-soft); font-size: clamp(15px, 0.9rem + 0.2vw, 17px); line-height: 1.55; }
.proof__link { justify-self: start; white-space: nowrap; }
@media (min-width: 900px) {
  .proof__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ---------- 7. Этапы ---------- */
.steps { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.steps__list { display: grid; gap: 12px; padding: 0; list-style: none; }
.step {
  --glow: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--card-tint-b), transparent 55%), var(--surface);
  box-shadow: var(--shadow-step);
}
.step::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--step-glow-border);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--step-glow-bg), transparent 70%),
    linear-gradient(165deg, var(--step-glow-bg-2), transparent 60%);
  box-shadow: var(--step-glow-shadow);
  opacity: var(--glow);
  pointer-events: none;
}
.step > * { position: relative; }
.step__num {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--ghost-bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
button.step__num { cursor: pointer; }
.step.is-lit .step__num,
.step__num[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.step__title { font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -0.025em; }
.step__text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.step__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.step__tag::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deco); }
.process__more { display: flex; justify-content: center; margin-top: 28px; text-align: center; }
.steps.is-ready .step { cursor: pointer; }

.steps__rail { position: absolute; pointer-events: none; }
.steps__line { position: absolute; inset: 0; }
.steps__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--pulse-core), var(--accent-deco) 60%);
  box-shadow: var(--pulse-glow);
  will-change: transform;
}
.steps:not(.is-ready) .steps__dot { display: none; }
.steps__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; }
.steps__hint { color: var(--muted); font-size: 14px; }

/* Телефон и планшет: карточки вертикально, линия с точкой слева */
@media (max-width: 1023px) {
  .steps__list { padding-left: 44px; }
  .steps__rail { top: 0; bottom: 0; left: 15px; width: 1px; }
  .steps__line {
    background-image: linear-gradient(180deg, var(--rail) 55%, transparent 0);
    background-size: 1px 10px;
  }
  .steps__dot { left: 0.5px; }
  .steps__controls { padding-left: 44px; }
}
/* Компьютер: карточки в ряд, пунктир над ними */
@media (min-width: 1024px) {
  .steps { padding-top: 40px; }
  .steps__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps__rail { top: 12px; left: 0; right: 0; height: 1px; }
  .steps__line {
    background-image: linear-gradient(90deg, var(--rail) 55%, transparent 0);
    background-size: 10px 1px;
  }
  .steps__dot { top: 0.5px; }
  .steps__controls { justify-content: center; }
  .step { padding: 18px 16px 18px; }
  .step__text { font-size: 14px; }
}

/* ---------- 8. Кто работает ---------- */
.about__inner { display: grid; gap: 28px; }
.about__head { display: grid; justify-items: start; gap: 14px; }
.about__role { color: var(--muted); font-size: 16px; font-weight: 500; }
.about__text { display: grid; gap: 18px; max-width: 40em; }
.about__lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; letter-spacing: -0.015em; }
.about__text p:not(.about__lead) { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.65; }
@media (min-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: 64px; }
  .about__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 9. Контакты ---------- */
/* при переходе по якорю карточка встаёт вплотную под шапку, заголовок — в первой трети экрана */
.contacts { padding-top: 0; scroll-margin-top: -24px; }
.contacts__card {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 80px);
  border-radius: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 70% at 15% 0%, var(--glow-a), transparent 70%),
    radial-gradient(60% 70% at 90% 100%, var(--glow-b), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.contacts__card .h2 { max-width: 18em; }
.contacts__card .lead { max-width: 42em; margin-inline: auto; }
.contacts__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.btn__sub { font-weight: 400; opacity: 0.85; }
@media (max-width: 559px) {
  .contacts__actions .btn__sub { display: block; }
}
.contacts__notes { display: grid; gap: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 559px) {
  .contacts__actions { flex-direction: column; width: 100%; }
  .contacts__actions .btn { width: 100%; padding-inline: 16px; }
}

/* ---------- 10. Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-soft); }
.site-footer__grid {
  display: grid;
  gap: 32px 40px;
  padding-block: clamp(40px, 5vw, 64px) 32px;
}
.site-footer__brand { display: grid; justify-items: start; gap: 12px; }
.site-footer__text { max-width: 26em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.site-footer__h { margin-bottom: 6px; color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: 0; line-height: 1.4; }
.site-footer__h--gap { margin-top: 20px; }
.site-footer__col ul { display: grid; padding: 0; list-style: none; }
.site-footer__col a,
.site-footer__row a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-footer__col a:hover,
.site-footer__row a:hover { color: var(--text); }
.site-footer__faint { color: var(--muted); }
.site-footer__legal { border-top: 1px solid var(--line); }
.site-footer__legal-inner { display: grid; gap: 4px; padding-block: 18px 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-footer__row a { font-size: 13px; }
.site-footer__row .site-footer__up { margin-left: auto; color: var(--text); font-weight: 600; gap: 8px; }
.site-footer__row .site-footer__up:hover { color: var(--accent); }
@media (max-width: 639px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer__brand,
  .site-footer__col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.2fr)); }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- Раскрытие по скроллу ---------- */
/* Скрываем только когда JS запустил наблюдатель (html.reveal-ready): при сбое скрипта всё видно */
.reveal-ready [data-reveal] {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

/* ---------- Движение (только если пользователь не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__line { animation: hero-rise 1.1s var(--ease) both; }
  .hero__line + .hero__line { animation-delay: 0.14s; }
  .hero__eyebrow { animation: hero-fade 0.9s var(--ease) both; }
  .hero__sub { animation: hero-fade 1s var(--ease) 0.4s both; }
  .hero__actions,
  .hero__meta { animation: hero-fade 1s var(--ease) 0.55s both; }
  .hero__chips,
  .hero__fit { animation: hero-fade 1s var(--ease) 0.7s both; }
  .round-link svg { animation: nudge 2.2s ease-in-out 1.6s 3; }
  .menu[open] { animation: menu-in 0.4s var(--ease); }
  .menu[open] .menu__list li { animation: hero-fade 0.5s var(--ease) both; }
  .menu[open] .menu__list li:nth-child(2) { animation-delay: 0.05s; }
  .menu[open] .menu__list li:nth-child(3) { animation-delay: 0.1s; }
  .menu[open] .menu__list li:nth-child(4) { animation-delay: 0.15s; }
  .menu[open] .menu__list li:nth-child(5) { animation-delay: 0.2s; }
  .menu[open] .menu__list li:nth-child(6) { animation-delay: 0.25s; }
  .menu[open] .menu__list li:nth-child(7) { animation-delay: 0.3s; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 0.32em, 0); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-fade {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes nudge {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}
@keyframes menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Бегущая строка стоит: обычный список с переносом, дубль и пауза не нужны */
  .cms__band.is-ready .cms__track { width: auto; animation: none; }
  .cms__band.is-ready .cms__list { flex-wrap: wrap; }
  .cms__list.is-clone { display: none; }
  .cms__band.is-ready .cms__viewport { -webkit-mask-image: none; mask-image: none; }
  .cms__toggle { display: none !important; }
  .niches__device:hover .tablet,
  .niches__device:focus-within .tablet { transform: rotateY(-13deg) rotateX(6deg) rotateZ(1.2deg); }
  .reveal-ready [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
}
