/* ==========================================================================
   ТЕРМОСОФТ — дизайн-система
   Тепловой контраст: тёплый янтарь (объект, гость) + холодная бирюза (данные)
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* Сайт существует только в тёмной теме. Без этого браузер считает страницу
     светлой и рисует системные части по-своему: выпадающий список <select>
     открывается белым поверх тёмной формы, полоса прокрутки и автозаполнение
     полей тоже приходят из светлой палитры. */
  color-scheme: dark;

  /* Фон */
  --ink-900: #090D13;
  --ink-850: #0C1119;
  --ink-800: #10161F;
  --ink-750: #141B26;
  --ink-700: #1A2331;
  --ink-600: #26303F;
  --ink-500: #36414f;

  /* Текст */
  --text-hi:  #F4F7FA;
  --text-mid: #A7B2C0;
  --text-low: #6B7889;

  /* Тёплый акцент */
  --amber-600: #E85D04;
  --amber-500: #FF7A18;
  --amber-400: #FFA23D;
  --amber-300: #FFC46B;

  /* Холодный акцент */
  --cyan-500: #22B8B2;
  --cyan-400: #3DD6D0;
  --cyan-300: #7BE8E3;

  /* Служебные */
  --ok:   #4ADE80;
  --warn: #FBBF24;
  --err:  #F87171;

  /* Типографика */
  --ff-head: "Manrope", "Golos Text", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;

  /* Геометрия */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Радиус: карточка внутри сетки — 16, самостоятельный блок-контейнер — 24.
     Раньше 16 и 24 стояли вперемешку без правила. */
  --r-card: var(--r-lg);
  --r-block: var(--r-xl);

  /* Внутренний отступ карточек. Было восемь разных значений — стало три. */
  --pad-sm: 24px;
  --pad-md: 32px;
  --pad-lg: clamp(28px, 3.2vw, 44px);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 6.4vw, 96px);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: .28s;

  /* Общий список анимируемых свойств для интерактивных плиток и кнопок.
     Раньше здесь стояло transition: all — оно вешало анимацию и на те
     свойства, которые меняются не по наведению: при смене ширины окна
     медиазапросы плавно «переезжали» отступами и радиусами. */
  --t-ui:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);

  --border: 1px solid var(--ink-700);
  --border-soft: 1px solid rgba(255,255,255,.06);

  --shadow-lg: 0 32px 80px -24px rgba(0,0,0,.7);
  --shadow-amber: 0 16px 48px -12px rgba(255,122,24,.35);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  /* Убирает 300 мс паузы перед кликом, которые мобильный браузер держит
     на случай двойного тапа (зум мы не отключаем — он работает жестом). */
  touch-action: manipulation;
  /* Серую вспышку по тапу заменяет собственное :active-состояние кнопок */
  -webkit-tap-highlight-color: transparent;
}

/* Фоновые свечения — крупные absolute-элементы; без этого на узких экранах
   они растягивали документ и появлялась горизонтальная прокрутка.
   clip, а не hidden: hidden создаёт контейнер прокрутки и ломает position:sticky
   у панели интерактивной схемы. Для старых браузеров остаётся hidden. */
html { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-mid);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--text-hi);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 5.2vw, 66px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.028em; }
h3 { font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong, b { color: var(--text-hi); font-weight: 600; }

::selection { background: var(--amber-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ссылка «к содержимому»: не видна, пока на неё не пришёл фокус.
   Уводится вверх за край экрана, а не display:none — скрытое таким образом
   не попадает в порядок табуляции и переставать работать. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--amber-500);
  color: #fff;
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 4.6vw, 68px); }
.section--alt { background: var(--ink-850); }
/* Секция визуально продолжает предыдущую на том же фоне: свой верхний отступ
   она не добавляет, иначе он складывается с нижним отступом соседа */
.section--joined { padding-top: 0; }

.section-head { max-width: 780px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-mid); }

/* Надзаголовок-ярлык */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400));
}
.eyebrow--amber { color: var(--amber-400); }
.eyebrow--amber::before { background: linear-gradient(90deg, transparent, var(--amber-400)); }

/* Свечение */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: .28;
  animation: breathe 14s var(--ease) infinite;
}
.glow--warm { background: radial-gradient(circle, var(--amber-500), transparent 70%); }
.glow--cool { background: radial-gradient(circle, var(--cyan-500), transparent 70%); }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .24; }
  50%      { transform: scale(1.15); opacity: .34; }
}

.section > .container { position: relative; z-index: 1; }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-md);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t-ui);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #fff;
  box-shadow: var(--shadow-amber);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  transform: translateY(-2px);
  box-shadow: 0 20px 56px -12px rgba(255,122,24,.5);
}

.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--ink-600);
  color: var(--text-hi);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--ink-500); }

/* Кнопка, которой сейчас нечего делать: «Сбросить фильтры» при пустом
   наборе, кнопка формы во время отправки. Гасим, а не прячем — исчезающая
   кнопка сдвигает то, что под ней. */
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn:disabled:hover { transform: none; }

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--lg { padding: 18px 36px; font-size: 17px; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Текстовая ссылка-стрелка */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 600;
  font-size: 15px;
  transition: gap var(--dur) var(--ease);
}
.link-arrow:hover { gap: 12px; color: var(--amber-300); }

/* ---------- 5. Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(9,13,19,.82);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--ink-700);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--text-hi);
  line-height: 1;
}
.logo__text i { font-style: normal; color: var(--amber-500); }
.logo__sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 13px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-hi); background: rgba(255,255,255,.05); }

.header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__phone {
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.header__phone:hover { color: var(--amber-400); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border: var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-hi);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  z-index: 99;
  background: var(--ink-900);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 16px 0;
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  border-bottom: var(--border);
}
.mobile-menu .btn { margin-top: 24px; }

/* ---------- 6. Первый экран ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,13,19,.94) 0%, rgba(9,13,19,.55) 32%, rgba(9,13,19,.86) 72%, var(--ink-900) 100%),
    linear-gradient(90deg, rgba(9,13,19,.9) 0%, rgba(9,13,19,.35) 55%, rgba(9,13,19,.6) 100%);
}
.hero__content { max-width: 940px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber-300), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(17px, 1.85vw, 21px);
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.hero__note {
  font-size: 14px;
  color: var(--text-low);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Полоса цифр */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-700);
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
}
.stat {
  background: rgba(12,17,25,.72);
  backdrop-filter: blur(12px);
  padding: 26px 24px;
}
.stat__num {
  font-family: var(--ff-mono);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  /* Счётчик перебирает числа от нуля до конечного: без моноширинных цифр
     число дёргалось бы по ширине на каждом кадре анимации */
  font-variant-numeric: tabular-nums;
}
.stat__num i { font-style: normal; color: var(--amber-500); }
.stat__label { font-size: 14px; line-height: 1.4; color: var(--text-low); }

/* ---------- 7. Развилка ---------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fork__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--pad-lg);
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-block);
  overflow: hidden;
  transition: var(--t-ui);
}
.fork__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.fork__card:hover {
  background: var(--ink-750);
  border-color: var(--ink-600);
  transform: translateY(-3px);
}
.fork__card:hover::before { opacity: 1; }
.fork__card--cool::before { background: linear-gradient(90deg, transparent, var(--cyan-400), transparent); }

.fork__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255,122,24,.1);
  color: var(--amber-400);
  margin-bottom: 22px;
}
.fork__card--cool .fork__icon { background: rgba(61,214,208,.1); color: var(--cyan-400); }
.fork__card h3 { margin-bottom: 10px; }
.fork__card p { font-size: 16px; margin-bottom: 24px; }
.fork__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.05);
  border: var(--border-soft);
  color: var(--text-mid);
}

/* ---------- 8. Лента клиентов ---------- */
.clients__label {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 28px;
}

/* Лента клиентов — спокойный ряд, а не карусель.
   Раньше здесь ехала бесконечная лента из плиток с белым фоном. Три проблемы
   разом: восемь светлых прямоугольников были самыми яркими пятнами страницы
   и перебивали кейсы над собой; крайний логотип всегда был обрезан на
   полуслове; остановить движение можно было только наведением мыши — ни
   с клавиатуры, ни на телефоне. Обычная сетка ничего из этого не создаёт
   и показывает всех восьмерых сразу.

   Логотипы берутся из logos/mono/ — приведены к одному светлому тону
   с прозрачным фоном (см. .build/tools/logos-mono.py). */
.clients {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  gap: 12px clamp(8px, 1.4vw, 20px);
}
.client {
  --logo-h: 36px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client img {
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: .7;
  transition: opacity var(--dur) var(--ease);
}
.client:hover img { opacity: 1; }

/* Высота задаётся по пропорции знака, а не одна на всех.
   При равной высоте вытянутый в строку логотип занимает вчетверо больше
   места, чем вертикальный, и ряд разваливается: одни клиенты выглядят
   крупными, другие — приписанными мелким шрифтом. Здесь высота подобрана
   так, чтобы у всех восьми совпадала занимаемая площадь. */
.client--long   { --logo-h: 28px; }  /* знак-строка: Termoland, First Fitness */
.client--wide   { --logo-h: 36px; }  /* ecoFit, Enjoy */
.client--square { --logo-h: 52px; }  /* Aqua First, Aquastar */
.client--tall   { --logo-h: 64px; }  /* A9, Fitness Time */

/* ---------- 9b. Боли: список вместо сетки карточек ---------- */
/* Шесть обведённых карточек подряд читались как стена. Список с волосяными
   разделителями несёт тот же текст, но не добавляет странице шесть коробок. */
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 5vw, 88px);
}
.pain-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 18px;
  padding: 30px 0;
  border-top: var(--border);
}
/* Верхние границы двух первых пунктов образуют одну линию под заголовком */
.pain-item__n {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-low);
  padding-top: 6px;
}
.pain-item__body { min-width: 0; }
.pain-item h4 { font-size: clamp(18px, 1.7vw, 21px); margin-bottom: 8px; }
.pain-item p { font-size: 16px; margin-bottom: 14px; }
.pain-item__fix {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-hi);
}
.pain-item__fix svg { flex-shrink: 0; margin-top: 5px; color: var(--amber-500); }

/* ---------- 12b. Интеграции: таблица вместо карточек ---------- */
/* Это справочник «что с чем стыкуем». Таблица читается быстрее сетки
   и занимает вдвое меньше высоты. */
.int-table { min-width: 720px; }
.int-table th:first-child, .int-table td:first-child { width: 210px; }
.int-table td:first-child { color: var(--text-hi); font-weight: 600; }
.int-table td:last-child {
  width: 260px;
  color: var(--cyan-300);
  font-style: italic;
  font-size: 14.5px;
}
.int-table .chips { gap: 6px; }
.int-table .chip {
  background: rgba(255,255,255,.04);
  border-color: var(--ink-600);
  color: var(--text-mid);
  font-size: 12.5px;
}
.int-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- 14b. Процесс: таймлайн вместо карточек ---------- */
/* Четыре шага — это последовательность. Линия показывает её честнее,
   чем четыре одинаковых прямоугольника. */
.flow {
  --flow-gap: clamp(20px, 3vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--flow-gap);
}
/* Линия рисуется отрезками от точки к точке, а не одной полосой на всю ширину:
   сплошная полоса вылезала за последний шаг и выглядела оборванной. */
.flow__step { position: relative; padding-top: 56px; }
.flow__step::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 42px;
  width: calc(100% + var(--flow-gap) - 42px);
  height: 1px;
  background: linear-gradient(90deg, var(--amber-500), var(--cyan-500));
  opacity: .3;
}
.flow__step:last-child::after { display: none; }
.flow__dot {
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 500;
  background: var(--ink-850);
  border: 1px solid var(--amber-500);
  color: var(--amber-400);
}
.flow__step:last-child .flow__dot { border-color: var(--cyan-500); color: var(--cyan-300); }
.flow__step h4 { margin-bottom: 10px; }
.flow__step p { font-size: 15px; }
.flow__dur {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--cyan-400);
  margin-top: 14px;
}

/* ---------- 10. Схема объекта ---------- */
.scheme { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: stretch; }

/* Универсальная двухколоночная секция (внутренние страницы) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: stretch; }
.split > * { min-width: 0; }
/* Медиаколонка тянется на высоту текстовой: иначе картинка «висит» и блок разъезжается */
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 22px 16px;
  background: linear-gradient(180deg, transparent, rgba(9,13,19,.88));
  font-size: 13px; color: var(--text-mid);
}

.scheme__stage {
  /* Колонки одной высоты, а схема центрируется в оставшемся месте под
     переключателем: иначе под левым блоком оставалась пустая полоса */
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-850));
  border: var(--border);
  border-radius: var(--r-xl);
  padding: clamp(16px, 2.4vw, 28px);
  position: relative;
  overflow: hidden;
}
.scheme__switch {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.scheme__switch button {
  padding: 8px 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  background: rgba(255,255,255,.04);
  border: var(--border-soft);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t-ui);
}
.scheme__switch button:hover { color: var(--text-hi); background: rgba(255,255,255,.08); }
.scheme__switch button.is-active {
  background: rgba(255,122,24,.14);
  border-color: rgba(255,122,24,.4);
  color: var(--amber-300);
}

.scheme__svg { width: 100%; height: auto; display: block; margin-block: auto; }

/* Список зон вместо схемы на узком экране. На широком существует, но скрыт:
   строится он всё равно из самой схемы, а показывается только там, где
   подписи в SVG перестают читаться (см. медиазапрос в разделе «Адаптив»). */
.scheme__zones { display: none; }
.zone-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.02);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.zone-row__title {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-hi);
  letter-spacing: -.015em;
}
.zone-row__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text-low);
}
.zone-row.is-active {
  background: rgba(255,122,24,.1);
  border-color: rgba(255,122,24,.45);
}
.zone-row.is-active .zone-row__title { color: var(--amber-300); }

.zone { cursor: pointer; }
.zone__box {
  fill: rgba(255,255,255,.035);
  stroke: var(--ink-600);
  stroke-width: 1.25;
  transition: fill .25s var(--ease), stroke .25s var(--ease);
}
.zone:hover .zone__box { fill: rgba(255,122,24,.09); stroke: rgba(255,122,24,.5); }
.zone.is-active .zone__box { fill: rgba(255,122,24,.16); stroke: var(--amber-500); }
.zone__label { fill: var(--text-mid); font-family: var(--ff-body); font-size: 12.5px; font-weight: 500; pointer-events: none; }
.zone.is-active .zone__label, .zone:hover .zone__label { fill: var(--text-hi); }
.zone__ico { stroke: var(--text-low); fill: none; stroke-width: 1.5; pointer-events: none; transition: stroke .25s var(--ease); }
.zone:hover .zone__ico, .zone.is-active .zone__ico { stroke: var(--amber-400); }

.scheme__core-box { fill: rgba(61,214,208,.1); stroke: var(--cyan-500); stroke-width: 1.25; }
.scheme__core-label { fill: var(--cyan-300); font-family: var(--ff-mono); font-size: 12px; font-weight: 500; }
.scheme__wire {
  stroke: var(--cyan-500);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 3 5;
  opacity: .45;
  animation: flow 22s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -160; } }

.scheme__panel {
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  position: sticky;
  top: 100px;
}
.scheme__panel-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 12px;
}
.scheme__panel h3 { margin-bottom: 12px; }
.scheme__panel > p { font-size: 15.5px; margin-bottom: 22px; }

.spec-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.spec-list li {
  display: flex; gap: 11px;
  font-size: 15px;
  line-height: 1.5;
}
.spec-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
  flex-shrink: 0;
  margin-top: 9px;
}
.spec-list--cool li::before { background: var(--cyan-400); }

.scheme__integrations {
  padding-top: 20px;
  border-top: var(--border);
}
.scheme__integrations-title {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: rgba(61,214,208,.08);
  border: 1px solid rgba(61,214,208,.2);
  color: var(--cyan-300);
}

/* ---------- 11. Направления ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  padding: var(--pad-md);
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-card);
  transition: var(--t-ui);
  position: relative;
  overflow: hidden;
}
.card:hover { background: var(--ink-750); border-color: var(--ink-600); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255,122,24,.09);
  color: var(--amber-400);
  margin-bottom: 22px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; margin-bottom: 20px; flex-grow: 1; }
.card .link-arrow { margin-top: auto; }

/* ---------- 12. Интеграции ---------- */
.integrations__footer {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--ink-600);
  text-align: center;
  font-size: 16px;
}
.integrations__footer strong { color: var(--amber-400); }

/* ---------- 13. Кейсы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-ui);
}
.case:hover { border-color: var(--ink-600); transform: translateY(-3px); }
.case__media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--ink-750);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: var(--pad-sm) var(--pad-sm) var(--pad-md); display: flex; flex-direction: column; flex-grow: 1; }
.case__meta {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 14px;
}
.case__body h3 { font-size: 21px; margin-bottom: 14px; }
.case__ba { display: grid; gap: 10px; margin-bottom: 22px; font-size: 15px; }
.case__ba div { display: flex; gap: 10px; }
.case__ba b {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-low);
  flex-shrink: 0;
  width: 52px;
  padding-top: 4px;
  font-weight: 500;
}
.case__res {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: var(--border);
}
.case__res span {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: rgba(255,122,24,.09);
  border: 1px solid rgba(255,122,24,.22);
  color: var(--amber-300);
}

.process-note {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 2px solid var(--amber-500);
  background: rgba(255,122,24,.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px;
}

/* ---------- 15. Сравнение ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col {
  padding: var(--pad-lg);
  border-radius: var(--r-block);
  border: var(--border);
}
.compare__col--bad { background: var(--ink-850); }
.compare__col--good {
  background: linear-gradient(160deg, rgba(255,122,24,.07), rgba(255,122,24,.02));
  border-color: rgba(255,122,24,.28);
}
.compare__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-head);
  font-size: 19px; font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: var(--border);
}
.compare__col--bad .compare__title { color: var(--text-low); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.compare li svg { flex-shrink: 0; margin-top: 3px; }
.compare__col--bad li { color: var(--text-low); }
.compare__col--bad li svg { color: var(--text-low); }
.compare__col--good li { color: var(--text-mid); }
.compare__col--good li svg { color: var(--amber-500); }

.competence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-700);
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 20px;
}
.competence div { background: var(--ink-850); padding: var(--pad-sm); }
.competence b { display: block; color: var(--text-hi); font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.competence span { font-size: 14.5px; color: var(--text-low); }

/* ---------- 16. Поставщики ---------- */
/* Карточка «20+» и ряд плиток стоят в одной строке и тянутся по общей высоте:
   раньше карточка была самостоятельной колонкой и её нижняя граница обрывалась
   посреди пустоты, не совпадая ни с чем. Список категорий вынесен отдельной
   строкой под ними и идёт во всю ширину. */
.suppliers { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }

.suppliers__figure {
  padding: var(--pad-md);
  border-radius: var(--r-block);
  border: 1px solid rgba(255,122,24,.28);
  background: linear-gradient(160deg, rgba(255,122,24,.1), rgba(255,122,24,.02));
}
.suppliers__num {
  font-family: var(--ff-mono);
  font-size: 68px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--amber-400);
  margin-bottom: 12px;
}
.suppliers__figure p { font-size: 15.5px; }

/* Плитки производителей.
   Раньше над каждым названием стояла двухбуквенная монограмма в янтарном
   квадрате — PK, ОК, HW, OZ, TR. В блоке, который называется «прямые договоры
   с производителями», знак, придуманный за производителя, работает против
   самого утверждения: он читается как заглушка вместо логотипа. Пока нет
   разрешения на использование настоящих логотипов, честнее показывать
   название набором — оно ничего не изображает и ни на что не претендует.

   Бейдж «дистрибьютор» повторялся на всех пяти плитках. Статус один и тот же,
   поэтому он вынесен в подпись над рядом и назван один раз. */
/* Колонка: подпись сверху, ряд плиток занимает всю оставшуюся высоту.
   Флексом, а не строкой grid с 1fr: дорожка fr не забирает высоту,
   доставшуюся колонке от растягивания, и ряд оставался на своей высоте,
   а нижний край карточки «20+» повисал на девяносто пикселей ниже. */
.vendors { display: flex; flex-direction: column; gap: 12px; }
.vendors__label { margin: 0; }
.vendors__row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.vendor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--pad-sm) 18px;
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-lg);
  transition: var(--t-ui);
}
.vendor:hover { border-color: rgba(255,122,24,.4); background: var(--ink-750); transform: translateY(-2px); }
.vendor__name {
  font-family: var(--ff-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -.025em;
  line-height: 1.15;
}
/* Тонкая янтарная черта вместо квадрата с монограммой: она задаёт плитке
   акцент и общий верхний край ряда, ничего при этом не изображая. */
.vendor::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--amber-500), rgba(255,122,24,0));
  border-radius: 2px;
}
.vendor__what { font-size: 13px; color: var(--text-low); line-height: 1.35; margin-top: auto; }

.supply-cats { margin-top: clamp(28px, 3vw, 40px); }
/* Сетка, а не поток: тринадцать чипов в свободном переносе оставляли
   в последней строке один осиротевший. В колонках хвост ровный. */
.supply-cats .chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  justify-items: start;
  gap: 10px;
}
.supply-cats .chips .chip {
  background: rgba(255,255,255,.04);
  border-color: var(--ink-600);
  color: var(--text-mid);
  font-size: 13px;
  padding: 7px 13px;
}

/* ---------- 17. Форма и CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  border: var(--border);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-850) 60%);
  padding: clamp(32px, 4.5vw, 64px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cta::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(255,122,24,.22), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 16px; }
.cta__lead { font-size: 17px; margin-bottom: 26px; }

.cta__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* align-items обязателен: по умолчанию флекс растягивает элементы по высоте
   строки, а базовое правило svg { height: auto } снимает с галочки её
   собственные 16 пикселей. В двухстрочном пункте бокс вырастал до 47 px,
   и галочка, отцентрованная в нём, оказывалась напротив второй строки. */
.cta__points li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; }
.cta__points svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; color: var(--amber-500); }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-low);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(9,13,19,.6);
  border: var(--border);
  border-radius: var(--r-md);
  color: var(--text-hi);
  font-family: var(--ff-body);
  font-size: 16px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-low); }
/* Мышью — только подсветка рамки. С клавиатуры дополнительно остаётся общее
   кольцо :focus-visible: одной смены цвета рамки в 1 пиксель недостаточно,
   чтобы понять, где ты находишься, проходя форму табом. */
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber-500);
  background: rgba(9,13,19,.9);
}
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) { outline: none; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7889' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: var(--ink-800); color: var(--text-hi); }
.field textarea { resize: vertical; min-height: 84px; }

.form__consent {
  display: flex;
  gap: 11px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-low);
  cursor: pointer;
}
.form__consent input { margin-top: 2px; accent-color: var(--amber-500); width: 16px; height: 16px; flex-shrink: 0; }
/* Согласие — многострочный текст, поэтому флажок прижимается к первой строке,
   а не центрируется по всей высоте абзаца. wrap нужен, чтобы подпись об ошибке
   встала под строкой, а не третьей колонкой рядом с текстом; текст при этом
   обязан занимать остаток строки — иначе перенос уводит на новую строку его,
   и флажок остаётся висеть один. */
.form__consent { align-items: flex-start; flex-wrap: wrap; }
.form__consent > span { flex: 1; min-width: 0; }
.form__consent a { color: var(--text-mid); text-decoration: underline; text-underline-offset: 2px; }

.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* Ошибка конкретного поля. Создаётся из кода при первой неудачной отправке,
   поэтому пустой блок места не занимает. */
.field__err { font-size: 13px; color: var(--err); line-height: 1.4; }
.field__err:empty { display: none; }
.field.is-err input,
.field.is-err select,
.field.is-err textarea { border-color: rgba(248,113,113,.55); }
.form__consent.is-err { color: var(--err); }
.form__consent.is-err input { outline: 2px solid rgba(248,113,113,.55); outline-offset: 2px; }
.form__consent .field__err { flex-basis: 100%; }

/* Строка внизу формы осталась для ответа сервера — «заявка ушла» или
   «отправить не удалось». Ошибки заполнения теперь живут у своих полей. */
.form__msg { font-size: 14.5px; padding: 12px 16px; border-radius: var(--r-md); display: none; }
.form__msg.is-ok { display: block; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.3); color: var(--ok); }
.form__msg.is-err { display: block; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: var(--err); }

/* ---------- 18. Подвал ---------- */
.footer {
  background: var(--ink-850);
  border-top: var(--border);
  padding-block: clamp(56px, 6.5vw, 84px) 32px;
  margin-top: clamp(40px, 5vw, 72px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: var(--border);
}
.footer__brand p { font-size: 15px; color: var(--text-low); margin-top: 18px; max-width: 300px; }
.footer__col h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { font-size: 15px; color: var(--text-mid); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--amber-400); }
.footer__contact-item { margin-bottom: 14px; }
.footer__contact-item span { display: block; font-size: 12.5px; color: var(--text-low); margin-bottom: 3px; }
.footer__contact-item a, .footer__contact-item b {
  font-family: var(--ff-mono);
  font-size: 16px;
  color: var(--text-hi);
  font-weight: 500;
}
.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-low);
}
.footer__legal { max-width: 640px; line-height: 1.55; }

/* ---------- 19. Страницы (внутренние) ---------- */
.page-hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  border-bottom: var(--border);
}
.page-hero__content { max-width: 820px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 20px; }
.page-hero p { font-size: clamp(17px, 1.7vw, 20px); max-width: 660px; }

.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-low);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--amber-400); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 9px; margin: 0 0 1.4em; }
.prose li { line-height: 1.6; }
.prose a { color: var(--amber-400); text-decoration: underline; text-underline-offset: 3px; }

/* Таблица */
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: var(--border); }
th {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
  background: var(--ink-850);
}
td { color: var(--text-mid); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--text-hi); }

/* Каталог */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 100px; display: grid; gap: 26px; }
.filter-group h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 12px;
  font-weight: 500;
}
.filter-group label {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-mid);
  transition: color var(--dur) var(--ease);
}
.filter-group label:hover { color: var(--text-hi); }
.filter-group input { accent-color: var(--amber-500); width: 16px; height: 16px; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  display: flex; flex-direction: column;
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-card);
  padding: var(--pad-sm);
  transition: var(--t-ui);
}
.product:hover { border-color: var(--ink-600); transform: translateY(-2px); }
/* Иконка и название категории — в одну строку: под иконкой подпись дублировала её.
   Иконка увеличена с 30 до 46 пикселей: в каталоге нет фотографий, и знак
   категории остаётся единственным, за что цепляется глаз при пролистывании
   сетки из тридцати восьми одинаковых текстовых карточек. */
.product__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255,122,24,.16), rgba(255,122,24,.05));
  border: 1px solid rgba(255,122,24,.16);
  color: var(--amber-400);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.product__cat {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-low);
  line-height: 1.3;
}
.product h4 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.product__vendor { font-size: 13.5px; color: var(--amber-400); margin-bottom: 12px; font-family: var(--ff-mono); }
.product p { font-size: 14.5px; color: var(--text-low); margin-bottom: 16px; }
/* Теги прижаты к низу карточки, а описание не растягивается: карточки в ряду
   равной высоты, и при описании в две строки против четырёх между текстом
   и разделителем зияла пустота на треть карточки. */
.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; border-top: var(--border); }
.product__tags span {
  font-size: 11.5px;
  font-family: var(--ff-mono);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: var(--border-soft);
  color: var(--text-low);
}
.product__tags span.wet { background: rgba(61,214,208,.08); border-color: rgba(61,214,208,.22); color: var(--cyan-300); }

.catalog-empty { padding: 60px 20px; text-align: center; color: var(--text-low); grid-column: 1 / -1; }

/* Команда / отделы */
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dept {
  padding: 26px 22px;
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}
.dept__n {
  font-family: var(--ff-mono);
  font-size: 38px;
  font-weight: 500;
  color: var(--amber-500);
  line-height: 1;
  margin-bottom: 10px;
}
.dept__name { font-size: 14.5px; color: var(--text-mid); }

/* Таймлайн */
.timeline { display: grid; gap: 0; position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber-500), var(--cyan-500));
  opacity: .4;
}
.timeline__item { padding: 0 0 32px; position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--amber-500);
}
.timeline__year {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--amber-400);
  margin-bottom: 6px;
}
.timeline__item h4 { margin-bottom: 6px; }
.timeline__item p { font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border: var(--border); border-radius: var(--r-lg); background: var(--ink-800); overflow: hidden; }
/* Вопрос — <button>: сбрасываем его собственный вид и растягиваем на строку.
   Ради этого стоило перейти с div: кнопка сама попадает в табуляцию,
   открывается с клавиатуры и объявляет состояние через aria-expanded. */
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-hi);
  user-select: none;
  transition: background-color var(--dur) var(--ease);
}
.faq__q:hover { background: var(--ink-750); }
.faq__q svg { flex-shrink: 0; color: var(--text-low); transition: transform var(--dur) var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--amber-400); }
.faq__a { display: none; padding: 0 26px 24px; font-size: 15.5px; }
.faq__item.is-open .faq__a { display: block; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-block { margin-bottom: 30px; }
.contact-block h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 10px;
  font-weight: 500;
}
.contact-block a, .contact-block b {
  font-family: var(--ff-mono);
  font-size: 20px;
  color: var(--text-hi);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.contact-block a:hover { color: var(--amber-400); }
.contact-block p { font-size: 15px; margin-top: 8px; color: var(--text-low); }

.geo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.geo span {
  font-size: 13.5px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(61,214,208,.07);
  border: 1px solid rgba(61,214,208,.2);
  color: var(--cyan-300);
}

/* ---------- 19b. Карточки решений (шахматка) ---------- */
.solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-800);
  margin-bottom: 20px;
  scroll-margin-top: 100px;
  transition: border-color var(--dur) var(--ease);
}
.solution-card:hover { border-color: var(--ink-600); }

/* Шахматка: у чётных карточек картинка уезжает вправо.
   order, а не direction — иначе на мобильном картинка оказалась бы под текстом
   у одних карточек и над текстом у других. */
.solution-card:nth-child(even) .solution-card__media { order: 2; }

.solution-card__media { position: relative; min-height: 340px; overflow: hidden; }
.solution-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,13,19,.15), rgba(9,13,19,.55));
}
.solution-card__badge {
  position: absolute;
  left: 20px; top: 20px;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(9,13,19,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-300);
}

/* Уровни заголовков подняты на один: направление на странице «Решения»
   и кейс на странице «Кейсы» — это разделы страницы, то есть h2, а не h3.
   Раньше после h1 сразу шёл h3, и оглавление страницы для скринридера
   и для поисковика получалось с дырой. Размер оставлен прежним: смысл
   уровня задаёт тег, а масштаб — стиль. */
.solution-card__body { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.solution-card__body h2 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 8px; letter-spacing: -.02em; }
.solution-card__sub { font-size: 14.5px; color: var(--text-low); margin-bottom: 22px; }
.solution-card__cols { display: grid; gap: 26px; }
.solution-card__body h3 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 12px;
  font-weight: 500;
}
.solution-card__body .spec-list li { font-size: 14.5px; }
.solution-card__body .spec-list li::before { margin-top: 8px; }
.solution-card__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--border);
  font-size: 14.5px;
}

/* ---------- 19c. Отделы ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dept {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: var(--pad-sm);
  background: var(--ink-800);
  border: var(--border);
  border-radius: var(--r-lg);
  text-align: left;
}
.dept__n {
  font-family: var(--ff-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--amber-500);
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  min-width: 44px;
}
.dept__name { font-size: 15.5px; color: var(--text-hi); font-weight: 600; line-height: 1.3; }
.dept__name span { display: block; font-size: 13px; color: var(--text-low); font-weight: 400; margin-top: 3px; }
.dept--total { background: linear-gradient(150deg, rgba(255,122,24,.12), rgba(255,122,24,.03)); border-color: rgba(255,122,24,.3); }

/* ---------- 20. Появление ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
/* Прятать блок можно только если JS точно жив и доведёт его до is-in.
   Класс js-reveal ставится инлайновым скриптом в head. Иначе страница,
   открытая без прокрутки (превью в мессенджере, скриншот, переход по якорю),
   оставалась бы пустой. */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 21. Адаптив ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .suppliers { grid-template-columns: 1fr; }
  .vendors { grid-template-columns: repeat(3, 1fr); }
  .scheme, .split { grid-template-columns: 1fr; }
  .scheme__panel { position: static; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .cards-grid, .cases, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-list { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .flow__step::after { display: none; }
  .cta { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .solution-card { grid-template-columns: 1fr; }
  .solution-card:nth-child(even) .solution-card__media { order: 0; }
  .solution-card__media { min-height: 240px; }
  .split__media { min-height: 260px; }
  .filters { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
  .contacts-grid { grid-template-columns: 1fr; }
  .competence { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .fork, .cards-grid, .cases, .compare, .catalog-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .vendors { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { height: 56px; }
  /* Схема шириной с телефон нечитаема: подписи зон в ней уходят под 6 px.
     Вместо неё — тот же набор зон списком. */
  .scheme__svg { display: none; }
  .scheme__zones { display: grid; gap: 8px; margin-top: 18px; }
  .footer__top { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero__cta .btn { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .footer, .cta, .glow, .burger { display: none; }
  body { background: #fff; color: #000; }
}
