/* ============================================================
   Айса — лендинг
   Требует tokens.css (подключается первым).
   Все цвета/шрифты/скругления — только через var(--…) из токенов.
   Собственные переменные ниже — типографическая шкала для десктопа:
   токены рассчитаны на мобильное приложение, лендингу нужен крупнее.
   ============================================================ */

:root {
  /* Типографическая шкала лендинга */
  --l-h1:    clamp(32px, 3.8vw, 50px);
  --l-h2:    clamp(26px, 3.1vw, 40px);
  --l-h3:    clamp(19px, 1.5vw, 22px);
  --l-lead:  clamp(16px, 1.25vw, 19px);
  --l-body:  clamp(15px, 1.05vw, 16.5px);

  /* Ритм секций */
  --l-gutter: 24px;
  --l-max:    1160px;
  --l-section: clamp(64px, 8vw, 116px);

  /* Высота одного шага в закреплённой секции «Сессия».
     Чем меньше — тем быстрее пролистываются шаги. */
  --pin-step: 50vh;

  --header-h: 68px;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--l-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

/* У figure в браузерах свой margin 0 40px — сбрасываем, иначе заглушки визуалов
   получают лишние отступы по бокам. */
figure { margin: 0; }

.wrap {
  max-width: var(--l-max);
  margin: 0 auto;
  padding-inline: var(--l-gutter);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0;
}

.h1 { font-size: var(--l-h1); line-height: 1.12; letter-spacing: -.025em; }
.h2 { font-size: var(--l-h2); line-height: 1.16; }
.h3 { font-size: var(--l-h3); line-height: 1.25; font-weight: 600; }

.lead {
  font-size: var(--l-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 14px 0 0;
}

.micro {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--muted);
  margin: 10px 0 0;
}

.section-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-btn);
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(76,180,151,.42); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--accent-border); }

.btn-sm { padding: 12px 20px; font-size: 14.5px; }
.btn-wide { width: 100%; }

/* ============================================================
   01 — Шапка
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244,244,241,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(244,244,241,.94);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
/* Логотип — icon.svg (он же фавикон) */
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  margin-left: auto;
  font-size: 14.5px;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { flex: 0 0 auto; }

/* ============================================================
   02 — Первый экран
   ============================================================ */
.hero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 96px);
  position: relative;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero-copy .h1 { max-width: 17ch; }

/* --- Ротатор сценариев --- */
.rot {
  display: block;
  position: relative;
  margin-top: .12em;
  /* Высоту выставляет JS под текущую фразу (часть из них в две строки),
     поэтому переход по height — чтобы заголовок не прыгал. */
  transition: height .42s cubic-bezier(.22,.61,.36,1);
}
/* Единственная видимая фраза */
.rot-word {
  display: block;
  color: var(--accent-text);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .38s ease, transform .46s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
/* Уходит вверх и гаснет — быстрее, чем появляется следующая */
.rot-word.is-out {
  opacity: 0;
  transform: translateY(-.28em);
  transition: opacity .24s ease, transform .24s ease;
}
/* Стартовое положение входящей фразы (ставится без анимации) */
.rot-word.is-pre {
  opacity: 0;
  transform: translateY(.3em);
  transition: none;
}
/* Прочие варианты — в разметке для поисковиков, но не на экране */
.rot-alts { display: none; }

/* Подчёркивание «дорастает» вместе с фразой */
.rot-word span {
  display: inline;
  background-image: linear-gradient(var(--mint-300), var(--mint-300));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  padding-bottom: 2px;
}

/* inline-block + center — чтобы подпись встала по центру кнопки, а не блока */
.hero-cta {
  margin-top: clamp(22px, 2.6vw, 32px);
  display: inline-block;
  text-align: center;
}

/* Рамка визуала */
.shot {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--mint-50);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
}

/* Заглушка — пока картинки нет: пунктир и подпись вместо изображения */
.shot[data-placeholder] {
  border: 1px dashed var(--line-2);
  box-shadow: none;
  padding: 18px;
  min-height: 300px;
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line-2) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line-2) 50%, transparent calc(50% + .5px)),
    linear-gradient(150deg, var(--mint-50), var(--surface) 62%);
}
.shot figcaption {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: var(--fs-caption);
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}
/* width:100% обязателен: без него ширину задаёт содержимое (подпись),
   и в одноколоночной раскладке квадрат схлопывается. */
.shot-hero { aspect-ratio: 1; min-height: 0; width: 100%; }

/* Реальные картинки заполняют рамку целиком, без растяжения */
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ============================================================
   03 — Анонимность и защита данных
   ============================================================ */
.privacy { padding-bottom: var(--l-section); }

.priv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 28px 22px 26px;
  text-align: center;
}
.priv-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.priv-icon svg { width: 26px; height: 26px; display: block; }
.priv-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.priv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ============================================================
   04 — Ситуации
   ============================================================ */
.situations { padding-bottom: var(--l-section); }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  min-height: 132px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: 0 2px 4px rgba(24,24,20,.04), 0 14px 30px rgba(24,24,20,.07);
}
.tile::before {
  content: "";
  width: 3px;
  align-self: stretch;
  border-radius: var(--r-pill);
  background: var(--mint-200);
  margin-right: 18px;
  flex: 0 0 auto;
}
.tile-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.tile-text { margin: 0; }

/* ============================================================
   05 — Сессия (закреплённая прокрутка)
   ============================================================ */
.session {
  position: relative;
  /* высота = экран + шаг × количество шагов; задаётся здесь, JS её читает */
  height: calc(100vh + 4 * var(--pin-step));
}
.session-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.session-pin > .wrap { width: 100%; }

.session-head { margin-bottom: clamp(18px, 2.4vw, 34px); }

.session-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

/* Шаги */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 16px 18px 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, opacity .35s ease;
  opacity: .42;
  /* Шаг можно не только проскроллить, но и кликнуть */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.step:hover { opacity: .72; }
.step.is-active:hover { opacity: 1; }
.step:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.step.is-active {
  opacity: 1;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.step .n {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: 4px;
  transition: color .35s ease;
}
.step.is-active .n { color: var(--accent-text); }
.step h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* Визуал шага. Высота — от высоты окна: закреплённый экран обязан
   уместиться целиком, иначе overflow:hidden срежет заголовок и прогресс. */
.session-shot {
  position: relative;
  /* Квадрат, размер задаёт высота: закреплённый экран обязан уместиться
     целиком, иначе overflow:hidden срежет заголовок. */
  aspect-ratio: 1;
  height: clamp(230px, 50vh, 430px);
  width: auto;
  max-width: 100%;
  justify-self: center;
}
.session-shot .shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .45s ease;
}
.session-shot .shot.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Визуал внутри шага — показывается только на мобильном (см. медиазапрос).
   Объявление обязано стоять ДО медиазапроса, иначе перекроет его. */
.step .step-shot { display: none; min-height: 200px; }

/* Индикатор прогресса: заполненные слева, текущий — частично.
   Показывает, сколько осталось листать до смены картинки. */
.session-progress {
  display: flex;
  gap: 6px;
  margin-top: clamp(18px, 2.2vw, 28px);
}
.session-progress i {
  height: 3px;
  flex: 1;
  border-radius: var(--r-pill);
  background: var(--line-2);
  overflow: hidden;
  position: relative;
}
.session-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform .18s linear;
}

/* Результаты регулярной работы */
.results-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.results-stage h3 {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.25;
  margin-bottom: 14px;
}
.results-bar {
  display: flex;
  align-items: flex-end;
  height: 100px;
  padding: 16px;
  border: 1.5px solid var(--mint-200);
  border-radius: var(--r-lg) var(--r-lg) 6px 6px;
  background: var(--mint-100);
  color: var(--mint-700);
}
.results-bar span {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.results-stage:nth-child(2) .results-bar {
  height: 150px;
  background: var(--mint-200);
  border-color: var(--mint-300);
}
.results-stage:nth-child(3) .results-bar {
  height: 200px;
  background: var(--mint-300);
  border-color: var(--mint-400);
  color: var(--surface);
}
.results-stage:nth-child(4) .results-bar {
  height: 225px;
  background: var(--grad-accent);
  border-color: var(--mint-500);
  color: var(--surface);
}
@media (max-width: 600px) {
  .results-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin-top: 32px; }
  .results-stage h3 { font-size: 18px; margin-bottom: 14px; }
  .results-bar { height: 90px; padding: 16px 12px; }
  .results-stage:nth-child(2) .results-bar { height: 100px; }
  .results-stage:nth-child(3) .results-bar { height: 135px; }
  .results-stage:nth-child(4) .results-bar { height: 160px; }
}

/* Невысокие окна ноутбуков: поджимаем ритм, чтобы закреплённый экран влез */
@media (min-width: 901px) and (max-height: 820px) {
  .session-head { margin-bottom: 12px; }
  .step { padding-top: 11px; padding-bottom: 11px; }
  .steps { gap: 0; }
  .step p { font-size: 14px; }
  .session-progress { margin-top: 14px; }
}

/* ============================================================
   06 — Методы
   ============================================================ */
.methods { padding: var(--l-section) 0; }
.umbrella {
  position: relative;
  background: linear-gradient(180deg, var(--mint-50), var(--surface) 52%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px 26px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.umbrella .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  border: 0;
  border-radius: var(--r-pill);
  padding: 5px 12px;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}
.umbrella { margin-bottom: clamp(20px, 2.4vw, 30px); }
.umbrella h4 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.umbrella p { margin: 0; color: var(--ink-2); max-width: none; font-size: 14.5px; margin-inline: auto; }

.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 3vw, 48px); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.card h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
}
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-2);
}
.card li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 7px;
}
.card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-300);
}
.card .ex {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.card .ex-quote {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--ink);
}

/* ============================================================
   07 — Возможности
   ============================================================ */
.features { padding-bottom: var(--l-section); }

/* ============================================================
   08 — Сравнение
   ============================================================ */
.compare { padding-bottom: var(--l-section); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
/* Шапка конкурентов — на плотном сером, чтобы не сливалась с фоном лендинга */
thead th {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--line);
  border-bottom: 1px solid var(--line-2);
}
/* Колонка Айсы: мятная заливка + боковые границы во всю высоту */
thead th.own {
  color: #fff;
  background: var(--grad-accent);
  border-bottom-color: var(--mint-500);
}
tbody th {
  width: 160px;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 13px;
  background: var(--bg);
}
td { color: var(--ink-2); }
td.own {
  background: var(--mint-100);
  border-left: 1px solid var(--mint-200);
  border-right: 1px solid var(--mint-200);
  font-weight: 500;
  color: var(--ink);
}
tbody tr:last-child td.own { border-bottom: 1px solid var(--mint-200); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom-width: 0; }
tbody tr:last-child td.own { border-bottom-width: 1px; }

.disclaimer {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
  margin-top: 24px;
  max-width: 80ch;
}

/* ============================================================
   09 — Вопросы
   ============================================================ */
.faq { padding-bottom: var(--l-section); }
.faq-col { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
/* Раскрытие анимирует JS: высоту <details> нативно не оживить */
.faq-body {
  overflow: hidden;
  transition: height .32s cubic-bezier(.22,.61,.36,1);
}
.faq-item p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ============================================================
   10 — Тариф
   ============================================================ */
.pricing { padding-bottom: var(--l-section); }
.features .section-head, .pricing .section-head { margin-bottom: 28px; }
.subscription {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--surface);
  border: 2px solid var(--accent-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.billing-switch {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
  background: var(--mint-50);
}
.billing-option {
  border: 0;
  border-radius: var(--r-pill);
  padding: 10px 22px;
  background: transparent;
  color: var(--mint-700);
  font: 700 16px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}
.billing-option[aria-pressed="true"] {
  background: var(--grad-accent);
  color: var(--surface);
  box-shadow: var(--shadow-btn);
}
.billing-option:focus-visible { outline: 2px solid var(--mint-700); outline-offset: 3px; }
.subscription-price { margin: 18px 0; }
.subscription-amount {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.2;
}
.subscription-amount small {
  font: 400 17px var(--font-sans);
  color: var(--muted);
  white-space: nowrap;
}
.subscription-period { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.subscription-benefits {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 20px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-2);
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
}
.subscription-benefits li { display: flex; align-items: baseline; gap: 12px; }
.subscription-benefits li::before { content: "✓"; color: var(--accent-strong); flex: 0 0 auto; }
.subscription .btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.3; }
.subscription .micro { margin-top: 10px; }

/* ============================================================
   11 — Финальный экран
   ============================================================ */
.final { padding-bottom: var(--l-section); }
.final-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(44px, 6vw, 76px) 28px;
  text-align: center;
}
.final-inner .h2 { max-width: 22ch; margin: 0 auto 12px; }

/* ============================================================
   12 — Футер
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line-2);
  padding: clamp(40px, 4vw, 60px) 0 40px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--accent-text); }
.footer-cols .ttl {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-about { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 14px 0 0; max-width: 34ch; }

/* ============================================================
   Появление секций при скролле
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1000px) {
  /* Карточки со списками в две колонки не помещаются: пункты начинают
     переноситься по одному слову, а третья карточка висит одна в ряду. */
  .g3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  /* Карточки приватности короткие — на мобиле разворачиваем их в строки */
  .priv-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 20px;
  }
  .priv-icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin: 0;
  }
  .priv-icon svg { width: 22px; height: 22px; }
  .priv-card h4 { margin-bottom: 4px; }
}

/* Первый экран держит две колонки до планшета: в одну колонку он ломается
   только на телефоне, где фото занимает всю ширину и встаёт вровень с текстом. */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy .h1 { max-width: 18ch; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .g2 { grid-template-columns: 1fr; }

  /* Закрепление отключено: на телефоне шаги идут обычным списком,
     у каждого — свой визуал. */
  .session { height: auto; padding-bottom: var(--l-section); }
  .session-pin { position: static; height: auto; min-height: 0; display: block; overflow: visible; }
  .session-grid { grid-template-columns: 1fr; gap: 0; }
  .session-progress { display: none; }
  .steps { gap: 22px; }
  .step {
    opacity: 1;
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow);
    padding: 20px;
    cursor: default;   /* кликать нечего: шаги и так все раскрыты */
  }
  .step:hover { opacity: 1; }
  .step .n { color: var(--accent-text); }
  /* Визуал переезжает внутрь каждого шага (grid — чтобы подпись осталась по центру) */
  .session-shot { display: none; }
  .step .step-shot {
    display: grid;
    margin-top: 16px;
    aspect-ratio: 1;
    min-height: 0;
    max-width: 260px;   /* было во всю ширину карточки — слишком крупно */
  }
}

@media (max-width: 640px) {
  :root { --l-gutter: 18px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; font-size: 16px; padding: 20px 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; }
  .header-cta { width: auto; }
  .site-header .btn { width: auto; }
}

/* ============================================================
   Уважение к prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rot, .rot-word { transition: none; transform: none; }
  .btn, .tile, .card, .shot, .step, .session-shot .shot { transition: none; }
}

/* ============================================================
   Страницы документов (/offer, /privacy, /terms)
   ============================================================ */
.doc { padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }

/* Колонка чтения: левый край совпадает с сеткой главной, длина строки
   ограничена — юридический текст во всю ширину 1160px нечитаем. */
.doc-body { max-width: 100%; }

.doc-back {
  display: inline-block;
  margin-bottom: clamp(20px, 2.6vw, 32px);
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
}
.doc-back:hover { color: var(--accent-text); }

.doc h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
.doc h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
  font-weight: 600;
  margin: 44px 0 14px;
}
.doc h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.doc p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent-text); }

.doc ul { margin: 0 0 16px; padding: 0; list-style: none; }
.doc li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.doc li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-300);
}

/* Разделители в исходнике стоят перед каждым разделом — держим их еле заметными */
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0 0;
}

.doc-table { overflow-x: auto; margin: 0 0 20px; }
.doc-table table { min-width: 480px; font-size: 14.5px; }
.doc-table th, .doc-table td { padding: 12px 14px; }

/* Общая рамка интегративного подхода и примеры трёх методов. */
.methods .section-head { margin-bottom: 44px; }
.methods-family .methods-intro,
.methods-family .method-context { font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 1.4; }
.methods-family { padding: 20px 24px 22px; background: linear-gradient(180deg, var(--mint-50), var(--bg)); box-shadow: none; }
.methods-family-title { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.methods-family .methods-intro { max-width: 92ch; margin: 0 auto 18px; }
.method-examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.method-example-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.method-example-card h4 { font-size: 24px; margin: 0 0 8px; }
.method-example-card .method-context { color: var(--muted); font-size: 14px; min-height: 3em; margin: 0 0 14px; }
.method-quotes { padding: 0; margin: 0; list-style: none; font-family: var(--font-serif); font-size: 17px; line-height: 1.3; }
.method-quotes li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.method-quotes li:first-child { padding-top: 0; }
.method-quotes li:last-child { padding-bottom: 0; border-bottom: 0; }
@media (max-width: 700px) {
  .methods-family { padding: 30px 16px 16px; }
  .methods-family-title { font-size: 23px; }
  .method-examples-grid { grid-template-columns: 1fr; gap: 16px; }
  .method-example-card { padding: 22px; }
  .method-example-card .method-context { min-height: 0; }
  .method-quotes { font-size: 17px; }
}

@media (min-width: 701px) {
  .methods { padding-top: 28px; }
}
