/* === SONAYA WEB v2 === (29.08.2026, Quantum по слову CEO)
 *
 * 🛑 ТОКЕНЫ — ЗЕРКАЛО, НЕ АВТОРСКИЕ ЗНАЧЕНИЯ. Источник — `design/_shared/tokens.css`
 * и `packages/mobile/src/theme/tokens.ts`. Правка цвета начинается ТАМ, сюда
 * переносится. Инлайн-hex в разметке запрещён, как и в мобилке.
 *
 * Что изменилось против v1 (26.08): человек в кадре hero (фото, свет от ночника,
 * чёрный остаётся фоном; `.hero.no-photo` — тот же экран без фото) · волна на темпе
 * продукта 29.08 (2400мс, дыхание, растворение низа, «фраза — пауза») · лайм только
 * на действии (одна кнопка) · секции: боль → своя практика → как работает → оффер →
 * приватность → финал · свет-ритм bg / surface-1 · появление секций по
 * IntersectionObserver · кнопка паузы движения (WCAG 2.2.2) · тапзоны ≥44px.
 */

:root {
  --bg-primary: #000000;
  --surface-1: #0E0E0E;
  --surface-2: #161616;
  --surface-3: #1F1F1F;
  --card-lift-top: rgba(40, 40, 42, 0.90);
  --card-lift-bottom: rgba(20, 20, 22, 0.95);
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-defined: rgba(255, 255, 255, 0.10);
  --edge-highlight: rgba(255, 255, 255, 0.05);
  --control-border: rgba(255, 255, 255, 0.15);
  --text-primary: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.70);
  --text-dim: rgba(255, 255, 255, 0.52); /* 5.7:1 на чёрном — AA с запасом (сайт; в приложении свой) */
  --text-decor: rgba(255, 255, 255, 0.30);
  --accent: #dde62c;
  --accent-ink: #000000;
  --focus-ring: #dde62c;
  --page: 1160px;
  --wave-cycle: 2400ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 84px; }

a { color: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .15s ease;
}
.skip:focus { top: 16px; }

/* Признак «скрыто» обязан бить любой собственный display компонента:
   у кнопки сэмпла стоял inline-flex, и hidden из скрипта не срабатывал —
   мёртвая кнопка оставалась на первом экране. */
[hidden] { display: none !important; }

/* ---- Шапка ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  /* Настоящее размытие: контент под шапкой уходит в дымку, а не просвечивает.
     Почти непрозрачный фон этого не давал — размывать было нечего, и шапка
     читалась плоской полоской на чёрном (замечание CEO 30.08).
     Отступ сверху — безопасная зона телефона с чёлкой. */
  /* СПЛОШНОЙ фон, без размытия. Размытие на чёрном с ярким текстом даёт
     грязное пятно: сквозь шапку читался расплывшийся заголовок (живой iPhone
     CEO, 30.08). Шапка — продолжение фона страницы, её не должно быть видно,
     пока она не нужна. */
  background: var(--bg-primary);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* Пока страница вверху — шапка сливается с первым экраном и не мозолит глаз.
   Как только под неё заехал контент, снизу проявляется грань. */
header.site.scrolled {
  border-bottom-color: var(--border-defined);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
header.site nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; }
.logo {
  font-size: 1.3rem; font-weight: 600; letter-spacing: .3px;
  color: var(--text-primary); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
/* 🛑 Серая пилюля = навигация, лаймовая заливка = действие. */
.pill {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-muted); text-decoration: none;
  padding: 0 16px; border: 1px solid var(--border-defined); border-top-color: var(--edge-highlight); border-radius: 999px;
  font-size: .9rem; background: var(--surface-2);
  transition: background .2s ease, color .2s ease;
}
.pill:hover { background: var(--surface-3); color: var(--text-primary); }

/* ---- Кнопка действия — единственный лайм-заливной элемент ---- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-size: 17px; font-weight: 700; letter-spacing: -.2px;
  transition: transform .12s ease, filter .2s ease;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(.98); }
.ghost {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px; border-radius: 16px;
  border: 1px solid var(--control-border); color: var(--text-primary); text-decoration: none;
  background: rgba(0, 0, 0, .4); font-size: 15px; cursor: pointer; font-family: inherit;
}
.ghost:hover { background: var(--surface-3); }
.ghost svg { width: 16px; height: 16px; flex-shrink: 0; }
.ghost .stopglyph { display: none; }
.ghost[data-playing="true"] .playglyph { display: none; }
.ghost[data-playing="true"] .stopglyph { display: block; }

/* ---- Волна: знак бренда, темп продукта (29.08: 2400мс, растворение низа) ---- */
.wave {
  display: flex; align-items: flex-end; gap: 5px; height: 48px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.wave span {
  display: block; width: 6px; background: var(--accent);
  transform-origin: bottom;
  animation: breathe var(--wave-cycle) cubic-bezier(.45, 0, .55, 1) infinite;
}
.wave span:nth-child(1)  { height: 40%;  animation-delay: 0ms;    opacity: .45; }
.wave span:nth-child(2)  { height: 70%;  animation-delay: 120ms;   opacity: .45; }
.wave span:nth-child(3)  { height: 50%;  animation-delay: 240ms;  opacity: .45; }
.wave span:nth-child(4)  { height: 90%;  animation-delay: 360ms;  opacity: .7; }
.wave span:nth-child(5)  { height: 60%;  animation-delay: 480ms;  opacity: .7; }
.wave span:nth-child(6)  { height: 100%; animation-delay: 600ms; }
.wave span:nth-child(7)  { height: 50%;  animation-delay: 720ms; }
.wave span:nth-child(8)  { height: 80%;  animation-delay: 840ms; }
.wave span:nth-child(9)  { height: 40%;  animation-delay: 960ms; }
.wave span:nth-child(10) { height: 90%;  animation-delay: 1080ms; }
.wave span:nth-child(11) { height: 60%;  animation-delay: 1200ms; }
.wave span:nth-child(12) { height: 70%;  animation-delay: 1320ms; }
.wave span:nth-child(13) { height: 50%;  animation-delay: 1440ms; }
.wave span:nth-child(14) { height: 80%;  animation-delay: 1560ms;  opacity: .7; }
.wave span:nth-child(15) { height: 40%;  animation-delay: 1680ms;  opacity: .7; }
.wave span:nth-child(16) { height: 90%;  animation-delay: 1800ms;  opacity: .45; }
.wave span:nth-child(17) { height: 60%;  animation-delay: 1920ms;  opacity: .45; }
.wave span:nth-child(18) { height: 50%;  animation-delay: 2040ms; opacity: .45; }

/* Живость: у каждой полосы свой период — рисунок не повторяется,
   волна читается как звук, а не как метроном. Работает без скрипта. */
.wave span:nth-child(1) { animation-duration: 4200ms; }
.wave span:nth-child(2) { animation-duration: 5200ms; }
.wave span:nth-child(3) { animation-duration: 3800ms; }
.wave span:nth-child(4) { animation-duration: 6200ms; }
.wave span:nth-child(5) { animation-duration: 4600ms; }
.wave span:nth-child(6) { animation-duration: 5600ms; }
.wave span:nth-child(7) { animation-duration: 3400ms; }
.wave span:nth-child(8) { animation-duration: 4900ms; }
.wave span:nth-child(9) { animation-duration: 6600ms; }
.wave span:nth-child(10) { animation-duration: 4100ms; }
.wave span:nth-child(11) { animation-duration: 5500ms; }
.wave span:nth-child(12) { animation-duration: 3700ms; }
.wave span:nth-child(13) { animation-duration: 5900ms; }
.wave span:nth-child(14) { animation-duration: 4500ms; }
.wave span:nth-child(15) { animation-duration: 6100ms; }
.wave span:nth-child(16) { animation-duration: 3500ms; }
.wave span:nth-child(17) { animation-duration: 5300ms; }
.wave span:nth-child(18) { animation-duration: 4700ms; }


/* «фраза — пауза»: плоский участок 40% цикла — голос замолкает, не мигает */
@keyframes breathe {
  0%   { transform: scaleY(.30); }
  25%  { transform: scaleY(1); }
  55%  { transform: scaleY(.45); }
  78%  { transform: scaleY(.78); }
  100% { transform: scaleY(.30); }
}
html[data-motion="paused"] .wave span { animation-play-state: paused; }

/* Волна ведётся звуком: JS выставляет --amp на каждую полосу */
.wave.live span { animation: none; transform: scaleY(var(--amp, .6)); transition: transform 90ms linear; }

/* ---- Hero: человек в кадре, свет от ночника, чёрный — фон ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 86vh, 880px); display: flex; align-items: center;
  background: var(--bg-primary);
}
.hero .photo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 54%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 14%, rgba(0,0,0,.75) 30%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 14%, rgba(0,0,0,.75) 30%, #000 52%);
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.55) 40%,
      rgba(0,0,0,.30) 60%,
      rgba(0,0,0,.10) 78%,
      rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 58%, var(--bg-primary) 100%);
}
.hero.no-photo .photo, .hero.no-photo .veil { display: none; }
.hero .credit { position: absolute; right: 16px; bottom: 12px; font-size: 12px; letter-spacing: .04em; color: var(--text-dim); z-index: 2; }
.hero.no-photo .credit { display: none; }
.hero .container { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero .wave { margin-bottom: 32px; }
h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 800; line-height: 1.02; letter-spacing: -2px;
  max-width: 12ch;
}
h1 .accent { color: var(--accent); }
.hero p.lead {
  margin-top: 24px; max-width: 40ch;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--text-muted);
}
.hero .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.hero .note { margin-top: 16px; color: var(--text-dim); font-size: 14px; }
.hero .note a { color: var(--text-dim); text-decoration: none; display: inline-block; padding: 12px 4px; margin: -6px 0; }
.hero .note a:hover { color: var(--text-primary); }

/* ---- Секции ---- */
section.block { padding: 96px 0; border-top: 1px solid var(--border-hairline); }
section.block.lift { background: var(--surface-1); }
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.1; max-width: 22ch;
}
html[lang="de"] h2 { max-width: 24ch; }
p.section-lead { margin-top: 18px; max-width: 60ch; color: var(--text-muted); font-size: 18px; line-height: 1.5; }

/* появление */
/* Появление секций при прокрутке СНЯТО [CEO 30.08]: подтягивание контента
   читается дёшево. Класс `reveal` в разметке оставлен — он ничего не делает,
   но по нему видно, где секции, и вернуть эффект можно одной правкой. */

/* ---- Карточки ситуаций ---- */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-top-color: var(--edge-highlight);
  border-radius: 20px; padding: 26px;
  transition: transform .18s ease-out, border-top-color .18s ease-out;
}
.card:hover { transform: translateY(-2px); border-top-color: var(--border-defined); }
/* сон — главный режим: большая карточка во всю ширину, три остальные под ней */
.cards.sleep { grid-template-columns: repeat(3, 1fr); }
.cards.sleep .card.big { grid-column: 1 / -1; padding: 36px 40px; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 12px 48px; align-items: start; background: linear-gradient(135deg, var(--card-lift-top), var(--card-lift-bottom)); border-top-color: var(--border-defined); }
.cards.sleep .card.big .when { grid-column: 1 / -1; }
.cards.sleep .card.big h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.8px; line-height: 1.12; }
.cards.sleep .card.big p { font-size: 17px; }
.hero p.sub { margin-top: 14px; max-width: 44ch; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
section.block.state .section-lead { max-width: 64ch; font-size: 19px; }
.card .when { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* ---- Своя практика ---- */
.own { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.own ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.own li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.own li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 999px; background: var(--text-dim); }
.own strong { color: var(--text-primary); font-weight: 600; }
.own .others {
  background: var(--surface-2); border: 1px solid var(--border-hairline); border-top-color: var(--edge-highlight);
  border-radius: 24px; padding: 32px;
}
.own .others h3 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 14px; }
.own .others p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }

/* ---- Как это работает: полоса шагов, без карточек ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.step { padding-top: 22px; border-top: 1px solid var(--border-defined); }
.step .no {
  font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1;
  color: var(--text-primary); opacity: .40; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ---- Оффер ---- */
.trial {
  margin-top: 36px; background: var(--surface-2);
  border: 1px solid var(--border-hairline); border-top-color: var(--edge-highlight);
  border-radius: 24px; padding: 36px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.trial h3 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.trial p { color: var(--text-muted); margin-top: 12px; font-size: 16px; line-height: 1.5; }
.trial .fine { color: var(--text-dim); font-size: 14px; margin-top: 16px; }
.trial .go { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.trial .stores img { height: 40px; opacity: .85; }

/* ---- Магазины ---- */
.stores { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stores img { height: 48px; width: auto; display: block; }
.stores a { display: block; border-radius: 10px; }

/* ---- Приватность ---- */
ul.trust { list-style: none; margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 48px; max-width: 1000px; }
ul.trust li { color: var(--text-muted); font-size: 16px; line-height: 1.5; }
ul.trust strong { color: var(--text-primary); font-weight: 600; }
ul.trust li:last-child { grid-column: 1 / -1; max-width: 64ch; }
.trust-link { display: inline-block; margin-top: 28px; color: var(--text-dim); text-decoration: none; padding: 10px 0; }
.trust-link:hover { color: var(--text-primary); }

/* ---- Финал ---- */
.finale { padding: 96px 0; border-top: 1px solid var(--border-hairline); text-align: center; }
.finale .container { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.finale .wave { height: 40px; opacity: .8; }
.finale h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -1.8px; line-height: 1.04; max-width: 18ch; }
.finale .stores { justify-content: center; }

/* ---- Подвал ---- */
footer.site {
  border-top: 1px solid var(--border-hairline);
  padding: 48px 0 64px; color: var(--text-dim); font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }
.foot-grid p.foot-head {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 8px;
}
.foot-grid a, .foot-grid p { color: var(--text-muted); text-decoration: none; display: block; padding: 6px 0; }
.foot-grid a:hover { color: var(--text-primary); }
.copyright { padding-top: 24px; border-top: 1px solid var(--border-hairline); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.motion-toggle {
  background: none; border: 1px solid var(--border-defined); color: var(--text-dim); border-radius: 999px;
  padding: 0 14px; min-height: 36px; font: inherit; font-size: 13px; cursor: pointer;
}
.motion-toggle:hover { color: var(--text-primary); }

/* ---- Узкий экран ---- */
@media (max-width: 960px) {
  .cards.four, .cards.sleep { grid-template-columns: repeat(2, 1fr); }
  .cards.sleep .card.big { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .own { grid-template-columns: 1fr; gap: 40px; }
  .trial { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  ul.trust { grid-template-columns: 1fr; }
  .hero .photo { width: 100%; height: 560px; bottom: auto; opacity: .6; object-position: 50% 30%; }
  .hero .veil { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.75) 55%, var(--bg-primary) 100%); }
  .hero .container { padding-top: 320px; }
}
@media (max-width: 600px) {
  .cards.four, .cards.sleep, .steps { grid-template-columns: 1fr; }
  .cards.sleep .card.big { padding: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 248px; padding-bottom: 56px; }
  .hero .wave { margin-bottom: 22px; }
  .hero p.sub { display: none; }
  .hero.no-photo .container { padding-top: 64px; }
  section.block, .finale { padding: 56px 0; }
  h1 { letter-spacing: -1.2px; }
  .nav-links .hide-sm { display: none; }
  /* На телефоне шапка НЕ липнет [CEO 30.08]: над ней и так панель браузера,
     получалась двойная плашка, которая ест экран и ничего не даёт. Уезжает
     вместе с контентом; язык остаётся доступен в подвале. */
  header.site { position: static; box-shadow: none; border-bottom-color: transparent; }
  header.site nav { min-height: 60px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .cta, .ghost { justify-content: center; }
  .stores img { height: 44px; }
  /* Карточка оффера: кнопка и бейджи были прижаты к левому краю столбиком */
  .trial .go { align-items: stretch; }
  .trial .go .cta { width: 100%; }
  .trial .stores { justify-content: center; }
  .mid-cta .cta, .finale .cta { display: flex; width: 100%; }
}

/* ---- Движение по требованию системы (BFSG / WCAG 2.3.3) ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave span { animation: none; transform: scaleY(.6); }
  .card, .cta, .pill, .skip { transition: none; }
}

/* ---- Согласие на счётчик (consent.js) [CEO 22.09.2026: карточка внизу] ----
   Семья карточек сайта, НЕ лайм: лайм принадлежит «Begin», и в баннере он
   давил бы в сторону «разрешить». Две кнопки одного вида и размера.
   Граница кнопок — `--text-dim`: `--control-border` не даёт 3:1 (WCAG 1.4.11).
   Появление — только прозрачность, 320 мс; при сниженном движении — сразу. */
.consent {
  position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 360px;
  background: linear-gradient(180deg, var(--card-lift-top), var(--card-lift-bottom));
  border: 1px solid var(--border-defined); border-top-color: var(--edge-highlight);
  border-radius: 20px; padding: 16px 18px 14px;
  font-size: 14px; line-height: 1.5; color: var(--text-primary);
  opacity: 0; transition: opacity .32s cubic-bezier(.2, 0, 0, 1);
}
.consent.on { opacity: 1; }
.consent p { color: var(--text-muted); margin-bottom: 12px; }
.consent-row { display: flex; gap: 10px; }
.consent button {
  flex: 1 1 0; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--text-dim); background: var(--surface-3); color: var(--text-primary);
  font: inherit; font-weight: 600; cursor: pointer;
}
.consent button:hover { background: var(--surface-2); }
.consent a { color: var(--text-primary); text-underline-offset: 2px; white-space: nowrap; }
/* Кнопка «настройки кук» в подвале — вид текстовой ссылки подвала */
.consent-open {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.consent-open:hover { color: var(--text-primary); }
@media (max-width: 600px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; border-radius: 16px; }
  .consent p { font-size: 13px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
html[data-motion="paused"] .consent { transition: none; }

/* Действие в середине пути: от первого экрана до оффера было четыре экрана без единой кнопки */
.mid-cta { margin-top: 44px; }

/* Третья пилюля шапки на подстраницах («Articles» рядом с языком и «Home»): на 360 px
   шапке нужно 344 из 312 — страница уезжала вбок. Ниже 380 пилюля уходит, ссылка
   остаётся в подвале; на главной пилюль две, там она видна всегда. */
@media (max-width: 380px) {
  .nav-links .hide-xs { display: none; }
}
