/* ==========================================================================
   FlyApply — styles.css
   Токены — из раздела «Быстрый старт» DESIGN.md, один в один.
   ========================================================================== */

:root {
  --c-ink: #000000;
  --c-graphite: #3e3e3e;
  --c-smoke: #636363;
  --c-hairline: #e9e9e9;
  --c-mist: #f7f7f7;
  --c-paper: #ffffff;
  --c-signal: #0072ef;   /* затемнён ради AA: белый текст даёт 4.51:1 (см. DESIGN.md §1) */
  --c-signal-tint: #eaf3ff;
  --c-glow: #ffd2b3;
  --c-live: #2fb457;   /* только точка статуса в ленте планшета и галочка оффера */   /* персик с горизонта hero.png: выделение фразы на картинке и на Dusk */
  /* Dusk — единственный градиент системы. Стопы сняты с design/hero.png:
     верх неба, 40% и 75% его высоты и полоса у горизонта. Так сцены и
     первый экран читаются как одна палитра. */
  --g-dusk: linear-gradient(180deg, #527dfe 0%, #7893f4 40%,
                            #a69dea 75%, #e28cca 100%);

  /* Оттенки Dusk для иконок. Сняты с тех же зон неба hero.png, что и стопы
     градиента: верх, середина, розовая полоса, тёплое облако у горизонта.
     Подложка — оттенок на белом; насыщена ровно настолько, чтобы круг был
     виден и на Paper, и на Mist. Штрих — тот же тон, затемнён до контраста
     не ниже 3:1 на своей подложке. Насыщенность не поднималась. */
  --i-sky:      #527dfe;  --i-sky-bg:      #eaefff;   /* 3.20:1 */
  --i-lavender: #877be1;  --i-lavender-bg: #f1effb;   /* 3.11:1 */
  --i-rose:     #d25abf;  --i-rose-bg:     #faedf8;   /* 3.11:1 */
  --i-peach:    #e0622a;  --i-peach-bg:    #fceee8;   /* 3.12:1 */

  --font-display: 'Geologica', 'Inter', sans-serif;
  --font-text: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;

  --text-display: 56px; --leading-display: 1.05;
  --text-heading: 40px; --leading-heading: 1.1;
  --text-price: 40px;
  --text-heading-sm: 18px;
  --text-lead: 20px;
  --text-body: 16px; --leading-body: 1.5;
  --text-body-sm: 14px;
  --text-caption: 12px;
  --tracking-text: -0.02em;

  --container-reading: 680px;
  --container-wide: 1200px;
  --gutter: 24px;
  --section-gap: 112px;
  --section-gap-mobile: 72px;
  --card-padding: 28px;

  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-card-lg: 28px;
  --radius-inner: 16px;

  --ring-mist: 0 0 0 5px var(--c-mist);
  --border-hairline: 1px solid var(--c-hairline);
  --border-ink: 1.5px solid var(--c-ink);
  --btn-filled-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.12);
}

@media (max-width: 640px) {
  :root {
    --text-display: 40px;
    --text-heading: 32px;
    --section-gap: var(--section-gap-mobile);
    --card-padding: 20px;
  }
}

/* Производные переменные слоя раскладки (выведены из правил DESIGN.md) */
:root {
  --edge: 24px;              /* отступы контейнера по краям */
  --title-gap: 40px;         /* заголовок секции → контент */
}
@media (max-width: 640px) {
  :root { --edge: 16px; --title-gap: 28px; }
}

/* --------------------------------------------------------------- сброс -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-graphite);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-paper); color: var(--c-ink);
  padding: 12px 20px; border-radius: var(--radius-pill); z-index: 100;
}
.skip:focus { left: 24px; top: 24px; }

/* ----------------------------------------------------------- контейнеры -- */

.container { width: 100%; margin-inline: auto; padding-inline: var(--edge); }
.container--reading { max-width: calc(var(--container-reading) + var(--edge) * 2); }
.container--wide    { max-width: calc(var(--container-wide) + var(--edge) * 2); }
.center { text-align: center; }

.sec { padding-block: calc(var(--section-gap) / 2); }
.sec--paper { background: var(--c-paper); }
.sec--mist  { background: var(--c-mist); }
.sec--tight-top { padding-top: 0; }

/* Крупные числа — лайнинговыми цифрами. У Geologica они такие по умолчанию,
   правило оставлено как страховка на случай смены гарнитуры (DESIGN.md §2). */
.fact__num, .counter__value, .plan__price, .step__num, .funnel__bar,
.pull { font-variant-numeric: lining-nums; }

.sec__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-text);
  color: var(--c-ink);
  margin-bottom: var(--title-gap);
  text-wrap: balance;
  /* DECISION: заголовки секций по центру. Слева в Reading-контейнере они
     вставали с отступом 260px от края широкой сетки под ними и читались как
     сбой выключки, а не как ритм «узко → широко». */
  text-align: center;
}
.center .sec__title { margin-bottom: 24px; }

.caption {
  font-size: var(--text-caption);
  line-height: 1.3;
  font-weight: 500;
  color: var(--c-smoke);
}

/* Секция может начинать с Reading и продолжать Wide: связываем их ритмом */
.sec > .container + .container { margin-top: var(--title-gap); }
.sec > .container--reading + .container--reading { margin-top: 40px; }

/* ---------------------------------------------------------------- сетка -- */

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* 5 тезисов: 3 + 2, вторая строка по левому краю, карточки не растягиваются */
.grid--32 > :nth-child(4) { grid-column: 1; }
.grid--32 > :nth-child(5) { grid-column: 2; }

/* --------------------------------------------------------------- кнопки -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-text);
  font-size: 15px; line-height: 1;
  letter-spacing: var(--tracking-text);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--c-signal); color: var(--c-paper);
  font-weight: 600; padding: 14px 24px;
  box-shadow: var(--btn-filled-shadow);
}
.btn--primary:hover { background: #0062cc; }
.btn--ghost {
  border: var(--border-ink); color: var(--c-ink);
  font-weight: 500; padding: 12px 22px; background: transparent;
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--sm { font-size: var(--text-body-sm); padding: 10px 18px; }

/* Кнопка первого экрана — та же Primary, чуть крупнее по паддингу */
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ------------------------------------ Блок 1 — хиро: текст прямо на фото -- */
/* Единственное место на странице с белым текстом на цвете (DESIGN.md §1). */

.hero {
  position: relative; z-index: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 28px;
  color: var(--c-paper);
  background: var(--c-paper);   /* в него растворяется низ картинки */
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Кадр: у design/hero.png робот стоит на 55–71% высоты, ровно там, где идут
     строки доверия. Поэтому у веб-копии подрезан низ (луг, который всё равно
     закрыт планшетом) — робот съезжает ниже текста и встаёт над планшетом.
     Оригинал design/hero.png не тронут. */
  object-position: 50% 50%;
  /* DECISION: низ картинки растворяется в белом холсте на последних 160px —
     по второму референсу, где пейзаж уходит в туман, а не режется краем.
     Это расходится с ранней установкой «просто край»; отменяется удалением
     двух строк mask-image. Цветного градиента не добавляется: гаснет само
     изображение. */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
}

/* навигация — без капсулы, прямо на картинке */
.hero__nav { display: flex; align-items: center; gap: 32px; }
/* Логотип — изображение design/logo-web.png (обрезанная копия logo-bg.png) */
.hero__logo { display: block; line-height: 0; }
.hero__logo img { height: 56px; width: auto; max-width: none; display: block; }
.hero__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hero__links a {
  display: inline-block;
  font-size: 15px; font-weight: 500; color: var(--c-paper);
  padding: 8px 16px; border-radius: var(--radius-pill);
  transition: background-color .15s ease;
}
.hero__links a:hover { background: rgba(255,255,255,.12); }
.hero__links a.is-active { background: rgba(255,255,255,.18); }

/* текстовый блок */
/* Без строк доверия текстовый блок стал короче, поэтому опущен ниже —
   иначе он жался к верхней трети, а половина экрана оставалась пустой.
   Верхняя граница clamp держит блок выше робота на низких экранах. */
.hero__body { margin-top: clamp(24px, 7vh, 88px); text-align: center; }
.hero__body h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-display); line-height: var(--leading-display);
  letter-spacing: var(--tracking-text); color: var(--c-paper);
  max-width: 900px; margin-inline: auto;
  text-wrap: balance;
}
/* Выделение — только цветом: ни градиентов по тексту, ни подчёркиваний,
   ни смены начертания (DESIGN.md v1.6, «Выделение»). */
.glow { color: var(--c-glow); }

.hero__lead {
  font-size: var(--text-lead); line-height: 1.45;
  color: var(--c-paper);
  max-width: 720px; margin: 20px auto 0;
}
.hero__cta { margin-top: 28px; }

/* В одну строку — только там, где плашка достаточно широкая: ниже 768px
   заголовок при 32px вылезал за край плашки. */
@media (min-width: 768px) { .screen__title { white-space: nowrap; } }

/* белая пилюля — единственная кнопка первого экрана */
.btn--white {
  background: var(--c-paper); color: var(--c-graphite);
  font-weight: 600; font-size: 16px; padding: 16px 32px;
}
.btn--white:hover { background: var(--c-mist); color: var(--c-ink); }

/* ------------------------------------------ Блок 2 — планшет с агентом -- */
/* Планшет — предмет: корпус с рамкой и тенью (второе и последнее исключение
   из правила «без теней», вместе с листом письма), внутри экран с картинкой
   первого экрана и стеклянными плашками. DESIGN.md v1.7. */

.sec--agent { padding-top: 0; }

.tablet {
  position: relative; z-index: 2;
  /* Верх корпуса — сразу под кнопкой хиро, на ~48px ниже неё. Отсчёт от
     высоты хиро, а не фиксированный отступ: иначе на высоких экранах между
     кнопкой и планшетом снова вырастает полэкрана пейзажа. */
  margin-top: calc(528px - 100svh);
  width: 100%;
  max-width: calc(var(--container-wide) / 12 * 10);   /* 10 колонок */
  margin-inline: auto;
  background: #e4e4e7;                /* корпус */
  border-radius: 40px;
  padding: 14px;                      /* рамка одинаковой толщины со всех сторон */
  box-shadow: 0 40px 100px rgba(0,0,0,.20), 0 10px 28px rgba(0,0,0,.08);
}
.tablet__screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
}
/* картинка на экране: кадр сдвинут влево, чтобы робот ушёл в правую часть */
.tablet__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 150%; max-width: none;   /* сброс общего max-width:100% из ресета */
  height: 100%;                   /* зум: робот уходит вправо, рощица — к центру */
  object-fit: cover;
  object-position: left center;
}
/* туман по краю экрана: у картинки внутри планшета нет резких краёв */
.tablet__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: 30px;
  box-shadow: inset 0 0 120px 40px rgba(255,255,255,.55),
              inset 0 0 0 1px rgba(255,255,255,.7);
  background: linear-gradient(to bottom, transparent 80%, #fff 100%);
}

.screen {
  position: relative; z-index: 2;
  padding: 28px;
  display: grid; gap: 16px;
}

/* стеклянные плашки — только здесь, поверх картинки */
.glass {
  background: rgba(255,255,255,.92);   /* фолбэк без backdrop-filter */
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius-card);
  padding: 24px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255,255,255,.74);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
            backdrop-filter: blur(24px) saturate(1.2);
  }
}

/* шапка экрана: персонаж слева, заголовок справа */
.screen__head { display: flex; align-items: center; gap: 20px; padding: 16px 24px; }
.robi { height: 56px; width: auto; flex: none; }
.screen__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1.15; letter-spacing: var(--tracking-text);
  color: var(--c-ink);
}

.screen__grid { display: grid; grid-template-columns: 6fr 4fr; gap: 16px; align-items: stretch; }
.screen__right { display: grid; gap: 16px; grid-template-rows: 1fr auto; }   /* график добирает высоту */

/* лента действий */
.feed { display: flex; }
.feed__list { display: grid; align-content: space-between; flex: 1; }
.feed__item {
  display: grid; grid-template-columns: 10px 1fr; column-gap: 14px;
  padding: 16px 24px;
  margin-inline: -24px;          /* разделитель идёт на всю ширину плашки */
  border-bottom: var(--border-hairline);
  align-items: start;
}
.feed__item:first-child { padding-top: 0; }
.feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-hairline);
  margin-top: 7px;
  grid-row: span 2;
  transition: background-color .3s ease;
}
.feed__title {
  font-size: 18px; line-height: 1.35; font-weight: 500; color: var(--c-smoke);
  transition: color .3s ease;
}
.feed__meta {
  grid-column: 2;
  font-size: var(--text-body-sm); line-height: 1.45; color: var(--c-smoke);
  margin-top: 4px;
}
/* выполняется */
.feed__item.is-doing .feed__dot { background: var(--c-live); }
.feed__item.is-doing .feed__title { color: var(--c-ink); font-weight: 600; }
/* выполнено — точка остаётся зелёной, текст не красится */
.feed__item.is-done .feed__dot { background: var(--c-live); }
.feed__item.is-done .feed__title { color: var(--c-graphite); font-weight: 500; }

/* график */
.chart { display: flex; flex-direction: column; }
.chart__plot { flex: 1; display: flex; align-items: center; }
.chart__label { font-size: var(--text-heading-sm); font-weight: 600; color: var(--c-ink); line-height: 1.35; }
.chart__plot { position: relative; margin-top: 12px; }
.chart__plot .chart__svg { width: 100%; }
.chart__svg { width: 100%; height: auto; }
.chart__line {
  fill: none; stroke: var(--c-signal); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart__mark { stroke: var(--c-smoke); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__mark-label { position: absolute; left: 38%; top: 0; transform: translateX(-50%); white-space: nowrap; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 4px; }

/* счётчики */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.counter { padding: 20px; }
.counter__value {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--c-ink);
  letter-spacing: var(--tracking-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.counter__tick {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-live); color: var(--c-paper);
  opacity: 0; transform: scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}
.counter__tick svg { width: 18px; height: 18px; }
.is-shown .counter__tick.is-in, .no-motion .counter__tick { opacity: 1; transform: none; }
.counter__label { display: block; margin-top: 10px; }

/* -------------------------------------------------------------- карточки -- */

.card { border-radius: var(--radius-card); padding: var(--card-padding); }

/* Линейная иконка 24px в круге 40px. Цвет — из оттенков Dusk, чередование
   Sky → Lavender → Rose → Peach по порядку карточек в сетке; в новой сетке
   отсчёт с начала (DESIGN.md v1.5, «Карточка»). Цветом красятся только круг
   и штрих — заголовки, текст и обводки карточек не меняются. */
.ico-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  margin-bottom: 16px;
}
.ico-circle svg { width: 24px; height: 24px; }

/* Оттенок объявляется один раз на карточке и красит и круг иконки, и
   крупную цифру: так они не могут разъехаться. Цена в тарифах и счётчик
   в планшете остаются Ink — они не в этих сетках. */
.tone--sky      .ico-circle { background: var(--i-sky-bg); }
.tone--lavender .ico-circle { background: var(--i-lavender-bg); }
.tone--rose     .ico-circle { background: var(--i-rose-bg); }
.tone--peach    .ico-circle { background: var(--i-peach-bg); }

.tone--sky      .ico-circle svg, .tone--sky      .fact__num { color: var(--i-sky); }
.tone--lavender .ico-circle svg, .tone--lavender .fact__num { color: var(--i-lavender); }
.tone--rose     .ico-circle svg, .tone--rose     .fact__num { color: var(--i-rose); }
.tone--peach    .ico-circle svg, .tone--peach    .fact__num { color: var(--i-peach); }
.card--paper { background: var(--c-paper); border: var(--border-hairline); }
.card--mist  { background: var(--c-mist); }
.card--outlined { background: var(--c-paper); border: var(--border-ink); }
.card__title {
  font-size: var(--text-heading-sm); font-weight: 600; line-height: 1.35;
  color: var(--c-ink);
}
.card__text { font-size: var(--text-body-sm); line-height: 1.45; margin-top: 10px; }

/* Блок 3 — карточка-факт */
.card--fact {
  background: var(--c-paper); border: var(--border-hairline);
  padding: 32px;
  display: flex; flex-direction: column;
}
.fact__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 56px; line-height: 1; color: var(--c-ink);
  letter-spacing: var(--tracking-text);
}
.fact__text { font-size: var(--text-body-sm); line-height: 1.45; margin-top: 16px; }
.fact__src { margin-top: auto; padding-top: 16px; }

.prose p { margin-top: 20px; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose--tight p { font-size: var(--text-body); }
.prose__lead { font-size: var(--text-lead); line-height: 1.45; margin-bottom: 32px; }

/* --------------------------------------------------------- сцена Dusk -- */
/* Единственный градиент системы. Максимум три поверхности на странице:
   мокапы Блока 6, воронка Блока 4 и финальный CTA. Текст на Dusk — белый. */

.scene {
  background: var(--g-dusk);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}

/* ------------------------------------------- Блок 4 — сравнение, воронка -- */

.card--micro { background: var(--c-mist); }
.card--mass  { background: var(--c-paper); border: var(--border-ink); }

.dots { display: grid; gap: 10px; margin-top: 16px; }
.dots li {
  position: relative; padding-left: 18px;
  font-size: var(--text-body-sm); line-height: 1.45;
}
.dots li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-ink);
}
.dots--smoke li { color: var(--c-smoke); }
.dots--smoke li::before { background: var(--c-smoke); }

.pull {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.25; color: var(--c-ink);
  letter-spacing: var(--tracking-text);
  text-align: center;
  margin-block: 8px;
}

.scene--funnel {
  width: 100%;
  max-width: calc(var(--container-wide) / 12 * 8);
  margin-inline: auto;
  min-height: 400px;
  padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
}
.funnel__bar {
  height: 56px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding-inline: 24px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--c-ink);
  text-align: center;
}
.funnel__bar--1 { width: 100%; background: rgba(255,255,255,.92); }
.funnel__bar--2 { width: 74%;  background: rgba(255,255,255,.75); }
.funnel__bar--3 { width: 50%;  background: var(--c-paper); color: var(--c-signal); }

/* ------------------------------------------------- Блок 5 — письмо-лист -- */
/* Лист бумаги на сером холсте, не текстовая колонка. Тень — единственная
   на сайте: лист это предмет, а не карточка (DESIGN.md v1.4). */

.sheet {
  max-width: 760px;
  margin-inline: auto;
  background: var(--c-paper);
  border-radius: var(--radius-inner);
  padding: 56px;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
}
.sheet__title {
  font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--c-ink);
}
.sheet__meta { margin-top: 6px; }

.sheet__body {
  margin-top: 28px;
  font-size: 17px; line-height: 1.6; color: var(--c-graphite);
}
.sheet__body p + p { margin-top: 20px; }

.sheet__sign {
  margin-top: 48px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.sheet__hand {
  font-family: var(--font-hand); font-weight: 500;
  font-size: 30px; line-height: 1.25; letter-spacing: 0;
  color: var(--c-ink);
}
.sheet__who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-mist);   /* видно, пока грузится фото */
  overflow: hidden;
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet__who-text { display: grid; gap: 2px; }
.sheet__name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-ink); }

.sheet__foot {
  font-size: var(--text-body-sm); line-height: 1.45;
  color: var(--c-smoke); text-align: center;
}

/* ------------------------------------ Блок 6 — шаги как показ продукта -- */

.steps { display: grid; gap: 96px; }
.step-row {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 48px; align-items: center;
}
.step-row--flip { grid-template-columns: 7fr 5fr; }
.step-row--flip .step-row__text  { order: 2; }
.step-row--flip > .scene    { order: 1; }
.step-row__text { display: grid; gap: 40px; align-content: center; }

.step__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-price); line-height: 1; color: var(--c-smoke);
  letter-spacing: var(--tracking-text);
  margin-bottom: 12px;
}
.step__title { font-size: var(--text-heading-sm); font-weight: 600; color: var(--c-ink); line-height: 1.35; }
.step__text { font-size: var(--text-body-sm); line-height: 1.45; margin-top: 10px; }

/* Мокап чата на сцене: карточка стоит у нижнего края и уходит за него.
   Обрезается только пустой нижний паддинг карточки — не пузыри и не пилюли. */
.scene--chat {
  min-height: 420px;
  padding: 40px 40px 0;
  display: flex; align-items: flex-end;
}
.chat {
  flex: 1;
  background: var(--c-paper);
  border: var(--border-hairline);
  border-radius: 20px;
  padding: 20px 20px 40px;
  display: grid; gap: 10px; align-content: start;
  margin-bottom: -30px;
}
.chat__from { font-size: var(--text-caption); line-height: 1.3; font-weight: 500; color: var(--c-smoke); }
.chat__from--user { text-align: right; }
.bubble {
  border-radius: var(--radius-inner);
  padding: 12px 14px;
  font-size: var(--text-body-sm); line-height: 1.45;
  max-width: 88%;
}
.bubble--bot  { background: var(--c-mist); color: var(--c-graphite); justify-self: start; }
.bubble--user { background: var(--c-signal-tint); color: var(--c-graphite); justify-self: end; }
.bubble p + p { margin-top: 10px; }
.bubble__label {
  font-size: var(--text-caption); line-height: 1.3; font-weight: 500;
  color: var(--c-smoke);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.chat__list { display: grid; gap: 8px; }
.chat__list li { position: relative; padding-left: 16px; }
.chat__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--c-smoke);
}
.chat__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.pill {
  border: 1.5px solid var(--c-ink); border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px; line-height: 1; font-weight: 500; color: var(--c-ink);
}

/* ----------------------------------------------------- Блок 10 — тарифы -- */

.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan--featured { border: var(--border-ink); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.plan__name { font-size: var(--text-body); font-weight: 600; color: var(--c-ink);
  display: flex; align-items: center; min-height: 30px; }
.plan__price {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-price); line-height: 1; color: var(--c-ink);
  letter-spacing: var(--tracking-text);
  margin-top: 16px;
}
.plan__unit { font-family: var(--font-text); margin-left: 4px; }
.plan__desc { font-size: var(--text-body-sm); line-height: 1.45; margin-top: 16px; }
.plan__list { margin-top: 16px; margin-bottom: 24px; }
.plan__btn { margin-top: auto; align-self: stretch; }

/* --------------------------------------------------------- Блок 11 — FAQ -- */

.faq__item { border-bottom: var(--border-hairline); }
.faq__item:first-child { border-top: var(--border-hairline); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  list-style: none; cursor: pointer;
  padding-block: 20px;
  font-size: var(--text-heading-sm); font-weight: 600; color: var(--c-ink);
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico { width: 20px; height: 20px; flex: none; color: var(--c-ink); }
.faq__item[open] .faq__ico-v { display: none; }
.faq__item p { padding-bottom: 20px; max-width: 600px; }

/* ------------------------------------------------------------------ футер -- */

.scene--cta { padding: 96px 24px; }
.scene--cta .container--reading { margin-inline: auto; padding-inline: 0; }
.sec__title--on-dusk { color: var(--c-paper); }
.scene--cta .prose__lead { color: var(--c-paper); }

.footer { background: var(--c-paper); border-top: var(--border-hairline); padding-block: 32px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { display: block; line-height: 0; }
.footer__logo img { height: 44px; width: auto; max-width: none; display: block; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: var(--text-body-sm); font-weight: 500; color: var(--c-graphite); }
.footer__links a:hover { color: var(--c-signal); text-decoration: underline; }
.footer__note { margin-left: auto; }

/* ============================================================ планшет ==== */

@media (max-width: 1023px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > :nth-child(3) { grid-column: 1 / -1; }
  .grid--32 > :nth-child(4) { grid-column: auto; }
  .grid--32 > :nth-child(5) { grid-column: auto; }
  .grid--32 > :nth-child(3) { grid-column: auto; }

  .tablet { max-width: 100%; }
  .screen__grid { grid-template-columns: 1fr; }

  .steps { gap: 64px; }
  .step-row, .step-row--flip { grid-template-columns: 1fr; gap: 32px; }
  .step-row--flip .step-row__text,
  .step-row--flip > .scene { order: 0; }
  .step-row__text { gap: 32px; }

  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans > :nth-child(3) { grid-column: 1 / -1; }

  .scene--funnel { max-width: 100%; }

  .tablet { margin-top: calc(537px - 100svh); }
  .hero__nav { gap: 20px; }
  .hero__links { gap: 2px; }
  .hero__links a { padding: 8px 12px; }
}

/* ============================================================ мобильный == */

@media (max-width: 639px) {
  /* навигация: логотип и одна ссылка — «Тарифы» */
  .hero__links li:not(:nth-child(3)) { display: none; }
  .hero__links a.is-active { background: none; }
  .hero__links li:nth-child(3) a { background: rgba(255,255,255,.18); }

  .hero { min-height: max(640px, 100svh); padding-top: 20px; }
  .hero__body { margin-top: clamp(16px, 4vh, 48px); }
  .hero__lead { font-size: 17px; margin-top: 16px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { width: 100%; }

  .tablet { margin-top: calc(523px - max(640px, 100svh)); padding: 8px; border-radius: 28px; }
  .tablet__screen, .tablet__screen::after { border-radius: 20px; }
  .screen { padding: 16px; gap: 12px; }
  .glass { padding: 18px; border-radius: 20px; }
  .screen__head { gap: 16px; }
  .robi { height: 40px; }
  .screen__title { font-size: 22px; white-space: normal; }
  .screen__head { padding: 14px 16px; gap: 14px; }
  .feed__title { font-size: 16px; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .counters > :nth-child(3) { grid-column: 1 / -1; }
  .counter { padding: 16px; }
  .feed__item { padding-inline: 18px; margin-inline: -18px; }
  .counter__value { font-size: 30px; }

  .grid--2, .grid--3, .plans { grid-template-columns: 1fr; }
  .grid--3 > :nth-child(3) { grid-column: auto; }
  .plans > :nth-child(3) { grid-column: auto; }
  .plans .plan--featured { order: -1; }       /* выделенная карточка первой */

  .card--fact { padding: 24px; }
  .fact__num { font-size: 48px; }

  .steps { gap: 56px; }
  .step-row { gap: 24px; }
  .step-row__text { gap: 28px; }
  .step__num { font-size: 32px; margin-bottom: 12px; }
  .scene--chat { min-height: 300px; padding: 24px 20px 0; }
  .chat { padding: 16px 16px 32px; margin-bottom: -22px; }

  .sheet { padding: 28px; transform: rotate(-1deg); }
  .sheet__body { font-size: 16px; margin-top: 24px; }
  .sheet__sign { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 36px; }
  .sheet__hand { font-size: 26px; }
  .pull { font-size: 24px; }

  .scene--funnel { min-height: 320px; padding: 32px 20px; gap: 16px; }
  .funnel__bar { height: 48px; font-size: var(--text-body-sm); padding-inline: 16px; }
  .funnel__bar--2 { width: 82%; }
  .funnel__bar--3 { width: 64%; }
  .scene--cta { padding: 56px 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__note { margin-left: 0; }
}

/* =========================================== уважение к reduced-motion === */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed__dot, .feed__title, .counter__tick { transition: none; }
  .counter__tick { opacity: 1; transform: none; }
  .chart__line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
