/* ═══════════════════════════════════════════════════════════════
   fitt — лендинг. Один файл стилей, без сборки.
   Цвета, отступы и размеры собраны в :root — правьте их, а не блоки.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --ink-strong: #0B0B0B;
  --muted: #6B7280;
  --dim: #B0B0B0;      /* только декор: разделители и приглушённые заголовки в анимации.
                           Контраст 2.2:1 — для читаемого текста не годится, там --muted */
  --surface: #F4F4F5;   /* карточки, отзывы, подвал */
  --cream: #F5F2EC;     /* экраны телефонов и финальный блок */
  --line: #E5E7EB;
  --star: #F5A623;     /* звёзды в отзывах */

  --wrap: 1120px;
  --pad-y: 56px;        /* вертикальный ритм секций (мобильный) */
  --radius-card: 20px;
  --radius-block: 32px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

@media (min-width: 1024px) {
  :root { --pad-y: 96px; }
}

/* ── База ─────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.section { padding: var(--pad-y) 0; }

/* Текст для экранного диктора и поисковика, невидимый глазами.
   Не display:none — такой текст диктор пропускает. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #FFF; padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 100;
}
.skip:focus { left: 0; color: #FFF; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* Цель ссылки-якоря не должна уезжать под липкую шапку */
[id] { scroll-margin-top: 84px; }
/* Переход по «К содержимому» переносит фокус на main — рамка тут не нужна */
main:focus { outline: none; }

/* ── Кнопки и мелкие элементы ─────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #FFFFFF;
  border-radius: 999px; padding: 16px 30px;
  font-size: 17px; font-weight: 600; line-height: 1;
  transition: background 200ms ease;
  /* Кнопка не переносится и не сжимается: в ряду с подписью рядом
     «Перейти в сервис» ломалось на две строки и таблетка теряла форму. */
  white-space: nowrap; flex: 0 0 auto;
}
.btn:hover { background: #2A2A2A; color: #FFFFFF; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--lg { padding: 18px 34px; font-size: 18px; }

.badge {
  align-self: flex-start;
  background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}

.note { font-size: 14px; color: var(--muted); }

.eyebrow {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted);
}

/* ── Логотип ──────────────────────────────────────────────────── */

.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { color: var(--ink); }
/* Знак — картинка со своими скруглёнными углами и прозрачным фоном,
   поэтому ни фона, ни радиуса в стилях нет: всё уже нарисовано в файле. */
.logo__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.logo__name { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }

/* ── Шапка ────────────────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #F0F0F0;
}
.header__inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}

/* ── Меню в шапке ─────────────────────────────────────────────
   «Возможности» — обычный <details>: открывается кликом и без
   JavaScript, читается с клавиатуры, индексируется как простые ссылки.
   Скрипт только закрывает его по клику мимо и по Esc.
   На телефоне меню уезжает во вторую строку шапки (order: 3). */

.nav { display: flex; align-items: center; gap: 4px; order: 3; width: 100%; }
.nav__group { position: relative; }

.nav__summary, .nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  cursor: pointer; list-style: none; white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}
.nav__summary::-webkit-details-marker { display: none; }
.nav__summary:hover, .nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link.is-current { color: var(--ink); }
.nav__group[open] .nav__summary { color: var(--ink); background: var(--surface); }

/* Галочка: тот же приём, что у плюса в вопросах — два псевдоэлемента */
.nav__chev {
  width: 8px; height: 8px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 200ms ease;
}
.nav__group[open] .nav__chev { transform: rotate(-135deg); margin-top: 2px; }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: min(360px, calc(100vw - 48px));
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(17, 17, 17, 0.45);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.nav__item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; }
.nav__item:hover { background: var(--surface); color: var(--ink); }
.nav__item.is-current { background: var(--cream); }
.nav__item-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.nav__item-note { font-size: 13px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }

@media (min-width: 900px) {
  .header__inner { flex-wrap: nowrap; gap: 24px; }
  .nav { order: 0; width: auto; margin-right: auto; margin-left: 12px; }
}
@media (max-width: 420px) {
  .nav__summary, .nav__link { padding: 7px 10px; font-size: 14px; }
}

/* ── Первый экран ─────────────────────────────────────────────
   Слева знак, название и кнопка, справа телефон, в котором сами
   сменяются экраны. Анимация целиком на CSS — скрипт здесь не нужен. */

.hero { padding-top: 56px; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; gap: 52px; justify-items: center;
}
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }

.hero__brand { margin: 0; display: flex; align-items: center; gap: 16px; }
.hero__logo {
  flex: 0 0 auto; width: clamp(72px, 19vw, 92px); height: clamp(72px, 19vw, 92px);
  filter: drop-shadow(0 18px 34px rgba(17, 17, 17, 0.28));
}
.hero__name { font-size: clamp(48px, 13vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }

.hero__lead {
  margin: 0; font-size: 18px; line-height: 1.45; color: var(--muted);
  max-width: 560px; text-wrap: pretty;
}
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__shot { display: flex; justify-content: center; }

/* ── Телефон с видео ──────────────────────────────────────────
   Рамка — картинка с прозрачным вырезом экрана (images/phone.png),
   видео лежит под ней. Координаты выреза посчитаны по самой картинке:
   933 × 1920, экран x 43…892, y 39…1881. Меняете картинку рамки —
   пересчитайте эти четыре числа, иначе кадр вылезет из-под неё.
   Размер задаётся рамке, видео тянется за ней в процентах. */

.phone-shot { position: relative; width: min(78vw, 330px); }
.phone-shot__frame { position: relative; z-index: 2; width: 100%; height: auto; pointer-events: none; }
/* Кадр кладётся с запасом в пару процентов — заходит под корпус рамки,
   который лежит выше по z-index и его перекрывает. Точно по вырезу
   (top 2.031 / left 4.609 / 90.997 × 95.938) по краям оставалась тонкая
   светлая щель: рамка нарисована с полупрозрачной кромкой, и подложка
   просвечивала сквозь неё. */
.phone-shot__video,
.phone-shot__screen {
  position: absolute; z-index: 1;
  top: 1.4%; left: 3.6%; width: 92.8%; height: 97.2%;
  border-radius: 10.6% / 4.9%;     /* углы экрана: ~90 px по обеим осям */
}
.phone-shot__video {
  object-fit: cover;               /* кадр чуть шире выреза — обрезаем по бокам */
  background: var(--cream);        /* пока видео не загрузилось — не дыра, а экран */
}

/* Скриншот в рамке. Сдвиг сверху — чтобы заголовок экрана не уехал
   под «остров» камеры; низ картинки обрезается рамкой. */
.phone-shot__screen { overflow: hidden; background: #FFFFFF; }
.phone-shot__screen img { display: block; width: 100%; height: auto; margin-top: 7.5%; }

/* Нижний край экрана растворяется в фоне страницы: снимок длинный, и ровный
   срез по рамке читался бы как обрезанная картинка, а не как продолжение.
   Это вариант для липкой колонки на широком экране — там телефон виден
   целиком, растворяется только содержимое экрана. */
.phone-shot--fade .phone-shot__screen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 70%, #FFFFFF 100%);
  pointer-events: none;
}

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

   Маска, а не градиент поверх: градиент закрасил бы прямоугольник, а маска
   снимает и саму рамку с её скруглением. Пустое место, которое остаётся
   под прозрачной частью, забирается отрицательным отступом. */
@media (max-width: 1023px) {
  .feature__pic {
    /* Пелена занимает нижнюю треть и к концу сходит в чистый фон.
       Середина растворения смещена вверх (85 % прозрачности уже к 80 %
       высоты) — так низ выглядит плотно залитым, а не слегка размытым. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.15) 80%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.15) 80%, transparent 92%);
    /* Заголовок поднимается вплотную к пелене — как на образце */
    /* Кадр ниже телефона с первого экрана (933 × 1414), поэтому
       коэффициент меньше: пустой остаётся примерно пятая часть высоты. */
    margin-bottom: calc(var(--phone-w) * -0.16);
  }
}

/* Покачивается только телефон на первом экране. В карточках возможностей
   их пять подряд, и качающиеся макеты рядом с текстом мешают читать. */
.hero__shot .phone-shot { animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 1024px) {
  /* На широком экране первый экран разворачивается в две колонки:
     слева знак с названием, подзаголовок и кнопка — всё по левому краю,
     справа телефон. На узких остаётся одна колонка по центру. */
  .hero { padding-top: 40px; }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px; align-items: center; justify-items: stretch;
  }
  .hero__text { align-items: flex-start; text-align: left; gap: 30px; }
  .hero__brand { gap: 24px; }
  .hero__logo { width: 132px; height: 132px; }
  .hero__name { font-size: clamp(64px, 6vw, 96px); }
  .hero__lead { font-size: 23px; max-width: 560px; }
  .hero__cta { flex-direction: row; align-items: center; gap: 22px; }
  .hero__shot { justify-content: flex-end; }
  .phone-shot { width: min(30vw, 380px); }
}

/* ── Отзывы ───────────────────────────────────────────────────
   Сетка: одна колонка на телефоне (видно четыре карточки),
   две на планшете, четыре на широком экране. */

.section__head { margin: 0 auto 40px; text-align: center; }
.section__head h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
@media (min-width: 1024px) { .section__head h2 { font-size: 44px; } }

.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
/* На телефоне длинный список отзывов только мешает — оставляем четыре */
.reviews__grid .review:nth-child(n + 5) { display: none; }

@media (min-width: 640px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid .review:nth-child(n + 5) { display: flex; }
}
@media (min-width: 1024px) {
  .reviews__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.review {
  margin: 0;
  background: var(--surface); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { font-size: 21px; line-height: 1; letter-spacing: 3px; color: var(--star); }
.review__stars-off { color: var(--line); }

/* Рейтинг под заголовком блока отзывов.
   Два класса в селекторе намеренно: одиночный .rating ниже по файлу
   перебивался правилом .section__lead и рейтинг получался серым и мелким. */
.section__lead.rating { margin-top: 12px; font-size: 20px; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .section__lead.rating { font-size: 24px; } }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.review figcaption { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 700; }

/* ── Возможности ──────────────────────────────────────────────── */

.features { padding: var(--pad-y) 0 0; }
.features__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.features__stage { display: none; }
.features__list { display: flex; flex-direction: column; gap: 72px; }

/* До широкого экрана карточка идёт одной колонкой по центру: телефон сверху,
   под ним заголовок и текст. Чередование «лево-право» включается только
   в липкой раскладке ниже — на узком оно превращалось в рваный зигзаг. */
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.feature__shot { display: flex; justify-content: center; width: 100%; }
/* Ширина телефона живёт в переменной: от неё же считается отрицательный
   отступ ниже. Проценты для этого не годятся — margin-bottom в процентах
   меряется от ШИРИНЫ родителя, и на планшете заголовок наезжал на картинку. */
.feature__pic { --phone-w: min(92vw, 380px); width: var(--phone-w); height: auto; display: block; }
.feature__title { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: pretty; }
.feature__body p { margin: 14px auto 0; font-size: 17px; line-height: 1.55; color: #1A1A1A; max-width: 440px; text-wrap: pretty; }

/* Раскладка ниже включается только когда скрипт добавил html.js:
   без него на любом экране остаётся простой список карточек с текстом. */
@media (min-width: 1024px) {
  html:not(.js) .features__list { max-width: 760px; margin: 0 auto; }

  .js .features { padding: 0; }
  .js .features__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

  /* Телефон прилипает к экрану, пока справа листается текст */
  .js .features__stage {
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 0; align-self: start; height: 100vh;
  }
  .js .features__stage .feature__pic {
    position: absolute; width: auto; height: min(660px, 78vh);
    opacity: 0; transition: opacity 450ms ease;
  }
  .js .features__stage .feature__pic.is-active { opacity: 1; }

  .js .features__list { display: block; }
  .js .feature {
    display: flex; justify-content: center;
    min-height: 68vh; text-align: left; align-items: stretch;
  }
  .js .feature:nth-child(even) { text-align: right; }
  .js .feature .feature__body p { margin-left: 0; margin-right: 0; }
  .js .feature:nth-child(even) .feature__body p { margin-left: auto; }
  .js .feature:nth-child(even) .feature__more { text-align: right; }
  .js .feature__shot { display: none; }
  .js .feature__title {
    font-size: clamp(28px, 2.8vw, 46px); line-height: 1.06; letter-spacing: -0.025em;
    color: var(--dim); transition: color 400ms cubic-bezier(.22, .61, .36, 1);
  }
  .js .feature.is-active .feature__title { color: var(--ink-strong); }
  .js .feature__body {
    display: grid; grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows 500ms cubic-bezier(.22, .61, .36, 1), opacity 300ms ease;
  }
  .js .feature.is-active .feature__body { grid-template-rows: 1fr; opacity: 1; }
  .js .feature__body p { overflow: hidden; min-height: 0; font-size: 19px; line-height: 1.5; max-width: 520px; }
  .js .feature__text { display: flex; flex-direction: column; justify-content: center; }
}

/* ── Как это работает ─────────────────────────────────────────── */

.how__grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
@media (min-width: 1024px) { .how__grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius-card); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
/* Шаг с кадром: картинка во всю ширину карточки, текст с обычными полями */
.card--shot { padding: 0 0 28px; overflow: hidden; }
.card--shot > :not(.card__shot) { padding-left: 28px; padding-right: 28px; }
.card__shot { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 4px; }

.card__num { font-size: 14px; font-weight: 700; color: var(--muted); }
.card h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ── Вопросы ──────────────────────────────────────────────────
   Тёмная панель со скруглением: белые вопросы, тонкие разделители. */

.faq__panel {
  background: var(--ink); color: #FFFFFF;
  border-radius: 28px; padding: 48px 24px;
}
.faq__list { max-width: 960px; margin: 0 auto; }

.faq__title {
  margin: 0 0 32px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em;
  font-weight: 800; text-align: center; text-wrap: pretty; color: #FFFFFF;
}

@media (min-width: 1024px) {
  .faq__panel { border-radius: 48px; padding: 80px 64px; }
  .faq__title { font-size: 44px; margin-bottom: 56px; }
}

.qa { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.qa:first-of-type { border-top: 0; }
.qa summary {
  list-style: none; cursor: pointer; color: #FFFFFF;
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  transition: opacity 200ms ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #FFFFFF; opacity: 0.7; }
@media (min-width: 1024px) { .qa summary { font-size: 20px; padding: 28px 0; } }

.qa__icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform 300ms ease-out; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; background: currentColor; }
.qa__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.qa__icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.qa[open] .qa__icon { transform: rotate(45deg); }

.qa__body { overflow: hidden; }
.qa__body p {
  margin: 0; padding: 0 0 26px; font-size: 16px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.68); max-width: 720px; text-wrap: pretty;
}
@media (min-width: 1024px) { .qa__body p { font-size: 17px; } }

/* ── Финальный блок ───────────────────────────────────────────── */

.cta {
  background: var(--cream); border-radius: var(--radius-block); padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
.cta h2 {
  margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  max-width: 680px; text-wrap: pretty;
}
@media (min-width: 1024px) {
  .cta { padding: 80px 48px; }
  .cta h2 { font-size: 44px; }
}

/* ── Подвал ───────────────────────────────────────────────────
   Слева знак и соцсети, справа две колонки ссылок. */

.footer { background: #FFFFFF; padding: 64px 0 40px; }
.footer__inner { display: flex; flex-direction: column; gap: 44px; }

.footer__brand { display: flex; flex-direction: column; gap: 26px; }
.logo--lg .logo__mark { width: 46px; height: 46px; }
.logo--lg .logo__name { font-size: 30px; letter-spacing: -0.04em; }

.footer__socials { display: flex; align-items: center; gap: 18px; }
.footer__socials a { color: var(--muted); display: flex; }
.footer__socials a:hover { color: var(--ink); }

/* Две колонки ссылок с самого узкого экрана: в одну колонку подвал
   растягивался на полтора экрана прокрутки. */
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a { font-size: 16px; }

.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 44px; padding-top: 24px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
}
.footer__legal a { color: var(--muted); }

@media (min-width: 640px) {
  .footer__cols { gap: 32px 56px; }
}
@media (min-width: 1024px) {
  .footer { padding: 96px 0 48px; }
  .footer__inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 64px; }
  .footer__brand { gap: 34px; }
  .logo--lg .logo__mark { width: 56px; height: 56px; }
  .logo--lg .logo__name { font-size: 40px; }
  .footer__cols { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 16px 56px; }
}

/* ── Плашка про cookie ────────────────────────────────────────
   Висит внизу, пока человек её не закрыл. На телефоне — во всю ширину
   столбиком, на широком экране — полосой по ширине контента, текст слева
   и кнопка справа. Разметка скрыта атрибутом hidden: показывает скрипт. */

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: #FFFFFF;
  box-shadow: 0 -20px 50px -34px rgba(17, 17, 17, 0.8);
  transform: translateY(115%);
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
}
.cookie.is-shown { transform: none; }

/* Внутренняя коробка — обычный .wrap: полоса во всю ширину, содержимое
   по колонке сайта. Снизу добавляем вырез экрана, чтобы кнопка не легла
   под системную полосу. */
.cookie__box {
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.cookie__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); text-wrap: pretty; }
.cookie__text a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.cookie__text a:hover { color: rgba(255, 255, 255, 0.7); }

.cookie__ok {
  border: 0; font-family: inherit; cursor: pointer;
  background: #FFFFFF; color: var(--ink);
}
.cookie__ok:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
/* На тёмном фоне чёрная рамка фокуса не видна */
.cookie__box :focus-visible { outline-color: #FFFFFF; }

@media (min-width: 768px) {
  .cookie__box {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 32px;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  }
  .cookie__text { font-size: 15px; max-width: 760px; }
  .cookie__ok { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
}

/* ── Появление блоков первого экрана ──────────────────────────── */

.rise { opacity: 0; animation: rise 380ms ease-out var(--d, 0ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; }
  .hero__shot .phone-shot { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ── Совсем узкие экраны ──────────────────────────────────────── */

@media (max-width: 420px) {
  .header__inner { padding: 12px 16px; gap: 12px; }
  .logo__name { font-size: 17px; }
  .btn--sm { padding: 10px 14px; font-size: 14px; }
  .hero__name { font-size: 36px; }
  .hero__logo { width: 58px; height: 58px; }
}

/* ═══════════════════════════════════════════════════════════════
   Внутренние страницы: возможности и справка.
   Общий приём — узкая колонка (.wrap--narrow) и та же типографика,
   что на правовых страницах: читается длинный текст, а не листовка.
   ═══════════════════════════════════════════════════════════════ */

/* ── Хлебные крошки ───────────────────────────────────────────── */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 20px; font-size: 14px; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { color: var(--dim); }

/* ── Первый экран внутренней страницы ─────────────────────────── */

.phero { padding: 28px 0 var(--pad-y); }
.phero__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.phero__h1 { margin: 0; font-size: 34px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.phero__lead { margin: 0; font-size: 18px; line-height: 1.55; color: #1A1A1A; max-width: 560px; text-wrap: pretty; }
.phero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phero__shot { display: flex; justify-content: center; }
.phero__shot .phone-shot { width: min(70vw, 280px); }

@media (min-width: 900px) {
  .phero__inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 64px; }
  .phero__text { display: flex; flex-direction: column; gap: 26px; max-width: 580px; }
  .phero__h1 { font-size: 52px; }
  .phero__lead { font-size: 20px; }
  .phero__cta { flex-direction: row; align-items: center; gap: 20px; }
  .phero__shot .phone-shot { width: 300px; }
}

/* ── Секции внутренних страниц ───────────────────────────────── */

.section__lead { margin: 16px auto 0; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Шаги «как это работает» на внутренних страницах идут по три */
@media (min-width: 768px) { .how__grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .how__grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Длинный текст страницы ──────────────────────────────────── */

.prose h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: pretty; }
.prose__lead { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: #1A1A1A; text-wrap: pretty; }
.prose h3 { margin: 32px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; text-wrap: pretty; }
.prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: #1A1A1A; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li { font-size: 17px; line-height: 1.6; color: #1A1A1A; text-wrap: pretty; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose__figure { margin: 28px 0; }
.prose__figure img { width: 100%; height: auto; border-radius: var(--radius-card); }
.prose__figure figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.prose__note { margin: 24px 0 0; padding: 20px 22px; background: var(--surface); border-radius: var(--radius-card); }
.prose__note p { margin: 0; font-size: 16px; color: #1A1A1A; }

@media (min-width: 1024px) {
  .prose h2 { font-size: 40px; }
}

/* ── Плитки перелинковки ─────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
/* Витрина на главной: все пять разделов в один ряд */
@media (min-width: 1100px) { .tiles--five { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.tile {
  background: var(--surface); border-radius: var(--radius-card); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 200ms ease, transform 200ms ease;
}
.tile:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.tile__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: pretty; }
.tile__text { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.tile__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* На главной та же витрина стоит между возможностями и шагами —
   там она идёт с четырьмя плитками, пятая переносится. */
.feature__more { margin: 16px 0 0; }
.feature__more a { font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
/* В липкой раскладке ссылка живёт внутри .feature__body и появляется
   вместе с текстом активной карточки — прятать её незачем: без неё с главной
   на страницы возможностей вела бы только шапка. */

/* ── Плитки «что внутри» ─────────────────────────────────────
   Два в ряд на телефоне — картинки квадратные и мелкими не выглядят;
   дальше три и пять, чтобы десять плиток ложились ровными рядами. */

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
@media (min-width: 640px)  { .fgrid { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; } }
@media (min-width: 1100px) { .fgrid { grid-template-columns: repeat(5, 1fr); } }

.fcard { display: flex; flex-direction: column; gap: 8px; }
.fcard__img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-card); background: var(--surface);
}
.fcard__title { margin: 6px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; text-wrap: pretty; }
.fcard__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
@media (min-width: 640px) {
  .fcard__title { font-size: 17px; }
  .fcard__text { font-size: 15px; }
}

/* ── Списки ссылок ───────────────────────────────────────────── */

.linklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.linklist li { padding: 0; }
.linklist a { display: block; padding: 12px 0; font-size: 17px; line-height: 1.4; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.linklist a:hover { color: var(--muted); }

.linklist--rich li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.linklist--rich a { padding: 0; border: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.linklist__note { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.help-links { padding-top: 0; }
.help-links .eyebrow { margin-bottom: 16px; }

/* ── Справка: оглавление ─────────────────────────────────────── */

.doc-head { padding: 28px 0 0; }
.doc-head h1 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: pretty; }
.doc-head__lead { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: #1A1A1A; text-wrap: pretty; }
.doc-head__lead a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .doc-head h1 { font-size: 44px; } }

.help-index { display: flex; flex-direction: column; gap: 44px; padding-top: 44px; }
.help-block h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 800; }
.help-block h2 a:hover { color: var(--muted); }
.help-block__lead { margin: 8px 0 16px; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.doc-back { margin: 36px 0 0; font-size: 16px; color: var(--muted); }
.doc-back a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.doc-back a:hover { color: var(--ink); }

/* ── Справка: статья ─────────────────────────────────────────
   Типографика та же, что у правовых страниц, — см. блок .legal ниже. */

.doc { padding: 28px 0 72px; }
.doc h1 { margin: 0; font-size: 32px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: pretty; }
.doc__lead { margin: 16px 0 34px; font-size: 19px; line-height: 1.55; color: #1A1A1A; text-wrap: pretty; }
.doc h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; text-wrap: pretty; }
.doc p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: #1A1A1A; text-wrap: pretty; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc li { font-size: 17px; line-height: 1.6; color: #1A1A1A; text-wrap: pretty; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { font-weight: 700; }
.doc__note { margin: 24px 0; padding: 20px 22px; background: var(--surface); border-radius: var(--radius-card); }
.doc__note p { margin: 0; font-size: 16px; }
.doc__related { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc__related h2 { margin-top: 24px; font-size: 18px; }
.doc__related a { text-decoration: none; }

@media (min-width: 768px) {
  .doc { padding: 36px 0 96px; }
  .doc h1 { font-size: 40px; }
  .doc h2 { font-size: 26px; }
}

/* ── Заголовки колонок подвала ───────────────────────────────── */

.footer__head { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ── Кнопка-призрак (вторая по важности) ─────────────────────── */

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

/* ── Страница 404 ─────────────────────────────────────────────── */

.page-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 80px 24px; }
.page-404 h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.page-404__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Правовые страницы ────────────────────────────────────────── */

.legal { padding: 40px 0 72px; }
.legal__head { display: flex; flex-direction: column; gap: 12px; }
.legal h1 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: pretty; }
.legal__meta { margin: 0; font-size: 14px; color: var(--muted); }
.legal__lead { margin: 0; font-size: 18px; line-height: 1.55; color: #1A1A1A; text-wrap: pretty; }

.legal__toc { margin: 32px 0 0; padding: 20px 22px; background: var(--surface); border-radius: var(--radius-card); }
.legal__toc h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.legal__toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.legal__toc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.legal section { margin-top: 44px; scroll-margin-top: 90px; }
.legal h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; text-wrap: pretty; }
.legal h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.legal p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #1A1A1A; text-wrap: pretty; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal li { font-size: 16px; line-height: 1.6; color: #1A1A1A; text-wrap: pretty; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 700; }

.legal__note { margin: 18px 0; padding: 18px 20px; background: var(--surface); border-radius: var(--radius-card); }
.legal__note p:last-child { margin-bottom: 0; }

/* Таблицы длинные: на телефоне прокручиваются вбок, а не ломают страницу. */
.legal__scroll { overflow-x: auto; margin: 0 0 14px; }
.legal__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal__table th { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.legal__table code { font-size: 13px; background: var(--surface); border-radius: 6px; padding: 2px 6px; }

.legal__contacts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px 24px; font-size: 16px; }
.legal__contacts dt { color: var(--muted); font-size: 14px; }
.legal__contacts dd { margin: 0 0 12px; }

@media (min-width: 768px) {
  .legal { padding: 56px 0 96px; }
  .legal h1 { font-size: 44px; }
  .legal__contacts { grid-template-columns: 180px 1fr; }
  .legal__contacts dt { padding-top: 2px; }
}
