/* ============================================================
   ДИ-ЭС ГРУПП — дизайн-система
   Палитра B: чернильно-морской + минеральный циан + тёплый белый
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Поверхности (светлая тема) */
  --bg:            #F7F4EF;
  --bg-warm:       #FBF9F5;
  --surface:       #FFFFFF;
  --surface-2:     #F0EBE3;
  --ink:           #0B1A24;
  --ink-surface:   #10242F;
  --ink-surface-2: #16303D;

  /* Текст */
  --text:          #14222C;
  --text-2:        #5A6B76;
  --text-3:        #8A98A1;
  --text-on-ink:   #F2F5F6;
  --text-on-ink-2: #94A8B2;

  /* Обводки */
  --line:          #DED7CC;
  --line-strong:   #C6BDB0;
  --line-on-ink:   rgba(242, 245, 246, .14);

  /* Акценты */
  --accent:        #0E9E92;
  --accent-hover:  #14B8A6;
  --accent-soft:   rgba(14, 158, 146, .10);
  --accent-line:   rgba(14, 158, 146, .32);
  --amber:         #C97A16;
  --amber-soft:    rgba(201, 122, 22, .10);
  --danger:        #C0442F;

  /* Типографика */
  --font-display: "Onest", ui-sans-serif, system-ui, sans-serif;
  --font-text:    "Golos Text", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Тени (почти незаметные) */
  --shadow-1: 0 1px 2px rgba(11, 26, 36, .04);
  --shadow-2: 0 8px 24px -12px rgba(11, 26, 36, .14);
  --shadow-3: 0 24px 60px -32px rgba(11, 26, 36, .28);

  /* Сетка */
  --wrap: 1320px;
  --pad: 24px;

  /* Движение */
  --ease-in:  cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.4, 0, 1, 1);
  --t-fast: 150ms;
  --t-mid: 250ms;
  --t-slow: 420ms;
}

:root[data-theme="dark"] {
  --bg:            #08131B;
  --bg-warm:       #0A1721;
  --surface:       #0E2029;
  --surface-2:     #132A35;
  --ink:           #061019;
  --ink-surface:   #0C1D26;
  --ink-surface-2: #123040;

  --text:          #E8EEF0;
  --text-2:        #9DB0BA;
  --text-3:        #6F8590;
  --text-on-ink:   #E8EEF0;
  --text-on-ink-2: #9DB0BA;

  --line:          rgba(232, 238, 240, .12);
  --line-strong:   rgba(232, 238, 240, .22);
  --line-on-ink:   rgba(232, 238, 240, .12);

  --accent:        #2ABEB0;
  --accent-hover:  #45D6C7;
  --accent-soft:   rgba(42, 190, 176, .12);
  --accent-line:   rgba(42, 190, 176, .34);
  --amber:         #E0952F;
  --amber-soft:    rgba(224, 149, 47, .12);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-3: 0 24px 60px -30px rgba(0, 0, 0, .7);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }  /* якоря не уезжают под липкую шапку */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 3.4vw, 44px); letter-spacing: -.03em; }
h3 { font-size: clamp(19px, 1.6vw, 23px); }
h4 { font-size: 18px; }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* Техническая метка — сквозной стилевой приём */
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.tag--plain::before { display: none; }
.tag--muted { color: var(--text-3); }

/* ---------- Раскладка ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 8vw, 116px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { margin-block: 14px 16px; }
.grid { display: grid; gap: 20px; }
.dark-section {
  background: rgba(9, 22, 30, .9);
  color: var(--text-on-ink);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
:root[data-theme="dark"] .dark-section { background: rgba(6, 16, 23, .91); }
.dark-section h2, .dark-section h3 { color: var(--text-on-ink); }
.dark-section .lead, .dark-section p { color: var(--text-on-ink-2); }

/* Координатная сетка на тёмных секциях */
.gridlines::before {
  content: "";
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: drift 24s linear infinite;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-64px, -64px, 0); }
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 52px;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  transition: transform var(--t-fast) var(--ease-in),
              background-color var(--t-fast) linear,
              box-shadow var(--t-fast) var(--ease-in);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn:active { transform: scale(.98) translateY(0); }
.btn svg { transition: transform var(--t-mid) var(--ease-in); flex: none; }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.dark-section .btn--ghost, .hero .btn--ghost { --btn-fg: var(--text-on-ink); border-color: var(--line-on-ink); }
.dark-section .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--sm { padding: 11px 18px; min-height: 44px; font-size: 15px; }
.btn--block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) linear, background-color var(--t-mid) linear;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 78px;
  transition: height var(--t-mid) var(--ease-in);
}
.header.is-stuck .header__inner { height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 38px; height: 38px; transition: transform var(--t-mid) var(--ease-in); }
.logo:hover .logo__mark { transform: rotate(-8deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo__sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.nav__link { white-space: nowrap; }
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link svg { width: 12px; height: 12px; opacity: .6; transition: transform var(--t-fast) var(--ease-in); }
.has-mega:hover .nav__link svg { transform: rotate(180deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -12px;
  width: max-content; max-width: 660px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px 18px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-mid) var(--ease-in), transform var(--t-mid) var(--ease-in), visibility var(--t-mid);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__item { display: block; padding: 10px 12px; border-radius: var(--r-sm); transition: background-color var(--t-fast) linear; }
.mega__item:hover { background: var(--accent-soft); }
.mega__item b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.mega__item span { font-size: 13px; color: var(--text-2); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-2);
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear, transform var(--t-fast) var(--ease-in);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.burger { display: none; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  padding: 20px var(--pad) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-in);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-menu a.m-link {
  display: block; padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.mobile-menu .btn { margin-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--text-on-ink);
  overflow: hidden;
  padding-block: clamp(34px, 4vw, 52px) clamp(72px, 7vw, 88px);
  min-height: min(660px, 82vh);
  display: flex; align-items: center;
}

/* Карта мира: фиксированный фон всей страницы.
   Секции с классом .dark-section, первый экран и подвал полупрозрачны,
   поэтому карта и транспорт видны сквозь них при скролле. */
.hero__map {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  contain: paint;
}
.hero__map svg { width: 100%; height: 100%; display: block; }
body { background: var(--ink); }

/* Все секции полупрозрачны, поэтому карта просвечивает через всю страницу.
   Контуры и подписи нейтрально-серые с тёмной обводкой: читаются и на светлом, и на тёмном. */
main > section:not(.dark-section):not(.hero):not(.page-hero), .facts { position: relative; z-index: 1; }
main > section:not(.dark-section):not(.hero):not(.page-hero) { background: color-mix(in srgb, var(--bg) 93%, transparent); }
.facts { background: color-mix(in srgb, var(--bg-warm) 93%, transparent); }
.fact { background: transparent; }
.facts__grid { background: var(--line); }

.world-land {
  fill: rgba(124, 146, 159, .34);
  stroke: rgba(158, 180, 193, .55);
  stroke-width: .5;
  vector-effect: non-scaling-stroke;
}
.map-routes path {
  fill: none;
  stroke: rgba(130, 152, 166, .42);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
  transition: stroke var(--t-mid) linear, opacity var(--t-mid) linear;
}
.map-routes path.is-hot { stroke: var(--accent); opacity: .85; stroke-dasharray: none; stroke-width: 1.4; }

/* Транспорт */
.veh { transition: opacity 400ms linear; }

/* Города */
.city-dot { fill: var(--accent); stroke: rgba(6, 16, 25, .45); stroke-width: .8; }
.city-dot--ru { fill: #fff; stroke: rgba(6, 16, 25, .6); stroke-width: 1; }
.city-name {
  font-family: var(--font-mono);
  font-size: 8.6px;
  letter-spacing: .04em;
  fill: #C7D5DE;
  stroke: rgba(5, 14, 22, .55);
  stroke-width: 1.9px;
  paint-order: stroke;
}
.city-name--ru {
  font-size: 9.8px; font-weight: 500;
  fill: #F2F7FA;
  stroke: rgba(5, 14, 22, .68);
  stroke-width: 2.4px;
}
.city-ring { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; }
.city.is-arrive .city-ring { animation: arrive 1300ms var(--ease-in); }
.city.is-arrive .city-dot { animation: dot-pop 900ms var(--ease-in); }
@keyframes arrive {
  0%   { r: 3; opacity: .9; }
  100% { r: 20; opacity: 0; }
}
@keyframes dot-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.9); }
}

/* Затемнение под текстом, чтобы карта не мешала читать */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(97deg, rgba(8, 19, 27, .94) 0%, rgba(8, 19, 27, .78) 14%, rgba(8, 19, 27, .46) 28%, rgba(8, 19, 27, .14) 46%, transparent 62%),
    radial-gradient(70% 50% at 76% 16%, rgba(14, 158, 146, .14), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 3; }
.hero__grid { display: block; }
.hero__col { max-width: 620px; }

/* Легенда типов транспорта */
.hero__legend {
  position: absolute; right: 24px; bottom: 18px; z-index: 4;
  display: flex; gap: 20px; flex-wrap: wrap;  /* просвет между парами больше, чем внутри пары, иначе значок липнет к соседнему слову */
  padding: 9px 14px;
  background: rgba(6, 16, 25, .6);
  border: 1px solid var(--line-on-ink);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.lg {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-on-ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex: none;
}
.lg svg { flex: none; }
.hero h1 { color: #fff; margin-block: 14px 14px; font-size: clamp(28px, 3.2vw, 46px); }
.hero h1 .word { display: inline-block; }
.hero__lead { color: var(--text-on-ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 54ch; }
.hero__form {
  margin-top: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(8px);
}
.hero__form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hero__note { margin-top: 12px; font-size: 13.5px; color: var(--text-on-ink-2); display: flex; align-items: center; gap: 8px; }
.hero__note svg { flex: none; color: var(--accent); }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 14px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 16px;
  transition: border-color var(--t-fast) linear, box-shadow var(--t-fast) linear;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field.is-error input, .field.is-error textarea { border-color: var(--danger); animation: nudge 220ms var(--ease-in); }
.field__err { display: none; font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.field.is-error .field__err { display: block; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(4px); }
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.hero .consent, .cta__form .consent { color: #B9CAD3; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-on-ink);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--text-on-ink);
  background: rgba(255,255,255,.04);
}
.badge svg { color: var(--accent); flex: none; }

/* Подписи на схемах внутренних страниц (например, схема агентского платежа) */
.map { position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .05em;
  fill: var(--text-on-ink-2);
}
.map__route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .55;
}

/* Бегущая строка событий на карте */
.map__ticker {
  position: absolute; left: 24px; bottom: 18px; z-index: 4;
  max-width: min(660px, calc(100% - 220px));
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-on-ink);
  background: rgba(6, 16, 25, .78);
  border: 1px solid var(--line-on-ink);
  border-radius: 100px;
  padding: 9px 18px;
  backdrop-filter: blur(6px);
}
.map__ticker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 2s infinite; }
.map__ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map__ticker.is-arrive { border-color: var(--accent-line); }
.map__ticker.is-arrive i { background: #fff; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ============================================================
   ПОЛОСА ЦИФР
   ============================================================ */
.facts { border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.facts__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.fact { background: var(--bg-warm); padding: 30px 22px; }
.fact__val { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.fact__val i { font-style: normal; color: var(--accent); }
.fact__cap { margin-top: 9px; font-size: 14px; color: var(--text-2); }

.marquee { overflow: hidden; padding-block: 22px; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--text-3); white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.marquee__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* ============================================================
   БОЛИ
   ============================================================ */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-in), border-color var(--t-mid) linear, box-shadow var(--t-mid) var(--ease-in);
}
.pain:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.pain__q {
  font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.28;
  padding-left: 16px; border-left: 2px solid var(--line-strong);
  transition: border-color var(--t-mid) linear;
}
.pain:hover .pain__q { border-color: var(--accent); }
.pain__a { margin-top: 16px; color: var(--text-2); font-size: 15.5px; }
.pain__icon {
  width: 40px; height: 40px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
}
.pain:hover .pain__icon svg { animation: tick 700ms var(--ease-in); }
@keyframes tick {
  0% { transform: translateX(0); }
  40% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.service {
  position: relative;
  background: var(--surface);
  padding: 30px 26px 28px;
  transition: background-color var(--t-mid) linear;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity var(--t-mid) linear;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service__n { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .1em; }
.service h3 { margin-block: 14px 10px; font-size: 21px; }
.service p { color: var(--text-2); font-size: 15.5px; }
.service__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent);
}
.service__more svg { transition: transform var(--t-mid) var(--ease-in); }
.service:hover .service__more svg { transform: translateX(4px); }
.service__icon { color: var(--accent); }

/* ============================================================
   НАПРАВЛЕНИЯ
   ============================================================ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; position: relative; margin-bottom: 28px; }
.tab {
  padding: 11px 20px; border-radius: 100px;
  border: 1px solid var(--line-on-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--text-on-ink-2);
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.tab:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-panel { display: none; animation: fade-in var(--t-mid) var(--ease-in); }
.tab-panel.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.routes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.routes th, .routes td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line-on-ink); font-size: 15.5px; }
.routes th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-ink-2); font-weight: 500; }
.routes td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--text-on-ink); }
.routes tbody tr { transition: background-color var(--t-fast) linear; }
.routes tbody tr:hover { background: rgba(255,255,255,.04); }
.routes td span.dash { color: var(--text-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note {
  margin-top: 22px; padding: 16px 18px;
  border-left: 2px solid var(--amber);
  background: var(--amber-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px;
}
.note b { color: var(--amber); }

/* ============================================================
   ПРОЦЕСС
   ============================================================ */
.process { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.process__sticky { position: sticky; top: 120px; }
.process__counter { font-family: var(--font-display); font-size: 80px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.process__counter span { color: var(--text-3); font-size: 34px; }
.process__now { margin-top: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 600; min-height: 2.6em; }
.process__bar { margin-top: 22px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.process__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--t-slow) var(--ease-in); }

.steps { position: relative; padding-left: 34px; }
.steps::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.steps__fill { position: absolute; left: 7px; top: 12px; width: 2px; background: var(--accent); height: 0; transition: height 200ms linear; }
.step { position: relative; padding-block: 22px; opacity: .5; transition: opacity var(--t-slow) linear; }
.step.is-active, .step.is-done { opacity: 1; }
.step::before {
  content: ""; position: absolute; left: -34px; top: 30px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
  transition: border-color var(--t-mid) linear, transform var(--t-mid) var(--ease-in);
}
.step.is-active::before { border-color: var(--accent); transform: scale(1.25); }
.step.is-done::before { border-color: var(--accent); background: var(--accent); }
.step h3 { font-size: 22px; }
.step p { margin-top: 8px; color: var(--text-2); }
.step__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ============================================================
   СРАВНЕНИЕ
   ============================================================ */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 15.5px; vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.compare tbody td { border-bottom: 1px solid var(--line); }
.compare td:first-child, .compare th:first-child { color: var(--text-2); width: 30%; }
.compare .col-us { background: var(--accent-soft); }
.compare thead .col-us { border-top: 2px solid var(--accent); border-radius: var(--r-sm) var(--r-sm) 0 0; color: var(--accent); }
.compare tbody tr:last-child .col-us { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--danger); }
.compare-row { opacity: 0; transform: translateY(12px); }
.compare-row.is-in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease-in), transform var(--t-slow) var(--ease-in); }

/* ============================================================
   КВИЗ
   ============================================================ */
.quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-2);
  max-width: 860px; margin-inline: auto;
  overflow: hidden;
}
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.quiz__count { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .1em; }
.quiz__bar { height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; flex: 1; max-width: 320px; }
.quiz__bar i { display: block; height: 100%; background: var(--accent); width: 25%; transition: width var(--t-slow) var(--ease-in); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quiz-in var(--t-mid) var(--ease-in); }
@keyframes quiz-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quiz h3 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 16px 18px; min-height: 62px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-warm);
  text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  transition: border-color 120ms linear, background-color 120ms linear, transform 120ms var(--ease-in);
}
.opt small { font-family: var(--font-text); font-weight: 400; font-size: 13px; color: var(--text-2); }
.opt:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.opt.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz__back { font-size: 15px; color: var(--text-2); }
.quiz__back:hover { color: var(--accent); }
.quiz__result { display: none; }
.quiz__result.is-active { display: block; }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg-warm) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.summary { display: grid; gap: 10px; padding: 18px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary__row b { font-family: var(--font-display); }

/* ============================================================
   КЕЙСЫ
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  display: grid; grid-template-columns: 132px 1fr; gap: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid) linear, transform var(--t-mid) var(--ease-in);
}
.case:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.case__vis {
  border-radius: var(--r-md);
  background: var(--ink-surface);
  display: grid; place-items: center;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}
.case__vis svg { transition: transform var(--t-slow) var(--ease-in); }
.case:hover .case__vis svg { transform: scale(1.08) translateY(-3px); }
.case__route { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--accent); }
.case h3 { margin-block: 8px 10px; font-size: 20px; }
.case p { font-size: 15px; color: var(--text-2); }
.case__res { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.case__res b { font-family: var(--font-display); font-size: 15px; }
.case__res span { display: block; font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   ОТЗЫВЫ / ДОКУМЕНТЫ / КОМАНДА
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.review {
  padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 14px;
}
.review p { font-size: 16px; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__ava { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.review__who b { display: block; font-size: 15px; font-family: var(--font-display); }
.review__who span { font-size: 13px; color: var(--text-2); }
.docs { display: grid; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--t-fast) linear, transform var(--t-fast) var(--ease-in);
}
.doc:hover { border-color: var(--accent); transform: translateX(3px); }
.doc svg { color: var(--accent); flex: none; }
.doc b { font-family: var(--font-display); font-size: 15.5px; display: block; }
.doc span { font-size: 13px; color: var(--text-2); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { text-align: left; }
.member__ph {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background: var(--ink-surface); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.member__ph span { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: rgba(255,255,255,.16); }
.member__ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,16,25,.7), transparent 60%);
}
.member b { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 17px; }
.member span { font-size: 14px; color: var(--text-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 900px; }
.q { border-bottom: 1px solid var(--line); }
.q__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px);
  transition: color var(--t-fast) linear;
}
.q__btn:hover { color: var(--accent); }
.q__ico { flex: none; width: 26px; height: 26px; position: relative; margin-top: 3px; }
.q__ico::before, .q__ico::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 2px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid) var(--ease-in), opacity var(--t-mid) linear;
}
.q__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.q.is-open .q__ico::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.q__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease-in); }
.q.is-open .q__body { grid-template-rows: 1fr; }
.q__body > div { overflow: hidden; }
.q__body p { padding-bottom: 24px; color: var(--text-2); max-width: 72ch; }

/* ============================================================
   ФИНАЛЬНЫЙ CTA
   ============================================================ */
.cta { position: relative; }
.cta__box { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cta h2 { color: #fff; }
.cta__form { background: rgba(255,255,255,.05); border: 1px solid var(--line-on-ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); backdrop-filter: blur(8px); }
.cta__form .field + .field { margin-top: 12px; }
.cta__ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.way {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-on-ink);
  color: var(--text-on-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  transition: transform var(--t-fast) var(--ease-in), background-color var(--t-fast) linear, border-color var(--t-fast) linear;
}
.way:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.32); }
.way svg { flex: none; }

.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok.is-on { display: block; }
.form-ok svg { margin-inline: auto; color: var(--accent); }
.form-ok svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-check 600ms var(--ease-in) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.form-ok b { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 20px; }
.form-ok p { margin-top: 6px; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  background: rgba(6, 16, 25, .86);
  color: var(--text-on-ink-2);
  padding-block: 56px 28px; font-size: 15px;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px 32px; }
.footer a:hover { color: var(--accent); }
.footer li { margin-bottom: 9px; }
.footer__req { font-size: 13.5px; line-height: 1.7; }
.footer__req b { color: var(--text-on-ink); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line-on-ink);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 13.5px;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */
.floats {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity var(--t-slow) var(--ease-in), transform var(--t-slow) var(--ease-in);
}
.floats.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-3);
  transition: transform var(--t-fast) var(--ease-in);
}
.float:hover { transform: scale(1.08); }
.float--tel { background: var(--accent); }
.float--tel { animation: nudge-soft 8s ease-in-out infinite; }
@keyframes nudge-soft {
  0%, 92%, 100% { transform: scale(1); }
  95% { transform: scale(1.07); }
}
.mobile-bar { display: none; }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slow) var(--ease-in), transform var(--t-slow) var(--ease-in);
  transition-delay: var(--d, 0ms);
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.crumbs { font-size: 13.5px; color: var(--text-on-ink-2); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.page-hero { background: var(--ink); color: var(--text-on-ink); padding-block: 34px clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-block: 18px 18px; font-size: clamp(30px, 4.2vw, 52px); }
.page-hero .lead { color: var(--text-on-ink-2); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.prose { max-width: 74ch; }
.prose h2 { margin-block: 40px 16px; }
.prose h3 { margin-block: 28px 10px; }
.prose p { margin-bottom: 14px; color: var(--text-2); }
.prose ul { margin-bottom: 18px; display: grid; gap: 9px; }
.prose li { padding-left: 26px; position: relative; color: var(--text-2); }
.prose li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.prose strong { color: var(--text); }
.side-cta {
  position: sticky; top: 110px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-2);
}
.side-cta h3 { font-size: 20px; margin-bottom: 8px; }
.side-cta p { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14.5px; background: var(--surface);
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.callout {
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  margin-block: 24px;
}
.callout b { font-family: var(--font-display); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1180px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 19, 27, .72) 0%, rgba(8, 19, 27, .9) 26%, var(--ink) 52%, var(--ink) 100%),
      radial-gradient(80% 40% at 70% 8%, rgba(14, 158, 146, .18), transparent 70%);
  }
  /* На портретном экране карта мира не вписывается в полный экран,
     поэтому держим её закреплённой полосой сверху: при скролле она остаётся на месте. */
  .hero__map {
    inset: 0 0 auto; height: 320px;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero { padding-block: 286px clamp(84px, 9vw, 104px); min-height: 0; display: block; }
  .hero__col { max-width: none; }
  .hero__legend {
    right: auto; left: 50%; transform: translateX(-50%);
    top: 158px; bottom: auto; padding: 6px 11px; gap: 15px; flex-wrap: nowrap;
    /* без max-content ширина ограничена половиной экрана (left:50%),
       и последний пункт вылезает за скруглённую рамку */
    width: max-content; max-width: calc(100% - 16px);
  }
  .hero__legend .lg { font-size: 9.5px; letter-spacing: .06em; gap: 5px; }
  .hero__legend .lg svg { width: 17px; height: auto; }
  .map__ticker {
    top: 208px; bottom: auto;
    left: 50%; transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 20px); font-size: 10.5px; padding: 7px 12px; gap: 8px;
  }
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: grid; }
  .layout-side { grid-template-columns: 1fr; }
  .side-cta { position: static; }
}
@media (max-width: 980px) {
  .pains, .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process__sticky { position: static; display: flex; align-items: center; gap: 20px; }
  .process__counter { font-size: 46px; }
  .process__now { margin-top: 0; min-height: 0; font-size: 18px; }
  .process__bar { display: none; }
  .cases, .two-col, .cta__box { grid-template-columns: 1fr; }
  .page-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .header__phone, .header .btn { display: none; }
  .hero__form-row { grid-template-columns: 1fr; }
  .pains, .services { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 22px 16px; }
  .case { grid-template-columns: 1fr; }
  .case__vis { aspect-ratio: 16/7; }
  .compare td:first-child, .compare th:first-child { width: 40%; }
  .compare th, .compare td { padding: 13px 12px; font-size: 14.5px; }
  .floats { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mobile-bar a {
    min-height: 46px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    border: 1px solid var(--line);
  }
  .mobile-bar a.is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  body { padding-bottom: 66px; }
}

/* Узкие экраны от 320px: логотип и три кнопки в шапку не влезают,
   поэтому переключатель темы уходит, а просветы сжимаются. */
@media (max-width: 359px) {
  .header__actions { gap: 6px; }
  #theme-toggle { display: none; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { padding: 18px 16px; }
  .hero__legend { gap: 12px; padding: 6px 9px; }
  .hero__legend .lg { font-size: 9px; letter-spacing: .04em; }
}

/* ============================================================
   ДОСТУПНОСТЬ: отключение движения
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .map__route { stroke-dashoffset: 0 !important; opacity: .6; }
  .step { opacity: 1 !important; }
  .compare-row { opacity: 1 !important; transform: none !important; }
}
