/* ═══════════════════════ Витрина: sentos.me ═══════════════════════
   Файл свой целиком: из приложения не подключается ничего, даже
   палитра — тона переписаны с тёмной темы веб-версии (css/base.css).

   Правила те же, что в интерфейсе: единственный акцент —
   красно-оранжевый; ни рамок, ни теней; блоки разделены расстоянием
   и тональными заливками; всё нажимаемое круглое. Исключения — края
   видео и мягкое свечение за блоками: без них видео торчит
   прямоугольником, а тёмная страница выглядит пустой.

   Сетка — 1200 px по центру: в неё встают и шапка, и текст первого
   экрана, и все пояса ниже. За её край выходит только видео.

   Страница всегда тёмная: видео под затемнением на светлой странице
   выглядит грязным пятном, а не фоном. */

@font-face {
  font-family: "SF Pro Text";
  src: url("/l/SF-Pro-Text-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("/l/SF-Pro-Text-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/l/SF-Pro-Display-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --page: #111111;
  --panel: #191919;
  --panel-up: #1f1f1f;
  --field: #242424;
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ef6f55;
  --accent-soft: #37211b;
  --accent-fill: #c4472f;
  --accent-fill-press: #a8412c;
  --brand: #ff4b2b;
  --bubble-in: #262626;
  --bubble-out: #a8412c;
  --online: #3fb950;

  /* Полупрозрачный тон кнопок на видео и всего, что к ним относится
     (меню языка): держится на любом кадре. */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-up: rgba(255, 255, 255, 0.16);

  /* То же, что --page, но прозрачное: края видео тают в страницу. */
  --page-0: rgba(17, 17, 17, 0);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --grid: 1200px;
  /* Отступ, при котором содержимое встаёт в сетку 1200 по центру,
     а на узком экране — не ближе --gutter к краю. */
  --side: max(var(--gutter), calc((100% - var(--grid)) / 2));
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--page);
  color: var(--text);
  font: 400 15px/1.5 "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-synthesis: none;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p, figure { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.pill:active { transform: scale(0.96); }

.pill-main {
  background: var(--accent-fill);
  color: #fff;
}

.pill-main:hover { background: #d0503a; }
.pill-main:active { background: var(--accent-fill-press); }

.pill-big { min-height: 48px; padding: 0 26px; font-size: 16px; }

.pill-quiet {
  background: var(--glass);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pill-quiet:hover { background: var(--glass-up); }

.pill:focus-visible,
.top-nav a:focus-visible,
.qa summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--side);
}

/* Видео — правая часть экрана. Ширина больше половины: левый край
   тает в страницу, и видимая часть как раз начинается у текста. */
.hero-media {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
  background: var(--page) url("/l/hero.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

/* Показываем, только когда видео действительно пошло (land.js). */
.hero.is-playing .hero-video { opacity: 1; }

/* Затемнение и края: ровная вуаль по всему кадру, поверх — края;
   левый шире остальных, по нему видео переходит в текст. */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--page) 0%, rgba(17, 17, 17, 0.85) 18%, var(--page-0) 55%),
    linear-gradient(to bottom, var(--page) 0%, var(--page-0) 22%),
    linear-gradient(to top, var(--page) 0%, var(--page-0) 28%),
    linear-gradient(to left, rgba(17, 17, 17, 0.7) 0%, var(--page-0) 18%),
    rgba(17, 17, 17, 0.45);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-mark { display: block; width: 28px; height: 28px; }

.top-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.top-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.top-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.top-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav + .top-side { margin-left: 8px; }

.top .pill { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ─── Соцсети ─── */

.socials {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soc {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.soc svg { width: 16px; height: 16px; }
.soc:hover { background: var(--glass); color: var(--text); }
.soc:active { transform: scale(0.92); }
.soc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Язык ───
   <details>: без скрипта открывается и закрывается сам. land.js
   добавляет движение — меню вырастает из кнопки и уходит в неё же, —
   и закрывает его щелчком мимо и клавишей Esc.

   Меню того же тона, что кнопка: в шапке полупрозрачное с размытием,
   как всё на видео; в подвале тот же тон ложится на ровную страницу
   и выглядит сплошным. */

.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.2s var(--ease);
}

.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover,
.lang[open] .lang-btn { background: var(--glass-up); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.flag {
  flex: none;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  /* Тонкий светлый ободок внутрь: белая полоса флага не сливается с
     тёмной кнопкой. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.flag svg { display: block; width: 100%; height: 100%; }

.chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.lang[open] .chev { transform: rotate(180deg); }
.lang.is-closing .chev { transform: none; }

.lang-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 136px;
  padding: 4px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  transform-origin: top right;
}

.lang-up .lang-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 14px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-menu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* Текущий язык — с галочкой справа. */
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after {
  content: "";
  width: 11px;
  height: 6px;
  margin: -3px 2px 0 auto;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* ─────────────────────────── Текст первого экрана ─────────────────────────── */

.hero-say {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 540px;
  padding: 40px 0 80px;
}

.title {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  max-width: 470px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Три коротких обещания под кнопками — точками, как статус «в сети». */
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.marks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Появление: текст поднимается тем же движением, каким в приложении
   приходят сообщения, — по очереди, сверху вниз. */
@media (prefers-reduced-motion: no-preference) {
  .hero-say > * { animation: rise 0.9s var(--ease) both; }
  .hero-say > :nth-child(2) { animation-delay: 0.08s; }
  .hero-say > :nth-child(3) { animation-delay: 0.16s; }
  .hero-say > :nth-child(4) { animation-delay: 0.24s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Остальное появляется при прокрутке (land.js ставит .js на <html>:
   без скрипта всё видно сразу). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js [data-rise].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────── Пояса ─────────────────────────── */

.band {
  position: relative;
  isolation: isolate;
  padding: 80px var(--side) 16px;
}

.band-head { max-width: 640px; margin-bottom: 32px; }

.head {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sub {
  margin-top: 14px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--field);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag-warm { background: var(--accent-soft); color: var(--accent); }

/* ─────────────────────────── Что такое Sentos ───────────────────────────
   Определение слева, сводка фактов справа — строками, как список
   настроек в приложении. */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: center;
}

.about-def {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.about-def b { color: var(--text); font-weight: 500; }

.about-more {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.about-facts {
  margin: 0;
  padding: 10px 30px;
  border-radius: 36px;
  background: var(--panel);
}

.about-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
}

/* Волосяная черта между строками, как в списках приложения. */
.about-row + .about-row { box-shadow: inset 0 1px rgba(255, 255, 255, 0.07); }

.about-row dt { color: var(--muted); font-size: 14px; }
.about-row dd { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.45; }

/* ─────────────────────── Что видите вы / сервер ─────────────────────── */

/* Мягкое свечение акцентом за парой карточек: без него тёмный пояс
   проваливается. */
.seen::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: min(820px, 120vw);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(239, 111, 85, 0.12), rgba(239, 111, 85, 0));
  pointer-events: none;
}

.seen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* min-width: 0 обязателен: строки шума не переносятся, и без него
   карточка растягивает колонку, а с ней всю страницу, шире экрана. */
.seen-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 36px;
  background: var(--panel);
}

.seen-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

/* Переписка — те же пузыри и тона, что в приложении, собранные
   вручную. */
.talk {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--page);
  overflow: hidden;
}

.talk-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--panel-up);
}

.talk-face {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7c5cc4;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.talk-who { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.talk-who b { font-weight: 500; }
.talk-who i { color: var(--online); font-style: normal; font-size: 12px; }

.talk-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 14px;
}

.bub {
  position: relative;
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.bub time {
  margin-left: 8px;
  float: right;
  position: relative;
  top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.bub.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 5px; }
.bub.out { align-self: flex-end; background: var(--bubble-out); color: #f7f2f0; border-bottom-right-radius: 5px; }

.bub-typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.bub-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}
.bub-typing i:nth-child(2) { animation-delay: 0.15s; }
.bub-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Шум: строки базы, как их видит сервер. land.js их перемешивает. */
.noise {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 20px;
  border-radius: 26px;
  background: var(--page);
  overflow: hidden;
}

.noise-row {
  display: flex;
  gap: 12px;
  min-width: 0;
  font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.noise-row b { flex: none; color: var(--faint); font-weight: 400; }

.noise-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--accent);
  opacity: 0.85;
  white-space: nowrap;
  text-overflow: clip;
  font: inherit;
  transition: opacity 0.4s var(--ease);
}

.noise-row code.is-flip { opacity: 0.25; }

.seen-note { color: var(--muted); font-size: 13px; line-height: 1.5; }

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact {
  padding: 30px;
  border-radius: 36px;
  background: var(--panel);
  transition: background-color 0.3s var(--ease);
}

.fact:hover { background: var(--panel-up); }

/* Первая и последняя — на две колонки: сетка из девяти одинаковых
   клеток читается таблицей, а не рассказом. */
.fact-wide { grid-column: span 2; }

.fact-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.fact-mark svg { width: 22px; height: 22px; }

.fact-mark svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.fact p {
  margin-top: 6px;
  max-width: 440px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ─────────────────────────── Как начать ─────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 30px;
  border-radius: 36px;
  background: var(--panel);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  font-family: "SF Pro Display", "SF Pro Text", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.step h3 { font-size: 18px; line-height: 1.25; }
.step p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ─────────────────────────── Вопросы ─────────────────────────── */

/* Вопросы стоят колонкой по центру сетки, заголовок — над ними. */
#faq .band-head { margin-left: auto; margin-right: auto; text-align: center; }

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.qa {
  border-radius: 32px;
  background: var(--panel);
  transition: background-color 0.3s var(--ease);
}

.qa[open] { background: var(--panel-up); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 22px 28px;
  border-radius: 32px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  /* Двойной щелчок по вопросу открывает-закрывает его, а не выделяет
     слово. */
  -webkit-user-select: none;
  user-select: none;
}

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

/* Плюс, который поворачивается в крестик. */
.qa summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--field);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease);
}

.qa[open] summary::after { transform: rotate(45deg); }
.qa.is-closing summary::after { transform: none; }

.qa-body { overflow: hidden; }

.qa p {
  padding: 0 28px 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ─────────────────────────── Финал ─────────────────────────── */

.final {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 88px;
  padding: 0 var(--side);
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(680px, 120vw);
  height: 380px;
  transform: translate(-50%, -18%);
  background: radial-gradient(closest-side, rgba(255, 75, 43, 0.16), rgba(255, 75, 43, 0));
  pointer-events: none;
}

.final-mark { display: block; width: 56px; height: 56px; margin-bottom: 22px; }

.final-title {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.final .sub { margin: 12px auto 26px; }

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

.foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 104px;
  padding: 22px var(--side) max(26px, env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 13px;
}

.foot-about {
  margin: 0 0 4px;
  max-width: 620px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a:hover { color: var(--text); }

.foot .socials { margin-left: -9px; }

/* ─────────────────────────── Планшет ─────────────────────────── */

@media (max-width: 1024px) {
  .top-nav { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-wide { grid-column: span 2; }
}

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

@media (max-width: 860px) {
  /* Высота видео — от ширины, а не от экрана: ролик квадратный, и на
     высоком телефоне кадр в две трети экрана только растягивался, а
     текст уезжал к самому низу. Первый экран больше не тянется на всю
     высоту: заголовок встаёт на нижний край видео, под кнопками уже
     видно следующий пояс. */
  .hero {
    --media-h: min(66svh, 120vw);
    min-height: 0;
  }

  .hero-media {
    left: 0;
    width: 100%;
    bottom: auto;
    height: min(66vh, 120vw);
    height: var(--media-h);
    /* Низ растворяет само видео, а не только вуаль поверх: на планшете
       вуаль у нижнего края не дотягивала, и кадр кончался чертой. */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }

  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(17, 17, 17, 0.7) 0%, var(--page-0) 20%),
      linear-gradient(to top, var(--page) 0%, rgba(17, 17, 17, 0.75) 22%, var(--page-0) 55%),
      rgba(17, 17, 17, 0.2);
  }

  .top { min-height: 64px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }

  /* 64 — высота шапки, 120 — насколько заголовок заходит на
     растворяющийся низ кадра. */
  .hero-say {
    flex: none;
    justify-content: flex-start;
    align-items: center;
    max-width: 520px;
    margin: max(96px, calc(var(--media-h) - 64px - 120px)) auto 0;
    padding: 0 0 8px;
    text-align: center;
  }

  .title { font-size: clamp(28px, 7.8vw, 42px); }

  .lead { margin: 12px auto 0; font-size: 15px; }

  .acts { justify-content: center; margin-top: 22px; }

  .marks { justify-content: center; margin-top: 18px; font-size: 12px; }

  .band { padding-top: 60px; }

  .band-head { margin-bottom: 22px; }

  .head { font-size: 25px; }

  .sub { margin-top: 10px; font-size: 15px; }

  .seen-pair,
  .facts,
  .steps,
  .about-grid { grid-template-columns: minmax(0, 1fr); }

  .about-def { margin-top: 12px; font-size: 16px; }
  .about-more { font-size: 14.5px; }
  .about-facts { margin-top: 12px; padding: 4px 22px; border-radius: 30px; }
  .about-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 13px 0; }
  .about-row dt { font-size: 13px; }
  .about-row dd { font-size: 14px; }
  .foot-about { margin: 0 auto 4px; text-align: center; }

  .fact-wide { grid-column: auto; }

  .fact,
  .step { padding: 22px; border-radius: 30px; }

  .fact-mark { width: 40px; height: 40px; margin-bottom: 16px; }
  .fact-mark svg { width: 20px; height: 20px; }

  .fact h3,
  .step h3 { font-size: 16.5px; }

  .fact p,
  .step p { font-size: 14px; }

  .step-n { width: 36px; height: 36px; margin-bottom: 16px; font-size: 15px; }

  .seen-card { padding: 14px; border-radius: 30px; gap: 14px; }
  .talk, .noise { border-radius: 22px; }
  .seen-label { padding: 2px 4px 0; }
  .bub { font-size: 13.5px; }
  .noise { padding: 14px; }
  .noise-row { font-size: 11px; gap: 10px; }

  .qa, .qa summary { border-radius: 26px; }
  .qa summary { padding: 17px 16px 17px 20px; font-size: 15px; }
  .qa summary::after { width: 28px; height: 28px; }
  .qa p { padding: 0 20px 20px; font-size: 14px; }

  .final { margin-top: 64px; }
  .final-mark { width: 48px; height: 48px; margin-bottom: 18px; }
  .final-title { font-size: 30px; }

  .foot { margin-top: 80px; }
  .foot-row { flex-direction: column; }
  .foot .socials { margin-left: 0; }

  /* В подвале телефона кнопка языка стоит по центру — и меню над ней
     тоже по центру, а не уезжает влево на навигацию. */
  .foot .lang-menu {
    right: auto;
    left: 50%;
    margin-left: -68px;
    transform-origin: bottom center;
  }
}

/* Соцсети в шапке телефона не помещаются рядом с языком и «Войти» —
   там они в подвале. */
@media (max-width: 640px) {
  .top .socials { display: none; }
}

/* Кнопки друг под другом, но не во всю ширину: на всю ширину они
   читаются полосами, а не кнопками. */
@media (max-width: 420px) {
  .pill { min-height: 42px; font-size: 14.5px; }
  .acts { flex-direction: column; align-items: center; align-self: stretch; gap: 8px; }
  .acts .pill { width: 100%; max-width: 240px; }
  .pill-big { min-height: 46px; font-size: 15px; }
  .top .pill { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
  .lang-btn { min-height: 34px; padding: 0 6px 0 5px; }
  .lang-code { display: none; }
}
