/* RIVENO — оформление сайта v5.
 *
 * Планка задана человеком: страница продукта Apple (España), разобранная
 * в styles.refero.design. Оттуда взяты значения, а не «настроение»:
 * почти монохромная палитра, единственный синий на действиях, карточки
 * без теней со скруглением 28, ритм из чередования белых и серых полос,
 * огромные заголовки с отрицательным трекингом.
 *
 * Информационная плотность — от Odoo: разделы по нишам, сетка модулей,
 * у каждого экрана своя страница со снимком реальной системы.
 *
 * Один общий файл на все страницы: сборки в проекте нет, внешних CDN нет.
 */

/* ─────────────────────────── Токены ─────────────────────────── */

:root {
  /* Поверхности */
  --paper: #ffffff;      /* белая полоса, карточки */
  --canvas: #f5f5f7;     /* серая полоса — она же разделитель */
  --wash: #e8e8ed;       /* наведение на светлые кнопки */
  --elevated: #fafafc;   /* шапка после прокрутки */

  /* Текст */
  --ink: #1d1d1f;
  --ink-mid: #474747;
  --ink-soft: #707070;
  --hairline: #d6d6d6;
  --hairline-soft: #e6e6e9;

  /* Единственный хроматический акцент */
  --blue: #0071e3;       /* только заливка кнопок действия */
  --blue-link: #0066cc;  /* только текстовые ссылки */
  --ember: #b64400;      /* состояние «в работе», не чаще раза на экран */
  /* Тёмная глава и состояния нажатия — те же цвета, но с именами. */
  --ink-band: #10131a;   /* тёмная глава: фон полосы и окна */
  --ink-band-text: #f2f4f8;   /* текст на тёмном */
  --ink-band-soft: #9aa3b2;   /* подписи на тёмном */
  --ink-band-link: #6cb6ff;   /* ссылки и обводка фокуса на тёмном */
  --blue-press: #0a78e8;   /* синий под нажатием и наведением */
  --wash-press: #dedee4;   /* светлая кнопка под нажатием */

  /* Форма. Три уровня скругления, и каждый отвечает за свой масштаб:
     чем крупнее поверхность, тем мягче угол. Смешивать нельзя — иначе
     мелкая кнопка выглядит такой же «большой», как окно системы.
       control — то, что нажимают: поля, чипы, мелкие кнопки;
       tile    — карточки и плитки;
       card    — крупные экраны, окна системы, видео, тёмные главы. */
  --r-control: 14px;
  --r-card: 28px;
  --r-tile: 22px;
  --r-link: 10px;
  --r-pill: 980px;

  /* Тень — только под тем, что действительно висит над листом: окно
     системы и видео. Карточки отделяются фоном и тонкой границей;
     одинаковая тень у всего подряд превращает страницу в кашу. */
  --lift-media: 0 2px 0 rgba(0, 0, 0, .04), 0 26px 60px -34px rgba(16, 24, 40, .40);

  /* Сетка */
  --page: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  /* Пауза между соседними полосами складывается из двух отступов.
     При 120px выходило 240 — это уже не воздух, а провал: следующий
     блок теряется. Держим 176 на большом экране и 96 на телефоне. */
  --band: clamp(48px, 6.2vw, 88px);
  --band-tight: clamp(36px, 4.4vw, 60px);

  /* Движение. Одна кривая на весь сайт. */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-press: 130ms;
  --t-hover: 190ms;
  --t-state: 400ms;
  --t-reveal: 560ms;

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─────────────────────────── Основа ─────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  font-feature-settings: "numr";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Фокус с клавиатуры виден на любом фоне: синее кольцо и белый зазор
   между ним и самим элементом. На тёмных полосах зазор тоже читается —
   он полупрозрачный белый, а не сплошной. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
  border-radius: 8px;
}
.band--ink :focus-visible,
.pipeline :focus-visible {
  outline-color: var(--ink-band-link);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .45);
}

::selection { background: rgba(0, 113, 227, .18); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ─────────────────────── Полосы и сетка ─────────────────────── */

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

.band { padding-block: var(--band); }
.band--tight { padding-block: var(--band-tight); }
.band--gray { background: var(--canvas); }
.band--paper { background: var(--paper); }

/* Разделителей нет: полосы отделяются сменой фона. Волосяная линия
   остаётся только там, где две одноцветные полосы идут подряд. */
.band + .band--gray, .band--gray + .band { border: 0; }

/* Тёмная полоса. Эталон запрещает вводить цвет в интерфейс, но разрешает
   цвету приходить из самого продукта — а тёмная тема здесь настоящая,
   она есть в системе и ею пользуются вечером и в цеху. Полоса одна на
   сайт: вторая превратила бы приём в оформление. */
.band--ink {
  background: #0b0d12;
  color: var(--ink-band-text);
  overflow: clip;
}
.band--ink .muted,
.band--ink .caption { color: #9aa3b2; }
.band--ink .eyebrow { color: var(--ink-band-soft); }
.band--ink .arrow-link { color: #6cb6ff; }
.band--ink .btn--ghost { color: var(--ink-band-text); border-color: rgba(255, 255, 255, .34); }
.band--ink .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.band--ink .shot { background: var(--ink-band); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.band--ink .feature__list li { color: #c4ccd8; }
.band--ink .feature__list li::before { border-color: var(--ink-band-text); }

/* Кадр во всю ширину полосы: у крупного снимка своя выразительность,
   и поля ему только мешают. */
.bleed {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─────────────────────────── Типографика ─────────────────────── */

.display {
  font-size: clamp(42px, 8.2vw, 96px);
  line-height: 1.045;
  letter-spacing: -.015em;
  font-weight: 700;
}

.heading {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.07;
  letter-spacing: -.005em;
  font-weight: 600;
  text-wrap: balance;
}

.subheading {
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 600;
  text-wrap: balance;
}

.title-sm {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: .007em;
  font-weight: 600;
}

.lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
  letter-spacing: -.004em;
  font-weight: 400;
  color: var(--ink);
  max-width: 42ch;
}

.body-lg { font-size: 21px; line-height: 1.38; letter-spacing: .003em; }
.muted { color: var(--ink-soft); }
.caption { font-size: 14px; line-height: 1.3; letter-spacing: -.016em; color: var(--ink-soft); }
.micro { font-size: 12px; line-height: 1.34; letter-spacing: -.01em; color: var(--ink-soft); }

.eyebrow {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-soft);
}

.eyebrow--ember { color: var(--ember); }

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

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

/* Главное действие. Одно на экран: синий фон здесь означает «это то,
   ради чего страница». Наведение — на пиксель вверх и чуть светлее,
   нажатие — короткое сжатие. Ни постоянного свечения, ни бегущих
   бликов: движение без причины крадёт внимание у самого действия. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  letter-spacing: -.022em;
  cursor: pointer;
  transition:
    background var(--t-hover) var(--ease),
    transform var(--t-press) var(--ease),
    box-shadow var(--t-hover) var(--ease);
}

.btn:hover { background: var(--blue-press); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .28);
}
.btn--ghost:hover { background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .5); }

.btn--quiet {
  background: var(--wash);
  color: var(--ink);
}
.btn--quiet:hover { background: var(--wash-press); }

/* В шапке — то же действие, но подчинённого размера: оно сопровождает
   страницу, а не открывает её. */
.btn--sm { min-height: 34px; padding: 7px 16px; font-size: 14px; }
.btn--sm:hover { transform: none; }

/* Бегущий огонёк по кромке главной кнопки убран намеренно. Он шёл по
   кругу бесконечно и тянул взгляд к себе даже тогда, когда человек
   читал соседний текст. Кнопка и без него самая заметная на экране:
   она единственная синяя. Разметка `.btn--glow` и `<i class="btn__spark">`
   оставлены безвредными пустышками, чтобы не переписывать страницы. */
.btn--glow { position: relative; }
.btn__spark { display: none; }
/* Скобка, оставшаяся от обёртки, из которой вынули содержимое. Сама по
   себе она безвредна — парсер её пропускает, — но из-за неё в файле
   сходился счёт скобок, и незакрытый @media ниже не бросался в глаза. */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Текстовая ссылка со стрелкой — единственный синий текст на странице */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  color: var(--blue-link);
  font-size: 17px;
}
.arrow-link::after {
  content: "›";
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-.06em);
  transition: transform var(--t-hover) var(--ease);
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translate(3px, -.06em); }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ─────────────────────── Верхняя панель ─────────────────────── */

.promo {
  background: var(--canvas);
  color: var(--ink-mid);
  font-size: 12px;
  line-height: 1.34;
  text-align: center;
  padding: 9px var(--gutter);
}
.promo a { color: var(--blue-link); }
.promo a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-state) var(--ease), border-color var(--t-state) var(--ease);
}
.topbar.is-scrolled {
  background: rgba(250, 250, 252, .86);
  border-bottom-color: rgba(214, 214, 214, .8);
}

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

   Играет один раз за визит; дальше слово просто стоит. Логотип виден
   на каждой странице, и повторять представление на каждом переходе
   значит мешать. */

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  padding-block: 4px;
}

.brand__word span { display: inline-block; will-change: transform; }

/* Скрывает буквы только скрипт, добавляя класс: при выключенном JS
   слово должно остаться на месте, а не пропасть. */
.brand.is-drawing .brand__word span {
  opacity: 0;
  animation: letter-in 420ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

/* Крупное слово в подвале — единственное место, где логотип звучит в
   полный голос. Шаг между буквами больше: на большом кегле тот же
   ритм читается суетливо. */
.brand--lg {
  font-size: clamp(40px, 5.8vw, 78px);
  letter-spacing: .015em;
}
.brand--lg.is-drawing .brand__word span {
  animation-duration: 520ms;
  animation-delay: calc(var(--i) * 75ms);
}

.footer__brand { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: var(--r-link);
  font-size: 14px;
  color: var(--ink-mid);
  transition: color var(--t-hover) var(--ease), background var(--t-hover) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav__side { display: flex; align-items: center; gap: 10px; }

/* Кнопка живёт внизу раскрытого меню и только там: на широком экране
   то же действие уже стоит в шапке справа. */
.nav__cta { display: none; }

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer;
  border-radius: var(--r-link);
}
.nav__burger:hover { background: rgba(0, 0, 0, .05); }
.nav__burger i {
  display: block; width: 17px; height: 1.5px; background: var(--ink);
  position: relative;
  transition: transform var(--t-state) var(--ease);
}
.nav__burger i::before, .nav__burger i::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform var(--t-state) var(--ease);
}
.nav__burger i::before { top: -5px; }
.nav__burger i::after { top: 5px; }
.nav__burger[aria-expanded="true"] i { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i::before { transform: translateY(5px) rotate(-90deg); }
.nav__burger[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-90deg); opacity: 0; }

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; }
  /* Меню закрывает страницу целиком и непрозрачно: прежний фон был
     полупрозрачным, и сквозь пункты просвечивал текст — читать
     приходилось через две картинки сразу. Панель занимает весь экран
     ниже шапки, прокрутка страницы под ней заблокирована скриптом. */
  .nav__links {
    position: fixed;
    /* Высота задана числом, а не нижним краем: у шапки есть
       backdrop-filter, и она становится точкой отсчёта для fixed —
       «до низа экрана» превращалось в «до низа шапки», панель
       схлопывалась в полоску 37px. */
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100dvh - 64px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--hairline);
    overflow-y: auto;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 240ms var(--ease),
      transform 240ms var(--ease),
      visibility 0s linear 240ms;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s;
  }
  .nav__links a {
    min-height: 56px;
    font-size: 21px;
    padding-inline: 0;
    border-bottom: 1px solid var(--hairline-soft);
    border-radius: 0;
  }
  .nav__links a:hover { background: none; }
  /* Главное действие переезжает в самый низ меню: человек дочитал
     список и там же может позвать демонстрацию. */
  .nav__cta {
    display: block;
    margin-top: auto;
    padding-top: 20px;
  }
  /* Кнопка внизу меню — это кнопка, а не пункт списка: правила для
     ссылок меню (серый цвет, прямые углы, разделитель) её не касаются. */
  .nav__links .nav__cta .btn {
    width: 100%;
    color: #fff;
    border-radius: var(--r-pill);
    border-bottom: 0;
    font-size: 17px;
    min-height: 52px;
  }
  .nav__side .btn { display: none; }
}

/* ─────────────────────────── Первый экран ───────────────────── */

.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 0;
  text-align: center;
  overflow: clip;
}

.hero__eyebrow { margin-bottom: 14px; }

.hero .display { margin-inline: auto; max-width: 15ch; }

.hero__lead {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.32;
  color: var(--ink);
}

.hero__actions { margin-top: 30px; justify-content: center; }

/* Снимок системы — «продукт» этой страницы. Он же единственный источник
   цвета на белом: интерфейсу здесь красить нечего. */
.shot {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}
.shot img { width: 100%; height: auto; }
.shot--flat { background: transparent; }

.hero__stage {
  margin-top: clamp(40px, 6vw, 72px);
  transform-origin: 50% 0;
  will-change: transform;
}

/* ──────────────────── Крупные продуктовые блоки ─────────────── */

.feature {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--flip .feature__copy { order: 2; }
}

.feature__copy > * + * { margin-top: 18px; }
.feature__list { margin-top: 26px; display: grid; gap: 14px; }
.feature__list li {
  list-style: none;
  padding-left: 26px;
  position: relative;
  color: var(--ink-mid);
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* ───────────────────────── Карточки ─────────────────────────── */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Ровно четыре карточки разворачиваем в два ряда по два: в три колонки
   четвёртая оставалась одна, а справа от неё зияла пустая строка.
   Условие срабатывает только при четырёх детях — тройкам и пятёркам
   три колонки к лицу. */
.cards:has(> :last-child:nth-child(4)) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-state) var(--ease);
}
.band--gray .card { background: var(--paper); }
.band--paper .card { background: var(--canvas); }

.card__index { font-size: 14px; color: var(--ink-soft); letter-spacing: 0; }
.card p { color: var(--ink-mid); }
.card .arrow-link { margin-top: auto; padding-top: 10px; }

a.card:hover { transform: translateY(-2px); }

/* Плитка модуля — сетка приложений в духе Odoo, но без рамок */
.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr));
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--r-tile);
  background: var(--paper);
  transition: background var(--t-hover) var(--ease), transform var(--t-state) var(--ease);
}
.band--paper .tile { background: var(--canvas); }
a.tile:hover { background: var(--wash); transform: translateY(-2px); }

.tile__icon {
  width: 26px; height: 26px; color: var(--ink);
  /* Спрайт нарисован контурами: без этих трёх строк браузер заливает
     их сплошняком, и вместо тонкого рисунка выходит чёрный силуэт. */
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.tile b { font-size: 17px; font-weight: 600; }
.tile span { font-size: 14px; color: var(--ink-soft); line-height: 1.32; }

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 36px;
  background: var(--wash);
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: -.01em;
}
.tag--ember { color: var(--ember); background: rgba(182, 68, 0, .09); }
.tag--live { color: #1d6b3f; background: rgba(29, 107, 63, .1); }

/* ─────────────────── Селектор ниш (как у Odoo) ──────────────── */

.picker { display: grid; gap: 28px; min-width: 0; }
.picker > * { min-width: 0; }

/* Переключатель галузей. На большом экране — цельный segmented control:
   вкладки стоят в одной капсуле и никуда не едут. На телефоне список
   шире экрана, поэтому он листается с прилипанием, а по краям —
   короткие маски, которые показывают, что там ещё есть вкладки. */
.picker__tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--wash);
  align-self: start;
  justify-self: start;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
}
.picker__tabs > [role="tab"] { scroll-snap-align: center; }

/* Обёртка нужна маскам: их нельзя повесить на сам прокручиваемый
   контейнер — они уехали бы вместе с содержимым. */
.picker__tabsbox { position: relative; max-width: 100%; min-width: 0; }
.picker__tabsbox::before,
.picker__tabsbox::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-state) var(--ease);
  z-index: 1;
}
.picker__tabsbox::before {
  left: 0;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  background: linear-gradient(90deg, var(--canvas), rgba(245, 245, 247, 0));
}
.picker__tabsbox::after {
  right: 0;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: linear-gradient(270deg, var(--canvas), rgba(245, 245, 247, 0));
}
.picker__tabsbox[data-at-start="false"]::before { opacity: 1; }
.picker__tabsbox[data-at-end="false"]::after { opacity: 1; }
.band--gray .picker__tabsbox::before { background: linear-gradient(90deg, var(--paper), rgba(255, 255, 255, 0)); }
.band--gray .picker__tabsbox::after { background: linear-gradient(270deg, var(--paper), rgba(255, 255, 255, 0)); }
.picker__tabs::-webkit-scrollbar { display: none; }

.picker__pill {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: var(--paper);
  transition: transform var(--t-state) var(--ease), width var(--t-state) var(--ease);
  pointer-events: none;
}

.picker__tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 17px;
  color: var(--ink-mid);
  transition: color var(--t-hover) var(--ease);
}
.picker__tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }

.picker__panel { display: none; }
.picker__panel.is-active { display: block; animation: panel-in 300ms var(--ease) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .picker__panel.is-active { animation: none; }
}

/* Панель галузі: сначала рассказ, потом работающая система, потом
   цепочка отделов.

   Здесь стояло открытое `@media (min-width: 900px) {` без закрывающей
   скобки — остаток от колонки под отраслевое фото, которое убрали.
   Пустая обёртка не выглядит поломкой: файл в редакторе читается
   нормально, скобки в нём даже сходятся. Но браузер закрывает такое
   только в конце файла, и все 323 правила ниже — значки, цепочка
   этапов, документы, окна системы, подвал — оказывались внутри
   «шире 900». На телефоне их не было вовсе: круглые значки становились
   прямоугольниками во всю ширину, плитки подвала теряли фон.

   Проверка на это добавлена в check.mjs: она смотрит не на баланс
   скобок, а на то, сколько правил лежит внутри одного @media. */
.picker__grid {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
/* Раскладка была рассчитана на две картинки — снимок системы и отраслевое
   фото. Фото убрано, поэтому текст снова слева, снимок справа: иначе вторая
   колонка стояла пустой, а снимок сжимался до нечитаемого. */
@media (min-width: 900px) {
  .picker__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}

/* ──────────────────────── Шаги процесса ─────────────────────── */

/* Полоса шагов выглядит цельной, но состоит из отдельных карточек: при
   наведении одна выходит вперёд, поэтому обрезку контейнера снимаем, а
   скругление раздаём крайним карточкам — иначе клип съел бы подъём. */
.steps { display: grid; gap: 1px; background: var(--hairline-soft); border-radius: var(--r-card); }
.step:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.step:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
@media (min-width: 780px) {
  .step:first-child { border-radius: var(--r-card) 0 0 var(--r-card); }
  .step:last-child { border-radius: 0 var(--r-card) var(--r-card) 0; }
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps--3 { grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  background: var(--paper);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease),
              border-radius var(--t-state) var(--ease);
}
.band--paper .steps { background: var(--hairline-soft); }
.band--gray .step { background: var(--paper); }
.step__n { font-size: 14px; color: var(--ink-soft); }
.step b { font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; color: var(--ink-mid); line-height: 1.4; }

/* ── Текст і ролик поруч ──────────────────────────────────────────
   Ролик — не окремий екран, а супутник тексту: він показує те, про що
   написано зліва. Окремою смугою на всю ширину він перетягував увагу
   на себе й розривав розповідь.

   Пропорція 5:6 на користь ролика: сам текст тут короткий (заголовок
   і рядок-два), а рух має бути помітним. На вузькому екрані колонки
   стають одна під одною — текст першим. */
.aside-media {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
}
@media (min-width: 900px) {
  .aside-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.aside-media > * { min-width: 0; }
/* Крупний текст-твердження поруч із роликом читається зліва, а не по
   центру: інакше рядки й кадр тягнуть погляд у різні боки. */
.aside-media .statement__text {
  text-align: left;
  margin: 0;
  /* Поруч із роликом твердження набирається дрібніше: на всю ширину
     воно було на пів екрана, а тут ділить рядок із кадром і мусить
     читатися одним поглядом. */
  font-size: clamp(28px, 3.4vw, 50px);
}

/* ── Ролик ────────────────────────────────────────────────────────
   Метрики те самі, що були в заглушки: 16:9, повна ширина, великий
   радіус — ритм сторінки не змінюється, коли місце займає справжнє
   відео.

   Кадр у файлів 1344×768 (1,75), рамка — 16:9 (1,78). Різниця близько
   півтора відсотка, тому object-fit: cover: краще майже непомітна
   обрізка згори й знизу, ніж чорні поля по боках.

   max-width і overflow тримають ролик усередині колонки: на телефоні
   він не може виштовхнути сторінку вбік. */
.video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--lift-media);
}
.video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Коли ролик стоїть окремою смугою, відступ дає сама смуга. */
.video--flush { margin-top: 0; }

/* Зарезервоване місце під майбутній ролик. Після підготовки MP4 цей
   контейнер можна замінити на video без зміни ритму сторінки. */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--r-card);
  background: var(--paper);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
}
.band--paper .video-placeholder { background: var(--canvas); }
.video-placeholder__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--canvas);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.video-placeholder__icon svg { width: 22px; height: 22px; fill: currentColor; }
.video-placeholder strong { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; }
.video-placeholder > span:last-child { color: var(--ink-soft); font-size: 15px; }

/* ───────────────────── Таблица «готово / в роботі» ──────────── */

.status-list { display: grid; gap: 1px; background: var(--hairline-soft); border-radius: var(--r-card); overflow: hidden; }
.status-row {
  display: grid;
  gap: 4px 20px;
  align-items: baseline;
  background: var(--paper);
  padding: 20px clamp(20px, 2.4vw, 30px);
}
@media (min-width: 720px) { .status-row { grid-template-columns: 200px minmax(0, 1fr) auto; } }
.status-row b { font-weight: 600; }
.status-row p { color: var(--ink-mid); font-size: 15px; line-height: 1.4; }

/* ──────────────────────── Телефон с ботом ───────────────────── */

.phone {
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 42px;
  background: var(--ink);
  padding: 10px;
}
.phone__screen {
  border-radius: 33px;
  background: #eceff3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.phone__top {
  background: var(--paper);
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--hairline-soft);
}
.phone__ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.phone__who b { display: block; font-size: 14px; font-weight: 600; }
.phone__who span { font-size: 11px; color: var(--ink-soft); }
.phone__chat { padding: 14px; display: grid; gap: 8px; align-content: start; }
.bubble {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: -.01em;
  white-space: pre-line;
}
.bubble--in { background: var(--paper); border-bottom-left-radius: 6px; }
.bubble--out { background: #d7ecff; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble--sys {
  background: none; color: var(--ink-soft); font-size: 11.5px;
  text-align: center; max-width: 100%; padding: 2px 0;
}
.phone__keys { margin-top: 4px; display: grid; gap: 6px; }
.phone__key {
  background: var(--paper);
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-mid);
  text-align: center;
}

/* ───────────────────────── Прайс ────────────────────────────── */

.price-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.band--paper .price-card { background: var(--canvas); }
.price-card ul { margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.price-card li { list-style: none; font-size: 15px; color: var(--ink-mid); padding-left: 22px; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(-45deg);
}

/* ─────────────────────── Конфігуратор ──────────────────────────
   Человек выбирает модули и сразу видит сумму. Ничего не «раскрывается
   по клику»: список открыт целиком, потому что клиент пришёл считать,
   а не изучать интерфейс. */

.calc { display: grid; gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1fr) 380px; } }

.calc__group + .calc__group { margin-top: clamp(26px, 3vw, 38px); }
.calc__group h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.calc__list { display: grid; gap: 1px; background: var(--hairline-soft); border-radius: var(--r-card); overflow: hidden; }

.calc__item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  background: var(--paper);
  padding: 18px clamp(18px, 2vw, 26px);
  cursor: pointer;
  transition: background var(--t-hover) var(--ease);
}
.calc__item:hover { background: #fbfbfd; }
.calc__item.is-fixed { cursor: default; background: var(--canvas); }

/* Настоящий флажок не рисуем, но оставляем его на месте: он держит
   фокус, читается скринридером и работает пробелом. */
.calc__item input { position: absolute; inset: 0 auto auto 0; width: 22px; height: 22px; opacity: 0; margin: 0; }

.calc__box {
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  border: 1.5px solid var(--hairline);
  display: grid;
  place-items: center;
  transition: background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.calc__box::after {
  content: "";
  width: 10px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.calc__item input:checked + .calc__box { background: var(--blue); border-color: var(--blue); }
.calc__item input:checked + .calc__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.calc__item input:focus-visible + .calc__box { outline: 3px solid rgba(0, 113, 227, .38); outline-offset: 3px; }
.calc__item.is-fixed .calc__box { background: var(--ink); border-color: var(--ink); }
.calc__item.is-fixed .calc__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }

.calc__text b { display: block; font-size: 17px; font-weight: 600; }
/* Только прямой потомок: иначе правило ловит и метку «У роботі» внутри
   названия, и та растягивается во всю ширину строки. */
.calc__text > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.36; color: var(--ink-soft); }
.calc__text .tag { margin-left: 8px; }
.calc__price { font-size: 17px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.calc__price small { display: block; font-size: 12px; color: var(--ink-soft); }

/* Переключатели с одним выбором — таблетки в ряд */
.calc__choice { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__chip {
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.calc__chip:hover { border-color: #b9b9bf; }
.calc__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc__hint { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

.calc__users { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc__users input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--blue); height: 24px; }
.calc__users output { font-size: 21px; font-variant-numeric: tabular-nums; min-width: 3ch; }

/* Итог */
.calc__summary {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 32px);
  display: grid;
  gap: 18px;
}
.band--gray .calc__summary { background: var(--paper); }
@media (min-width: 1000px) { .calc__summary { position: sticky; top: 88px; } }

.calc__total { display: grid; gap: 4px; }
.calc__total b { font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.calc__total span { font-size: 14px; color: var(--ink-soft); }

.calc__rows { display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.calc__row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.calc__row span:first-child { color: var(--ink-mid); }
.calc__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__row--sum { font-weight: 600; color: var(--ink); padding-top: 9px; border-top: 1px solid var(--hairline-soft); }
.calc__row--sum span:first-child { color: var(--ink); }

.calc__flag {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 36px;
  background: rgba(182, 68, 0, .09);
  color: var(--ember);
  font-size: 12px;
}

/* Состав с доводами: за что именно человек платит */
.calc__picked { padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.calc__picked h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
}
.calc__picked ul { display: grid; gap: 11px; margin: 0; padding: 0; }
.calc__picked li { list-style: none; display: grid; gap: 2px; }
.calc__picked b { font-size: 15px; font-weight: 600; }
.calc__picked span { font-size: 13px; line-height: 1.36; color: var(--ink-soft); }

/* Пересчёт заметен: рамка коротко проступает и гаснет. Ничего не прыгает —
   человек в этот момент читает цифру, а не смотрит представление. */
.calc__summary { box-shadow: inset 0 0 0 0 rgba(0, 113, 227, 0); }
.calc__summary.is-updated { animation: calc-pulse 620ms var(--ease); }
@keyframes calc-pulse {
  0% { box-shadow: inset 0 0 0 2px rgba(0, 113, 227, .45); }
  100% { box-shadow: inset 0 0 0 2px rgba(0, 113, 227, 0); }
}

/* Строка итога у нижнего края — только на узком экране */
.calc-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
.calc-bar div { display: grid; }
.calc-bar b { font-size: 17px; font-variant-numeric: tabular-nums; }
.calc-bar span { font-size: 11px; color: var(--ink-soft); }
.calc-bar .btn { margin-left: auto; }
@media (min-width: 1000px) { .calc-bar { display: none; } }

.calc__actions { display: grid; gap: 10px; }
.calc__actions .btn { width: 100%; }
.calc__copied { font-size: 14px; color: var(--ink-soft); min-height: 20px; }

/* ───────────────────────── Форма ────────────────────────────── */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; color: var(--ink-mid); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-control);
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 17px;
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #bcbcbc; }
/* Поле в фокусе обведено синим кольцом: на светлом фоне одной смены
   цвета границы мало — её видно только вблизи. */
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .20);
}
.form__note { font-size: 14px; color: var(--ink-soft); }
.form__note[data-state="warn"] { color: var(--ember); }

.contact-grid {
  grid-template-columns: minmax(0, 1fr); display: grid; gap: clamp(28px, 4vw, 60px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ───────────────────────── Подвал ───────────────────────────── */

.footer { background: var(--canvas); padding-block: clamp(48px, 6vw, 76px) 52px; }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(34px, 4vw, 52px);
}
.footer__claim { margin-top: 14px; font-size: 17px; color: var(--ink-mid); max-width: 34ch; }
.footer__cta { flex: none; }
@media (max-width: 640px) { .footer__cta { width: 100%; } }
.footer__cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
}
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer ul { padding: 0; display: grid; gap: 8px; }
.footer li { list-style: none; }
/* Кегль подписи мелкий по референсу, но нажимать её пальцем всё равно нужно:
   размер площадки задаётся отступами, а не размером букв. */
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 12px;
  color: var(--ink-soft);
}
.footer li a:hover { color: var(--ink); text-decoration: underline; }
.promo a { display: inline-block; padding-block: 5px; }

@media (pointer: coarse) {
  .footer ul { gap: 2px; }
  .footer li a { min-height: 44px; }
  .promo a { padding-block: 10px; }
}
.footer__legal { padding-top: 18px; font-size: 12px; line-height: 1.33; color: var(--ink-soft); }


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

.reveal.cascade { opacity: 1; transform: none; transition: none; }
.reveal.cascade > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.cascade.is-in > * { opacity: 1; transform: none; }

/* ─────────────────────── Отклик на курсор ──────────────────────
   Всё движение под курсором — только на устройствах с настоящей мышью:
   на сенсоре hover срабатывает от касания и оставляет элемент «залипшим».

   Тени в системе нет, и в покое её по-прежнему нет. Она появляется
   только на время наведения — это состояние, а не оформление: без неё
   «выйти вперёд остальных» показать нечем. */

@media (hover: hover) and (pointer: fine) {

  /* Шаги процесса: карточка выходит поверх соседей и накрывает швы */
  /* Блок именно поднимается, а не просто подсвечивается: сдвиг вверх на
     десять пикселей плюс тень, которая растёт вместе с ним. */
  .step:hover {
    z-index: 2;
    transform: translateY(-10px) scale(1.02);
    border-radius: var(--r-tile);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .14);
  }
  .step:hover .step__n { color: var(--ink); }

  /* Карточки: подъём и тонкая кромка вместо тени в покое */
  .card {
    position: relative;
    transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease);
  }
  .card:hover {
    z-index: 2;
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .13);
  }

  /* Плитки модулей: подъём плюс перерисовка иконки */
  a.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0, 0, 0, .12); }
  a.tile:hover .tile__icon { animation: icon-draw 620ms var(--ease); }

  /* Строки списка: подаются вперёд, галочка подрастает */
  .feature__list li:hover { color: var(--ink); transform: translateX(4px); }
  .feature__list li:hover::before { transform: rotate(-45deg) scale(1.25); }

  /* Снимок системы слегка приподнимается — намёк, что это живой экран */
  a.card .shot, .feature__copy + .shot { transition: transform var(--t-state) var(--ease); }
}

/* Иконки нарисованы одной линией, поэтому их можно «прочертить» заново:
   штрих длиннее любой из них, и при наведении он пробегает по контуру.
   Свойства пунктира наследуемые — они доходят внутрь <use> из спрайта. */
.tile__icon { stroke-dasharray: 240; stroke-dashoffset: 0; }
@keyframes icon-draw {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

.feature__list li {
  transition: color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.feature__list li::before { transition: transform var(--t-hover) var(--ease); }
.tile__icon { transition: transform var(--t-hover) var(--ease); }
a.tile { transition: background var(--t-hover) var(--ease), transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .reveal.cascade > * { opacity: 1; transform: none; }
  .step:hover, .card:hover, a.tile:hover { transform: none; box-shadow: none; }
  a.tile:hover .tile__icon { animation: none; }
}


/* ──────────────── Широкий разворот: заголовок и текст ──────────────
   Для секций, где снимок идёт во всю ширину ниже, а не сбоку. */
.split { display: grid; gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

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

.flow {
  margin-top: clamp(34px, 4vw, 52px);
  padding: clamp(24px, 2.8vw, 34px);
  border-radius: var(--r-card);
  background: var(--paper);
}
.band--gray .flow { background: var(--paper); }

.flow__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.flow__chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow__step {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--r-tile);
  background: var(--canvas);
  animation: stage-wave 7s var(--ease) infinite;
  animation-delay: calc(var(--i) * .6s);
}
.flow__step b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.flow__step > span:last-child { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }

.flow__ico {
  width: 34px; height: 34px;
  margin-bottom: 8px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink-soft);
  animation: stage-ico 7s var(--ease) infinite;
  animation-delay: calc(var(--i) * .6s);
}
.flow__ico svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Связка между карточками: тонкая линия, которая протягивается вперёд */
.flow__link {
  align-self: center;
  flex: 0 0 clamp(14px, 2vw, 34px);
  height: 2px;
  background: var(--hairline-soft);
  position: relative;
  overflow: hidden;
}
.flow__link::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  animation: stage-link 7s var(--ease) infinite;
  animation-delay: calc(var(--i) * .6s - .3s);
}

@keyframes stage-wave {
  0%, 4%    { background: var(--canvas); }
  10%, 62%  { background: #eef1f6; }
  72%, 100% { background: var(--canvas); }
}
@keyframes stage-ico {
  0%, 4%    { background: var(--paper); color: var(--ink-soft); transform: none; }
  10%, 62%  { background: var(--blue); color: #fff; transform: translateY(-2px); }
  72%, 100% { background: var(--paper); color: var(--ink-soft); transform: none; }
}
@keyframes stage-link {
  0%, 4%    { transform: scaleX(0); }
  12%, 66%  { transform: scaleX(1); }
  76%, 100% { transform: scaleX(0); }
}

.flow__note { margin-top: 18px; }

/* На узком экране цепочка встаёт в колонку: связки там только мешают */
@media (max-width: 780px) {
  .flow__chain { flex-wrap: wrap; gap: 8px; }
  .flow__step { flex: 1 1 calc(50% - 4px); }
  .flow__link { display: none; }
}
@media (max-width: 460px) {
  .flow__step { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .flow__step, .flow__ico, .flow__link::after { animation: none; }
  .flow__link::after { transform: scaleX(1); }
  .flow__ico { background: var(--blue); color: #fff; }
}
/* ───────────────────── Полоса этапов ───────────────────────────────
   Заменила отраслевую фотографию: показывает то же, что обещает текст —
   один запис идёт по цепочке и нигде не разрывается. Подсветка сделана
   копией слоя, обрезаемой слева направо через clip-path: это единственное
   свойство помимо transform и opacity, которое не вызывает перекладку. */

.flow { margin-top: clamp(30px, 3.4vw, 46px); }

@keyframes flow-run {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  55%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  85%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  100% { clip-path: inset(0 0 0 0);    opacity: 0; }
}

.flow__note { margin-top: 18px; }

@media (max-width: 620px) {
}

@media (prefers-reduced-motion: reduce) {
}


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

.doc { max-width: 74ch; }
.doc h2 { margin-top: clamp(34px, 3.6vw, 48px); }
.doc p { margin-top: 14px; color: var(--ink-mid); }
.doc p + p { margin-top: 10px; }

.doc__warn {
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-tile);
  background: rgba(182, 68, 0, .07);
}
.doc__warn b { display: block; color: var(--ember); font-size: 17px; }
.doc__warn p { margin-top: 8px; color: var(--ink-mid); font-size: 15px; line-height: 1.45; }


/* Места, куда впишут реквизиты. Подчёркнуты пунктиром прямо в строке:
   в абзаце это читается как пропуск, а не как цветное пятно. Уйдут
   вместе с последним заполненным местом. */
.doc__gap {
  color: var(--ember);
  border-bottom: 1px dashed currentColor;
  white-space: nowrap;
}

/* ─────────────── Показ калькулятора на главной ──────────────────
   Строки сами отмечаются по кругу — видно, что цена собирается выбором,
   а не спрятана за формой «залиште заявку». Сумм здесь нет намеренно:
   настоящие цифры живут на странице вартості, а не в декорации. */

.teaser {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 1px;
}
.band--gray .teaser { background: var(--paper); }

.teaser__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  font-size: 17px;
  color: var(--ink-soft);
  animation: teaser-on 4.5s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.teaser__row + .teaser__row { border-top: 1px solid var(--hairline-soft); }

.teaser__box {
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  border: 1.5px solid var(--hairline);
  display: grid; place-items: center;
  transition: background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.teaser__box::after {
  content: "";
  width: 10px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}

.teaser__row--fixed { animation: none; color: var(--ink); }
.teaser__row--fixed .teaser__box { background: var(--ink); border-color: var(--ink); }
.teaser__row--fixed .teaser__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }

@keyframes teaser-on {
  0%, 8%    { color: var(--ink-soft); }
  16%, 74%  { color: var(--ink); }
  82%, 100% { color: var(--ink-soft); }
}
.teaser__row:nth-child(n+2) { position: relative; }
.teaser__row:nth-child(n+2) .teaser__box { animation: teaser-box 4.5s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes teaser-box {
  0%, 8%    { background: transparent; border-color: var(--hairline); }
  16%, 74%  { background: var(--blue); border-color: var(--blue); }
  82%, 100% { background: transparent; border-color: var(--hairline); }
}
.teaser__row:nth-child(n+2) .teaser__box::after { animation: teaser-tick 4.5s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes teaser-tick {
  0%, 8%    { opacity: 0; transform: rotate(-45deg) scale(.5); }
  16%, 74%  { opacity: 1; transform: rotate(-45deg) scale(1); }
  82%, 100% { opacity: 0; transform: rotate(-45deg) scale(.5); }
}

.teaser__sum {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.teaser__sum i {
  height: 10px;
  border-radius: 5px;
  background: var(--wash);
  animation: teaser-bar 4.5s var(--ease) infinite;
}
.teaser__sum i:last-child { animation-delay: .4s; }
@keyframes teaser-bar {
  0%, 10%  { transform: scaleX(.35); opacity: .55; }
  60%, 78% { transform: scaleX(1);   opacity: 1; }
  95%,100% { transform: scaleX(.35); opacity: .55; }
}
.teaser__sum i { transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  .teaser__row, .teaser__box, .teaser__box::after, .teaser__sum i { animation: none !important; }
  .teaser__row { color: var(--ink); }
  .teaser__row:nth-child(n+2) .teaser__box { background: var(--blue); border-color: var(--blue); }
  .teaser__row:nth-child(n+2) .teaser__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
  .teaser__sum i { transform: scaleX(1); opacity: 1; }
}


/* ───────────────────── Просмотрщик экранов ──────────────────────
   Несколько снимков одного раздела показываются одной рамкой с
   переключением, а не вываливаются подряд. Так человек понимает, что
   это один экран в разных режимах, а не четыре разные картинки.

   Кадры лежат стопкой в общей рамке: пропорция задана контейнеру, поэтому
   при переключении ничего не прыгает и страница не дёргается. */

.viewer {
  --viewer-radius: var(--r-card);
  display: grid;
  gap: 16px;
  /* Иначе элементы сетки не сжимаются ниже своего содержимого, и ряд
     вкладок распирает всю страницу на узком экране. */
  min-width: 0;
}
.viewer > * { min-width: 0; }

/* Окно: шапка и кадр в одной рамке. Без неё снимок выглядел приклеенным
   к странице — этого и не хватало по сравнению с исходником. */
.viewer__window {
  border-radius: var(--viewer-radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 18px 44px rgba(0, 0, 0, .10);
}
.band--gray .viewer__window { background: var(--paper); }
.band--ink .viewer__window { background: var(--ink-band); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

.viewer__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
  padding: 11px 14px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}
.band--ink .viewer__bar { background: #161a22; border-bottom-color: rgba(255, 255, 255, .07); }

/* Три кружка — знак того, что перед вами окно программы, а не картинка */
.viewer__os { display: flex; gap: 6px; flex: 0 0 auto; padding-left: 4px; }
.viewer__os i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.band--ink .viewer__os i { background: rgba(255, 255, 255, .18); }
@media (max-width: 620px) { .viewer__os { display: none; } }

.viewer__tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--wash);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}
.viewer__tab { flex: 0 0 auto; }
.viewer__tabs::-webkit-scrollbar { display: none; }
.band--gray .viewer__tabs { background: var(--paper); }
.band--ink .viewer__tabs { background: rgba(255, 255, 255, .08); }

.viewer__tab {
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  padding: 7px 17px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--ink-mid);
  transition: color var(--t-hover) var(--ease), background var(--t-state) var(--ease);
}
.viewer__tab:hover { color: var(--ink); }
.viewer__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
.band--gray .viewer__tab[aria-selected="true"] { background: var(--canvas); }
.band--ink .viewer__tab { color: var(--ink-band-soft); }
.band--ink .viewer__tab:hover { color: var(--ink-band-text); }
.band--ink .viewer__tab[aria-selected="true"] { background: rgba(255, 255, 255, .14); color: var(--ink-band-text); }

.viewer__nav { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.viewer__arrow {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}
.viewer__arrow:hover { background: var(--wash-press); }
.viewer__arrow:active { transform: scale(.94); }
.viewer__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band--gray .viewer__arrow { background: var(--paper); }
.band--ink .viewer__arrow { background: rgba(255, 255, 255, .1); color: var(--ink-band-text); }
.band--ink .viewer__arrow:hover { background: rgba(255, 255, 255, .18); }

/* Сцена: пропорция держится контейнером, кадры лежат друг на друге */

.viewer--hero .viewer__window { box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 34px 80px rgba(0, 0, 0, .14); }
.viewer--hero .viewer__foot { justify-content: center; }
.viewer--hero .viewer__caption { flex: 0 1 auto; text-align: center; }

.viewer__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.viewer__caption { margin: 0; flex: 1; min-width: 220px; }
.band--ink .viewer__caption { color: var(--ink-band-soft); }
/* Точка мелкая, но нажимать её пальцем всё равно нужно */

@media (max-width: 620px) {
  .viewer__nav { display: none; }
  .viewer__tab { font-size: 14px; padding: 7px 13px; }
}

@media (prefers-reduced-motion: reduce) {
}


/* ─────────────── Подсветка за курсором ──────────────────────────
   Приём с 21st.dev (spotlight card, glowing effect с сайта Cursor),
   пересобранный без React: скрипт кладёт в элемент координаты курсора,
   всё остальное делает CSS.

   На тёмных сайтах это яркое пятно. У нас палитра почти белая, поэтому
   свет приглушён до восьми процентов и виден как лёгкое смещение тона —
   иначе карточка начнёт светиться как реклама. */

.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--t-state) var(--ease);
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 113, 227, .10),
    rgba(0, 113, 227, 0) 62%
  );
}
/* Кромка ловит свет отдельно: только она, без заливки внутри */
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  transition: opacity var(--t-state) var(--ease);
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 113, 227, .55),
    rgba(0, 113, 227, 0) 60%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

@media (hover: hover) and (pointer: fine) {
  .spot.is-lit::before { opacity: 1; }
  .spot.is-lit::after { opacity: 1; }
}

/* На тёмной полосе свет холоднее и чуть заметнее: там ему есть где лечь */
.band--ink .spot::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(120, 180, 255, .16), rgba(120, 180, 255, 0) 62%);
}

@media (prefers-reduced-motion: reduce) {
  .spot::before, .spot::after { transition: none; }
}


/* ─────────────────── Увеличение снимка ──────────────────────────
   Экран системы плотный: в ленте он показывается спокойного размера,
   а разглядывать его человек идёт по клику. Это снимает необходимость
   раздувать блоки до размера, при котором ломается ритм страницы. */

.viewer__zoom {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}
.viewer__zoom:hover { background: var(--wash-press); }
.viewer__zoom:active { transform: scale(.94); }
.viewer__zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band--gray .viewer__zoom { background: var(--paper); }
.band--ink .viewer__zoom { background: rgba(255, 255, 255, .1); color: var(--ink-band-text); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  /* minmax(0,1fr), а не 1fr: иначе строка растягивается под натуральную
     высоту снимка, и на ноутбучном экране низ кадра уезжает за край. */
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: clamp(12px, 2vw, 26px);
  background: rgba(10, 12, 16, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-state) var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

/* Высота задаётся ячейкой, ширина подстраивается. Снимок вписывается
   и по высоте, и по ширине, а не выбирает что-то одно. */

@media (max-width: 620px) {
}

@media (prefers-reduced-motion: reduce) {
}

/* Пока увеличение открыто, страница под ним не прокручивается */
html.lightbox-open, body.lightbox-open { overflow: hidden; }

/* ───────────────────────── Появление ────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }

/* Без JS содержимое видно: скрытие включает сам скрипт. */
html:not(.js) .reveal { opacity: 1; transform: none; }

@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; }
  .hero__stage { transform: none !important; }
}

/* ───────────────────── Ползунки ─────────────────────────────────────
   Стандартный ползунок в браузере тонкий: попасть в него пальцем на
   телефоне — отдельное упражнение. Дорожка стала заметнее, бегунок
   крупнее, а живая область по вертикали — не меньше 44 px, как того
   требует палец, а не курсор.

   Разметка и значения не тронуты: это только вид и площадь нажатия. */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 44px;
  cursor: pointer;
}
/* Пройденная часть дорожки закрашена синим. Своё оформление отменяет
   accent-color, которым это делал браузер, поэтому долю рисуем сами:
   --fill выставляет скрипт при каждом движении. */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(90deg, var(--blue) 0 var(--fill, 0%), var(--wash) var(--fill, 0%) 100%);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--blue);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .18), 0 6px 14px -8px rgba(16, 24, 40, .5);
  transition: transform var(--t-press) var(--ease), border-color var(--t-hover) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .18), 0 6px 14px -8px rgba(16, 24, 40, .5);
}
input[type="range"]:hover::-webkit-slider-thumb { border-color: var(--blue); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.06); }
input[type="range"]:focus-visible::-webkit-slider-thumb {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .22);
}
.roi__row input[type="range"],
.calc__users input[type="range"] { height: 44px; }

/* ── Выбранный модуль в калькуляторе ────────────────────────────────
   Раньше отличие было только в галочке — на беглый взгляд выбранные и
   невыбранные строки выглядели одинаково. Теперь у выбранной строки
   свой фон и синяя кромка. */
.calc__item input:checked ~ * { color: var(--ink); }
.calc__item:has(input:checked) {
  background: rgba(0, 113, 227, .05);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .38);
}
.calc__item.is-fixed:has(input:checked) {
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* ── Набор текста по букве ───────────────────────────────────────────
   Подпорка держит высоту, пока идёт печать: без неё заголовок в три
   строки начинался бы с одной, и вся страница под ним прыгала. Копия
   невидима, но занимает своё место и не читается вслух. */
.type-ghost {
  visibility: hidden;
  display: block;
  height: 0;
  overflow: hidden;
}
.type-live { display: inline; }

/* Курсор виден только пока набирают. Мигает медленно — быстрое
   мигание рядом с читаемым текстом раздражает. */
.is-typing .type-live::after {
  content: "";
  display: inline-block;
  width: .06em;
  min-width: 2px;
  height: .95em;
  margin-left: .06em;
  vertical-align: -.1em;
  background: currentColor;
  opacity: .55;
  animation: type-caret 1s steps(1, end) infinite;
}
@keyframes type-caret { 0%, 55% { opacity: .55; } 56%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .type-ghost { visibility: visible; height: auto; }
  .type-live, .is-typing .type-live::after { display: none; }
}

/* ── Значок раздела ──────────────────────────────────────────────────
   Одинаковые с виду блоки — «Ролі та права», «Журнал дій», показатели
   владельца, направления экосистемы — раньше отличались только
   заголовком: взгляд скользил по ним как по списку и ни за что не
   цеплялся. Теперь у каждого свой знак.

   Значок нейтральный, синим становится только под курсором: восемь
   цветных иконок подряд превратили бы полосу в гирлянду. */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: var(--r-control);
  background: var(--wash);
  color: var(--ink-2);
  transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band--gray .mark { background: var(--paper); }

.trust > div:hover .mark,
.owner__metric:hover .mark,
.eco__cluster:hover .mark,
.step:hover .mark {
  background: rgba(0, 113, 227, .10);
  color: var(--blue);
}

/* В карточке направления знак стоит в строке с ключом: SELL, MAKE и
   дальше — так строка читается как «ярлык раздела», а не как две
   отдельные подписи. */
.eco__head { display: inline-flex; align-items: center; gap: 10px; }
.eco__head .mark { margin-bottom: 0; width: 32px; height: 32px; }
.eco__head .mark svg { width: 17px; height: 17px; }

/* Показатели владельца стоят в узких колонках — знак там мельче. */
.owner__metric .mark { width: 34px; height: 34px; margin-bottom: 10px; }

/* ── Пример расчёта в шапке страницы цены ────────────────────────────
   Правая половина листа стояла пустой на всю высоту экрана: заголовок,
   абзац, кнопка — и ничего. Пример показывает то, что заголовок
   обещает: за минуту получаете две цифры.

   Цифры не выдуманы — посчитаны по правилам калькулятора из того же
   pricing-data.js. Пометка «попередній розрахунок» стоит по той же
   причине, что и там: цены в файле пока предварительные. */
.hero-price__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-price__grid { grid-template-columns: 1fr; }
}

.hero-price {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift-media);
}
.hero-price__flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: #fff4e6;
  color: #9a6300;
  font-size: 12px;
  letter-spacing: -.01em;
}
.hero-price__lead {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.hero-price__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.hero-price__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-price__list svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--blue); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-price__meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-price__sums {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.hero-price__sums b {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  /* Цифра докручивается — ширина строки не должна от этого прыгать. */
  font-variant-numeric: tabular-nums;
}
.hero-price__sums span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-price .arrow-link { margin-top: 20px; }

/* Суммы в самом калькуляторе тоже катятся — там это и есть обещание
   «сума порахується одразу». */
.calc__total b { font-variant-numeric: tabular-nums; }

/* ── Полоса по краю формы демонстрации ───────────────────────────────
   Последний экран страницы: слева обещание, справа форма. Форма
   лежала прямо на сером фоне без границ, и глаз не понимал, где
   заканчивается текст и начинается действие.

   Приём Border Beam (magicui) без единой строчки скрипта: конический
   градиент крутится по углу --beam-angle, а маска оставляет от него
   только полуторапиксельную рамку. Полоса медленная — восемь секунд
   на оборот: это указатель, а не мигалка.

   Где @property не поддерживается, угол не анимируется и остаётся
   спокойная синяя дуга в углу карточки. Ничего не ломается. */
@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.final .form {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift-media);
}
.final .form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle),
    rgba(0, 113, 227, 0) 0 74%,
    rgba(0, 113, 227, .16) 84%,
    rgba(0, 113, 227, .92) 92%,
    rgba(0, 113, 227, 0) 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: beam-spin 8s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .final .form::before { animation: none; }
}

/* Состояния подписи под формой. Отправка — не мгновенная, и человеку
   надо видеть, что кнопка сработала: без этого он жмёт второй раз. */
.form__note[data-state="wait"] { color: var(--ink-2); }
.form__note[data-state="ok"] { color: #1a7f37; }

/* ── Имя над первым заголовком ───────────────────────────────────────
   Было «RIVENO ERP» тем же серым, что и все надписи-указатели: с
   первого экрана не понять, что это название продукта, а не служебная
   подпись раздела. Имя тёмное и плотное, «ERP» остаётся серым
   пояснением, слева синяя точка — единственное цветное пятно на первом
   экране, она же коротко проступает при загрузке. */
.eyebrow--brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: -.01em;
}
.eyebrow--brand b { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.eyebrow--brand span { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); }
.eyebrow__mark {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
  animation: brand-mark 2.6s var(--ease) .3s 1;
}
@keyframes brand-mark {
  0%       { transform: rotate(45deg) scale(.4); opacity: 0; }
  14%      { transform: rotate(45deg) scale(1); opacity: 1; }
  40%, 60% { box-shadow: 0 0 0 5px rgba(0, 113, 227, .14); }
  100%     { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

/* ── Сводка модулей в подвале ────────────────────────────────────────
   Между большим RIVENO и кнопкой демонстрации была пустая половина
   листа. Подсветка обходит плитки по одной — не ради движения, а чтобы
   перечень читался как живой состав, а не как список слов. */
.footer__pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 420px;
  max-width: 540px;
  margin-left: auto;
}
@media (max-width: 900px) { .footer__pulse { max-width: none; margin-left: 0; order: 3; } }
@media (max-width: 480px) { .footer__pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__tile {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--r-control);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 12px;
  letter-spacing: -.01em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: footer-pulse 12s var(--ease) calc(var(--n) * 1s) infinite;
}
.footer__tile svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
@keyframes footer-pulse {
  0%, 4%    { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hairline); }
  7%, 11%   { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .35); }
  15%, 100% { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hairline); }
}

/* Спокойная метка вместо тревожной. Оранжевым помечают то, что горит;
   «На впровадженні» — это часть внедрения, а не недоделка. */
.tag--soft { color: var(--ink-2); background: var(--wash); }

@media (prefers-reduced-motion: reduce) {
  .footer__tile, .eyebrow__mark { animation: none; }
}

/* ══════════════ Иконки: одна система движения на весь сайт ══════════
   Хозяин попросил «дизайна и анимации иконок там, где они на сайте».
   Иконки в спрайте нарисованы одной линией, и это даёт ровно один
   честный приём: линию можно прочертить. Всё остальное — свечение,
   покачивание, отскок — чуждо швейцарской манере сайта.

   Правил три, и они одни для всех мест: знаки разделов (.mark), плитки
   модулей (.tile__icon), плитки подвала (.footer__tile), узлы ролика
   обучения (.reel__node), список на странице цены (.hero-price__list).

   1. Появление. Когда блок входит в кадр (.reveal получает is-in),
      каждая иконка внутри прочерчивается за 700 мс; соседи — с шагом
      60 мс, чтобы ряд читался слева направо, а не вспыхивал разом.
   2. Наведение. Плашка под иконкой тонируется синим, сама иконка
      синеет и приподнимается на пиксель — и снова прочерчивается,
      как будто её нарисовали для вас.
   3. Без движения. При prefers-reduced-motion ничего из этого нет:
      иконка стоит нарисованной, наведение меняет только цвет. */

/* Штрих длиннее любой иконки (все они укладываются в 24-сетку). */
.reveal svg[class]:has(> use),
.reveal .mark svg,
.reveal .footer__tile svg,
.reveal .reel__node svg,
.reveal .hero-price__list svg { stroke-dasharray: 240; }

.reveal.is-in .mark svg,
.reveal.is-in .tile__icon,
.reveal.is-in .footer__tile svg,
.reveal.is-in .reel__node svg,
.reveal.is-in .hero-price__list svg {
  animation: icon-draw 700ms var(--ease) both;
  animation-delay: var(--ico-delay, 0ms);
}
/* Шаг по соседям: первые восемь — по 60 мс, дальше без задержки. */
.reveal.is-in > :nth-child(2) svg, .reveal.is-in > :nth-child(2) .mark svg { --ico-delay: 60ms; }
.reveal.is-in > :nth-child(3) svg, .reveal.is-in > :nth-child(3) .mark svg { --ico-delay: 120ms; }
.reveal.is-in > :nth-child(4) svg, .reveal.is-in > :nth-child(4) .mark svg { --ico-delay: 180ms; }
.reveal.is-in > :nth-child(5) svg, .reveal.is-in > :nth-child(5) .mark svg { --ico-delay: 240ms; }
.reveal.is-in > :nth-child(6) svg, .reveal.is-in > :nth-child(6) .mark svg { --ico-delay: 300ms; }
.reveal.is-in > :nth-child(7) svg, .reveal.is-in > :nth-child(7) .mark svg { --ico-delay: 360ms; }
.reveal.is-in > :nth-child(8) svg, .reveal.is-in > :nth-child(8) .mark svg { --ico-delay: 420ms; }
.reveal.is-in li:nth-child(1) svg { --ico-delay: 0ms; }
.reveal.is-in li:nth-child(2) svg { --ico-delay: 60ms; }
.reveal.is-in li:nth-child(3) svg { --ico-delay: 120ms; }
.reveal.is-in li:nth-child(4) svg { --ico-delay: 180ms; }
.reveal.is-in li:nth-child(5) svg { --ico-delay: 240ms; }
.reveal.is-in li:nth-child(6) svg { --ico-delay: 300ms; }
.reveal.is-in li:nth-child(7) svg { --ico-delay: 360ms; }
.reveal.is-in li:nth-child(8) svg { --ico-delay: 420ms; }

/* Наведение: плашка, цвет, подъём и повторный прочерк. */
.mark, .footer__tile, .reel__node {
  transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease);
}
.mark svg, .tile__icon, .footer__tile svg, .reel__node svg, .hero-price__list svg {
  transition: transform var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .mark:hover, :is(.trust > div, .owner__metric, .eco__cluster, .step, .feature, li, .card):hover .mark {
    background: rgba(0, 113, 227, .10);
    color: var(--blue);
  }
  .mark:hover svg,
  :is(.trust > div, .owner__metric, .eco__cluster, .step, .feature, li, .card):hover .mark svg,
  .footer__tile:hover svg,
  .reel__node:hover svg,
  .hero-price__list li:hover svg {
    transform: translateY(-1px);
    animation: icon-draw 620ms var(--ease);
  }
  .footer__tile:hover {
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .35);
    animation-play-state: paused;
  }
  .hero-price__list li:hover svg { color: var(--blue); }
}
@keyframes icon-draw {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal svg, .reveal .mark svg, .tile__icon, .footer__tile svg, .reel__node svg, .hero-price__list svg {
    animation: none !important;
    stroke-dasharray: none;
    transform: none !important;
  }
}

/* ══════════════ Мелкая пластика: метка, ссылка, кнопка ═══════════════
   Хозяин дал волю: «всё, что улучшит дизайн, — только за». Три вещи,
   каждая в той же манере, что и прочерк иконок: одна линия, один цвет,
   короткое движение по делу.

   1. Метка раздела. Синий ромб до сих пор стоял только у надзаголовка
      первого экрана. Теперь он у каждого надзаголовка — маленький,
      5px, и появляется вместе с блоком: из точки, с поворотом,
      за 500 мс. Один и тот же знак сверху донизу связывает страницу в
      одну систему; у тревожных надзаголовков (--ember) он того же
      цвета, что и текст.
   2. Ссылка со стрелкой. Подчёркивание не включается щелчком, а
      прочерчивается слева направо, как и всё остальное на сайте.
   3. Кнопка. При наведении к подъёму добавляется мягкая тень того же
      синего — кнопка отделяется от листа, а не просто темнеет. */

.eyebrow:not(.eyebrow--brand):not(.hero__eyebrow)::before,
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 1px;
  background: var(--blue);
  vertical-align: .2em;
  transform: rotate(45deg) scale(1);
  transform-origin: center;
}
.eyebrow--ember::before { background: var(--ember); }
/* Появление вместе с блоком: до is-in метка — точка. */
.eyebrow.reveal:not(.is-in)::before { transform: rotate(45deg) scale(0); }
.eyebrow.reveal::before { transition: transform 500ms var(--ease) 120ms; }
/* Метка стоит в одной строке с текстом — центрированные надзаголовки
   центрируются вместе с ней. */
.eyebrow { white-space: normal; }

/* Ссылка: подчёркивание прочерчивается, а не вспыхивает. */
.arrow-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--t-state) var(--ease), color var(--t-hover) var(--ease);
  padding-bottom: 1px;
}
.arrow-link:hover { text-decoration: none; background-size: calc(100% - 1.1em) 1px; }

/* Кнопка: мягкая тень своего цвета при наведении. */
.btn { transition: background var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease); }
.btn:hover { box-shadow: 0 10px 24px -8px rgba(0, 113, 227, .45); }
.btn--ghost:hover, .btn--quiet:hover { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .eyebrow.reveal::before { transition: none; transform: rotate(45deg) scale(1); }
  .arrow-link { transition: none; }
  .btn:hover { box-shadow: none; transform: none; }
}

/* ═══════════════════════ Друкований аркуш розрахунку ═══════════════════════
   На екрані аркуша немає. При друку сторінки вартості видно лише його:
   А4, поля 16 мм, шапка з маркою, два підсумки великим, дві колонки
   рядків, склад із доводами, підпис унизу. Кольори — чорний, сірий,
   синій ромб; без заливок, щоб добре йшло і на чорно-білому принтері. */
.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  html, body { background: #fff !important; color: #000; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet {
    display: block;
    font-family: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    font-size: 10.5pt;
    line-height: 1.4;
  }
  .print-sheet__head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 8pt; border-bottom: .6pt solid #1d1d1f;
  }
  .print-sheet__brand { font-weight: 700; letter-spacing: .04em; font-size: 12pt; }
  .print-sheet__brand i {
    display: inline-block; width: 7pt; height: 7pt; margin-right: 6pt;
    background: #0071e3; transform: rotate(45deg); vertical-align: 1pt;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .print-sheet__meta { font-size: 9pt; color: #6e6e73; }
  .print-sheet__title {
    margin: 26pt 0 6pt; font-size: 24pt; line-height: 1.1; font-weight: 600; letter-spacing: -.02em;
  }
  .print-sheet__lead { margin: 0; color: #6e6e73; font-size: 10pt; }
  .print-sheet__totals {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18pt;
    margin: 22pt 0 0; padding: 14pt 0; border-top: .6pt solid #1d1d1f; border-bottom: .3pt solid #c7c7cc;
  }
  .print-sheet__totals b { display: block; font-size: 22pt; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .print-sheet__totals span { display: block; margin-top: 2pt; color: #6e6e73; font-size: 9.5pt; }
  .print-sheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24pt; margin-top: 16pt; }
  .print-sheet h2 { font-size: 9pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e6e73; margin: 0 0 6pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet td { padding: 4pt 0; border-bottom: .3pt solid #e5e5ea; vertical-align: top; }
  .print-sheet td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .print-sheet tr.is-sum td { border-bottom: 0; border-top: .6pt solid #1d1d1f; font-weight: 600; padding-top: 6pt; }
  .print-sheet__picked { margin-top: 18pt; break-inside: avoid; }
  .print-sheet__picked ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24pt; }
  .print-sheet__picked li { break-inside: avoid; padding: 5pt 0; border-bottom: .3pt solid #e5e5ea; }
  .print-sheet__picked b { display: block; font-weight: 600; }
  .print-sheet__picked span { color: #6e6e73; font-size: 9.5pt; }
  .print-sheet__foot { margin-top: 22pt; padding-top: 8pt; border-top: .3pt solid #c7c7cc; color: #6e6e73; font-size: 9pt; }
  .print-sheet__foot p { margin: 0 0 4pt; }
  .print-sheet__link { word-break: break-all; }
}

/* ═══════════════════════ Фото галузей і робочі місця ═══════════════════════
   Знімки — згенеровані (Higgsfield, 2 вер.), у стриманій гамі сайту:
   документальний кадр, м'яке денне світло, без облич і написів. */
.photo {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--canvas);
  box-shadow: var(--lift-media);
}
.photo figcaption { max-width: 62ch; }

/* Три робочі місця: у кожного своя картка з іконкою й трьома рядками. */
.roles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.role {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.role .mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--canvas);
}
.role .mark svg { width: 20px; height: 20px; }
.role .feature__list { margin: 0; }

/* Перелік галузей на головній: вкладки стали картками з фото.
   Обрана — з синьою рамкою й ромбом біля назви; таблетка тут не потрібна. */
.picker__tabs--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
  justify-self: stretch;
}
.picker__tabs--cards .picker__pill { display: none; }
.picker__tab--card {
  display: grid;
  gap: 10px;
  padding: 0;
  min-height: 0;
  white-space: normal;
  text-align: left;
  border-radius: var(--r-card);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.picker__tab--card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--hairline) inset;
  transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease), filter var(--t-state) var(--ease);
  filter: saturate(.85);
}
.picker__tab--card span { display: inline-flex; align-items: center; gap: 8px; padding: 0 2px; }
.picker__tab--card span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--blue);
  transform: rotate(45deg) scale(0);
  transition: transform var(--t-state) var(--ease);
}
.picker__tab--card:hover img { transform: translateY(-2px); filter: saturate(1); }
.picker__tab--card[aria-selected="true"] { color: var(--ink); }
.picker__tab--card[aria-selected="true"] img { box-shadow: 0 0 0 2px var(--blue); filter: saturate(1); }
.picker__tab--card[aria-selected="true"] span::before { transform: rotate(45deg) scale(1); }
.picker__tab--card:focus-visible { outline: none; }
.picker__tab--card:focus-visible img { box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px rgba(0, 113, 227, .25); }
@media (max-width: 640px) {
  .picker__tabs--cards { gap: 10px; }
  .picker__tab--card { font-size: 12.5px; gap: 8px; }
  .picker__tab--card img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .picker__tab--card img, .picker__tab--card span::before { transition: none; }
}

/* Типовий набір над списком модулів: повітря до першої групи. */
.calc__group--presets { margin-bottom: clamp(22px, 2.6vw, 34px); }

/* ═══════════════════════ Три частини ціни: жива картка ═══════════════════════
   Хозяин: «обыграть эти три кнопки — анимация при наведении и реакция
   на курсор». Мова та сама, що в іконок: одна лінія, один синій, коротко.
   При наведенні картка ледь піднімається й нахиляється до курсора
   (до півтора градуса), під курсором ходить м'яка синя пляма, номер
   синіє, галочки списку синіють одна за одною, знизу проявляється хід
   у калькулятор. Без hover (телефон) посилання видно завжди. */
.price-card {
  position: relative;
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease);
  will-change: transform;
}
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(0, 113, 227, .10), rgba(0, 113, 227, 0) 70%);
  opacity: 0;
  transition: opacity var(--t-state) var(--ease);
  pointer-events: none;
}
.price-card .card__index { transition: color var(--t-hover) var(--ease); }
.price-card li::before { transition: border-color var(--t-hover) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.price-card li:nth-child(1) { --i: 0; } .price-card li:nth-child(2) { --i: 1; }
.price-card li:nth-child(3) { --i: 2; } .price-card li:nth-child(4) { --i: 3; }
.price-card__foot { margin: auto 0 0; padding-top: 14px; }
.price-card__go { font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .price-card:hover {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 28px 50px -34px rgba(16, 24, 40, .38);
  }
  .price-card:hover::after { opacity: 1; }
  .price-card:hover .card__index { color: var(--blue); }
  .price-card:hover li::before { border-color: var(--blue); }
  .price-card__foot { opacity: .0; transform: translateY(4px); transition: opacity var(--t-state) var(--ease), transform var(--t-state) var(--ease); }
  .price-card:hover .price-card__foot, .price-card:focus-within .price-card__foot { opacity: 1; transform: none; }
}
#calc-modules, #calc-migration, #calc-summary { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  .price-card, .price-card::after, .price-card li::before, .price-card__foot { transition: none; }
  .price-card:hover { transform: none; }
  .price-card::after { display: none; }
}

/* Перший екран модулів: текст ліворуч, фото праворуч (справа було
   порожньо). Фото у відповіді на «Чотири відповіді» — під заголовком
   у порожній лівій колонці. */
.hero-split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.photo--hero img { aspect-ratio: 4 / 3; }
.photo--aside { margin-top: clamp(24px, 3vw, 40px); max-width: 480px; }
.photo--aside img { aspect-ratio: 3 / 2; }
@media (max-width: 899px) { .photo--hero { display: none; } }

/* ═══════════════════════ Шапка: таблетниця, іконки, панелі, магніт ═══════════════════════
   Збирається скриптом initNav (riveno.js). На телефоні — бургер. */
@media (min-width: 901px) {
  .nav__links--pillbox {
    position: relative;
    gap: 2px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--wash);
  }
  .nav__links--pillbox > a {
    position: relative;
    z-index: 1;
    gap: 7px;
    padding: 5px 13px 5px 11px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-mid);
    background: none !important;
  }
  .nav__links--pillbox > a:hover, .nav__links--pillbox > a[aria-current="page"], .nav__links--pillbox > a[aria-expanded="true"] { color: var(--ink); }
  .nav__links--pillbox > a svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    color: var(--ink-soft);
    transition: color var(--t-hover) var(--ease), transform var(--t-state) var(--ease);
  }
  .nav__links--pillbox > a:hover svg, .nav__links--pillbox > a[aria-current="page"] svg, .nav__links--pillbox > a[aria-expanded="true"] svg { color: var(--blue); }
  .nav__links--pillbox > a:hover svg { animation: icon-draw 620ms var(--ease); }
}
.nav__pill {
  position: absolute;
  top: 4px; left: 0;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 6px 16px -10px rgba(16, 24, 40, .35);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.2, .7, .2, 1), width .32s cubic-bezier(.2, .7, .2, 1), opacity .2s var(--ease);
  z-index: 0;
}

/* ── Логотип: марка + слово + лінія ──────────────────────────────
   Ромб стоїть перед словом завжди (як у .brand-word по всьому сайту).
   Підпис при появі (.is-drawing): ромб входить із поворотом, літери
   піднімаються по черзі (див. letter-in вище), під словом зліва
   направо пробігає синя лінія і йде. При наведенні — літери коротко
   хвилею, ромб робить пів-оберту, лінія пробігає ще раз. */
.brand { position: relative; }
.brand::before {
  content: "";
  width: .38em; height: .38em;
  margin-right: .5em;
  border-radius: 1px;
  background: var(--blue);
  transform: rotate(45deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  align-self: center;
  flex: none;
}
.brand::after {
  content: "";
  position: absolute;
  left: .88em; right: 0; bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.brand.is-drawing::before { animation: mark-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.brand.is-drawing::after { animation: mark-sweep 1s var(--ease) .38s both; }
.brand--lg.is-drawing::before { animation-duration: .7s; }
.brand--lg.is-drawing::after { animation-duration: 1.3s; animation-delay: .5s; }
@keyframes mark-in {
  from { transform: rotate(-135deg) scale(0); opacity: 0; }
  60% { opacity: 1; }
  to { transform: rotate(45deg) scale(1); opacity: 1; }
}
@keyframes mark-sweep {
  0% { transform: scaleX(0); transform-origin: 0 50%; }
  45% { transform: scaleX(1); transform-origin: 0 50%; }
  55% { transform: scaleX(1); transform-origin: 100% 50%; }
  100% { transform: scaleX(0); transform-origin: 100% 50%; }
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover::before { transform: rotate(225deg); }
  .brand:hover::after { animation: mark-sweep .8s var(--ease); }
  .brand:hover .brand__word span { animation: letter-bob .5s var(--ease) calc(var(--i) * 40ms); }
}
@keyframes letter-bob {
  0%, 100% { transform: none; }
  40% { transform: translateY(-.14em); }
}
@media (prefers-reduced-motion: reduce) {
  .brand::before, .brand::after, .brand .brand__word span { animation: none !important; transition: none; }
  .brand::after { display: none; }
}

/* Магнітна кнопка: transform ставить скрипт; стрілка — коли курсор поруч. */
.topbar .nav__side .btn {
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease);
}
.topbar .nav__side .btn::after {
  content: "›";
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transition: max-width .25s var(--ease), opacity .2s var(--ease), margin .25s var(--ease);
}
.topbar .nav__side .btn.is-near::after, .topbar .nav__side .btn:hover::after { max-width: 12px; opacity: 1; margin-left: 6px; }

/* Панелі під шапкою. */
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(600px, calc(100vw - 48px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 30px 60px -30px rgba(16, 24, 40, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .22s;
  z-index: 5;
}
.nav__menu--cards { width: min(760px, calc(100vw - 48px)); padding: 16px 16px 14px; }
.nav__menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.nav__menu-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav__links .nav__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: start;
  min-height: 0;
  padding: 10px 12px 10px 10px;
  border-radius: 12px;
  white-space: normal;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: background var(--t-hover) var(--ease);
}
.nav__menu.is-open .nav__row {
  opacity: 1; transform: none;
  transition: opacity .28s var(--ease) calc(40ms + var(--i) * 35ms), transform .28s var(--ease) calc(40ms + var(--i) * 35ms), background var(--t-hover) var(--ease);
}
.nav__links .nav__row:hover { background: var(--canvas); color: var(--ink); }
/* Специфічність вища за загальне правило для svg у меню: інакше іконка
   лишається 16px і з відступом 8px зникає зовсім. */
.nav__links .nav__row > svg {
  grid-row: 1 / span 2;
  box-sizing: border-box;
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--canvas);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ink-soft);
  transition: color var(--t-hover) var(--ease), background var(--t-hover) var(--ease);
}
.nav__links .nav__row:hover > svg { color: var(--blue); background: #fff; animation: icon-draw 620ms var(--ease); }
.nav__row b { font-size: 14px; font-weight: 600; }
.nav__row span { font-size: 12.5px; color: var(--ink-soft); }
.nav__menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nav__links .nav__card {
  display: grid;
  align-items: start;
  gap: 4px;
  min-height: 0;
  padding: 6px;
  border-radius: 14px;
  white-space: normal;
  line-height: 1.3;
  color: var(--ink);
  transition: background var(--t-hover) var(--ease);
  opacity: 0;
  transform: translateY(6px);
}
.nav__menu.is-open .nav__card {
  opacity: 1; transform: none;
  transition: opacity .3s var(--ease) calc(60ms + var(--i) * 50ms), transform .3s var(--ease) calc(60ms + var(--i) * 50ms), background var(--t-hover) var(--ease);
}
.nav__links .nav__card:hover { background: var(--canvas); color: var(--ink); }
.nav__card img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; margin-bottom: 6px;
  filter: saturate(.85);
  transition: filter var(--t-state) var(--ease);
}
.nav__card:hover img { filter: saturate(1); }
.nav__card b { font-size: 14px; font-weight: 600; padding: 0 4px; }
.nav__card span { font-size: 12.5px; color: var(--ink-soft); padding: 0 4px 4px; }
.nav__menu-note { margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .nav__menu, .nav__pill { display: none; }
  .nav__links > a svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__pill, .brand::before, .topbar .nav__side .btn, .topbar .nav__side .btn::after, .nav__menu, .nav__card, .nav__card img, .nav__row, .nav__row svg { transition: none; animation: none; }
}

/* Панель із фото: рядки ліворуч, вертикальний знімок праворуч. */
.nav__menu--photo { width: min(720px, calc(100vw - 48px)); }
.nav__menu-body { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 10px; }
.nav__photo { display: block; border-radius: 12px; overflow: hidden; background: var(--canvas); }
.nav__photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }

/* ═══════════════════════ Списки з галочками: та сама реакція ═══════════════════════
   Хозяин: «де стоять такі галочки — зроби як у картках ціни». Наведення
   на блок (картка, роль, панель галузі або сам список) — галочки синіють
   одна за одною, 60 мс крок. Наведення на рядок — галочка прокреслюється
   заново (спершу коротка риска, потім довга), рядок темнішає й зсувається
   на 3px. У спокійному режимі — лише колір. */
.feature__list li:nth-child(1) { --i: 0; } .feature__list li:nth-child(2) { --i: 1; }
.feature__list li:nth-child(3) { --i: 2; } .feature__list li:nth-child(4) { --i: 3; }
.feature__list li:nth-child(5) { --i: 4; } .feature__list li:nth-child(6) { --i: 5; }
.feature__list li:nth-child(7) { --i: 6; } .feature__list li:nth-child(8) { --i: 7; }
.feature__list li::before {
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.feature__list:hover li::before,
:is(.card, .role, .picker__grid > div, .feature__copy):hover .feature__list li::before {
  border-color: var(--blue);
  transition-delay: calc(var(--i, 0) * 60ms);
}
@media (hover: hover) and (pointer: fine) {
  .feature__list li:hover { color: var(--ink); transform: translateX(3px); }
  .feature__list li:hover::before { animation: check-draw .42s var(--ease); }
}
@keyframes check-draw {
  0% { width: 0; height: 0; }
  45% { width: 0; height: 6px; }
  100% { width: 11px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature__list li, .feature__list li::before { transition: none; animation: none; transform: none; }
}

/* ── Логотип із матеріалів: знімок слова поверх звичайних букв ──
   .brand__made — вирізаний леттеринг (гранітні блоки, брус, інструмент,
   цегла, коробки) точно в рамці слова; звичайні букви на цей час
   гаснуть (.is-made), щоб не просвічувати крізь прозорі місця. */
.brand__made {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transform-origin: 0 50%;
  transition: opacity .9s var(--ease), transform .9s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18));
  z-index: 1;
}
.brand__made.is-on { opacity: 1; transform: none; }
.brand__word { transition: opacity .9s var(--ease); }
.brand__word.is-made { opacity: 0; }
.brand--lg { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .brand__made { display: none; } .brand__word.is-made { opacity: 1; } }

/* Логотип у шапці крупніший — хозяин: «в шапке делай больше, чтобы
   читалось» (предметні букви на 19px були кашею). Шапка стає 56px. */
.topbar .brand { font-size: 26px; padding-block: 2px; }
.topbar .nav { min-height: 56px; }

/* Слово RIVENO у тексті, кнопках, рамках вікон: носій — span із
   позиціюванням, знімок лягає поверх нього, саме слово гасне. */
.rv { display: inline-block; position: relative; white-space: nowrap; transition: opacity .9s var(--ease); }
.rv.is-made { color: transparent; }
.rv .brand__made { z-index: 2; }
.brand-word .rv::before { content: none; }
@media (prefers-reduced-motion: reduce) { .rv.is-made { color: inherit; } }

/* ── Слово на кнопках: біла підложка, інакше матеріали на синьому не
   читаються (хозяин: «подложку какую-то делать»). У спокої слово на
   підложці синє — читається як марка всередині кнопки. ── */

/* Слово в сцені хаосу: літери гаснуть, поки лежить знімок. */
.chaos__word { position: relative; }
.chaos__word.is-made i { color: transparent; }

/* ── Бігуча смуга на головних кнопках: заклик до дії. Раз на чотири
   секунди по кнопці проходить світлий відблиск. Не на прозорих і не
   на тихих кнопках. ── */
.btn:not(.btn--ghost):not(.btn--quiet) { position: relative; overflow: hidden; }
.btn:not(.btn--ghost):not(.btn--quiet)::before {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -40%;
  width: 28%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg) translateX(-120%);
  animation: btn-sheen 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
  pointer-events: none;
}
@keyframes btn-sheen {
  0%, 62% { transform: skewX(-18deg) translateX(-120%); }
  100% { transform: skewX(-18deg) translateX(620%); }
}
.btn > * { position: relative; }

/* ── Підйом при наведенні: фотокартки галузей, картки панелі в шапці,
   блоки «Доступи і дані». Хозяин: «не лёгким движением, а чтобы аж
   приподнималась и становилась выше других». ── */
.picker__tab--card img { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s cubic-bezier(.2, .7, .2, 1), filter var(--t-state) var(--ease); }
.picker__tab--card:hover img,
.picker__tab--card:focus-visible img {
  transform: translateY(-12px) scale(1.035);
  box-shadow: 0 34px 50px -24px rgba(16, 24, 40, .5), 0 0 0 1px var(--hairline) inset;
  filter: saturate(1);
}
.picker__tab--card[aria-selected="true"]:hover img { box-shadow: 0 34px 50px -24px rgba(16, 24, 40, .5), 0 0 0 2px var(--blue); }
.picker__tab--card { position: relative; z-index: 0; }
.picker__tab--card:hover { z-index: 2; }
.nav__links .nav__card { transition: transform .4s cubic-bezier(.2, .7, .2, 1), background var(--t-hover) var(--ease); }
.nav__links .nav__card:hover { transform: translateY(-8px); z-index: 2; background: #fff; }
.nav__card img { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s cubic-bezier(.2, .7, .2, 1), filter var(--t-state) var(--ease); }
.nav__links .nav__card:hover img { transform: scale(1.03); box-shadow: 0 26px 40px -22px rgba(16, 24, 40, .5); }
.trust > * { position: relative; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s cubic-bezier(.2, .7, .2, 1); }
.trust > *:hover {
  transform: translateY(-10px);
  z-index: 2;
  border-radius: 16px;
  box-shadow: 0 30px 46px -26px rgba(16, 24, 40, .45), 0 0 0 1px var(--hairline);
}
@media (prefers-reduced-motion: reduce) {
  .btn:not(.btn--ghost):not(.btn--quiet)::before { animation: none; }
  .picker__tab--card:hover img, .nav__links .nav__card:hover, .nav__links .nav__card:hover img, .trust > *:hover { transform: none; box-shadow: none; }
}

/* ═══════════════════════ Живі іконки ═══════════════════════
   Іконка зі спрайта + рухома деталь. Усе transform/opacity, по колу. */
.lv { overflow: visible; }
.lv .li-base { transform-box: fill-box; transform-origin: 50% 50%; }
.li-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: li-pulse 2.4s var(--ease) infinite; }
.li-smoke { transform-box: fill-box; transform-origin: 50% 50%; animation: li-smoke 3s ease-out infinite; }
.li-smoke--2 { animation-delay: 1.2s; }
.li-road { animation: li-road 1.4s linear infinite; }
.li-drive { animation: li-drive 1.4s ease-in-out infinite; }
.li-coin { transform-box: fill-box; transform-origin: 50% 50%; animation: li-coin 3.2s cubic-bezier(.2, .7, .2, 1) infinite; }
.li-ring { transform-box: fill-box; transform-origin: 0% 100%; animation: li-ring 2.6s ease-out infinite; }
.li-ring--2 { animation-delay: .35s; }
.li-line { transform-box: fill-box; animation: li-line 3s ease-in-out infinite; }
.li-halo { transform-box: fill-box; transform-origin: 50% 50%; animation: li-halo 2.8s ease-out infinite; }
.li-check { stroke-dasharray: 12; stroke-dashoffset: 12; animation: li-check 3s ease-in-out infinite; }
.li-cursor { transform-box: fill-box; animation: li-cursor 3.2s steps(1, end) infinite; }
.li-chart { stroke-dasharray: 12; stroke-dashoffset: 12; animation: li-check 3.4s ease-in-out infinite; }
.li-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: li-grow 3s ease-in-out infinite; }
.li-bar--2 { animation-delay: .25s; } .li-bar--3 { animation-delay: .5s; }
.li-drop { transform-box: fill-box; animation: li-drop 2.4s ease-in infinite; }
.li-scan { transform-box: fill-box; transform-origin: 50% 50%; animation: li-spin 3s linear infinite; }
.li-scanline { transform-box: fill-box; animation: li-scanline 3s ease-in-out infinite; }
.li-rock { animation: li-rock 2.6s ease-in-out infinite; }
.li-bob { animation: li-bob 3s ease-in-out infinite; }
@keyframes li-pulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes li-smoke { 0% { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-6px) scale(1.25); opacity: 0; } }
@keyframes li-road { to { stroke-dashoffset: -5; } }
@keyframes li-drive { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.5px); } }
@keyframes li-coin { 0% { transform: translateX(-9px) scale(.6); opacity: 0; } 30% { opacity: 1; transform: translateX(-3px) scale(1); } 60% { transform: translateX(3px) scale(1); opacity: 1; } 100% { transform: translateX(9px) scale(.6); opacity: 0; } }
@keyframes li-ring { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes li-line { 0%, 15% { transform: translateY(0); opacity: 1; } 40%, 55% { transform: translateY(3.5px); opacity: 1; } 80%, 100% { transform: translateY(7px); opacity: 0; } }
@keyframes li-halo { 0% { transform: scale(.85); opacity: 0; } 30% { opacity: .55; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes li-check { 0%, 10% { stroke-dashoffset: 12; opacity: 1; } 45%, 75% { stroke-dashoffset: 0; opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes li-cursor { 0% { transform: translate(0, 0); } 20% { transform: translate(1.8px, 0); } 40% { transform: translate(3.6px, 0); } 55% { transform: translate(0, 3.5px); } 75% { transform: translate(1.8px, 3.5px); } 90%, 100% { transform: translate(3.6px, 3.5px); } }
@keyframes li-grow { 0% { transform: scaleY(0); opacity: 0; } 30%, 70% { transform: scaleY(1); opacity: .9; } 100% { transform: scaleY(0); opacity: 0; } }
@keyframes li-drop { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(10px) scale(.7); opacity: 1; } 100% { transform: translateY(12px) scale(.4); opacity: 0; } }
@keyframes li-spin { to { transform: rotate(360deg); } }
@keyframes li-scanline { 0%, 100% { transform: translateY(-4px); opacity: 0; } 30%, 70% { opacity: .9; } 50% { transform: translateY(4px); } }
@keyframes li-rock { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes li-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@media (prefers-reduced-motion: reduce) { .lv * { animation: none !important; } .li-check, .li-chart { stroke-dashoffset: 0; } }
.li-trail { animation: li-road 1.2s linear infinite; }
.li-fly { animation: li-fly 2.8s ease-in-out infinite; }
.li-typing { transform-box: fill-box; transform-origin: 50% 50%; animation: li-typing 1.4s ease-in-out infinite; }
.li-typing--2 { animation-delay: .2s; } .li-typing--3 { animation-delay: .4s; }
.li-tile { transform-box: fill-box; transform-origin: 50% 50%; animation: li-tile 3s ease-in-out infinite; }
.li-tile--2 { animation-delay: 1.5s; }
.li-seek { animation: li-seek 3s ease-in-out infinite; }
.li-spin-slow { animation: li-spin 6s linear infinite; }
@keyframes li-fly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.2px, -1.2px); } }
@keyframes li-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-1.6px); opacity: 1; } }
@keyframes li-tile { 0%, 100% { opacity: 0; } 20%, 45% { opacity: .55; } 65% { opacity: 0; } }
@keyframes li-seek { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(1.2px, -1px); } 66% { transform: translate(-1px, 1px); } }

/* Жива іконка в кружку/плитці — точно по центру, незалежно від вирівнювання
   базової лінії у flex (svg із viewBox ставав у низ кружка). */
.mark { position: relative; }
.mark > .lv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Слово-носій завжди рядкове: у заявах і заголовках є правила, що
   роблять будь-який span блочним, і рамка розтягувалась на всю строку. */
span.rv, .statement__text span.rv, .brand-word span.rv { display: inline-block; width: auto; }

/* ── Готові анімації-іконки (img/anim/*.webp) ──────────────────────
   Замінюють намальовану іконку в кружку, плитці, ланцюжку й підвалі.
   Розміри трохи більші за штрихову іконку: у мальованих анімаціях є
   власні поля, інакше вони виглядають дрібними. */
.lv-gif { display: block; width: 26px; height: 26px; object-fit: contain; }
.mark .lv-gif { width: 28px; height: 28px; }
.mark--tile .lv-gif { width: 26px; height: 26px; }
.flow__ico .lv-gif { width: 26px; height: 26px; }
.footer__tile .lv-gif { width: 22px; height: 22px; }
.tile .lv-gif, .tile__icon.lv-gif { width: 30px; height: 30px; }
.hero-price__list .lv-gif { width: 20px; height: 20px; }
.nav__links .nav__row > .lv-gif {
  grid-row: 1 / span 2;
  box-sizing: border-box;
  width: 34px; height: 34px;
  padding: 4px;
  border-radius: 10px;
  background: var(--canvas);
}
.nav__links .nav__row:hover > .lv-gif { background: #fff; }
@media (prefers-reduced-motion: reduce) { .lv-gif { display: none; } }

/* ── Готові анімації крупніше ──────────────────────────────────────
   У мальованих анімацій усередині свої поля, тому в кружку 38px вони
   читалися дрібними. Місце під таку іконку більше й без сірої
   підкладки: анімація сама тримає форму. */
.mark.has-anim {
  width: 70px; height: 70px;
  background: none;
  border-radius: 0;
  margin-bottom: 10px;
}
.mark.has-anim .lv-gif { width: 70px; height: 70px; }
.eco__head .mark.has-anim { width: 62px; height: 62px; margin-bottom: 0; }
.eco__head .mark.has-anim .lv-gif { width: 62px; height: 62px; }
.mark--tile.has-anim { width: 62px; height: 62px; }
.mark--tile.has-anim .lv-gif { width: 62px; height: 62px; }
.flow__ico.has-anim { width: 60px; height: 60px; background: none; }
.flow__ico.has-anim .lv-gif { width: 60px; height: 60px; }
.flow__step.is-on .flow__ico.has-anim { background: none; }
.footer__tile.has-anim .lv-gif, .footer__tile .lv-gif { width: 46px; height: 46px; }
.tile .lv-gif, .tile__icon.lv-gif { width: 60px; height: 60px; }
.card > .lv-gif { width: 54px; height: 54px; margin-bottom: 4px; }
.hero-price__list .lv-gif { width: 34px; height: 34px; }
.owner__metric .mark.has-anim, .trust .mark.has-anim, .role .mark.has-anim, .step .mark.has-anim { width: 78px; height: 78px; }
.owner__metric .mark.has-anim .lv-gif, .trust .mark.has-anim .lv-gif,
.role .mark.has-anim .lv-gif, .step .mark.has-anim .lv-gif { width: 78px; height: 78px; }
.nav__links .nav__row > .lv-gif { width: 46px; height: 46px; padding: 0; }
@media (max-width: 720px) {
  .mark.has-anim, .mark.has-anim .lv-gif { width: 46px; height: 46px; }
  .owner__metric .mark.has-anim, .trust .mark.has-anim, .role .mark.has-anim, .step .mark.has-anim,
  .owner__metric .mark.has-anim .lv-gif, .trust .mark.has-anim .lv-gif,
  .role .mark.has-anim .lv-gif, .step .mark.has-anim .lv-gif { width: 48px; height: 48px; }
}

/* Плитки модулів у підвалі стали посиланнями на свої розділи сторінки
   модулів (хозяин: «нехай ці розділи будуть активними й переносять на
   потрібний»). Вигляд той самий, додано лише відгук на наведення. */
a.footer__tile { text-decoration: none; color: inherit; cursor: pointer; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease), background var(--t-hover) var(--ease); }
a.footer__tile:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -14px rgba(16, 24, 40, .5); }
a.footer__tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* У кружка й плитки ланцюжка є власна кадрова анімація підкладки
   (`stage-ico`, `mark` у циклі) — кадрова анімація сильніша за будь-який
   стиль, тому синій фон проступав навіть при `background: none`. Де
   стоїть готова анімація, гасимо і її: рух дає сама картинка. */
.mark.has-anim, .flow__ico.has-anim,
.flow__step.is-on .flow__ico.has-anim,
[data-cycle] .is-on .mark.has-anim {
  animation: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* Плитки модулів у підвалі крупніше: хозяин — «кнопки то дозволяють,
   і гіфку, і слова ще збільшити». Іконка 64px, текст 16px, плитка
   вища; колонка під іконку рівно під неї, щоб слово не з'їжджало. */
.footer__pulse { gap: 12px; }
.footer__tile {
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 8px 9px;
  font-size: 12.5px;
  letter-spacing: -.012em;
  border-radius: 16px;
}
.footer__tile.has-anim .lv-gif, .footer__tile .lv-gif { width: 26px; height: 26px; }
.footer__tile svg:not(.lv-gif) { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .footer__tile { grid-template-columns: 24px 1fr; padding: 8px 9px; font-size: 12px; }
  .footer__tile.has-anim .lv-gif, .footer__tile .lv-gif { width: 24px; height: 24px; }
}

/* Довгі назви в плитках підвалу («Виробництво», «Налаштування») не
   вміщалися в один рядок і обрізалися трьома точками. Дозволяємо
   перенос: плитка стає на рядок вище, сітка тримає однакову висоту. */
.footer__tile {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  align-items: center;
}
