/* Бу — главная app-boo.com. Цвета только из DESIGN.md. Без курсива, без красного. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* метрики подмены, чтобы swap шрифта не сдвигал страницу */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --teal: #11666F;
  --teal-glow: #2E8792;
  --sand: #F5EAE0;
  --cream: #F8F5EE;
  --white: #FFFFFF;
  --sage: #4A6C58;
  --sage-light: #EAF0EC;
  --night: #111315;
  --night-2: #1A1D21;
  --night-text: #EAE8E3;
  --ink: #1C1914;
  --coin: #F4C430;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: var(--teal);
  --fg: var(--cream);
  --fg2: rgba(248, 245, 238, 0.84);
  --line: rgba(248, 245, 238, 0.22);
  --screen: var(--cream);
  --note: var(--teal);
  color-scheme: light;
}

[data-theme="teal"]  { --bg: var(--teal);       --fg: var(--cream);      --fg2: rgba(248,245,238,.84); --line: rgba(248,245,238,.22); }
[data-theme="sand"]  { --bg: var(--sand);       --fg: var(--teal);       --fg2: var(--sage);           --line: rgba(17,102,111,.18); --screen: var(--cream); --note: var(--teal); }
[data-theme="sage"]  { --bg: var(--sage);       --fg: var(--cream);      --fg2: var(--sage-light);     --line: rgba(248,245,238,.22); --screen: var(--sage-light); --note: var(--sage); }
[data-theme="mint"]  { --bg: var(--sage-light); --fg: var(--teal);       --fg2: var(--sage);           --line: rgba(74,108,88,.2); }
[data-theme="night"] { --bg: var(--night);      --fg: var(--night-text); --fg2: rgba(234,232,227,.74); --line: rgba(234,232,227,.12); }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--teal-glow) var(--night);
  background: var(--night);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--fg);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv08";
  caret-color: var(--coin);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--coin); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 8px; }
a:not(.btn) { text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }

/* /en: пока site.js не подставил английский, страница не показывается (страховка — 1,5 с) */
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s 1.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--coin); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- типографика ---------- */
.h { font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.h__l, .h__b { display: block; }
.h__b { font-weight: 700; }
.h--hero { font-size: clamp(46px, 14.6vw, 66px); }
.h--sec  { font-size: clamp(40px, 10.4vw, 52px); }
.h--feat { font-size: clamp(32px, 8.6vw, 40px); }
.lead { font-size: 18px; line-height: 1.55; color: var(--fg2); max-width: 34em; text-wrap: pretty; }
@media (min-width: 768px) {
  .h--hero { font-size: clamp(64px, 6.6vw, 96px); }
  .h--sec  { font-size: clamp(52px, 5.4vw, 80px); }
  .h--feat { font-size: clamp(40px, 3.8vw, 56px); }
  .lead { font-size: 20px; }
}

/* ---------- кнопки-пилюли с заливкой-кругом ---------- */
.btn {
  --b: var(--cream); --t: var(--teal); --fill: var(--white); --ft: var(--teal);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--b); color: var(--t);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: color .35s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 100%);
  width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--fill);
  transform: translate(-50%, -50%) scale(0); transition: transform .55s var(--ease);
}
.btn:hover { color: var(--ft); }
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: scale(.97); }
.btn--cream { --b: var(--cream); --t: var(--teal); --fill: var(--white); --ft: var(--teal); }
.btn--ghost { --b: rgba(17,19,21,.22); --t: var(--cream); --fill: var(--cream); --ft: var(--teal); }
.btn--teal  { --b: var(--teal); --t: var(--cream); --fill: var(--ink); --ft: var(--cream); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка-пилюля ---------- */
.hdr {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(980px, calc(100% - 24px)); height: 64px; padding: 0 10px 0 12px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 999px; color: var(--teal);
  /* стекло: сквозь шапку виден цвет раздела; плотность подобрана под контраст ≥ 4,5 на каждом цвете */
  --glass: .82;
  background: rgba(248, 245, 238, var(--glass));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 12px 32px -16px rgba(17, 19, 21, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: background-color .6s ease;
}
html[data-hdr="sand"] .hdr, html[data-hdr="mint"] .hdr { --glass: .62; }
html[data-hdr="night"] .hdr { --glass: .87; }
.hdr__logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.hdr__boo { width: 40px; height: 40px; }
.hdr__nav { display: none; margin-inline: auto; gap: 4px; }
.hdr__nav a { padding: 10px 14px; border-radius: 999px; font-size: 16px; text-decoration: none; transition: background-color .2s; }
.hdr__nav a:hover { background: rgba(17, 102, 111, .1); }
.hdr .lang { margin-left: auto; background: rgba(255, 255, 255, .42); }
.hdr__cta { flex-shrink: 0; }
/* телефон: из пунктов меню остаётся «Тарифы» — к цене в один тап (Тата 06.11) */
@media (max-width: 819px) {
  .hdr__nav { display: flex; margin-inline: 0; }
  .hdr__nav a:not([href*="pricing"]) { display: none; }
  .hdr__nav a { padding: 10px 8px; font-weight: 600; }
}
@media (max-width: 520px) {
  .hdr { gap: 6px; padding: 0 8px 0 8px; }
  .hdr__logo { flex-shrink: 0; }
  .hdr__logo > span { display: none; }
  .hdr__boo { width: 34px; height: 34px; }
  .hdr__nav a { padding-inline: 6px; }
  .hdr .lang button { min-width: 36px; padding-inline: 4px; font-size: 15px; }
  .hdr__cta { padding-inline: 12px; font-size: 15px; }
}
@media (min-width: 820px) {
  .hdr__nav { display: flex; }
  .hdr .lang { margin-left: 0; }
}
.lang { display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: rgba(17, 102, 111, .1); }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  font-size: 16px; font-weight: 700; letter-spacing: .02em; cursor: pointer; color: inherit; transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--teal); color: var(--cream); }

/* ---------- секции и цвет фона ---------- */
main { position: relative; z-index: 1; background: var(--bg); }
main > section { position: relative; background: var(--bg); color: var(--fg); }
html.ready main { transition: background-color 1s ease; }
html.ready main > section { background: transparent; }
/* при живом скрипте цвета текста идут за цветом всей страницы: край прошлого раздела на новом фоне остаётся читаемым */
html.ready main > section[data-theme] { --fg: inherit; --fg2: inherit; --line: inherit; --screen: inherit; --note: inherit; transition: color 1s ease; }

/* появление снизу — только когда скрипт жив */
html.ready:not(.rm) .rv { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
html.ready:not(.rm) .rv:not(.is-in) { opacity: 0; transform: translateY(28px); filter: blur(6px); }

/* ---------- 1. первый экран ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__media .hero__poster { display: none; }
.hero__media.is-real .hero__poster, .hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media.is-real::after { content: ""; position: absolute; inset: 0; background: rgba(17, 102, 111, .55); }
.hero__in {
  position: relative; z-index: 1; flex: 1;
  display: grid; align-content: center; gap: 28px;
  padding-top: 112px; padding-bottom: 96px;
}
.hero__in { grid-template-columns: minmax(0, 1fr); }
.hero__text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero__lead { max-width: 30em; }
.hero__avail { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--fg2); }
/* точка — по центру первой строки: (1,5 × 16 − 8) / 2 */
.hero__avail .dot { margin-top: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coin); flex-shrink: 0; }
.hero__boo { position: relative; z-index: 1; justify-self: end; width: min(44vw, 190px); }
.hero__img { width: 100%; height: auto; filter: drop-shadow(0 28px 34px rgba(8, 40, 44, .45)); }
/* стрелку рисует site.js от Бу до основной кнопки — наконечник всегда на кнопке */
.scribble { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; fill: none; stroke: var(--coin); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
html.ready .hero .h__l, html.ready .rot__w { white-space: nowrap; justify-self: start; width: max-content; }
@media (max-width: 899px) {
  /* телефон: Бу ниже кнопок, справа от них; строка «уже есть» не заходит под Бу */
  .hero__in { gap: 0; padding-bottom: 88px; }
  .hero__avail { max-width: calc(100% - min(44vw, 190px) + 12px); }
  .hero__boo { margin-top: calc(-1 * min(44vw, 190px) * .42); }
}
.hero__down {
  position: absolute; z-index: 1; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(248, 245, 238, .14); color: var(--cream);
}
.hero__down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 24px; padding-top: 140px; }
  .hero__boo { width: min(30vw, 440px); justify-self: center; margin: 0; }
  .hero__avail { margin-top: 18px; }
}

/* сменяющееся слово */
.rot { display: grid; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.rot__w { grid-area: 1 / 1; }
.rot__w:not(.is-on) { display: none; }
html.ready:not(.rm) .rot__w { display: block; transition: transform .8s var(--ease), opacity .6s var(--ease), filter .7s var(--ease); }
html.ready:not(.rm) .rot__w:not(.is-on) { transform: translateY(100%); opacity: 0; filter: blur(8px); }
html.ready:not(.rm) .rot__w.is-out { transform: translateY(-100%); }

/* каракуля рисуется обводкой */
html.ready:not(.rm) .scribble__p { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s .5s var(--ease) forwards; }
html.ready:not(.rm) .scribble__p--head { animation-delay: 1.5s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* парение Бу */
html.ready:not(.rm) .float { animation: float 6s ease-in-out infinite; }
html.ready:not(.rm) .float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -14px; } }
html.ready:not(.rm) .hero__down { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 6px; } }

/* ---------- рамка телефона и слот ---------- */
.phone {
  --w: min(300px, 70vw);
  position: relative; margin: 0; width: var(--w); flex-shrink: 0;
  padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .165);
  background: var(--night);
  box-shadow: 0 50px 70px -40px rgba(17, 19, 21, .6), 0 18px 30px -18px rgba(17, 19, 21, .4), inset 0 0 0 1.5px rgba(234, 232, 227, .14);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: var(--night-2); }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 27%; height: 14%; }
.phone__screen { position: relative; aspect-ratio: 1290 / 2796; border-radius: calc(var(--w) * .13); overflow: hidden; background: var(--screen); }
.phone__screen img { width: 100%; height: 100%; object-fit: contain; }
.phone__island { position: absolute; top: calc(var(--w) * .062); left: 50%; transform: translateX(-50%); width: 31%; height: calc(var(--w) * .088); border-radius: 999px; background: #000; }
.phone__note {
  position: absolute; left: 14%; right: 14%; top: 30%;
  text-align: center; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--note); text-wrap: balance;
  background: var(--screen); border-radius: 12px; margin: 0;
}
.phone__screen .phone__boo { position: absolute; left: 50%; bottom: 3%; width: 70%; height: auto; transform: translateX(-50%); }
.phone__screen .phone__boo[src*="peek_bottom"] { bottom: 0; width: 56%; }
.phone.is-real .phone__note, .phone.is-real .phone__boo { display: none; }

/* ---------- 2. день ---------- */
.day { padding: clamp(96px, 16vh, 160px) 0 clamp(72px, 12vh, 120px); overflow: clip; }
.day .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; }
.day__lead { margin-inline: auto; }
.day__stage { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; margin-top: 28px; }
.day__boo { position: absolute; width: clamp(96px, 26vw, 240px); }
.day__boo--l { left: max(0px, calc(50% - var(--w, 300px) / 2 - 22vw)); bottom: 8%; }
.day__boo--r { right: max(0px, calc(50% - var(--w, 300px) / 2 - 22vw)); top: 6%; }
@media (max-width: 599px) {
  .day__stage .phone { --w: 64vw; }
  .day__boo--l { left: -4px; bottom: 4%; }
  .day__boo--r { right: -4px; top: 2%; }
}
@media (min-width: 600px) {
  .day__stage .phone { --w: min(320px, 40vw); }
  .day__boo--l { left: calc(50% - 160px - clamp(160px, 22vw, 300px)); }
  .day__boo--r { right: calc(50% - 160px - clamp(160px, 22vw, 300px)); }
}

/* ---------- 3. лента фактов ---------- */
.facts { padding: 8px 0 clamp(48px, 7vh, 72px); }
.marquee { display: flex; overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { --gap: clamp(24px, 4vw, 56px); display: flex; flex-shrink: 0; align-items: center; gap: var(--gap); padding-right: var(--gap); animation: marquee var(--dur, 44s) linear infinite; }
.marquee--back .marquee__track { animation-direction: reverse; }
html.ready .marquee:not(.is-in) .marquee__track { animation-play-state: paused; }
.marquee--rev:hover .marquee__track, .marquee--rev:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.fact { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; padding-block: 12px; }
.fact img { width: clamp(64px, 8vw, 104px); height: auto; }
.facts__cta { display: flex; justify-content: center; margin-top: clamp(32px, 6vh, 56px); padding-inline: var(--gutter); }

/* ---------- 4. возможности ---------- */
.feat { padding-top: clamp(96px, 14vh, 150px); }
.feat__title { font-size: clamp(40px, 10.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; padding-bottom: .14em; }
@media (min-width: 768px) { .feat__title { font-size: clamp(52px, 5.4vw, 80px); } }
.feat__grid { position: relative; }
.fi { display: grid; gap: 22px; padding: clamp(48px, 8vh, 96px) 0; justify-items: start; }
.fi__txt { display: grid; gap: 22px; }
.fi .phone { --w: min(280px, 66vw); justify-self: center; margin-top: 12px; }
@media (min-width: 900px) {
  /* заголовок и текст — одной группой по центру высоты телефона */
  .fi { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 8vw, 140px); align-items: center; }
  .fi .phone { --w: min(320px, 24vw, 38svh); margin: 0; }
}
.feat__bar { display: none; }

/* sticky-раздел: только при живом скрипте и без «меньше движения».
   Заголовок внутри закреплённого блока: без пустоты между лентой фактов и разделом. */
html.pin .feat { padding-top: clamp(40px, 6vh, 56px); }
html.pin .feat::after { content: ""; display: block; height: calc(var(--n) * 62svh); }
html.pin .feat__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; overflow: clip; }
html.pin .feat__grid { flex: 1; min-height: 0; display: flex; align-items: center; }
html.pin .feat__list { display: grid; width: 100%; }
html.pin .fi { grid-area: 1 / 1; padding: 0; }
html.pin .fi > * { transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); }
html.pin .fi:not(.is-on) { pointer-events: none; }
html.pin .fi:not(.is-on) > * { opacity: 0; transform: translateY(48px); filter: blur(8px); }
html.pin .fi.is-past > * { transform: translateY(-48px); }
html.pin .fi:not(.is-on) .phone { transform: translateY(40px) scale(.94); }
html.pin .fi > .phone { transition-delay: .06s; }
html.pin .feat__bar { display: block; position: absolute; right: calc(var(--gutter) / 2 - 1.5px); top: 50%; width: 3px; height: 160px; margin-top: -80px; border-radius: 3px; background: var(--line); overflow: hidden; }
html.pin .feat__bar span { display: block; height: 100%; background: var(--cream); transform-origin: top; transform: scaleY(var(--p, 0)); }
@media (min-width: 900px) {
  html.pin .feat { padding-top: 0; }
  html.pin .feat__pin { padding-top: 100px; }
  html.pin .feat__grid { padding-bottom: 24px; }
}
@media (max-width: 899px) {
  /* телефон: заголовок раздела уезжает вверх, закреплён только экран фичи (высота — весь экран) */
  html.pin .feat__pin { top: calc(-1 * var(--tt, 0px)); height: calc(100svh + var(--tt, 0px)); }
  html.pin .feat__grid { align-items: stretch; }
  html.pin .fi { padding-top: 92px; gap: 12px; align-content: start; }
  html.pin .fi__txt { gap: 12px; }
  html.pin .fi .phone { margin-top: 0; }
  /* полоса прогресса — вертикально у левого края, рядом с рамкой, а не под ней */
  html.pin .feat__bar { top: auto; bottom: 20px; right: auto; left: var(--gutter); width: 3px; height: 120px; margin: 0; }
  html.pin .fi .lead { font-size: 17px; }
}

/* ---------- 5. платформы ---------- */
.plat { padding: clamp(96px, 16vh, 170px) 0; }
.plat__in { display: grid; gap: 40px; }
.plat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.plat__boo { width: clamp(104px, 18vw, 220px); flex-shrink: 0; }
.plat .h--sec { font-size: clamp(40px, 10.4vw, 52px); }
@media (max-width: 899px) { .plat__head { position: relative; } .plat__boo { position: absolute; right: 0; top: -84px; width: 96px; } }
@media (min-width: 900px) { .plat .h--sec { font-size: clamp(52px, 4.6vw, 72px); } }
.pl { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.pl:last-child { border-bottom: 1px solid var(--line); }
.pl__name { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 7vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.pl--sync .pl__name { font-size: clamp(22px, 5vw, 32px); }
.pl__ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tag { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-size: 16px; font-weight: 700; background: rgba(17, 102, 111, .1); color: var(--teal); white-space: nowrap; }
.tag--on { background: var(--teal); color: var(--cream); }
@media (min-width: 900px) {
  .plat__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; }
  .plat__head { flex-direction: column; align-items: flex-start; position: sticky; top: 120px; }
}

/* ---------- 6. манифест ---------- */
.mf { padding: clamp(110px, 20vh, 220px) 0 clamp(40px, 6vh, 72px); }
.mf__text { font-size: clamp(30px, 7.6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.14; max-width: 21em; text-wrap: pretty; }
@media (min-width: 768px) { .mf__text { font-size: clamp(40px, 4.8vw, 68px); } }
.mf__boo { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin: 0 .08em; }
/* слова идут за цветом страницы (--fg), как весь текст: край манифеста на фоне отзывов остаётся читаемым */
html.ready:not(.rm) .mf .w { color: color-mix(in srgb, var(--fg) 26%, transparent); transition: color .35s ease; }
html.ready:not(.rm) .mf .w.on { color: var(--fg); }
html.ready:not(.rm) .mf__boo { transition: transform .6s var(--ease), opacity .6s; }
html.ready:not(.rm) .mf__boo:not(.on) { transform: scale(.6) rotate(-12deg); opacity: .3; }

/* ---------- 7. отзывы ---------- */
.rev { padding: clamp(72px, 11vh, 120px) 0 clamp(96px, 16vh, 170px); overflow: clip; }
.rev__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 6vh, 64px); }
.rev__note { color: var(--fg2); font-size: 18px; }
.rev__rows { display: grid; gap: 16px; }
.marquee--rev { --dur: 80s; }
.marquee--rev .marquee__track { --gap: 16px; align-items: stretch; }
.q { width: min(400px, 80vw); flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: 32px; background: var(--white); color: var(--ink); }
.q__t { font-size: 18px; line-height: 1.5; }
.q__src { font-size: 16px; color: var(--sage); font-weight: 700; }

/* ---------- 8. вопросы ---------- */
.faq { padding: clamp(96px, 16vh, 170px) 0; overflow-x: clip; }
.faq__in { display: grid; gap: 40px; }
.faq__head { position: relative; padding-right: 96px; }
/* срез на картинке — 93,4 % ширины: ставим его ровно на край экрана (телефон) или на линию аккордеона (десктоп) */
.faq__boo { --bw: 132px; position: absolute; top: 50%; width: var(--bw); height: auto; transform: translateY(-50%); right: calc(-1 * var(--gutter) - var(--bw) * .066); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; cursor: pointer; font-size: clamp(20px, 5vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa__ico { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .35s var(--ease); }
.qa[open] .qa__ico { transform: rotate(45deg); }
.qa p { max-width: 60ch; padding: 0 0 24px; color: var(--fg2); }
.qa a { color: var(--fg); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}
@media (min-width: 900px) {
  .faq__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq__head { padding-right: 0; min-height: 300px; }
  .faq__boo { --bw: 200px; top: auto; bottom: 0; transform: none; right: calc(-64px - var(--bw) * .066); }
}

/* ---------- 9. финал ---------- */
.fin { padding: clamp(110px, 20vh, 220px) 0 clamp(96px, 16vh, 180px); overflow: clip; text-align: center; }
.fin__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.fin__boo { width: clamp(140px, 22vw, 240px); margin-bottom: 4px; filter: drop-shadow(0 24px 30px rgba(8, 40, 44, .4)); }
.fin .stores { justify-content: center; }
.fin .lead { margin-inline: auto; }
.fin__small { font-size: 16px; color: var(--fg2); max-width: 30em; }
.fin__sky { position: absolute; inset: 0; pointer-events: none; }
.coin, .star { position: absolute; left: var(--x); top: var(--y); width: clamp(40px, 5vw, 64px); aspect-ratio: 1; transform: rotate(var(--r)); }
.coin { height: auto; filter: drop-shadow(0 12px 12px rgba(8, 40, 44, .4)); }
.star { background: var(--cream); clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 60%, 80% 100%, 50% 76%, 20% 100%, 31% 60%, 0 38%, 39% 36%); opacity: .9; }
.coin--s, .star--s { width: clamp(26px, 3vw, 40px); }
@media (max-width: 599px) {
  .coin, .star { width: 34px; } .coin--s, .star--s { width: 22px; }
}
html.ready:not(.rm) .coin, html.ready:not(.rm) .star { transition: transform 1.5s cubic-bezier(.2, 1.15, .4, 1) var(--d); }
html.ready:not(.rm) .fin:not(.is-in) .coin, html.ready:not(.rm) .fin:not(.is-in) .star { transform: translateY(-110vh) rotate(calc(var(--r) * -6)); }

/* ---------- футер, проявляется под main ---------- */
.ftr { position: relative; z-index: 0; background: var(--night); color: var(--night-text); }
html.reveal .ftr { position: fixed; left: 0; right: 0; bottom: 0; }
html.reveal main { margin-bottom: var(--fh, 0px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5); }
.ftr__in { display: grid; gap: 32px; padding-top: 64px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.ftr__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.ftr__brand img { width: 56px; height: 56px; grid-row: span 2; }
.ftr__word { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ftr__tag { color: rgba(234, 232, 227, .74); font-size: 16px; }
.ftr__links { display: grid; gap: 4px; }
.ftr__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration-color: rgba(234, 232, 227, .35); }
.ftr__links a:hover { text-decoration-color: var(--coin); }
.ftr__meta { display: grid; gap: 16px; justify-items: start; }
.ftr .lang { background: rgba(234, 232, 227, .1); color: var(--night-text); }
.ftr .lang button[aria-pressed="true"] { background: var(--night-text); color: var(--night); }
.ftr__copy { font-size: 16px; color: rgba(234, 232, 227, .74); }
@media (min-width: 900px) {
  .ftr__in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; padding-top: 88px; }
}

/* ---------- меньше движения: всё видно и неподвижно ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 8px; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .fact { white-space: normal; }
  .btn::before { transition: none; }
}
/* то же, когда site.js увидел «меньше движения» */
html.rm { scroll-behavior: auto; }
html.rm .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
html.rm .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 8px; }
html.rm .marquee__track[aria-hidden="true"] { display: none; }
html.rm .fact { white-space: normal; }
html.rm .btn::before { transition: none; }


/* кнопка «Оформить подписку» после каждого блока */
.subcta { display: flex; justify-content: center; margin-top: clamp(32px, 6vh, 56px); padding-inline: var(--gutter); }
.subcta-band { background: var(--bg); color: var(--fg); padding-bottom: clamp(40px, 7vh, 64px); }
.subcta-band .subcta { margin-top: 0; padding-top: clamp(24px, 4vh, 40px); }
