/* ═══════════════════════════════════════════════════════════════════
   Сайт «Легче». Тёмная тема в цветах приложения: ночной синий + изумруд.
   Шрифты свои (Onest — заголовки и логотип, Manrope — текст), без сторонних сервисов.
   Onest выбран 14.11.2026 (Unbounded и Literata заказчик отклонил). Курсива у Onest нет —
   курсив в заголовках не использовать, выделять цветом.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-lat.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; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-ext.woff2) format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/manrope-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/manrope-lat.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/manrope-ext.woff2) format('woff2'); unicode-range: U+20BD; }

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --card: #0f1729;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --soft: #cdd6e3;
  --muted: #9aabc2;
  --faint: #8494ab;

  --accent: #34d399;
  --accent-2: #10b981;
  --teal: #2dd4bf;
  --mint: #a7f3d0;
  --ink: #03251a;

  --kcal: #fb923c;
  --prot: #f472b6;
  --fat: #facc15;
  --carb: #60a5fa;
  --water: #38bdf8;
  --steps: #a78bfa;
  --heart: #fb7185;
  --sugar: #c084fc;
  --lab: #2dd4bf;
  --gold: #fbbf24;
  --info: #60a5fa;

  --f-display: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r: 28px;
  --nav-h: 72px;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
/* Скрытое атрибутом hidden — скрыто всегда, даже если у класса свой display (например, меню .mnav:
   без этого правила закрытое меню лежало невидимым поверх страницы и перехватывало мышь) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  font-synthesis: none; /* у Onest и Manrope нет курсива — не подделывать наклон */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; }
::selection { background: rgba(52, 211, 153, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1200px, 100% - 64px); } }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
mark.fill { background: rgba(250, 204, 21, 0.14); color: #fde68a; border: 1px dashed rgba(250, 204, 21, 0.55); padding: 0 0.4em; border-radius: 6px; font-size: 0.92em; white-space: nowrap; }

/* ───────── Иконки ───────── */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Кнопки ───────── */
.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: var(--h);
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--f-text);
  letter-spacing: 0.005em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { color: var(--text); }
.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 45%, #14b8a6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px -12px rgba(52, 211, 153, 0.6);
}
.btn--primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 28px -12px rgba(52, 211, 153, 0.75); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.btn--ghost .i:last-child { transition: transform 0.35s var(--ease-out); }
.btn--ghost:hover .i:last-child { transform: translateX(4px); }
.btn--gold { color: #2a1a00; background: linear-gradient(135deg, #fde68a, #fbbf24 50%, #f59e0b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 30px -12px rgba(251, 191, 36, 0.7); }
.btn--gold:hover { color: #2a1a00; }
.btn--lg { --h: 58px; padding: 0 1.8em; font-size: 1.05rem; }
.btn--sm { --h: 40px; padding: 0 1.1em; font-size: 0.92rem; }
.btn--block { width: 100%; }


/* ───────── Шапка ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: env(safe-area-inset-top); transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out); border-bottom: 1px solid transparent; }
/* Размытие — на подложке ::before, а не на самой шапке: иначе «фиксированное» мобильное меню внутри шапки
   сжимается до её высоты (backdrop-filter у предка меняет точку отсчёта для position: fixed). */
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 700 1.4rem/1 var(--f-display); letter-spacing: -0.025em; }
.brand:hover { color: #fff; }
.brand .logo { width: 38px; height: 38px; filter: drop-shadow(0 6px 18px rgba(52, 211, 153, 0.4)); transition: transform 0.6s var(--spring); }
.brand:hover .logo { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { position: relative; padding: 9px 15px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; transition: color 0.25s, background-color 0.25s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__burger { display: none; place-items: center; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.nav__burger span { grid-area: 1 / 1; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.45s var(--ease-out); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }
.mnav { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0; z-index: 55; display: flex; flex-direction: column; gap: 32px; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); background: rgba(6, 10, 20, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-y: auto; opacity: 0; transition: opacity 0.35s; }
.mnav.is-open { opacity: 1; }
.mnav:not(.is-open) { pointer-events: none; } /* гаснущее при закрытии меню уже не ловит клики */
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font: 600 1.45rem/1.2 var(--f-display); letter-spacing: -0.02em; opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.mnav.is-open .mnav__links a { opacity: 1; transform: none; }
.mnav.is-open .mnav__links a:nth-child(2) { transition-delay: 0.04s; }
.mnav.is-open .mnav__links a:nth-child(3) { transition-delay: 0.08s; }
.mnav.is-open .mnav__links a:nth-child(4) { transition-delay: 0.12s; }
.mnav.is-open .mnav__links a:nth-child(5) { transition-delay: 0.16s; }
.mnav.is-open .mnav__links a:nth-child(6) { transition-delay: 0.2s; }
body.menu-open { overflow: hidden; }
/* Переключатель «светлый / тёмный вид»: без JS не работает, поэтому и не показывается */
.theme-btn { display: none; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--spring); }
.js .theme-btn { display: grid; }
.theme-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--accent); }
.theme-btn:active { transform: scale(0.9); }
.theme-btn .i { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform 0.7s var(--spring), opacity 0.3s; }
.theme-btn .i-moon { opacity: 0; transform: rotate(-100deg) scale(0.4); }
.theme-btn:hover .i-sun { transform: rotate(45deg); }
/* смена вида — круг расходится от кнопки (где браузер умеет; иначе мгновенно) */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .js .theme-btn { margin-left: auto; }
  .js .theme-btn ~ .nav__cta { margin-left: 0; }
  .js .nav__burger { display: grid; margin-left: -8px; } /* три кнопки справа — через равные 12 px; без JS меню не открыть */
}
@media (max-width: 400px) {
  .nav__cta span { display: none; }
  .nav__cta { width: 44px; height: 44px; padding: 0; }
}

/* ───────── Сияние (аврора) ───────── */
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle at center, var(--c) 0%, transparent 60%); }
.aurora i:nth-child(1) { --c: rgba(16, 185, 129, 0.42); top: -38vmax; left: -22vmax; }
.aurora i:nth-child(2) { --c: rgba(45, 212, 191, 0.3); top: -24vmax; right: -34vmax; }
.aurora i:nth-child(3) { --c: rgba(99, 102, 241, 0.2); bottom: -48vmax; left: 6vmax; }
.aurora i:nth-child(4) { --c: rgba(56, 189, 248, 0.16); bottom: -36vmax; right: -20vmax; }
.aurora--soft i { opacity: 0.7; }

/* ───────── Заголовки разделов ───────── */
.section { position: relative; padding: clamp(84px, 12vw, 160px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .sec-lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--mint); font: 700 0.78rem/1.2 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow__dot { width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.sec-title { margin: 18px 0 20px; font: 600 clamp(2.1rem, 4.8vw, 3.8rem)/1.08 var(--f-display); letter-spacing: -0.032em; text-wrap: balance; }
.sec-lead { max-width: 38em; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.18rem); text-wrap: pretty; }
.grad { font-style: normal; color: #86efc4; }
.grad[data-split-grad] { color: inherit; }

/* Разбиение заголовков на слова — плавный подъём */
.w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0.06em 0.02em 0.14em; margin: -0.06em -0.02em -0.14em; }
.js [data-split] .w__in { display: inline-block; transform: translateY(105%) rotate(5deg); transform-origin: 0 100%; opacity: 0; transition: transform 1.1s var(--ease-out), opacity 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0s)); }
.js [data-split].is-in .w__in { transform: none; opacity: 1; }

/* Появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(34px) scale(0.98); transition: opacity 0.8s var(--ease), transform 1.1s var(--ease-out), border-color 0.3s, background-color 0.3s; transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-stagger] > .is-in { opacity: 1; transform: none; }

/* ═════════════ ПЕРВЫЙ ЭКРАН ═════════════ */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 48px) 0 96px; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin: 22px 0 24px; font: 700 clamp(2.9rem, 6.8vw, 6rem)/1 var(--f-display); letter-spacing: -0.04em; }
.hero__title em { display: inline; }
.hero__lead { max-width: 33em; color: var(--soft); font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__cta--center { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; font-weight: 600; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--accent); }
.hero__note { position: absolute; bottom: -38px; left: 0; right: 0; margin: 0; text-align: center; color: var(--faint); font-size: 0.78rem; }


/* Сцена с телефоном */
.hero__stage { position: relative; display: grid; place-items: center; perspective: 1100px; padding: 20px 0 30px; }
.phone-glow { position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent 62%); }
.phone {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 9 / 19.3;
  padding: 3.4%;
  border-radius: 15% / 7.2%;
  background: linear-gradient(150deg, #3a4766, #0b1222 38%, #070c18 62%, #2c3a5a);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), inset 0 0 0 5px #05080f, 0 60px 120px -40px rgba(0, 0, 0, 0.9), -30px 30px 90px -20px rgba(16, 185, 129, 0.45);
  /* Поворот и окантовка — как в первом варианте дизайна (снимок docs\сайт-снимки\1-…).
     --ry/--rx плавно меняет site.js: телефон чуть поворачивается за мышкой (на компьютере). */
  transform: rotateY(var(--ry, -20deg)) rotateX(var(--rx, 7deg)) rotateZ(2deg);
}
/* «backwards», а не «both»: после появления браузер перерисовывает экран телефона чётко */
.js .phone { animation: phoneIn 1.6s var(--ease-out) 0.15s backwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotateY(-20deg) rotateX(7deg) rotateZ(2deg); } }
/* Светлая металлическая окантовка корпуса (неподвижная) */
.phone::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.6px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.05) 45%, rgba(110, 231, 183, 0.55) 78%, rgba(255, 255, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.phone::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 36%, transparent 72%, rgba(255, 255, 255, 0.06) 100%); }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 12% / 5.6%; background: #0a1020; container-type: inline-size; }

/* Плавающие карточки вокруг телефона */
.float-card { position: absolute; display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(13, 20, 38, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7); font-size: 0.86rem; line-height: 1.25; z-index: 3; }
.float-card b { display: block; font-size: 0.98rem; }
.float-card small { color: var(--muted); }
.fc__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.phone { z-index: 2; }
.fc1 { top: 14%; left: -20%; z-index: 1; } /* выглядывает из-за телефона, не закрывает экран */
.fc2 { bottom: 18%; right: -10%; }
/* Карточки: появляются, потом спокойно «дышат»; translate — сдвиг за мышкой (глубина), его задаёт site.js */
.float-card { translate: var(--px, 0) var(--py, 0); }
.js .fc1 { animation: pop 0.8s var(--ease-out) 0.9s both, bob 6.5s ease-in-out 1.7s infinite; }
.js .fc2 { animation: pop 0.8s var(--ease-out) 1.15s both, bob 7.5s ease-in-out 2s infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
@keyframes bob { 50% { transform: translateY(-9px); } }
/* Сердечко бьётся, полоска воды наполняется — «живые» данные, а не украшение */
.fc1 .fc__icon .i { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 26% { transform: scale(1); } 38% { transform: scale(1.1); } }
.fc__bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(56, 189, 248, 0.18); overflow: hidden; }
.fc__bar i { display: block; height: 100%; width: 75%; border-radius: inherit; background: var(--water); transition: width 0.9s var(--ease-out); }
[data-bp] { transition: opacity 0.35s; }

/* Пёрышки на первом экране — медленно планируют сверху вниз, покачиваясь */
.feathers { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.feather { position: absolute; top: 0; width: 44px; height: 44px; color: var(--mint); opacity: 0; }
.js .feather { animation: fall var(--t, 24s) linear var(--dl, 0s) infinite; }
.f1 { left: 9%; --t: 26s; --dl: -6s; }
.f2 { left: 46%; width: 30px; height: 30px; --t: 32s; --dl: -19s; color: var(--teal); }
.f3 { left: 84%; width: 36px; height: 36px; --t: 29s; --dl: -12s; }
@keyframes fall {
  0% { opacity: 0; transform: translate(0, -12vh) rotate(-25deg); }
  10% { opacity: 0.22; }
  25% { transform: translate(34px, 18vh) rotate(10deg); }
  50% { transform: translate(-22px, 46vh) rotate(-18deg); }
  75% { transform: translate(28px, 74vh) rotate(14deg); }
  90% { opacity: 0.22; }
  100% { opacity: 0; transform: translate(-10px, 104vh) rotate(-12deg); }
}

/* ───────── Макет приложения внутри телефона ───────── */
.a-fun { display: flex; align-items: center; gap: 0.8em; color: #cbd5e1; font-size: 0.92em; }
.a-fun span { font-size: 1.7em; }
.a-fun b { color: #f1f5f9; }
.app { position: absolute; inset: 0; font-size: 3.85cqw; line-height: 1.3; color: #f1f5f9; font-family: var(--f-text); }
.app small { font-size: 0.82em; color: #94a3b8; }
.app p { margin: 0; }
.a-status { position: relative; height: 3.1em; display: flex; align-items: center; justify-content: space-between; padding: 0 2.2em 0 2.4em; font-weight: 700; font-size: 0.9em; }
.a-island { position: absolute; top: 0.8em; left: 50%; width: 28%; height: 1.9em; border-radius: 99px; background: #000; transform: translateX(-50%); }
.a-sys { display: flex; gap: 0.25em; align-items: flex-end; }
.a-sys b { display: block; width: 0.32em; border-radius: 1px; background: #f1f5f9; }
.a-sys b:nth-child(1) { height: 0.5em; } .a-sys b:nth-child(2) { height: 0.75em; } .a-sys b:nth-child(3) { height: 1em; }
.a-scr { position: absolute; top: 3.2em; left: 0; right: 0; bottom: 4.9em; padding: 0.5em 1.1em 0; display: flex; flex-direction: column; gap: 0.75em; opacity: 0; transform: translateX(8%) scale(0.98); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease-out); pointer-events: none; }
.a-scr.is-active { opacity: 1; transform: none; }
.a-scr.is-leaving { opacity: 0; transform: translateX(-8%) scale(0.98); }
.a-top { display: flex; align-items: flex-start; justify-content: space-between; }
.a-sub { color: #94a3b8; font-size: 0.92em; }
.a-h1 { font-size: 1.75em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.a-streak { padding: 0.35em 0.75em; border: 1px solid rgba(251, 146, 60, 0.6); border-radius: 99px; font-weight: 800; font-size: 0.92em; }
.a-btn { padding: 0.5em 0.9em; border-radius: 0.8em; background: #34d399; color: #052e1f; font-weight: 800; font-size: 0.85em; box-shadow: 0 0 1.5em rgba(52, 211, 153, 0.4); }
.a-card { padding: 0.85em 0.95em; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 1.2em; background: #151e33; }
.a-card--hero { display: grid; grid-template-columns: auto 1fr; gap: 0.7em 0.9em; align-items: center; background: linear-gradient(140deg, #173a3f, #151e33 55%); }
.a-ringbox { position: relative; width: 6.4em; }
.a-ring { width: 100%; transform: rotate(-90deg); }
.a-ring circle { fill: none; stroke-width: 9; }
.a-ring__bg { stroke: #1e2a45; }
.a-ring__fg { stroke: #34d399; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-out) 0.25s; }
.is-active .a-ring__fg { stroke-dashoffset: calc(100 - var(--p)); }
.a-ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.a-ring__mid b { font-size: 1.35em; color: #34d399; letter-spacing: -0.02em; }
.a-ring__mid small { font-size: 0.68em; }
.a-now small { display: block; }
.a-now p { font-size: 0.95em; }
.a-now p b { font-size: 1.9em; letter-spacing: -0.03em; }
.a-now em { display: block; margin-top: 0.15em; color: #34d399; font-style: normal; font-size: 0.85em; font-weight: 600; }
.a-now small b { color: #f1f5f9; }
.a-mile { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.78em; color: #94a3b8; }
.a-mile b { color: #f1f5f9; }
.a-bar { grid-column: 1 / -1; height: 0.4em; border-radius: 1em; background: #1e2a45; overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #34d399; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.5s; }
.is-active .a-bar i { transform: scaleX(var(--w)); }
.a-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.a-quick span { display: grid; justify-items: center; gap: 0.25em; padding: 0.65em 0.2em; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 1em; background: #151e33; font-weight: 700; font-size: 0.82em; }
.a-quick .i { width: 1.35em; height: 1.35em; }
.a-water { display: flex; align-items: center; justify-content: space-between; }
.a-water p b { font-size: 1.4em; }
.a-glasses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25em; }
.a-glasses i { width: 0.95em; height: 1.2em; border: 1.5px solid #38bdf8; border-radius: 0.15em 0.15em 0.3em 0.3em; opacity: 0.5; }
.a-glasses i.f { background: #38bdf8; opacity: 1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.5s var(--ease-out); }
.is-active .a-glasses i.f { transform: none; }
.is-active .a-glasses i.f:nth-child(2) { transition-delay: 0.1s; } .is-active .a-glasses i.f:nth-child(3) { transition-delay: 0.2s; }
.is-active .a-glasses i.f:nth-child(4) { transition-delay: 0.3s; } .is-active .a-glasses i.f:nth-child(5) { transition-delay: 0.4s; }
.is-active .a-glasses i.f:nth-child(6) { transition-delay: 0.5s; }
.a-kcal { display: flex; align-items: center; gap: 1em; }
.a-ring--kcal { width: 7em; flex: none; }
.a-ring--kcal .a-ring__fg { stroke: #fb923c; }
.a-kcal__txt p b { font-size: 1.9em; letter-spacing: -0.03em; }
.a-kcal__txt em { display: inline-block; margin-top: 0.35em; padding: 0.2em 0.6em; border-radius: 99px; background: rgba(52, 211, 153, 0.15); color: #34d399; font-style: normal; font-weight: 700; font-size: 0.8em; }
.a-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.a-macros span { display: grid; gap: 0.15em; padding: 0.6em 0.7em; border-radius: 0.9em; background: #151e33; border: 1px solid rgba(255, 255, 255, 0.06); }
.a-macros b { font-size: 0.95em; }
.a-macros i { height: 0.3em; border-radius: 1em; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.4s; }
.is-active .a-macros i { transform: scaleX(var(--w)); }
.a-meals { display: grid; gap: 0.1em; padding-block: 0.4em; }
.a-meals p { display: grid; grid-template-columns: 1fr auto; padding: 0.45em 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.a-meals p:last-child { border: 0; }
.a-meals span { font-weight: 700; }
.a-meals small { grid-column: 1; grid-row: 2; }
.a-meals b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #fb923c; }
.a-meals .a-add b { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: rgba(52, 211, 153, 0.18); color: #34d399; }
.a-wt { grid-template-columns: 1fr auto; }
.a-wt p b { font-size: 2.1em; letter-spacing: -0.03em; }
.a-wt__r { text-align: right; }
.a-wt__r em { display: block; color: #34d399; font-style: normal; font-weight: 800; font-size: 1.3em; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.a-stats span { display: grid; padding: 0.55em 0.7em; border-radius: 0.9em; background: #151e33; border: 1px solid rgba(255, 255, 255, 0.06); }
.a-stats b { color: #34d399; font-size: 1.15em; }
.a-chart { padding: 0.7em 0.6em 0.6em; }
.a-chart svg { width: 100%; height: 11.5em; overflow: visible; }
.a-chart p { display: flex; align-items: center; gap: 0.4em; margin-top: 0.4em; color: #94a3b8; font-size: 0.75em; }
.a-chart p i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #34d399; }
.a-chart p i.g { margin-left: 0.6em; background: #64748b; }
.mini-line { fill: none; stroke: #34d399; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-out) 0.2s; filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6)); }
.mini-area { opacity: 0; transition: opacity 1s 0.8s; }
.mini-dot { fill: #64748b; opacity: 0; transition: opacity 0.4s; }
.is-active .mini-line { stroke-dashoffset: 0; }
.is-active .mini-area { opacity: 1; }
.is-active .mini-dot { opacity: 0.75; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55em; }
.a-grid .a-card { display: grid; gap: 0.2em; padding: 0.75em 0.8em; }
.a-grid small { display: flex; align-items: center; gap: 0.35em; color: #f1f5f9; font-weight: 700; font-size: 0.85em; }
.a-grid small .i { width: 1.2em; height: 1.2em; }
.a-grid p b { font-size: 1.45em; letter-spacing: -0.02em; }
.a-grid em { justify-self: start; padding: 0.2em 0.6em; border-radius: 99px; font-style: normal; font-weight: 700; font-size: 0.72em; }
.a-grid em.ok { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.a-grid em.warn { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.a-meds { display: grid; gap: 0.15em; padding-block: 0.45em; }
.a-meds p { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7em; padding: 0.4em 0; }
.a-meds i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border: 1.5px solid #475569; border-radius: 0.45em; }
.a-meds i.d { border-color: #34d399; background: #34d399; color: #052e1f; }
.a-meds i .i { width: 1.1em; height: 1.1em; stroke-width: 3; }
.a-meds span { font-weight: 700; }
/* Карточка-строка: значок, две строки текста, кнопка справа (напоминание, прогноз, отчёт) */
.a-note { display: flex; align-items: center; gap: 0.8em; }
.a-note > .i { width: 1.5em; height: 1.5em; flex: none; }
.a-note p { flex: 1; display: grid; gap: 0.1em; line-height: 1.25; }
.a-note b { font-weight: 700; }
.a-note .a-btn { flex: none; }
.a-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 4.9em; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0.35em 0.4em 1em; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(10, 16, 32, 0.94); }
.a-tab { display: grid; justify-items: center; align-content: center; gap: 0.15em; color: #64748b; font-size: 0.68em; font-weight: 600; transition: color 0.4s; }
.a-tab .i { width: 2em; height: 2em; transition: transform 0.5s var(--spring); }
.a-tab.is-on { color: #34d399; }
.a-tab.is-on .i { transform: translateY(-2px) scale(1.08); }


/* ═════════════ ТРЕНД ═════════════ */
.glass { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #0d1527; }
.trend::before { content: ''; position: absolute; top: 10%; left: 50%; width: 80vw; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(16, 185, 129, 0.12), transparent); z-index: -1; pointer-events: none; }
.trend-card { padding: clamp(20px, 3vw, 36px); }
.trend-card__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.trend-card__top p { margin: 0; }
.trend-card__big { font: 600 clamp(2.6rem, 5.2vw, 3.8rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.trend-card__big small { font-size: 0.4em; color: var(--muted); letter-spacing: 0; }
.trend-chart { position: relative; height: clamp(240px, 36vw, 420px); margin: 0 -6px; touch-action: pan-y; cursor: crosshair; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.tc-grid line { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 3 6; }
.tc-grid text, .tc-x text { fill: var(--faint); font: 600 12px var(--f-text); }
.tc-dot { fill: #7d8ba1; opacity: 0; transition: opacity 0.5s var(--ease), fill 0.4s, r 0.4s; transition-delay: var(--dd, 0s); }
.tc-line { fill: none; stroke: url(#tcLineGrad); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.55)); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.6s var(--ease-out) 0.9s, opacity 0.5s; }
.tc-area { opacity: 0; transition: opacity 1.4s var(--ease) 1.6s; }
.trend-card.is-drawn .tc-dot { opacity: 0.7; }
.trend-card.is-drawn .tc-line { stroke-dashoffset: 0; }
.trend-card.is-drawn .tc-area { opacity: 1; }
.trend-card.mode-raw .tc-line, .trend-card.mode-raw .tc-area { opacity: 0; transition-delay: 0s; }
.trend-card.mode-raw .tc-dot { fill: #cbd5e1; opacity: 0.95; }
.tc-guide { stroke: rgba(167, 243, 208, 0.5); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0; transition: opacity 0.2s; }
.tc-focus { fill: var(--accent); stroke: #052e1f; stroke-width: 3; opacity: 0; transition: opacity 0.2s; }
.tc-focus-raw { fill: #fff; opacity: 0; transition: opacity 0.2s; }
.trend-chart.is-hover .tc-guide, .trend-chart.is-hover .tc-focus, .trend-chart.is-hover .tc-focus-raw { opacity: 1; }
.trend-card.mode-raw .tc-focus { opacity: 0 !important; }
.trend-tip { position: absolute; top: 0; left: 0; z-index: 2; min-width: 150px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 16, 32, 0.92); backdrop-filter: blur(8px); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7); font-size: 0.86rem; line-height: 1.45; pointer-events: none; transform: translate(var(--tx), var(--ty)); white-space: nowrap; }
.trend-tip b { color: var(--accent); }
.trend-card__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 18px; color: var(--soft); font-size: 0.92rem; font-weight: 600; }
.trend-card__legend span { display: inline-flex; align-items: center; gap: 8px; }
.trend-card__hint { margin-left: auto; font-weight: 500; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #7d8ba1; }
.dot--line { width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.seg__btn { padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-on { background: rgba(52, 211, 153, 0.16); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4); }
.seg--sm .seg__btn { padding: 8px 14px; font-size: 0.86rem; }
.trend-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.tp { padding: 28px; overflow: hidden; }
.tp__n { display: block; margin-bottom: 14px; font: 500 2.6rem/1 var(--f-display); letter-spacing: -0.03em; color: #86efc4; }
.tp h3 { margin-bottom: 10px; font: 600 1.12rem/1.3 var(--f-display); letter-spacing: -0.01em; }
.tp p { margin: 0; color: var(--muted); }

/* ═════════════ ВОЗМОЖНОСТИ (бенто) ═════════════ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #111a2f, #0b1324); }
.js .bento > .card.is-in { transition: transform 0.6s var(--ease-out), border-color 0.4s, opacity 0.8s; transition-delay: 0s; }
.card:hover { border-color: rgba(255, 255, 255, 0.16); }
.card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.card__icon .i { width: 22px; height: 22px; }
.card h3 { font: 600 1.12rem/1.25 var(--f-display); letter-spacing: -0.015em; }
.card > p { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; }
.b-food { grid-column: span 5; grid-row: span 2; }
.b-bp { grid-column: span 4; }
.b-water { grid-column: span 3; }
.b-labs { grid-column: span 4; }
.b-sugar { grid-column: span 3; }
.b-report { grid-column: span 7; }
.b-meds { grid-column: span 5; }
.b-steps, .b-ach, .b-mods, .b-care { grid-column: span 3; }

/* мини-иллюстрации */
.viz-food { position: relative; margin-block: auto; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; padding-top: 8px; }
.ring { width: 150px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: rgba(255, 255, 255, 0.07); }
.ring__fg { stroke: var(--kcal); stroke-linecap: round; stroke-dasharray: 315; stroke-dashoffset: 315; transition: stroke-dashoffset 2s var(--ease-out) 0.3s; filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.5)); }
.is-in .ring__fg { stroke-dashoffset: calc(315 * (1 - var(--p))); }
.viz-food__mid { position: absolute; left: 0; top: 8px; width: 150px; height: 150px; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.viz-food__mid b { font: 700 1.7rem/1 var(--f-display); letter-spacing: -0.04em; }
.viz-food__mid small { color: var(--muted); font-size: 0.78rem; }
.macros { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.macros li { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--soft); }
.macros i { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; position: relative; }
.macros i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.5s var(--ease-out) 0.6s; box-shadow: 0 0 10px var(--c); }
.is-in .macros i::after { transform: scaleX(var(--w)); }
.viz-ecg { position: relative; margin-top: auto; }
.viz-ecg svg { width: 100%; height: 70px; overflow: visible; }
.viz-ecg path { fill: none; stroke: var(--heart); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; opacity: 0.25; }
.viz-ecg svg::after { content: none; }
.viz-ecg .pulse { opacity: 1; stroke-dasharray: 16 100; stroke-dashoffset: 116; animation: ecg 2.6s linear infinite; filter: drop-shadow(0 0 6px var(--heart)); }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.viz-ecg__val { position: absolute; right: 0; top: -6px; font-size: 0.85rem; color: var(--muted); }
.viz-ecg__val b { font: 700 1.3rem/1 var(--f-display); color: var(--text); letter-spacing: -0.03em; }
.viz-glass { position: relative; width: 74px; height: 96px; margin: auto auto 0; border: 2.5px solid rgba(56, 189, 248, 0.7); border-top-color: rgba(56, 189, 248, 0.25); border-radius: 8px 8px 20px 20px; overflow: hidden; }
.viz-glass__water { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(56, 189, 248, 0.85), rgba(14, 165, 233, 0.95)); transition: height 2s var(--ease-out) 0.4s; }
.viz-glass__water svg { position: absolute; left: 0; bottom: 100%; width: 200%; height: 10px; fill: rgba(56, 189, 248, 0.85); }
.is-in .viz-glass__water { height: 72%; }
.viz-glass span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1rem/1 var(--f-display); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.viz-labs { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.viz-labs li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); font-size: 0.9rem; opacity: 0; transform: translateX(-16px); transition: opacity 0.6s, transform 0.8s var(--ease-out); }
.is-in .viz-labs li { opacity: 1; transform: none; }
.is-in .viz-labs li:nth-child(2) { transition-delay: 0.15s; }
.is-in .viz-labs li:nth-child(3) { transition-delay: 0.3s; }
.viz-labs b { font-family: var(--f-display); font-size: 0.95rem; }
.viz-labs em { padding: 3px 10px; border-radius: 99px; font-style: normal; font-weight: 700; font-size: 0.75rem; }
.viz-labs .ok { background: rgba(52, 211, 153, 0.14); color: var(--accent); }
.viz-labs .hi { background: rgba(251, 146, 60, 0.14); color: var(--kcal); }
.viz-spark { width: 100%; height: 70px; margin-top: auto; overflow: visible; }
.viz-spark__line { fill: none; stroke: var(--sugar); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 2s var(--ease-out) 0.3s; filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.6)); }
.viz-spark__area { fill: url(#sparkGrad); fill: rgba(192, 132, 252, 0.12); opacity: 0; transition: opacity 1s 1s; }
.is-in .viz-spark__line { stroke-dashoffset: 0; }
.is-in .viz-spark__area { opacity: 1; }
.viz-meds { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.viz-meds li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); font-weight: 600; font-size: 0.93rem; }
.viz-meds i { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #475569; border-radius: 8px; transition: background-color 0.4s, border-color 0.4s; }
.viz-meds i .i { width: 16px; height: 16px; stroke-width: 3; color: var(--ink); transform: scale(0); transition: transform 0.5s var(--spring); }
.viz-meds time { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.is-in .viz-meds li:nth-child(-n + 2) i { background: var(--accent); border-color: var(--accent); }
.is-in .viz-meds li:nth-child(-n + 2) i .i { transform: scale(1); }
.is-in .viz-meds li:nth-child(1) i, .is-in .viz-meds li:nth-child(1) i .i { transition-delay: 0.6s; }
.is-in .viz-meds li:nth-child(2) i, .is-in .viz-meds li:nth-child(2) i .i { transition-delay: 1.1s; }
.viz-report { position: relative; height: 170px; margin-top: auto; perspective: 800px; }
.sheet { position: absolute; left: 50%; bottom: -30px; width: min(300px, 80%); height: 190px; margin-left: calc(min(300px, 80%) / -2); border-radius: 14px; background: #e8eef6; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); transition: transform 0.9s var(--ease-out); }
.sheet.s3 { background: #94a3b8; transform: rotate(-2deg) translateY(10px); }
.sheet.s2 { background: #cbd5e1; transform: rotate(2deg) translateY(6px); }
.sheet.s1 { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; color: #0f172a; transform: translateY(20px); }
.is-in .sheet.s3 { transform: rotate(-9deg) translate(-40px, 6px); }
.is-in .sheet.s2 { transform: rotate(7deg) translate(36px, 2px); }
.is-in .sheet.s1 { transform: translateY(0); }
.b-report:hover .sheet.s1 { transform: translateY(-10px) rotate(-1deg); }
.sheet b { font: 700 0.95rem/1.2 var(--f-display); }
.sheet small { color: #475569; font-size: 0.75rem; }
.sheet svg { width: 100%; height: 46px; margin: 4px 0; }
.sheet path { fill: none; stroke: #059669; stroke-width: 2.5; stroke-linecap: round; }
.sheet .ln { height: 7px; border-radius: 4px; background: #cbd5e1; }
.sheet .ln.short { width: 60%; }
.viz-steps { margin: auto 0 0 !important; color: var(--muted); }
.viz-steps b { display: block; font: 700 2.4rem/1 var(--f-display); letter-spacing: -0.04em; color: var(--steps); text-shadow: 0 0 30px rgba(167, 139, 250, 0.45); }
.viz-badges { display: flex; gap: 10px; margin-top: auto; }
.viz-badges span { position: relative; overflow: hidden; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.05)); border: 1px solid rgba(251, 191, 36, 0.3); font-size: 1.6rem; transform: scale(0.6); opacity: 0; transition: transform 0.7s var(--spring), opacity 0.4s; }
.is-in .viz-badges span { transform: none; opacity: 1; }
.is-in .viz-badges span:nth-child(2) { transition-delay: 0.15s; }
.is-in .viz-badges span:nth-child(3) { transition-delay: 0.3s; }
.viz-toggles { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.92rem; }
.viz-toggles li { display: flex; align-items: center; justify-content: space-between; }
.viz-toggles i { position: relative; width: 40px; height: 23px; border-radius: 99px; background: #334155; transition: background-color 0.4s; }
.viz-toggles i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.45s var(--spring); }
.viz-toggles i.on { background: var(--accent); }
.viz-toggles i.on::after { transform: translateX(17px); }

/* ═════════════ БЕЗ ОСУЖДЕНИЯ ═════════════ */
.manifesto { padding-block: clamp(90px, 14vw, 190px); }
.manifesto::before { content: ''; position: absolute; inset: 15% 0; background: radial-gradient(50% 50% at 30% 50%, rgba(52, 211, 153, 0.08), transparent); pointer-events: none; }
.manifesto__text { max-width: 22em; margin-top: 28px; font: 400 clamp(1.7rem, 3.9vw, 3.2rem)/1.25 var(--f-display); letter-spacing: -0.02em; text-wrap: pretty; }
.sw { opacity: 0.32; transition: opacity 0.35s, color 0.35s, text-shadow 0.35s; }
.sw.on { opacity: 1; }
.no-scrub .sw { opacity: 1; }

/* ═════════════ ПРИВАТНОСТЬ ═════════════ */
/* Приватность: заголовок сверху во всю ширину, под ним схема и четыре карточки одной высоты — без пустот */
.privacy__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.privacy__head .sec-title { margin-bottom: 0; }
.privacy__head .sec-lead { margin: 0 0 6px; }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch; }
.privacy__grid .split__col { display: flex; flex-direction: column; }
.privacy__grid .split__col ul { flex: 1; align-content: space-between; }
.privacy__grid .split__none { margin-top: 18px; }
.privacy__grid .split__col--server ul { flex: 0 0 auto; align-content: start; }
.privacy__grid .split__col--server .split__none { margin-top: auto; }
.privacy__grid .checks { margin: 0; grid-template-rows: repeat(4, 1fr); }
.privacy__grid .checks li { align-items: center; padding: 16px 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr); align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); background: #0d1527; overflow: hidden; }
.split__col { padding: 28px 26px; }
.split__col--phone { background: linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0.02)); }
.split__label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.split__col--server .split__label { color: var(--muted); }
.split ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.split li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 0.97rem; }
.js .split li { opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.7s var(--ease-out); }
.js .split.is-in li { opacity: 1; transform: none; }
.split li .i { color: var(--accent); }
.split__col--server li .i { color: var(--muted); }
.split.is-in .split__col--phone li:nth-child(2) { transition-delay: 0.08s; }
.split.is-in .split__col--phone li:nth-child(3) { transition-delay: 0.16s; }
.split.is-in .split__col--phone li:nth-child(4) { transition-delay: 0.24s; }
.split.is-in .split__col--phone li:nth-child(5) { transition-delay: 0.32s; }
.split.is-in .split__col--phone li:nth-child(6) { transition-delay: 0.4s; }
.split.is-in .split__col--server li { transition-delay: 0.55s; }
.split__none { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-2); color: var(--soft); font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.split__wall { position: relative; width: 1px; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
.split__wall span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid var(--line-2); border-radius: 50%; background: #0a1120; color: var(--mint); }
.checks { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); }
.checks li > .i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(52, 211, 153, 0.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.checks b { display: block; margin-bottom: 2px; font-size: 1.04rem; }
.checks span { color: var(--muted); font-size: 0.96rem; }

/* ═════════════ ТАРИФЫ ═════════════ */
.pricing::before { content: ''; position: absolute; left: 50%; top: 30%; width: 90vw; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(16, 185, 129, 0.13), transparent); pointer-events: none; z-index: -1; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 30px; }
.plan__name { font: 600 1.2rem/1.2 var(--f-display); letter-spacing: -0.02em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan__price b { font: 600 clamp(2.9rem, 4.6vw, 3.9rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font: 500 1.6rem/1 var(--f-display); color: var(--muted); }
.plan__per { min-height: 3em; margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }
.plan__list { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; flex: 1; align-content: start; }
.plan__list li { position: relative; padding-left: 30px; color: var(--soft); font-size: 0.97rem; line-height: 1.45; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan__fine { margin: 14px 0 0; color: var(--faint); font-size: 0.84rem; text-align: center; }
.plan__badge { align-self: flex-start; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #6ee7b7, #14b8a6); color: var(--ink); font: 800 0.74rem/1 var(--f-text); letter-spacing: 0.02em; text-transform: uppercase; }
.plan__badge--gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1a00; }
.plan--pro { border-color: rgba(52, 211, 153, 0.4); background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(255, 255, 255, 0.02) 60%); box-shadow: 0 30px 80px -30px rgba(52, 211, 153, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.plan--pro .seg { align-self: flex-start; }
.plan--pro .plan__price b { transition: opacity 0.25s, transform 0.35s var(--ease-out); }
.plan--pro .plan__price b.swap { opacity: 0; transform: translateY(10px); }
.plan--founder { position: relative; padding: 1px; border-radius: 30px; background: linear-gradient(160deg, rgba(251, 191, 36, 0.75), rgba(251, 191, 36, 0.12) 45%, rgba(251, 191, 36, 0.4)); }
.plan__inner { display: flex; flex-direction: column; height: 100%; padding: 31px 27px; border-radius: 28.5px; background: linear-gradient(180deg, #13182a, #0b1222); }
.pricing__note { max-width: 46em; margin: 32px auto 0; color: var(--muted); font-size: 0.93rem; text-align: center; }

/* ═════════════ ВОПРОСЫ ═════════════ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.qa { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.025); transition: background-color 0.4s, border-color 0.4s; }
.qa[open] { border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.05); }
.qa summary { position: relative; padding: 21px 64px 21px 24px; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ''; position: absolute; right: 26px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--mint); transition: transform 0.45s var(--ease-out); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(180deg); }
.qa[open] summary::before { transform: rotate(180deg); }
.qa summary:hover { color: #fff; }
.qa__a { padding: 0 24px 20px; color: var(--muted); }
.qa__a p { margin: 0; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ═════════════ ФИНАЛ ═════════════ */
.final { padding-top: 40px; }
.final__card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px); border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 40px; background: #08101f; text-align: center; }
.aurora--card i { width: 50vmax; height: 50vmax; }
.final__feather { position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; color: rgba(167, 243, 208, 0.07); transform: rotate(-18deg); z-index: -1; }
.final__title { font: 700 clamp(2.3rem, 6vw, 5rem)/1.04 var(--f-display); letter-spacing: -0.04em; text-wrap: balance; }
.final__lead { margin: 20px auto 0; color: var(--soft); font-size: 1.15rem; }
.final__meta { margin: 0; color: var(--faint); font-size: 0.86rem; }

/* ═════════════ ПОДВАЛ ═════════════ */
.foot { position: relative; isolation: isolate; overflow: hidden; margin-top: 40px; padding: 72px 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #070c18, #04070f); }
.foot__glow { position: absolute; left: 50%; top: -200px; width: 900px; height: 300px; margin-left: -450px; background: radial-gradient(closest-side, rgba(52, 211, 153, 0.14), transparent); z-index: -1; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 40px; }
.foot__about p { margin: 18px 0 0; max-width: 26em; color: var(--muted); font-size: 0.95rem; }
.foot__about .foot__med { color: var(--faint); font-size: 0.84rem; }
.brand--lg { font-size: 1.45rem; }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; }
.foot__col h2 { margin-bottom: 6px; font: 700 0.76rem/1.2 var(--f-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.foot__col a { color: var(--soft); text-decoration: none; }
.foot__col a:hover { color: var(--mint); }
.foot__req p { margin: 0; color: var(--soft); }
.foot__contact { display: flex; align-items: center; gap: 8px; }
.foot__contact .i { color: var(--accent); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; }

/* ═════════════ ДОКУМЕНТЫ ═════════════ */
.doc-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 56px; border-bottom: 1px solid var(--line); }
.doc-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.crumb:hover { color: var(--mint); }
.doc-hero__title { max-width: 18em; margin: 22px 0 14px; font: 600 clamp(2.2rem, 5.2vw, 3.8rem)/1.06 var(--f-display); letter-spacing: -0.032em; text-wrap: balance; }
.doc-hero__meta { margin: 0; color: var(--faint); font-size: 0.92rem; }
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: 56px 0 110px; }
.doc-wrap:has(.doc-toc[hidden]) { grid-template-columns: minmax(0, 1fr); }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding-right: 8px; }
.doc-toc__title { margin: 0 0 12px; font: 700 0.74rem/1.2 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.doc-toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.88rem; line-height: 1.35; transition: color 0.25s, border-color 0.25s; }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-on { color: var(--mint); border-left-color: var(--accent); }
.doc { max-width: 800px; color: var(--soft); font-size: 1.02rem; overflow-wrap: anywhere; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 2.4em 0 0.8em; font: 600 clamp(1.3rem, 2.5vw, 1.65rem)/1.3 var(--f-display); letter-spacing: -0.015em; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc h3 { margin: 1.8em 0 0.6em; font-size: 1.12rem; font-weight: 800; color: var(--text); }
.doc p, .doc li { line-height: 1.7; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); }
.doc .lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--text); line-height: 1.6; }
.doc .note { margin: 28px 0; padding: 22px 26px; border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 22px; background: linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0.03)); color: var(--text); }
.doc .note > :last-child { margin-bottom: 0; }
.doc .note ul { margin: 0.4em 0 0; }
.table-scroll { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 700; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

/* ═════════════ СТРАНИЦА «СКАЧАТЬ» ═════════════ */
.dl-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 64px) 0 80px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.dl-card { margin-top: 32px; padding: 28px; }
.dl-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.dl-card__meta { display: grid; gap: 2px; color: var(--muted); font-size: 0.94rem; }
.dl-card__meta b { color: var(--text); font: 600 1.05rem/1.3 var(--f-display); }
.hash { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 0.8rem; color: var(--faint); }
.hash code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.hash button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--soft); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.hash button:hover { background: rgba(255, 255, 255, 0.08); }
.store-soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.store-soon b { padding: 4px 10px; border-radius: 99px; background: rgba(96, 165, 250, 0.14); color: #93c5fd; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 28px 24px 24px; counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(135deg, #6ee7b7, #14b8a6); color: var(--ink); font: 700 1.1rem/1 var(--f-display); box-shadow: 0 10px 24px -10px rgba(52, 211, 153, 0.8); }
.steps h3 { margin-bottom: 8px; font: 600 1.05rem/1.3 var(--f-display); letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.dl-faq { max-width: 860px; }

/* ═════════════ 404 ═════════════ */
.nf { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; text-align: center; }
.nf__code { font: 800 clamp(6rem, 22vw, 15rem)/0.9 var(--f-display); letter-spacing: -0.04em; background: linear-gradient(180deg, #e2fbe8, rgba(52, 211, 153, 0.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__feather { width: 110px; height: 110px; margin: 0 auto 10px; color: var(--mint); transform: rotate(8deg); }
.nf p { max-width: 30em; margin: 18px auto 32px; color: var(--muted); font-size: 1.1rem; }

/* ═════════════ АДАПТИВ ═════════════ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .b-food, .b-report, .b-meds { grid-column: span 6; grid-row: auto; }
  .b-bp, .b-water, .b-labs, .b-sugar, .b-steps, .b-ach, .b-mods, .b-care { grid-column: span 3; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 36px); }
  .hero__in, .privacy__head, .privacy__grid, .faq__grid, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { margin-top: 18px; }
  .fc1 { left: max(-2%, calc(50% - 250px)); z-index: 3; }
  .fc2 { right: max(-2%, calc(50% - 250px)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .trend-points { grid-template-columns: minmax(0, 1fr); }
  .faq .sec-head { position: static; }
  .doc-wrap { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bento > .card { grid-column: auto !important; }
  .card { padding: 22px; }
  .viz-food { grid-template-columns: 120px 1fr; gap: 18px; }
  .ring, .viz-food__mid { width: 120px; }
  .viz-food__mid { height: 120px; }
  .viz-food__mid b { font-size: 1.35rem; }
  .float-card { font-size: 0.76rem; padding: 8px 12px 8px 8px; gap: 8px; }
  .float-card b { font-size: 0.86rem; }
  .fc__icon { width: 30px; height: 30px; border-radius: 10px; }
  .fc1 { left: -2%; top: 8%; z-index: 3; } /* на телефоне — поверх, иначе почти не видна */
  .fc2 { right: -2%; bottom: 14%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .trend-card__top { align-items: flex-start; flex-direction: column; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__wall { width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .split__col { padding: 24px 20px; }
  .qa summary { padding: 18px 56px 18px 20px; font-size: 1rem; }
  .qa__a { padding: 0 20px 18px; }
  .plan { padding: 28px 22px; }
  .plan--founder { padding: 1px; } /* рамка-градиент 1 px, отступы — у .plan__inner */
  .plan__inner { padding: 27px 21px; }
  .final__card { border-radius: 30px; }
  .final__feather { width: 220px; height: 220px; }
}

/* Таблицы «название — значение» на телефоне: в столбик, без прокрутки вбок */
@media (max-width: 640px) {
  .doc th { white-space: normal; }
  .doc td:first-child:nth-last-child(2), .doc td:first-child:nth-last-child(2) ~ td { display: block; width: auto; }
  .doc td:first-child:nth-last-child(2) { padding-bottom: 2px; border-bottom: 0; color: var(--muted); font-size: 0.86rem; }
  .doc td:first-child:nth-last-child(2) ~ td { padding-top: 0; }
}

/* Кто попросил меньше движения — показываем всё сразу и без анимаций */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .sw { opacity: 1; }
}
