/* Ритуал ИИ — стили сайта продуктов и документов.

   Оформление собрано 08.09.2026 по образцу yandex.cloud: плавающая белая шапка в
   две строки, тяжёлые заголовки, серые плитки, тёмные и синие блоки во всю
   ширину со скруглением 48, тёмный подвал. Палитра углублена 09.09.2026 по
   просьбе человека: графит с синевой вместо чистого чёрного, глубокий синий
   вместо небесного, янтарь и шалфей вместо оранжевого и салатового.

   Имена переменных и классов сохранены с прошлой версии: их читают plan.css
   и шаблон страниц документов в build.py. Новая страница
   собирается из тех же классов плюс новые (.band, .news-card, .stats, .scenes,
   .tcard). */

/* Шрифт подключается `<link>`-ом в шапке страницы, а не `@import` отсюда:
   `@import` заставляет браузер ждать разбора всего этого файла, прежде чем он
   узнает, что за буквами надо идти. Страницы документов
   собираются тем же шаблоном, так что ссылка есть у всех. */

:root {
  --ink: #151b24;
  --ink-soft: #2f363f;
  /* Приглушённый текст. Было #6b7280: на белом 4.83, а на серой поверхности
     уже 4.11 — мимо WCAG AA. Замер 10.09.2026 Playwright'ом по всем страницам.
     #5b6472 даёт 5.98 на белом, 5.09 на поверхности, 4.68 на её ховере. */
  --muted: #5b6472;
  /* Тот же приглушённый на тёмном: #5b6472 на графите это 2.89, то есть подпись
     под маркой в подвале читалась хуже, чем на любой светлой плитке. */
  --muted-invert: #a3acba;
  --line: #dde2e9;
  --line-strong: #c3cbd6;
  --bg: #ffffff;
  --surface: #e9edf2;
  --surface-hover: #dfe4ea;
  --accent: #1f5f9f;
  --accent-hover: #184e84;
  --accent-soft: #e9edf2;
  --orange: #d9ad62;
  --lime: #9fc48b;

  --live-fg: #2c6b4a;
  --live-bg: #dff3e8;
  --partial-fg: #7a5a1a;
  --partial-bg: #fbeed3;
  --planned-fg: #5b6272;
  --planned-bg: #eceff5;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 48px;

  --shell: 1312px;
  --pad: 40px;

  --font: "Golos Text", "YS Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 12px;
}

.header .shell {
  max-width: calc(var(--shell) - 16px);
  padding: 14px 32px 0;
  background: #fff;
  border-radius: 0 0 24px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo gap actions"
    "nav nav nav";
  align-items: center;
  column-gap: 24px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.2s ease;
}

.header.is-stuck .shell {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  color: var(--ink);
}

.logo__img {
  width: 204px;
  height: auto;
  display: block;
  color: inherit;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.logo__sub {
  color: var(--ink);
  font-weight: 700;
}

.nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 0 14px;
}

.nav a {
  font-size: 15px;
  color: var(--ink);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.is-active {
  font-weight: 600;
}

.nav__contacts {
  display: none;
}

.nav__contacts .btn--primary {
  /* `.nav a` задаёт цвет графитом и по весу селектора бьёт `.btn--primary`:
     кнопка выходила графитом по графиту, то есть пустой полосой. */
  color: #fff;
}

.plan__draft {
  margin: -4px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.plan--now .plan__draft,
.plan--now .plan__audience,
.plan--now .plan__year {
  /* Приглушённый серый на янтаре — 2.88. Графит на янтаре — 8.32. */
  color: var(--ink-soft);
}

.header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  margin-right: 8px;
}

.header__phone:hover {
  color: var(--accent);
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #2a323d;
}

.btn--soft {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn--soft:hover {
  background: #f4f5f9;
  border-color: var(--line-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: #f4f5f9;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--soft-invert {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--soft-invert:hover {
  background: #eef2fb;
}

.btn--lg {
  height: 64px;
  font-size: 19px;
  border-radius: 20px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--accent);
}

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

.link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link:hover {
  text-decoration: underline;
}

/* ───────────────── Типографика секций ───────────────── */

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 40px 0 0;
}

.section--surface {
  background: transparent;
}

.eyebrow {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 14px;
}

.eyebrow--light {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.005em;
  font-weight: 900;
  line-height: 1.08;
}

.h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  max-width: 24ch;
}

.h2--wide {
  max-width: 30ch;
}

.lead {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.45;
  margin: 16px 0 0;
  max-width: 64ch;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

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

.hero {
  padding: 88px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.hero__art img {
  width: 100%;
  height: auto;
}

.hero__title {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 12ch;
}

.hero__title em {
  font-style: normal;
  color: var(--muted);
}

.hero__lead {
  font-size: 19px;
  color: var(--ink);
  max-width: 44ch;
  margin: 24px 0 0;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ───────────────── Полосы во всю ширину ───────────────── */

.band {
  border-radius: var(--r-xl);
}

.band--surface {
  background: var(--surface);
  padding: 40px 0 44px;
}

/* ───────────────── Лента новостей под первым экраном ───────────────── */

.news__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.news__track::-webkit-scrollbar {
  display: none;
}

.news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 4px 16px 4px 4px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  min-height: 164px;
  scroll-snap-align: start;
  color: var(--ink);
}

.news-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.news-card__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  min-height: 156px;
}

.news-card__media svg {
  width: 100%;
  height: 100%;
}

.news-card__body {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.news-card__caption {
  font-size: 13px;
  color: var(--muted);
}

.news-card--dark .news-card__caption {
  color: rgba(255, 255, 255, 0.6);
}

.news__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.news__btn {
  width: 48px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.news__btn:hover {
  background: #fff;
}

.news__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────────────── Подразделы карточек ───────────────── */

.card__more {
  margin-top: 6px;
  padding-top: 0;
}

.card__more summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.card__more summary::-webkit-details-marker {
  display: none;
}

.card__more summary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.card__more[open] summary svg {
  transform: rotate(180deg);
}

.card__more ul {
  margin: 4px 0 2px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card__more li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}

.card__more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* ───────────────── Вкладки ───────────────── */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 36px 0 24px;
}

.tab {
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
}

.tab:hover {
  border-color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tabs .link {
  margin-left: 12px;
}

.tabs__lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
  margin: 0 0 24px;
}

/* ───────────────── Сервисы: плитки и числа ───────────────── */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 608px;
  gap: 16px;
  align-items: stretch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 156px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.card__desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

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

.cards__all {
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  min-height: 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: #fff;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.live {
  color: var(--live-fg);
}

.badge.partial {
  color: var(--partial-fg);
}

.badge.planned {
  color: var(--planned-fg);
}

.metric-tag {
  font-size: 13px;
  color: var(--muted);
}

.stats {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.stats::before,
.stats::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.stats::before {
  top: 32px;
  right: 32px;
}

.stats::after {
  bottom: 32px;
  right: 32px;
}

.metric__value {
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.metric__label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
  max-width: 34ch;
}

/* ───────────────── Сценарии: чёрная полоса ───────────────── */

.scenes {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 80px;
}

.scenes .eyebrow {
  color: #fff;
}

.scenes .lead {
  color: rgba(255, 255, 255, 0.85);
}

.scenes__grid {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
  align-items: start;
}

.scenes__list {
  display: grid;
  gap: 8px;
}

.scene-tab {
  height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.scene-tab:hover {
  border-color: #fff;
}

.scene-tab.is-active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.scene {
  display: none;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px;
}

.scene.is-active {
  display: block;
}

.scene__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
}

.scene__label {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 8px;
}

.scene__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.scene p {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.45;
}

.scene__result {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 0;
}

.scene__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.stat {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
}

.stat__value {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat__label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.scenes__actions {
  grid-column: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────────────── Технологии: цветные карточки ───────────────── */

.tech {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 16px;
  margin-top: 40px;
}

.tcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tcard--tall {
  grid-row: span 2;
}

.tcard--blue {
  background: var(--accent);
  color: #fff;
}

.tcard--black {
  background: var(--ink);
  color: #fff;
}

.tcard--surface {
  background: var(--surface);
  color: var(--ink);
}

.tcard__kicker {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  margin: 0;
}

.tcard h4 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
}

.tcard p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.tcard__art {
  margin-top: auto;
  padding-top: 24px;
}

.tcard__art svg {
  width: 100%;
  height: auto;
}

/* ───────────────── Роадмап ───────────────── */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.wave {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px 32px 88px;
  min-height: 380px;
}

.wave--now {
  background: var(--orange);
  border-color: var(--orange);
}

.wave::before,
.wave::after {
  content: "";
  position: absolute;
  bottom: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.wave::before {
  left: 32px;
}

.wave::after {
  right: 32px;
}

.wave--now::before,
.wave--now::after {
  border-color: rgba(0, 0, 0, 0.3);
}

.wave--now::after {
  background: var(--lime);
  border-color: var(--lime);
}

.wave__period {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-block;
}

.wave__title {
  font-size: 30px;
  margin: 12px 0 18px;
  line-height: 1.1;
}

.wave ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.wave li {
  font-size: 15.5px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.wave li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* ───────────────── Интеграции ───────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.chip strong {
  font-weight: 700;
  font-size: 16px;
}

.chip span {
  font-size: 13.5px;
  color: var(--muted);
}

.chip.planned {
  background: transparent;
  border-style: dashed;
}

/* ───────────────── Призыв ───────────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.cta {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.cta p {
  font-size: 19px;
  margin: 20px 0 40px;
  max-width: 46ch;
  line-height: 1.4;
}

.cta__actions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.cta__art {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 480px;
  pointer-events: none;
}

.cta__art--left {
  left: 0;
}

.cta__art--right {
  right: 0;
}

.cta__art svg {
  width: 100%;
  height: 100%;
}

/* ───────────────── Лендинг для домов: боли, блоки с экранами, тарифы ───────────────── */

.band--black {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 80px;
}

.band--black .eyebrow,
.band--black .lead,
.scenes .feature .lead {
  color: #fff;
}

.band--black .lead,
.scenes .feature .lead {
  opacity: 0.9;
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pain {
  background: #fff;
  border-radius: 20px;
  padding: 24px 24px 26px;
  border: 1px solid var(--line-strong);
}

.pain__label {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pain__label--a {
  color: var(--live-fg);
  margin-top: 18px;
}

.pain__q {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pain__a {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.4;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.feature--flip .feature__text {
  order: 2;
}

.feature--wide {
  margin-bottom: 16px;
}

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.4;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.proof {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.4;
}

.band--black .proof {
  background: rgba(255, 255, 255, 0.1);
}

.band--black .hero__actions {
  margin-top: 28px;
}

.shot {
  margin: 0;
  display: grid;
  gap: 10px;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(21, 27, 36, 0.14);
}

.shot--dark img {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 4px;
}

.shot--dark figcaption {
  color: rgba(255, 255, 255, 0.65);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.section--surface-card .feature {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 56px;
}

.section--surface-card .stat__value {
  font-size: 32px;
}

.section--surface-card .scene__stats {
  margin-top: 28px;
}

.phone-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.phone {
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 30, 60, 0.18);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.shot--small img {
  box-shadow: 0 16px 40px rgba(20, 30, 60, 0.12);
}

.checks--light li {
  color: #fff;
}

.checks--light li::after {
  border-color: var(--ink);
}

.stats--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.stats--dark .metric__label {
  color: rgba(255, 255, 255, 0.85);
}

.stats--dark::before,
.stats--dark::after {
  border-color: rgba(255, 255, 255, 0.3);
}

.section--tight-top {
  padding-top: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan--now {
  background: var(--orange);
  border-color: var(--orange);
}

.plan__audience {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.plan--now .plan__audience {
  color: rgba(0, 0, 0, 0.65);
}

.plan__name {
  font-size: 32px;
}

.plan__price {
  margin-top: 18px;
  font-size: 17px;
}

.plan__price span {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.plan__year {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.plan--now .plan__year {
  color: rgba(0, 0, 0, 0.65);
}

.plan__label {
  margin: 24px 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan--now .plan__label {
  color: rgba(0, 0, 0, 0.65);
}

.plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.plan__list--checks li {
  padding-left: 26px;
}

.plan__list--checks li::before {
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--lime);
}

.plan__list--checks li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.plan .btn {
  margin-top: 28px;
  align-self: flex-start;
}

.plan--now .btn--primary {
  background: var(--ink);
}

.plans__notes {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 78ch;
}

.plans__notes li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.4;
}

.plans__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ───────────────── Внутренние страницы сайта ───────────────── */

.page-hero {
  padding: 80px 0 32px;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.page-hero .lead {
  font-size: 19px;
  max-width: 58ch;
  margin-top: 20px;
}

.page-hero .hero__actions {
  margin-top: 32px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.tiles--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tiles--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
}

.tile--white {
  background: #fff;
  border: 1px solid var(--line-strong);
}

.tile--black {
  background: var(--ink);
  color: #fff;
}

.tile--blue {
  background: var(--accent);
  color: #fff;
}

.tile--orange {
  background: var(--orange);
  /* Плитка стоит и на светлой странице, и внутри тёмной полосы, где цвет текста
     наследуется белым: белое на янтаре — 2.08. Графит на янтаре — 8.32. */
  color: var(--ink);
}

.tile__n {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.tile h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.4;
}

.tile ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tile li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tile__kicker {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  counter-reset: stage;
}

.journey__item {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: 20px;
  background: var(--surface);
  counter-increment: stage;
}

.journey__item::before {
  content: counter(stage);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.journey--dark .journey__item {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.journey--dark .journey__item::before {
  background: var(--lime);
  color: var(--ink);
}

.journey__item h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.journey__item p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.4;
}

.journey__item .journey__us {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.journey--dark .journey__item .journey__us {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 22px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 70ch;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 860px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  line-height: 1.4;
}

.compare thead th {
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}

.compare th:first-child {
  width: 26%;
  font-weight: 600;
}

.compare td.us {
  background: #eef4ea;
  font-weight: 600;
}

.compare tbody tr:last-child td,
.compare tbody tr:last-child th {
  border-bottom: 0;
}

.mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--line-strong);
}

.mark--yes {
  background: var(--lime);
}

.mark--part {
  background: var(--orange);
}

.mark--no {
  background: #e3e6ee;
}

.honest {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
}

.honest h3 {
  font-size: 20px;
  font-weight: 800;
}

.honest ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.honest li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.4;
}

.honest li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.feature + .feature {
  margin-top: 64px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.logos span {
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
}

.tile--black .logos span,
.tile--blue .logos span,
.band--black .logos span {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.contact-card__note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  gap: 14px;
}

.contact-card a.btn {
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 16px 20px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.demo-frame {
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}

.demo-frame iframe {
  display: block;
  width: 100%;
  height: 880px;
  border: 0;
}

/* Демо-календарь — это сборка HeroUI: полтора мегабайта на страницу, которую
   администратор чаще открывает с телефона в конторе. На широком экране он
   грузится сам, на узком — по нажатию, и кнопка честно называет вес. */
.demo-frame--closed {
  border-style: dashed;
  background: var(--surface);
}

.demo-frame--closed iframe {
  display: none;
}

.demo-frame__open {
  width: 100%;
  height: auto;
  flex-direction: column;
  gap: 4px;
  padding: 28px 20px;
  font-weight: 600;
  background: transparent;
  border: 0;
  /* `.btn` держит строку в одну линию: подпись о весе уезжала за край. */
  white-space: normal;
  text-align: center;
}

.demo-frame__open[hidden] {
  /* `[hidden]` — это `display: none` из умолчаний браузера, а `.btn` ставит
     `inline-flex` и перебивает его: нажатая кнопка оставалась на экране. */
  display: none;
}

.demo-frame__open span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

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

.footer {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 40px;
  margin-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}

.footer .logo {
  color: #fff;
}

.footer .logo__img {
  color: #fff;
}

.footer .logo__sub {
  color: #fff;
}

.footer h5 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer li a,
.footer li {
  font-size: 15px;
  color: #fff;
}

.footer li a:hover {
  /* Синий акцент на графите — 1.36: ссылка под указателем исчезала. */
  color: #8fb8e0;
}

.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-invert);
}

/* Приглушённая подпись под маркой в подвале: она стоит на графите, и общий
   `--muted` там не читается. Класс, а не `style=` в шаблоне: цвет один. */
.footer__note {
  color: var(--muted-invert);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 32ch;
}

/* ───────────────── Каталог ───────────────── */

.catalog {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}

.side {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 6px;
}

.side__title {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px 4px;
  font-weight: 500;
}

.side button {
  text-align: left;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.side button:hover {
  border-color: var(--ink);
}

.side button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.side button b {
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
}

.side button.is-active b {
  color: rgba(255, 255, 255, 0.7);
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.filters .tabs {
  margin: 0;
}

.search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.search input:focus {
  border-color: var(--ink);
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.group + .group {
  margin-top: 56px;
}

.group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.group__head h3 {
  font-size: 32px;
}

.group__head span {
  color: var(--muted);
  font-size: 15px;
}

.group__lead {
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 70ch;
  font-size: 15.5px;
}

.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}

.page-head {
  padding: 72px 0 40px;
}

.page-head h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ───────────────── Адаптив ───────────────── */

@media (max-width: 1200px) {
  .services {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 40px;
  }
  .stats::before,
  .stats::after {
    display: none;
  }
  .tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tcard--tall {
    grid-row: span 1;
    min-height: 360px;
  }
  .cta__art {
    display: none;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tiles,
  .tiles--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature--flip .feature__text {
    order: 0;
  }
  .phone-wrap {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }
  .scenes__grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 20px;
  }
  .header {
    padding: 0;
  }
  .header .shell {
    padding: 12px 20px;
    border-radius: 0 0 20px 20px;
    grid-template-areas: "logo gap actions";
    column-gap: 12px;
  }
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    grid-area: 2 / 1 / 3 / 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .header__phone {
    display: none;
  }
  .burger {
    display: grid;
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__art {
    max-width: 480px;
  }
  .band {
    border-radius: 32px;
  }
  .news__track {
    grid-auto-columns: 86%;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cards,
  .roadmap {
    grid-template-columns: 1fr;
  }
  .scenes {
    padding: 48px 0 56px;
  }
  .scenes__grid {
    grid-template-columns: 1fr;
  }
  .scenes__list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .scenes__actions {
    grid-column: 1;
  }
  .scene {
    padding: 24px;
  }
  .scene__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scene__stats {
    grid-template-columns: 1fr;
  }
  .tech {
    grid-template-columns: 1fr;
  }
  .tcard--tall {
    min-height: 320px;
  }
  .pains,
  .shots,
  .plans,
  .tiles,
  .tiles--2,
  .tiles--4,
  .journey,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 48px 0 24px;
  }
  .feature + .feature {
    margin-top: 40px;
  }
  .band--black {
    padding: 48px 0 56px;
  }
  .demo-frame iframe {
    height: 760px;
  }
  .section--surface-card .feature {
    padding: 28px 20px;
    border-radius: 32px;
  }
  .phone-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .phone {
    max-width: 260px;
  }
  .cta-band {
    padding: 64px 0;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .side__title {
    display: none;
  }
  .side button b {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn,
  .scenes__actions .btn {
    width: 100%;
  }
  .header__actions .header__plans {
    display: none;
  }
  .logo__img {
    width: 168px;
  }
  .wave {
    min-height: 0;
  }
  .tcard {
    padding: 24px;
  }
  .scene__title {
    font-size: 22px;
  }
}

/* ─────────── Телефон: буквы и цели касания ───────────

   Аудитория сайта — владелец или администратор небольшого дома, часто не
   молодой, и открывает он его с телефона между делами. Замер 10.09.2026
   Playwright'ом на 375×812 нашёл на каждой странице от десяти до шестнадцати
   разных размеров меньше 16 px и от двадцати целей касания уже 44 точек — в
   основном ссылки подвала (18 px в высоту) и меню под бургером.

   Поэтому ниже не «сделать покрупнее», а два правила с числами: на узком экране
   ни одна буква не меньше 16 px и ни одна цель касания не меньше 44 точек.
   Правила живут одним блоком в конце файла, а не правкой каждого места, чтобы
   ритм широкого экрана остался таким, каким его собрали 08.09.2026. */

@media (max-width: 980px) {
  /* Буквы. Перечень собран замером, а не на глаз: каждая строка — это класс,
     который на 375 показывал меньше 16 px. */
  .nav a,
  .btn,
  .btn--sm,
  .link,
  .lead,
  .proof,
  .checks li,
  .honest li,
  .tile p,
  .tile li,
  .tile__kicker,
  .pain__label,
  .pain__a,
  .pain__q,
  .journey__item p,
  .journey__item .journey__us,
  .logos span,
  .footer__bottom span,
  .demo-frame__open span,
  .shot figcaption,
  .stat__label,
  .metric__label,
  .scene__label,
  .scene p,
  .steps li,
  .chip span,
  .card__desc,
  .card__more li,
  .metric-tag,
  .badge,
  .plan__audience,
  .plan__year,
  .plan__label,
  .plan__draft,
  .contact-card__note,
  .plan__list li,
  .plans__notes li,
  .wave li,
  .wave__period,
  .tcard__kicker,
  .news-card__caption,
  .tabs__lead,
  .group__head span,
  .group__lead,
  .side__title,
  .compare,
  .compare thead th,
  .footer h5,
  .footer li,
  .footer li a,
  .footer__note,
  .footer__bottom {
    font-size: 16px;
  }

  /* Цели касания. `min-height` вместе с `inline-flex`: у ссылки в списке
     высота равна строке, и палец мимо неё промахивается. */
  .nav a,
  .footer li a,
  .chip,
  .tab,
  .link:not(.link--inline),
  .faq summary,
  .card__more summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer li a {
    /* Ссылка подвала занимает всю ширину колонки: промахнуться нечем. */
    display: flex;
  }

  .burger {
    width: 44px;
    height: 44px;
  }

  /* Марка — тоже ссылка, и на телефоне она была высотой в тринадцать точек.
     Ширину задаёт сама марка, добираем высоту. */
  .logo {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  /* Подвал в две колонки, а не в одну: ссылок двадцать одна, и при цели в
     44 точки одна колонка вытянула бы его на тысячу точек. */
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ─────────── Заявка на расстоянии одного нажатия ───────────

   С любой страницы и с любого её места до заявки должно быть не больше двух
   нажатий. На широком экране это шапка: «Оставить заявку» видна всегда. На
   телефоне до 10.09.2026 не было ни одного пути: обе кнопки шапки прятались
   `display: none` при 640, телефон — при 980, а под бургером лежали только
   восемь пунктов навигации. Теперь кнопка в шапке остаётся, а телефон и вторая
   кнопка ложатся в раскрытое меню, где палец их и ищет. */

@media (max-width: 980px) {
  .nav.is-open .nav__contacts {
    display: grid;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }
  .nav__contacts .btn--primary {
    width: 100%;
    height: 48px;
  }
  .nav__contacts a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
  }
  .header__actions .btn--sm {
    height: 44px;
    padding: 0 16px;
  }
}

/* Ссылка внутри предложения. Правило «цель касания 44 точки» её не берёт:
   растянутая по высоте ссылка разрывает строку, и WCAG 2.5.8 делает для
   ссылок внутри текста именно это исключение. */
.link--inline {
  display: inline;
}
