/* Токены — из docs/07-design-system.md */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/GolosText-Regular.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("fonts/GolosText-Medium.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/GolosText-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/Unbounded-Medium.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --hero: #2F666B;
  --hero2: #245256;
  --brand: #2F666B;
  --brand-soft: #E2EEEC;
  --brand-ink: #17393C;
  --on-hero-muted: #D2EAE7;
  --bg: #EEF3F2;
  --surface: #FFFFFF;
  --surface2: #F4F7F6;
  --line: #DDE7E5;
  --fg: #13272A;
  --muted: #5A7170;
  --ok: #2A8F62;
  --ok-soft: #DCF0E5;
  --ok-ink: #1F6E4B;
  --late: #B97B12;
  --late-soft: #F7EBD0;
  --late-ink: #7A500A;
  --miss: #C2513B;
  --miss-soft: #F6DED8;
  --miss-ink: #8E3524;
  --dark-card: #17393C;
  --shadow: 0 1px 2px rgba(19, 39, 42, .05), 0 6px 20px rgba(19, 39, 42, .07);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Тёмная тема: по системе, если пользователь не выбрал светлую, или по явному выбору */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --hero: #1C4245;
    --hero2: #163538;
    --brand: #69B5AE;
    --brand-soft: #16302F;
    --brand-ink: #D2EAE7;
    --bg: #0B1617;
    --surface: #122224;
    --surface2: #172A2C;
    --line: #213839;
    --fg: #E3EEED;
    --muted: #93AAA8;
    --ok: #4DBE8A;
    --ok-soft: #14322A;
    --ok-ink: #7FD6AC;
    --late: #E2AC4A;
    --late-soft: #33280F;
    --late-ink: #EBC27A;
    --miss: #E7765E;
    --miss-soft: #3A1F19;
    --miss-ink: #F09A87;
    --dark-card: #102B2D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --hero: #1C4245;
  --hero2: #163538;
  --brand: #69B5AE;
  --brand-soft: #16302F;
  --brand-ink: #D2EAE7;
  --bg: #0B1617;
  --surface: #122224;
  --surface2: #172A2C;
  --line: #213839;
  --fg: #E3EEED;
  --muted: #93AAA8;
  --ok: #4DBE8A;
  --ok-soft: #14322A;
  --ok-ink: #7FD6AC;
  --late: #E2AC4A;
  --late-soft: #33280F;
  --late-ink: #EBC27A;
  --miss: #E7765E;
  --miss-soft: #3A1F19;
  --miss-ink: #F09A87;
  --dark-card: #102B2D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }
b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--surface); color: var(--fg); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 104px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.h2-sm { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; border-radius: 0 0 40px 40px; }
.hero__mark { position: absolute; right: -160px; top: -120px; width: 620px; height: 620px; opacity: .07; pointer-events: none; }
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.brand__logo img { width: 34px; height: 34px; }
.brand__name { font: 500 20px var(--display); letter-spacing: .01em; }
.nav__links { order: 1; display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 320px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--on-hero-muted); text-decoration: none; padding: 12px 0; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; place-items: center; }
.lang { order: 2; display: flex; gap: 4px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px; }
.lang a { min-width: 44px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.lang a[aria-current="true"] { background: #fff; color: #17393C; }

.hero__body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 88px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill-light { align-self: flex-start; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: break-word; }
.hero__lead { font-size: 19px; color: var(--on-hero-muted); max-width: 540px; }
.hero__note { font-size: 14px; color: var(--on-hero-muted); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 22px; border-radius: 16px; background: #fff; color: #13272A; text-decoration: none; transition: transform 200ms var(--ease); }
.store:hover { transform: translateY(-2px); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; color: #5A7170; }
.store strong { font-size: 16px; font-weight: 600; }

/* Скриншоты приложения: светлый или тёмный вариант по теме сайта */
.shot { display: block; width: 100%; height: auto; }
.shot--dark { display: none; }
:root[data-theme="dark"] .shot--light { display: none; }
:root[data-theme="dark"] .shot--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot--light { display: none; }
  :root:not([data-theme="light"]) .shot--dark { display: block; }
}

.phone-wrap { flex: 0 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-shot { width: 340px; max-width: 100%; filter: drop-shadow(0 30px 50px rgba(8, 24, 26, .45)); }

/* Галерея экранов */
.gallery-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.gallery-tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px var(--text); cursor: pointer; transition: background 240ms var(--ease), color 240ms var(--ease); }
.gallery-tabs button:hover { color: var(--fg); }
.gallery-tabs button[aria-selected="true"] { background: var(--hero); color: #fff; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.screens[hidden] { display: none; }
.screen { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.screen img { max-width: 320px; filter: drop-shadow(0 18px 30px rgba(19, 39, 42, .18)); transition: transform 480ms var(--spring); }
.screen:hover img { transform: translateY(-8px) rotate(-1deg); }
.screen figcaption { font-size: 16px; font-weight: 600; text-align: center; }
.gallery-note { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* Сетки карточек */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { font-size: 15px; color: var(--muted); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* Врачам */
.doctors { padding: clamp(28px, 4vw, 56px); border-radius: 30px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.doctors__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); display: grid; place-items: center; }
.analytics { flex: 1 1 360px; min-width: 0; background: var(--bg); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.analytics__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.seg { display: flex; background: var(--surface); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; }
.seg span { padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.seg .is-on { background: var(--hero); color: #fff; }
.donut-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.donut { flex: none; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--ok) 0 68%, var(--late) 68% 86%, var(--miss) 86% 100%); display: grid; place-items: center; }
.donut span { width: 96px; height: 96px; border-radius: 50%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut b { font: 500 24px var(--display); }
.donut small { font-size: 11px; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 1; min-width: 160px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.alert { background: var(--surface); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 13px; background: #F1E8DA; color: #8A6430; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.alert__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert__text strong { font-size: 14px; font-weight: 600; }
.alert__text small, .analytics__note { font-size: 12px; color: var(--muted); }
.btn-sm { flex: none; background: var(--hero); color: #fff; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 600; }

/* Шаги */
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface2); }
.step__num { font: 500 34px var(--display); color: var(--brand); }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { font-size: 15px; color: var(--muted); }

/* BKMR-4 и безопасность */
.split { display: flex; flex-wrap: wrap; gap: 16px; }
.split > * { min-width: 0; border-radius: 30px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.bk { flex: 1 1 460px; }
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.level { border-radius: 18px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.level b { font: 500 26px var(--display); }
.level small { font-size: 12px; font-weight: 600; }
.level--1 { background: var(--ok-soft); color: var(--ok-ink); }
.level--2 { background: var(--brand-soft); color: var(--brand-ink); }
.level--3 { background: var(--late-soft); color: var(--late-ink); }
.level--4 { background: var(--miss-soft); color: var(--miss-ink); }
.secure { flex: 1 1 360px; background: var(--dark-card); color: #fff; }
.secure p { color: var(--on-hero-muted); }
.secure__icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #69B5AE; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips span { border: 1px solid rgba(210, 234, 231, .3); border-radius: 999px; padding: 8px 14px; font-size: 13px; }

/* FAQ */
.faq { max-width: 880px; }
.faq h2 { text-align: center; margin-bottom: 28px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; color: var(--brand); transition: transform 240ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; font-size: 15px; color: var(--muted); }

/* CTA и подвал */
.cta { background: var(--hero); color: #fff; border-radius: 30px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__text p { font-size: 17px; color: var(--on-hero-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 16px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 200ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: #17393C; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.footer { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-top: 64px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 44px; height: 44px; }
.footer__brand strong { display: block; font: 500 16px var(--display); color: var(--fg); }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col strong { color: var(--fg); font-weight: 600; }
.footer__copy { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 760px) {
  .section { padding-top: 72px; }
  .hero { border-radius: 0 0 28px 28px; }
  .hero__body { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .nav { gap: 12px; }
  .lang { order: 1; margin-left: auto; }
  .theme-toggle { order: 2; }
  .nav__toggle { display: grid; order: 3; margin-left: 0; }
  .nav__links { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .levels { gap: 6px; }
  .level small { font-size: 11px; }
}

/* ---------- Переключатель темы ---------- */
.theme-toggle { order: 3; flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 200ms var(--ease), transform 200ms var(--ease); }
.theme-toggle:hover { background: rgba(255, 255, 255, .2); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform 480ms var(--spring), opacity 240ms var(--ease); }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 1; transform: none; }
}
/* Плавная смена цветов только в момент переключения темы */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 480ms var(--ease), color 480ms var(--ease), border-color 480ms var(--ease), box-shadow 480ms var(--ease) !important;
}

/* ---------- Анимации ---------- */
:root { --spring: cubic-bezier(0.3, 1.3, 0.5, 1); }
@property --a { syntax: "<number>"; inherits: false; initial-value: 1; }

@keyframes enter { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(4deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-.6deg); } }
@keyframes donut-fill { from { --a: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.15); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Шапка: мягкие пятна света и медленно вращающийся знак */
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.hero__glow--1 { width: 460px; height: 460px; left: -140px; top: 120px; background: #4F8F90; animation: drift 18s ease-in-out infinite; }
.hero__glow--2 { width: 380px; height: 380px; right: 10%; bottom: -160px; background: #69B5AE; opacity: .35; animation: drift 22s ease-in-out infinite reverse; }
.hero__mark { animation: spin-slow 160s linear infinite; }

.js .enter { opacity: 0; animation: enter 800ms var(--ease) forwards; animation-delay: calc(120ms + var(--d, 0) * 110ms); }
.js .enter-phone { opacity: 0; animation: phone-in 1000ms var(--ease) 300ms forwards; }
.js .enter-phone .hero-shot { animation: float 6s ease-in-out 1.4s infinite; }
@keyframes screen-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.js .screens.is-switched .screen { animation: screen-in 600ms var(--spring) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* Кнопки магазинов: блик при наведении */
.store, .btn { position: relative; overflow: hidden; }
.store::after, .btn--light::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.store:hover::after, .btn--light:hover::after { animation: shine 700ms var(--ease); }
.store:hover, .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(8, 24, 26, .25); }
.store, .btn { transition: transform 240ms var(--spring), box-shadow 240ms var(--ease); }

/* Карточки: подъём при наведении */
.feature, .step { transition: transform 320ms var(--spring), box-shadow 320ms var(--ease), opacity 480ms var(--ease); }
.feature:hover, .step:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(19, 39, 42, .06), 0 18px 40px rgba(19, 39, 42, .12); }
.icon-tile { transition: transform 400ms var(--spring), background 240ms var(--ease), color 240ms var(--ease); }
.feature:hover .icon-tile { transform: rotate(-8deg) scale(1.1); background: var(--hero); color: #fff; }
.step__num { transition: transform 400ms var(--spring); display: inline-block; }
.step:hover .step__num { transform: translateX(6px); }

/* Появление при прокрутке, со сдвигом по очереди внутри сетки */
.js .reveal { opacity: 0; transform: translateY(32px) scale(.98); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible.feature:hover, .js .reveal.is-visible.step:hover { transform: translateY(-6px); transition-delay: 0ms; }

/* Диаграмма и уровни запускаются, когда блок виден */
.donut { background: conic-gradient(var(--ok) 0 calc(68% * var(--a)), var(--late) calc(68% * var(--a)) calc(86% * var(--a)), var(--miss) calc(86% * var(--a)) calc(100% * var(--a)), var(--line) calc(100% * var(--a)) 100%); }
.js .doctors:not(.is-visible) .donut { --a: 0; }
.js .doctors.is-visible .donut { animation: donut-fill 1400ms var(--ease) 300ms both; }
.js .bk .level { opacity: 0; }
.js .bk.is-visible .level { animation: pop 600ms var(--spring) forwards; }
.js .bk.is-visible .level--1 { animation-delay: 300ms; }
.js .bk.is-visible .level--2 { animation-delay: 420ms; }
.js .bk.is-visible .level--3 { animation-delay: 540ms; }
.js .bk.is-visible .level--4 { animation-delay: 660ms; }
.js .doctors .checks li { opacity: 0; transform: translateX(-16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .doctors.is-visible .checks li { opacity: 1; transform: none; }
.js .doctors.is-visible .checks li:nth-child(2) { transition-delay: 120ms; }
.js .doctors.is-visible .checks li:nth-child(3) { transition-delay: 240ms; }
.js .doctors.is-visible .checks li:nth-child(4) { transition-delay: 360ms; }
.secure__icon svg { transition: transform 600ms var(--spring); }
.secure:hover .secure__icon svg { transform: scale(1.2) rotate(-10deg); }

.faq details { transition: box-shadow 240ms var(--ease); }
.faq details:hover { box-shadow: var(--shadow); }
.faq details[open] p { animation: faq-open 400ms var(--ease); }

/* ---------- Узкие экраны ---------- */
@media (max-width: 860px) {
  /* На телефоне экраны листаются пальцем */
  .screens { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 16px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 72%; max-width: 280px; scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .hero-shot { width: 290px; }
  .hero__glow--1 { width: 300px; height: 300px; }
  .hero__glow--2 { display: none; }
}
@media (max-width: 520px) {
  .theme-toggle { order: 1; margin-left: auto; }
  .nav__toggle { order: 2; margin-left: 0; }
  .lang { display: none; order: 5; margin: 4px 0 8px; align-self: flex-start; }
  .nav.is-open .lang { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .enter, .js .enter-phone, .js .reveal, .js .bk .level, .js .doctors .checks li { opacity: 1; transform: none; filter: none; }
  .js .doctors:not(.is-visible) .donut { --a: 1; }
}
