/* ==========================================================================
   UMAMO — лендинг umamo.app
   Решения (подробно — DESIGN.md):
   • Светлая тема, один акцент — красный бренда. Нейтрали одной семьи с лёгким
     оттенком красного (hue ≈ 25), чистых #000 и #fff в фонах и тексте нет.
   • Кнопки — пилюли; крупные контейнеры — 20px; мелкие (кадры, списки) — 12px.
   • Шкала отступов 4/8/12/16/24/32/48/64/96/128.
   • Движение: ease-out cubic-bezier(.23,1,.32,1) для входов, ease-in-out
     cubic-bezier(.77,0,.175,1) для перемещения, ease для цвета; ease-in нет.
   • RTL — базовый макет, только логические свойства.
   ========================================================================== */

:root {
  --bg: #faf9f9;
  --surface: #fefefe;
  --sunk: #f2f0ef;
  --line: #e4e1e0;
  --line-strong: #cbc5c3;
  --ink: #1a1a1a;
  --ink-2: #4d4948;
  --ink-3: #6b6564;

  /* Один красный — цвет логотипа UMAMO.app */
  --red: #af0c1f;            /* графика: линия сканирования */
  --red-fill: #af0c1f;       /* заливка кнопок: белый текст 7:1 */
  --red-fill-hover: #930919; /* 8.9:1 */
  --red-ink: #af0c1f;        /* красный текст на светлом: 6.9:1 */

  --dark: #1a1a1a;
  --on-dark: #f5f3f2;
  --on-dark-2: #bdb7b5;

  --focus: var(--red-ink);

  --shadow-1: 0 1px 2px rgb(40 20 20 / 0.06), 0 4px 12px -2px rgb(40 20 20 / 0.08);
  --shadow-2: 0 2px 4px rgb(40 20 20 / 0.05), 0 18px 40px -12px rgb(40 20 20 / 0.22);
  --shadow-device: 0 40px 70px -30px rgb(40 12 12 / 0.45), 0 14px 28px -14px rgb(40 12 12 / 0.3);

  --r-lg: 20px;
  --r-sm: 12px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 16px;
  --wrap: 1200px;
  --header-h: 60px;

  --section: clamp(64px, 6vw + 32px, 112px);
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --header-h: 68px; } }

/* ─── База ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-strong) transparent;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red-ink);
  overflow-x: clip;
}
:lang(he) body, :lang(ar) body, body:lang(he), body:lang(ar) { line-height: 1.68; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: #f3d2d6; color: var(--ink); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir='rtl'] .dir-icon { transform: scaleX(-1); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  max-width: calc(100vw - 24px);
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

/* ─── Типографика ролей ────────────────────────────────────────────────── */
h1, .h2, h3 { text-wrap: balance; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
p { text-wrap: pretty; }

.h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}
:lang(he) .h2, :lang(ar) .h2, :lang(he) h1, :lang(ar) h1 { letter-spacing: 0; }

.lede {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.num, .price, table td { font-variant-numeric: tabular-nums; }

/* ─── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.125rem; }
.btn-sm { min-height: 40px; padding-inline: 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--red-fill); color: #fffafa; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-fill-hover); }
  .btn-ghost:hover { background: var(--sunk); border-color: var(--ink-3); }
  .btn-outline:hover { background: var(--ink); color: var(--bg); }
}

/* На десктопе подпись кнопки всегда в одну строку; на телефоне при крупном тексте ей можно переноситься. */
@media (max-width: 359px) { .btn { padding-inline: 16px; overflow-wrap: anywhere; } }
@media (min-width: 600px) { .btn { white-space: nowrap; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--sunk); } }


/* ─── Шапка ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
/* Логотип — UMAMO.app с подписью, как в исходнике (не перекрашивать); в узкой шапке — значок «O» из него же. */
.brand-logo { width: auto; height: 26px; }
@media (min-width: 960px) { .site-header .brand-logo { height: 32px; } }
.brand-logo-footer { height: 33px; }
.brand-icon { display: none; width: 19px; height: 19px; }

.main-nav { display: none; margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--ink); background: var(--sunk); } }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (min-width: 1180px) { .header-actions { margin-inline-start: 0; } .main-nav { display: block; } }

.login-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  font-weight: 500;
  font-size: 0.9688rem;
  text-decoration: none;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) { .login-link:hover { text-decoration: underline; } }

.header-cta { display: none; }
.nav-toggle { width: 44px; height: 44px; }

@media (max-width: 859px) {
  .header-cta { padding-inline: 14px; font-size: 0.875rem; min-height: 40px; }
  html.show-cta .header-cta { display: inline-flex; }
  .lang { display: none; }
}
@media (max-width: 479px) {
  html.show-cta .site-header .brand-logo, .doc-body .site-header .brand-logo { display: none; }
  html.show-cta .site-header .brand-icon, .doc-body .site-header .brand-icon { display: block; }
}
/* Крупный текст или сильное увеличение: кнопка в шапке не помещается — остаётся в меню. */
@media (max-width: 359px) { .header-cta { display: none !important; } }
@media (max-width: 299px) { .site-header .brand-logo { display: none; } .site-header .brand-icon { display: block; } }
@media (min-width: 860px) {
  .header-cta, .login-link { display: inline-flex; }
}
@media (min-width: 1180px) { .nav-toggle { display: none; } }

/* Переключатель языка */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.lang-btn .caret { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
.lang-btn[aria-expanded='true'] .caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .lang-btn:hover { background: var(--sunk); } }

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 50;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transform-origin: top;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
@starting-style { .lang-list { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.lang-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  text-decoration: none;
}
.lang-list a[aria-current] { background: var(--sunk); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .lang-list a:hover { background: var(--sunk); } }

/* Мобильная навигация — модальный лист */
.nav-sheet {
  border: 0;
  padding: 20px;
  color: var(--ink);
  background: var(--bg);
}
.nav-sheet {
  margin: 0;
  margin-inline-start: auto;
  width: min(420px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  inset-block: 0;
  display: none;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.nav-sheet[open] {
  display: flex;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
}
@starting-style { .nav-sheet[open] { opacity: 0; transform: translateX(calc(24px * var(--dir, 1))); } }
[dir='rtl'] .nav-sheet { --dir: -1; }
.nav-sheet::backdrop { background: rgb(26 26 26 / 0.45); }

.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
}
.sheet-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
}
.sheet-langs a[aria-current] { border-color: var(--ink); font-weight: 600; }
.sheet-actions { display: grid; gap: 12px; margin-top: auto; }

/* ─── Устройство и бумага (общие для блоков 1 и 2) ─────────────────────── */
.phone {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 16% / 7.4%;
  background: #1a1a1a;
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px rgb(255 255 255 / 0.09);
}
.phone-screen {
  position: absolute;
  inset: 1.7% 3.6%;
  overflow: hidden;
  border-radius: 12.5% / 5.8%;
  background: #211b18;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.paper {
  position: relative;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: 1px solid #ebe8e7;
  border-radius: 3px;
  background: #fefefd;
  color: #262222;
  box-shadow: var(--shadow-2);
  container-type: inline-size;
}
.paper-inner {
  display: flex;
  flex-direction: column;
  gap: 1.8cqi;
  height: 100%;
  padding: 10cqi 10cqi 8cqi;
  font-size: 4.9cqi;
  line-height: 1.35;
}
.paper-name { font-size: 8.4cqi; font-weight: 700; text-align: center; letter-spacing: 0.02em; }
.paper-tag { margin-bottom: 3cqi; color: #6b6564; font-size: 3.8cqi; text-align: center; }
.paper-h {
  margin-top: 4cqi;
  padding-bottom: 1.2cqi;
  border-bottom: 1px solid #262222;
  font-size: 4.5cqi;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.paper-row { display: flex; align-items: baseline; gap: 2cqi; }
.paper-row i { flex: 1; translate: 0 -0.3em; border-bottom: 1.5px dotted #a19998; }
.paper-price { font-variant-numeric: tabular-nums; font-weight: 500; }
.paper-foot { margin-top: auto; color: #6b6564; font-size: 3.6cqi; text-align: center; }

/* ─── Блок 1. Первый экран ─────────────────────────────────────────────── */
.hero { padding-block: clamp(20px, 3.5vw, 56px) clamp(40px, 5vw, 72px); }
.hero-grid, .sells-grid, .faq-grid, .footer-grid, .law-list, .steps, .theses, .feature-grid, .langs-inner, .lang-rows {
  grid-template-columns: minmax(0, 1fr);
}
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: 40px; }
  .hero-visual { max-width: 560px; }
}

.hero h1 {
  font-size: clamp(2.125rem, 1.35rem + 2.8vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
html:lang(en) .hero h1 { font-size: clamp(2.125rem, 1.35rem + 2.4vw, 3rem); }
html:lang(fr) .hero h1, html:lang(ru) .hero h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem); }
/* На десктопе каждое предложение — своя строка: заголовок ровно в 2 строки. */
@media (min-width: 960px) { .hero h1 span { display: block; } }

.hero-sub {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}
.hero-ctas { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 600px) { .hero-ctas { display: flex; flex-wrap: wrap; } }
.hero-note { margin-top: 16px; color: var(--ink-3); font-size: 0.9375rem; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 0.98;
  margin-inline: auto;
  container-type: inline-size;
}
.hero-paper {
  position: absolute;
  top: 9%;
  inset-inline-start: 2%;
  width: 53%;
  rotate: 2.5deg;
}
[dir='ltr'] .hero-paper { rotate: -2.5deg; }
.hero-phone {
  position: absolute;
  top: 0;
  inset-inline-end: 2%;
  width: 43%;
  transition: translate 900ms var(--ease-out);
}
@starting-style { .hero-phone { translate: 0 28px; } }
.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 44%;
  inset-inline-start: 55.5%;
  translate: calc(-50% * var(--dir, 1)) 0;
  display: grid;
  place-items: center;
  width: 12cqi;
  height: 12cqi;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-pill);
  background: var(--red-fill);
  color: #fffafa;
  box-shadow: 0 10px 22px -8px rgb(110 6 18 / 0.5);
}
.hero-arrow .icon { width: 46%; height: 46%; }
[dir='rtl'] .hero-visual { --dir: -1; }

/* ─── Секции ───────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-tint { background: var(--sunk); }

/* ─── Блок 2. Как это работает ─────────────────────────────────────────── */
.how { padding-top: calc(var(--section) * 0.6); }
.stage-wrap { position: relative; margin-top: 40px; }
.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sunk);
  container-type: inline-size;
}
@media (min-width: 760px) { .stage { aspect-ratio: 16 / 8.2; } }

.stage-paper { position: absolute; top: 6%; inset-inline-start: 7cqi; width: 54cqi; rotate: 2deg; }
.stage-phone { position: absolute; top: 33%; inset-inline-end: 7cqi; width: 46cqi; }
.stage-tent { position: absolute; bottom: 5%; inset-inline-start: 9cqi; width: 34cqi; }
@media (min-width: 760px) {
  .stage-paper { top: 11%; inset-inline-start: 9cqi; width: 26cqi; }
  .stage-phone { top: 8%; inset-inline-start: 42cqi; inset-inline-end: auto; width: 22cqi; }
  .stage-tent { top: 30%; bottom: auto; inset-inline-start: auto; inset-inline-end: 8cqi; width: 18cqi; }
}
[dir='ltr'] .stage-paper { rotate: -2deg; }

.tent-card {
  display: grid;
  justify-items: center;
  gap: 5%;
  padding: 11% 11% 9%;
  border-radius: var(--r-sm);
  background: #fefefd;
  box-shadow: var(--shadow-2);
}
.tent-qr { width: 100%; aspect-ratio: 1; }
.tent-qr svg { display: block; width: 100%; height: 100%; }
.tent-text { font-size: clamp(0.625rem, 3cqi, 1rem); font-weight: 600; text-align: center; line-height: 1.2; }
@media (min-width: 760px) { .tent-text { font-size: clamp(0.625rem, 1.5cqi, 1.0625rem); } }

.scanline {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 22%;
  border-bottom: 2px solid var(--red);
  background: linear-gradient(to bottom, rgb(175 12 31 / 0), rgb(175 12 31 / 0.12));
  transform: translateY(-110%);
  pointer-events: none;
}

.stage-toggle {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
}
.stage-toggle .i-play { display: none; }
.stage-toggle[aria-pressed='true'] .i-pause { display: none; }
.stage-toggle[aria-pressed='true'] .i-play { display: inline; }
html:not(.js) .stage-toggle { display: none; }

/* Хореография (JS ставит data-phase 0→1→2→3). Без JS — финальное состояние. */
.js .stage .phone-screen { clip-path: inset(0 0 100% 0); transition: clip-path 1500ms var(--ease-in-out); }
.js .stage .stage-tent { opacity: 0; transform: translateY(8%) scale(0.96); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.js .stage .scanline { transition: transform 2200ms var(--ease-in-out), opacity 300ms ease; }
.js .stage .stage-paper { transition: opacity 600ms ease; }

.stage[data-phase='1'] .scanline { transform: translateY(460%); }
.stage[data-phase='2'] .scanline, .stage[data-phase='3'] .scanline { transform: translateY(460%); opacity: 0; }
.stage[data-phase='2'] .phone-screen, .stage[data-phase='3'] .phone-screen { clip-path: inset(0 0 0 0); }
.stage[data-phase='3'] .stage-tent { opacity: 1; transform: none; }
.stage[data-phase='2'] .stage-paper, .stage[data-phase='3'] .stage-paper { opacity: 0.72; }
.stage.is-resetting .phone-screen, .stage.is-resetting .stage-tent { transition-duration: 350ms; }
.stage.is-resetting .scanline, .stage.is-resetting .stage-paper { transition: none; }

.steps { display: grid; gap: 28px; margin-top: 40px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; align-items: center; align-content: start; }
.step p { grid-column: 2; }
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.step h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.step p { color: var(--ink-2); }
.steps[data-active] .step { transition: opacity 300ms ease; }
.steps[data-active='1'] .step[data-step='1'] .step-n,
.steps[data-active='2'] .step[data-step='2'] .step-n,
.steps[data-active='3'] .step[data-step='3'] .step-n { background: var(--red-fill); border-color: var(--red-fill); color: #fffafa; }

.how-caption {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  max-width: 48ch;
}

/* ─── Блок 3. Меню, которое продаёт ───────────────────────────────────── */
.sells-grid { display: grid; gap: 40px; }
.h2-xl { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.02; }
.theses { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 600px) { .theses { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
.thesis { padding-top: 20px; border-top: 1px solid var(--line); }
.thesis h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.thesis p { margin-top: 8px; color: var(--ink-2); }

.sells-visual { max-width: 440px; width: 100%; margin-inline: auto; }
.shot { overflow: hidden; border-radius: var(--r-sm); background: #211b18; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-hero { border-radius: var(--r-lg); box-shadow: var(--shadow-device); }

@media (min-width: 960px) {
  .sells-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 72px; }
  .sells-visual { grid-column: 1; grid-row: 1; margin: 0; }
  .sells-copy { grid-column: 2; }
}

/* ─── Блок 4. По закону ───────────────────────────────────────────────── */
.law-list { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 860px) { .law-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.shot-law { aspect-ratio: 1 / 0.92; box-shadow: var(--shadow-1); }
.law-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 1.3125rem;
  font-weight: 600;
}
.law-item p { margin-top: 8px; color: var(--ink-2); }
.law-caption {
  margin-top: 48px;
  max-width: 56ch;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 500;
}

/* ─── Блок 5. 18 языков ───────────────────────────────────────────────── */
.langs-inner { display: grid; justify-items: center; text-align: center; }
.langs-inner .lede { margin-inline: auto; }
.lang-rows { display: grid; gap: 14px; width: min(100%, 540px); margin-top: 48px; }
.lang-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; }
@media (min-width: 760px) {
  .lang-row:nth-child(1) { translate: calc(-28px * var(--dir, 1)) 0; }
  .lang-row:nth-child(2) { translate: calc(28px * var(--dir, 1)) 0; }
  .lang-row:nth-child(3) { translate: calc(-8px * var(--dir, 1)) 0; }
}
[dir='rtl'] .lang-rows { --dir: -1; }
.lang-code { color: var(--ink-3); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; }
.shot-row { border-radius: 14px; box-shadow: var(--shadow-1); }
.lang-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 820px;
  margin-top: 48px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 500;
}
.lang-names li:lang(am), .lang-names li:lang(ti) { font-family: 'Noto Sans Ethiopic', 'Rubik', sans-serif; }
.lang-names li:lang(th) { font-family: 'Noto Sans Thai', 'Rubik', sans-serif; }
.lang-names li:lang(zh) { font-family: 'Noto Sans SC', 'Rubik', sans-serif; }

/* ─── Блок 6. Возможности ─────────────────────────────────────────────── */
.feature-grid { display: grid; margin-top: 40px; column-gap: 32px; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(5, 1fr); column-gap: 28px; } }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-content: start;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.feature .icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; color: var(--ink); }
.feature h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.feature p { color: var(--ink-2); font-size: 0.9688rem; line-height: 1.55; }
@media (min-width: 1080px) {
  .feature { grid-template-columns: 1fr; padding-block: 24px 28px; }
  .feature .icon { grid-row: auto; margin-bottom: 14px; }
}

/* ─── Блок 7. Тарифы ──────────────────────────────────────────────────── */
.plans {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 16px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.plans::-webkit-scrollbar { display: none; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 min(84%, 360px);
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  scroll-snap-align: center;
}
.plan-rec { border: 2px solid var(--red-fill); box-shadow: var(--shadow-2); }
.plan .btn { padding-inline: 16px; font-size: 1rem; white-space: normal; }
@media (min-width: 960px) {
  .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-inline: 0; padding: 16px 0 0; overflow: visible; }
  .plan { padding: 32px 28px; }
  /* Три карточки делят строки сетки (название, цена, «для кого», кнопка, список, «плюс»):
     при разной длине текста кнопки и списки стоят на одной линии. */
  @supports (grid-template-rows: subgrid) {
    .plans { grid-template-rows: repeat(6, auto); }
    .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 18px; }
    .plan-for { min-height: 0; }
  }
}
.plan-badge {
  position: absolute;
  top: 0;
  inset-inline-start: 24px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--red-fill);
  color: #fffafa;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan-badge .icon { width: 1em; height: 1em; }
.plan-name { font-size: 1.25rem; font-weight: 600; direction: ltr; text-align: start; }
[dir='rtl'] .plan-name { text-align: right; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.cur { font-size: 0.55em; font-weight: 600; margin-inline-end: 0.04em; vertical-align: 0.5em; }
.per { color: var(--ink-3); font-size: 0.9688rem; }
/* Для кого план — сразу под ценой. Резерв высоты в две строки, чтобы кнопки трёх карточек стояли на одной линии. */
.plan-for { margin-top: -6px; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.45; min-height: 2.9em; }
.plan-keys { display: grid; }
.plan-keys li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}
.plan-keys span { color: var(--ink-2); }
.plan-keys strong { font-weight: 600; text-align: end; }
.plan-more { color: var(--ink-2); font-size: 0.9375rem; margin-top: auto; }

.plans-vat { margin-top: 16px; color: var(--ink-3); font-size: 0.9375rem; text-align: center; }

.all-plans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 40px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.all-plans-label { font-weight: 600; }
.all-plans ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.all-plans li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.all-plans .icon { width: 1.05em; height: 1.05em; color: var(--ink); }

.compare { margin-top: 24px; }
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.compare-toggle:active { transform: scale(0.97); }
.compare-toggle .caret { transition: transform 220ms var(--ease-out); }
.compare-toggle[aria-expanded='true'] .caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .compare-toggle:hover { background: var(--sunk); } }

.compare-body { margin-top: 20px; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@starting-style { .compare-body { opacity: 0; transform: translateY(-6px); } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 12px 14px; vertical-align: top; }
thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); }
thead th:first-child { text-align: start; }
thead .col-rec { color: var(--red-ink); }
tbody th { font-weight: 400; text-align: start; color: var(--ink-2); width: 34%; }
tbody td { text-align: center; }
tbody tr + tr > * { border-top: 1px solid var(--line); }
.group-row th { padding-top: 18px; background: var(--sunk); color: var(--ink); font-weight: 600; }
.cell-yes { width: 1.2em; height: 1.2em; color: var(--ink); vertical-align: -0.2em; }
.cell-no { display: inline-block; width: 12px; height: 1.5px; background: var(--ink-3); vertical-align: 0.3em; }

/* ─── Блок 8. Вопросы и ответы ────────────────────────────────────────── */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .faq-grid .h2 { position: sticky; top: calc(var(--header-h) + 32px); }
}
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa h3 { font-size: inherit; }
.qa-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding-block: 16px;
  border: 0;
  background: none;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.qa-icon { width: 22px; height: 22px; color: var(--ink-3); transition: transform 240ms var(--ease-out), color 160ms ease; }
.qa-q[aria-expanded='true'] .qa-icon { transform: rotate(45deg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .qa-q:hover .qa-icon { color: var(--ink); } }
.qa-a { padding-bottom: 20px; color: var(--ink-2); max-width: 60ch; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
@starting-style { .qa-a { opacity: 0; transform: translateY(-4px); } }

/* ─── Блок 9. Финальный призыв (единственный тёмный блок) ─────────────── */
.final {
  --focus: #ff6b73;
  padding-block: clamp(80px, 10vw, 136px);
  background: var(--dark);
  color: var(--on-dark);
}
.final-inner { display: grid; justify-items: center; gap: 36px; text-align: center; }
.final h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
}
:lang(he) .final h2, :lang(ar) .final h2 { letter-spacing: 0; }

/* ─── Подвал ──────────────────────────────────────────────────────────── */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .footer-copy { grid-column: 1 / -1; }
}
.footer-contact { display: grid; gap: 4px; margin-top: 16px; }
.footer-label { color: var(--ink-3); font-size: 0.9375rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; justify-self: start; }
.footer-links ul, .footer-langs ul { display: grid; gap: 2px; }
.footer-links a, .footer-langs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration-color: var(--line-strong);
}
.footer-langs a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover, .footer-langs a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
.footer-copy { padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }

/* ─── Служебные страницы ──────────────────────────────────────────────── */
.doc { padding-block: 48px 96px; }
.doc-inner { max-width: 720px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); }
.doc h1 { margin-top: 16px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; }
.doc-text { display: grid; gap: 18px; margin-top: 28px; color: var(--ink-2); }
.doc-updated { margin-top: 32px; color: var(--ink-3); font-size: 0.9375rem; }
.doc-meta { margin-top: 12px; color: var(--ink-3); font-size: 0.9375rem; }
.doc-legal { gap: 14px; overflow-wrap: break-word; }
/* Элемент сетки по умолчанию не уже своего содержимого: длинная ссылка или таблица
   раздвигали колонку, и страница становилась шире экрана телефона. */
.doc-legal > * { min-width: 0; }
.doc-legal h2 { margin-top: 24px; color: var(--ink); font-size: 1.375rem; line-height: 1.25; }
.doc-legal h3 { margin-top: 12px; color: var(--ink); font-size: 1.125rem; }
.doc-legal strong { color: var(--ink); }
.doc-legal a { text-decoration: underline; text-underline-offset: 2px; }
.doc-legal ul { display: grid; gap: 8px; padding-inline-start: 1.25em; list-style: disc; }
.doc-table { overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc-table th, .doc-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.doc-table th { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-strong); }
.doc-body .header-cta { display: inline-flex; }

/* ─── Меньше движения ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; translate: none; transition: none; }
  .hero-phone { transition: none; }
  .btn, .icon-btn, .compare-toggle { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
  .btn:active, .icon-btn:active, .compare-toggle:active { transform: none; }
}
