/* NeoLoss — главная. Токены и правила: DESIGN.md (редакция 3) */

:root {
  interpolate-size: allow-keywords;

  /* фон и текст */
  --page: #FDFEFF;
  --surface: #FFFFFF;
  --surface-2: #F7FAFD;
  --ink: #0F1A2A;
  --ink-2: #3B4656;
  --ink-3: #525E6F;
  --ink-4: #98A2B3;
  --line: #E4EAF2;

  /* бренд */
  --blue: #0B6BE5;
  --blue-hover: #0857C4;
  --blue-100: #E4EFFE;
  --blue-50: #F0F6FF;

  /* медицинский градиент для заголовков */
  --grad-text: linear-gradient(100deg, #0F2D5C 0%, #1B58BE 36%, #3B8EF0 68%, #5FB2F6 100%);

  /* дополнительные — только в тегах и иллюстрациях */
  --mint: #148A66;
  --mint-100: #DDF5EC;
  --lav: #5A46CC;
  --lav-100: #ECE8FF;
  --peach: #A84716;
  --peach-100: #FFE6D6;
  --red: #EF4444;

  /* стекло */
  --glass-bg: rgb(255 255 255 / .58);
  --glass-edge: inset 0 0 0 1px rgb(255 255 255 / .8);
  --glass-shadow: 0 12px 32px -16px rgb(30 70 140 / .25);

  /* типографика */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --fs-h1: clamp(2.25rem, 1.4rem + 2.3vw, 3.4rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 3.125rem);

  /* сетка */
  --container: 1440px;
  --gutter: 40px;
  --section-y: 136px;

  /* форма */
  --r-btn: 14px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(16 32 64 / .04), 0 8px 24px -10px rgb(16 32 64 / .1);
  --shadow-md: 0 24px 48px -20px rgb(16 40 90 / .25), 0 2px 6px rgb(16 40 90 / .05);

  /* движение */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
}
@media (max-width: 1100px) { :root { --gutter: 24px; --section-y: 104px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --section-y: 76px; --r-xl: 24px; --r-lg: 20px; } }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body { margin: 0; background: linear-gradient(180deg, #FFFFFF 0, #FFFFFF 960px, var(--page) 1500px) no-repeat, var(--page); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }

::selection { background: #CFE2FD; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
html { scrollbar-color: #C6D1E0 var(--page); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: #C6D1E0; border-radius: 10px; border: 2px solid var(--page); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

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

h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 300; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }

/* градиентный текст заголовков */
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}

.section { position: relative; padding: var(--section-y) 0 0; }
.section--tight { padding-top: calc(var(--section-y) * .72); }
.center { display: flex; justify-content: center; margin-top: 48px; }

.head { position: relative; isolation: isolate; text-align: center; max-width: 860px; margin: 0 auto 60px; }
.head p { margin: 18px auto 0; max-width: 60ch; font-size: 17px; color: var(--ink-3); text-wrap: pretty; }
.head--left { text-align: left; margin: 0; }
.head--left p { margin-left: 0; }
@media (max-width: 640px) { .head { margin-bottom: 36px; } .head p { font-size: 15px; } }

/* ---------- стекло ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.glass--dark { background: rgb(18 32 56 / .4); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }

/* светлое «сияние»: мягкий медицинский градиент с дрейфующим пятном */
.aurora {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 90% at 0% 0%, #D6E8FF 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 8%, #DDF3FA 0%, transparent 60%),
    radial-gradient(70% 90% at 88% 100%, #E6E4FF 0%, transparent 62%),
    linear-gradient(160deg, #F5F9FF 0%, #EBF3FE 100%);
}
.aurora--soft { background: radial-gradient(80% 100% at 0% 0%, #E2EEFF 0%, transparent 60%), radial-gradient(70% 90% at 100% 100%, #E9F6FB 0%, transparent 60%), #F7FAFF; }
.aurora__blob {
  position: absolute; z-index: -1; left: 35%; top: -25%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(130 190 255 / .45), transparent 65%); filter: blur(24px);
  animation: drift 20s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-22%, 25%) scale(1.15); } 100% { transform: translate(12%, 40%) scale(.95); } }

/* белые карточки на светлом фоне: кромка + мягкая тень */
.num-card, .why__card, .crit__card, .doc-card, .post, .faq details { box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -18px rgb(16 40 90 / .16); }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--r-btn);
  background-color: var(--blue); background-image: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 60%);
  color: #fff; font-weight: 600; line-height: 1; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(8 48 120 / .28), 0 8px 18px -10px rgb(11 107 229 / .55);
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.btn:hover { background-color: var(--blue-hover); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 1px rgb(8 48 120 / .3); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--md { height: 50px; padding: 0 24px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--soft { background-color: #E6F0FE; background-image: none; color: var(--blue-hover); box-shadow: none; }
.btn--soft:hover { background-color: #D9E8FD; }
.btn--glass { background-color: rgb(255 255 255 / .55); background-image: none; color: var(--ink); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--glass-edge), 0 6px 18px -12px rgb(30 70 140 / .3); }
.btn--glass:hover { background-color: rgb(255 255 255 / .8); }

.round-btn {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill); color: var(--blue);
  transition: transform .16s var(--ease-out), background-color .2s ease, opacity .2s ease;
}
.round-btn:hover { background: rgb(255 255 255 / .9); }
.round-btn:active { transform: scale(.93); }
.round-btn:disabled { opacity: .4; cursor: default; }

/* ---------- сегмент-переключатель со скользящей подложкой ---------- */
.seg { position: relative; display: flex; padding: 4px; border-radius: 14px; background: rgb(20 50 100 / .032); box-shadow: inset 0 0 0 1px rgb(20 50 100 / .04); }
.seg--auto { display: inline-flex; }
.seg button {
  position: relative; z-index: 1; flex: 1; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color .3s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px;
  background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .08), 0 6px 14px -6px rgb(16 32 64 / .18);
  transform: translateX(var(--x, 4px)); width: var(--w, 0);
  transition: transform .5s var(--ease-soft), width .5s var(--ease-soft);
}
html:not(.js) .seg button[aria-selected="true"] { background: #fff; }

/* смена значений во вкладках */
[data-tabs] [data-out] { display: inline-block; transition: opacity .28s ease, transform .4s var(--ease-out), filter .3s ease; }
[data-tabs] p[data-out] { display: block; }
[data-tabs].is-out [data-out] { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
[data-tabs].is-pre [data-out] { transition: none; opacity: 0; transform: translateY(8px); filter: blur(4px); }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px max(8px, calc(var(--gutter) - 24px)) 0; }
.header__bar {
  position: relative; max-width: calc(var(--container) + 48px); margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 32px; padding: 0 12px 0 22px; border-radius: 22px;
  /* прозрачное стекло: слабое размытие, блик сверху, светлая грань */
  background: linear-gradient(180deg, rgb(255 255 255 / .58), rgb(255 255 255 / .34));
  -webkit-backdrop-filter: blur(8px) saturate(1.6) brightness(1.04); backdrop-filter: blur(8px) saturate(1.6) brightness(1.04);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .5), 0 10px 30px -18px rgb(16 32 64 / .25);
  transition: height .35s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled .header__bar { height: 60px; background: linear-gradient(180deg, rgb(255 255 255 / .68), rgb(255 255 255 / .46)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .55), 0 16px 36px -18px rgb(16 32 64 / .3); }

.logo { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.logo img { display: block; height: 34px; width: auto; }
.logo--sm { margin: 2px 8px 22px; }
.logo--sm img { height: 26px; }
.footer .logo img { height: 36px; }
@media (max-width: 560px) { .header .logo img { height: 30px; } }

.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav > a { padding: 9px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.nav > a:hover { background: rgb(11 107 229 / .07); color: var(--blue-hover); }
.nav > a[aria-current="page"] { background: #E8F1FE; color: var(--blue); font-weight: 500; }
.nav__mobile-cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header__login { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); border-radius: 12px; transition: background-color .2s ease; }
.header__login:hover { background: rgb(11 107 229 / .07); }
.header__login .icon { width: 18px; height: 18px; }

.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(11 107 229 / .08); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1180px) { .nav > a { padding: 9px 10px; font-size: 14px; } .header__bar { gap: 16px; } }
@media (max-width: 1020px) {
  .burger { display: block; }
  .header__login span { display: none; }
  .header__login { width: 44px; padding: 0; justify-content: center; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; gap: 2px; margin: 0; padding: 10px; border-radius: 22px;
    background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: var(--glass-edge), var(--shadow-md);
    transform: translateY(-8px) scale(.98); transform-origin: top center; opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease-out), opacity .25s ease, visibility 0s .35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .35s var(--ease-out), opacity .25s ease; }
  .nav > a { padding: 15px 14px; font-size: 17px; border-radius: 14px; }
  .nav__mobile-cta { display: grid; gap: 8px; padding: 10px 4px 4px; }
}
@media (max-width: 560px) {
  .header { padding-top: 8px; }
  .header__bar { height: 60px; border-radius: 18px; padding-left: 16px; }
  .header__actions .btn { display: none; }
}

/* ---------- плейсхолдеры ---------- */
.ph {
  position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center;
  background-color: #E2ECF8; background-image: repeating-linear-gradient(135deg, rgb(11 107 229 / .07) 0 1px, transparent 1px 14px);
  color: var(--blue);
}
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 80% at 70% 15%, rgb(255 255 255 / .6), transparent 60%); }
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px; }
.ph__icon { width: 56px; height: 56px; display: grid; place-items: center; background: rgb(255 255 255 / .85); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.ph__icon .icon { width: 24px; height: 24px; }
.ph__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ph__spec { font-size: 12px; color: var(--ink-3); }
.ph--fill { position: absolute; inset: 0; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--art { background-color: rgb(255 255 255 / .5); background-image: repeating-linear-gradient(135deg, rgb(11 107 229 / .08) 0 1px, transparent 1px 12px); border-radius: 50%; box-shadow: var(--glass-edge); }
.ph--art::after { display: none; }
.ph--dark { background-color: #273246; background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 14px); }
.ph--dark::after { background: radial-gradient(90% 70% at 50% 30%, rgb(120 160 220 / .25), transparent 70%); }
.ph--dark .ph__label { color: #DCE6F5; }

/* ---------- HERO ---------- */
.hero { padding-top: 16px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 16px; }

.hero__panel { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 44px 28px; border-radius: var(--r-xl); }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 22px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 4px rgb(34 176 125 / .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(34 176 125 / 0); } }
.hero__title { font-size: var(--fs-h1); line-height: 1.06; font-weight: 300; letter-spacing: -.03em; text-wrap: balance; max-width: 14ch; }
.hero__lead { margin: 18px 0 28px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

.offer { width: 100%; max-width: 500px; margin-top: auto; padding: 14px; border-radius: 24px; }
.offer .seg { margin-bottom: 18px; }
.offer__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 8px; margin-bottom: 18px; }
.offer__fact { display: flex; align-items: center; gap: 12px; }
.offer__fact strong { display: block; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer__fact p span { display: block; font-size: 13px; color: var(--ink-3); }
.offer__ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--blue-100); color: var(--blue); }
.offer__ico--mint { background: var(--mint-100); color: var(--mint); }
.offer__foot { margin-top: 12px; padding: 0 8px; font-size: 13px; line-height: 1.4; color: var(--ink-3); text-align: center; min-height: 2.8em; }

.hero__notice { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 500px; margin-top: 12px; padding: 10px 16px 10px 10px; border-radius: 20px; font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: background-color .25s ease; }
.hero__notice b { color: var(--ink); }
.hero__notice:hover { background: rgb(255 255 255 / .78); }
.hero__notice-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--blue-100); color: var(--blue); }
.hero__notice-go { margin-left: auto; color: var(--ink-4); transition: transform .25s var(--ease-out), color .2s ease; }
.hero__notice:hover .hero__notice-go { transform: translateX(3px); color: var(--blue); }

.hero__media { position: relative; min-height: 640px; border-radius: var(--r-xl); overflow: hidden; }
.hero__media { background: #F3FAFE; }
.hero__video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 40%; transform: scale(1.02); transition: transform 1.6s var(--ease-out); }
.hero__media.is-in .hero__img { transform: none; }
.hero__media > * { z-index: 1; }
.hero__media > picture { z-index: 0; }
.hero__badges { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; }
.hero__badges .icon { width: 18px; height: 18px; }

.chip { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.chip.glass { background: rgb(255 255 255 / .72); }
.chip__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue); }
.chip__ico--mint { background: var(--mint-100); color: var(--mint); }
/* карточки «левитируют» справа около девушки */
.hero__chips { position: absolute; right: 22px; top: 27%; display: grid; gap: 14px; justify-items: end; }
.chip--float {
  gap: 14px; padding: 16px 22px 16px 18px; min-width: 214px; border-radius: 16px; font-size: 14px;
  /* прозрачное стекло: слабое размытие, блик по диагонали, светлая грань сверху */
  background: linear-gradient(135deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .22) 45%, rgb(255 255 255 / .12) 100%);
  -webkit-backdrop-filter: blur(5px) saturate(1.5) brightness(1.06); backdrop-filter: blur(5px) saturate(1.5) brightness(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(255 255 255 / .45), inset 0 -10px 18px -14px rgb(255 255 255 / .6), 0 14px 30px -18px rgb(16 40 90 / .28);
  text-shadow: 0 1px 8px rgb(255 255 255 / .7);
}
.chip--float .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.6; }
.chip--float:nth-child(1) { margin-right: 24px; rotate: -3deg; }
.chip--float:nth-child(2) { margin-right: 0; rotate: 2.5deg; }
.chip--float:nth-child(3) { margin-right: 28px; rotate: -1.5deg; }
.js .chip--float.is-in { animation: levitate 6s ease-in-out infinite; animation-delay: calc(var(--d, 0ms) + .8s); }
.chip--float:nth-child(2).is-in { animation-duration: 7s; }
.chip--float:nth-child(3).is-in { animation-duration: 6.5s; }
@keyframes levitate { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.marquee { position: absolute; left: 0; right: 0; bottom: 24px; overflow: hidden; -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 { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 22px; border-radius: 18px;
  background: rgb(40 52 72 / .36); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap;
}
.marquee li span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); }
.marquee li .icon { width: 16px; height: 16px; stroke-width: 2.5; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

.note { position: absolute; z-index: 3; color: var(--blue); pointer-events: none; }
.note__text { display: block; font: 600 26px/1.02 var(--font-hand); transform: rotate(-6deg); }
.note--hero { left: 30px; bottom: 34px; display: flex; align-items: flex-end; gap: 0; }
.note--hero .note__text { font-size: 28px; line-height: 1.05; transform: rotate(-8deg); transform-origin: left bottom; }
.note__arrow { width: 120px; margin: 0 0 18px -6px; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js .note__arrow path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.js .note.is-in .note__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-in-out) .9s; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { padding: 40px 36px 28px; }
  .hero__title { max-width: 16ch; }
  .hero__media { min-height: 0; aspect-ratio: 1271 / 1238; max-height: 760px; }
  .hero__img { object-position: 50% 100%; }
}
@media (max-width: 640px) {
  .hero { padding-top: 10px; }
  .hero__panel { padding: 28px 16px 16px; }
  .hero__kicker { font-size: 12px; margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin: 14px 0 26px; }
  .offer { padding: 10px; border-radius: 20px; }
  .seg button { font-size: 12.5px; padding: 0 8px; height: 38px; }
  .offer__facts { padding: 0 4px; gap: 8px; }
  .offer__fact strong { font-size: 21px; }
  .offer__ico { width: 36px; height: 36px; border-radius: 11px; }
  .offer__ico .icon { width: 18px; height: 18px; }
  .hero__notice { font-size: 13px; }
  .hero__media { aspect-ratio: 1271 / 1238; }
  .hero__img { object-position: 50% 100%; }
  .hero__badges { top: 12px; left: 12px; right: 12px; justify-content: flex-start; }
  .hero__badges li { height: 34px; font-size: 12px; padding: 0 12px 0 10px; }
  .hero__badges li:nth-child(2) { display: none; }
  .hero__chips, .hero__badges { display: none; }
  .chip { padding: 9px 12px 9px 9px; font-size: 12px; border-radius: 14px; }
  .chip__ico { width: 32px; height: 32px; border-radius: 10px; }
  .hero__chips .chip:nth-child(2) { display: none; }
  .marquee { bottom: 14px; }
  .marquee li { height: 44px; font-size: 14px; padding-left: 16px; }
  .marquee li span { width: 26px; height: 26px; }
  .note--hero { display: none; }
}

/* ---------- цифры ---------- */
.numbers { padding-top: 16px; }
.numbers__big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.numbers__small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.num-card { position: relative; overflow: hidden; padding: 32px; border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.num-card--big { min-height: 200px; padding: 34px 38px; text-align: left; }
.num-card__value { font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-card__value small { font-size: .55em; font-weight: 500; letter-spacing: 0; }
.num-card__label { margin-top: 10px; font-size: 17px; color: var(--ink-2); line-height: 1.35; }
.num-card--big .num-card__label { max-width: 22ch; font-size: 19px; color: var(--ink); }
.num-card__delta { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 9px; background: rgb(221 245 236 / .9); color: #0F7354; font-size: 13.5px; font-weight: 500; }
.num-card__art { position: absolute; right: 28px; top: 50%; width: 170px; height: 170px; transform: translateY(-50%); }
.num-card__art .ph__icon { width: 44px; height: 44px; }
/* мини-слайдер историй «до / после» */
.cases-mini { width: 236px; height: 168px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 5px rgb(255 255 255 / .9), 0 18px 36px -16px rgb(16 40 90 / .35); }
.cmini { position: absolute; inset: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s var(--ease-out); }
.cmini.is-on { opacity: 1; transform: none; }
.cmini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cmini figcaption { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* видео-кружок врача, как видеосообщение */
.num-card__video { width: 176px; height: 176px; border-radius: 50%; overflow: visible; }
.num-card__video video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #E2ECF8; box-shadow: 0 0 0 5px rgb(255 255 255 / .9), 0 18px 36px -16px rgb(16 40 90 / .35); }
.num-card__video::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid transparent; border-top-color: #5FB2F6; border-right-color: rgb(95 178 246 / .4); animation: ring 4s linear infinite; pointer-events: none; }
@keyframes ring { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .numbers__big { grid-template-columns: 1fr; }
  .numbers__small { gap: 10px; }
  .numbers__small .num-card { padding: 24px 12px; }
  .numbers__small .num-card__label { font-size: 14px; }
}
@media (max-width: 640px) {
  .numbers__big { gap: 10px; }
  .numbers__small { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .numbers__small .num-card:last-child { grid-column: 1 / -1; }
  .num-card--big { padding: 26px 22px; min-height: 0; }
  .num-card__art { width: 104px; height: 104px; right: 14px; }
  /* на телефоне кружок — в правом верхнем углу, текст не перекрывает */
  .num-card__video { width: 84px; height: 84px; top: 22px; right: 18px; transform: none; }
  .cases-mini { width: 120px; height: 92px; top: 22px; right: 18px; transform: none; border-radius: 14px; }
  .cmini figcaption { font-size: 10.5px; padding: 3px 8px; bottom: 5px; }
  .num-card--big:has(.cases-mini) .num-card__label { max-width: calc(100% - 132px); }
  .num-card__video::before { inset: -7px; }
  .num-card--big:has(.num-card__video) .num-card__label { max-width: calc(100% - 96px); }
  .num-card--big .num-card__label { max-width: 15ch; font-size: 16px; }
  .num-card__value { font-size: 32px; }
}

/* ---------- почему ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__card { display: flex; flex-direction: column; padding: 30px 28px 28px; min-height: 300px; border-radius: var(--r-lg); background: var(--surface); transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why__card h3 { margin-bottom: 8px; }
.why__card p { font-size: 15px; color: var(--ink-3); }
.why__art { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: center; min-height: 90px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag--blue { background: var(--blue-100); color: var(--blue-hover); }
.tag--lav { background: var(--lav-100); color: var(--lav); }
.tag--peach { background: var(--peach-100); color: var(--peach); }
/* препараты: статичная горка (без JS) и физика (Matter.js, класс .is-physics) */
.why__card--drugs { position: relative; overflow: hidden; }
.art-drop { position: relative; display: block; width: 100%; height: 104px; min-height: 0; margin-top: auto; padding: 0; overflow: visible; }
.drug {
  position: absolute; left: var(--l); bottom: var(--b); display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px; border-radius: var(--r-pill); white-space: nowrap; rotate: var(--r);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 6px 14px -8px rgb(16 40 90 / .3);
  user-select: none; -webkit-user-select: none;
}
.drug b { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; color: inherit; }
.drug sup { font-size: .55em; font-weight: 500; vertical-align: super; margin-left: 1px; }
.drug--sg { background: #E2EEFE; color: var(--blue-hover); }
.drug--tz { background: #ECE8FF; color: var(--lav); }
.is-physics .art-drop { position: static; }
.is-physics .drug { left: 0; top: 0; bottom: auto; rotate: none; opacity: 0; cursor: grab; touch-action: none; will-change: transform; transition: opacity .25s ease, box-shadow .2s ease; z-index: 2; }
.is-physics .drug.is-live { opacity: 1; }
.is-physics .drug.is-drag { cursor: grabbing; z-index: 3; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 16px 30px -12px rgb(16 40 90 / .45); }

.art-pills .tag { height: 38px; padding: 0 16px; font-size: 14px; }
.art-pills .tag:first-child { transform: rotate(-4deg); }
.art-pills .tag:last-child { transform: rotate(3deg) translateY(6px); }
.art-stack span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; background: #DCE7F7 repeating-linear-gradient(135deg, rgb(11 107 229 / .1) 0 1px, transparent 1px 8px); }
.art-stack span + span { margin-left: -12px; }
.art-stack span { width: 56px; height: 56px; overflow: hidden; box-shadow: 0 6px 14px -8px rgb(16 40 90 / .35); transition: transform .35s var(--ease-out); }
.art-stack span img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-stack b { height: 56px; }
.why__card:hover .art-stack span:nth-child(1) { transform: translateX(-4px); }
.why__card:hover .art-stack span:nth-child(3) { transform: translateX(4px); }
.art-stack span:nth-child(2) { background-color: #E6E1FF; }
.art-stack span:nth-child(3) { background-color: #D7F2E8; }
.art-stack b { margin-left: -12px; height: 48px; padding: 0 14px; display: grid; place-items: center; border-radius: var(--r-pill); border: 3px solid #fff; background: var(--blue); color: #fff; font-size: 14px; }
.art-timer { gap: 10px; }
.art-timer .icon { width: 44px; height: 44px; color: var(--mint); stroke-width: 2; }
.art-timer .icon { transition: transform .9s var(--ease-in-out); }
.art-timer.is-flip .icon { transform: rotate(180deg); }
.art-timer b { min-width: 3.4em; text-align: center; }
.art-timer b { padding: 6px 12px; border-radius: 10px; background: var(--mint-100); color: #0F7354; font-size: 17px; font-variant-numeric: tabular-nums; }
.art-chat i { width: 26px; height: 2px; background: repeating-linear-gradient(90deg, #C6D1E0 0 3px, transparent 3px 6px); }
.bubble { width: 46px; height: 30px; border-radius: 16px 16px 16px 4px; background: #5EA2F7; }
.bubble--mint { background: #3CC19A; border-radius: 16px 16px 4px 16px; }
@media (max-width: 1100px) { .why { grid-template-columns: 1fr 1fr; } .why__card { min-height: 250px; } }
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; gap: 10px; }
  .why__card { min-height: 0; padding: 22px 20px; }
  .why__art { padding-top: 18px; min-height: 0; justify-content: flex-start; }
  .art-drop { padding-top: 0; margin-top: 18px; }
  .art-chat i { width: 16px; }
}

/* ---------- как работает ---------- */
.section--glow { overflow: hidden; padding-bottom: 40px; margin-bottom: -40px; }
.glow { position: absolute; inset: 24% -10% 4%; pointer-events: none; z-index: 0; }
.glow span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6; animation: drift 26s ease-in-out infinite alternate; }
.glow span:nth-child(1) { left: 0; top: 18%; width: 34%; height: 70%; background: #A8D0FF; }
.glow span:nth-child(2) { left: 30%; top: 0; width: 38%; height: 60%; background: #B5EEDD; opacity: .55; animation-delay: -8s; }
.glow span:nth-child(3) { right: 0; top: 14%; width: 36%; height: 76%; background: #CFC6FF; opacity: .5; animation-delay: -14s; }
.section--glow-warm .glow span:nth-child(2) { background: #FFDCC4; }
.section--glow-warm .glow span:nth-child(3) { background: #A8D0FF; }
/* в отзывах боковые пятна бледнее, чтобы края не казались затемнёнными */
.section--glow-warm .glow span:nth-child(1), .section--glow-warm .glow span:nth-child(3) { opacity: .28; }
.section--glow-warm .glow span:nth-child(2) { opacity: .4; }
.section--glow > .container { position: relative; z-index: 1; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 24px 30px; border-radius: var(--r-lg); }
.how__card.glass { background: rgb(255 255 255 / .66); }
.how__ui { width: 100%; min-height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.how__card h3 { margin-bottom: 10px; }
.how__card p { font-size: 15px; color: var(--ink-3); max-width: 28ch; }
.ui-tags { flex-wrap: wrap; gap: 6px; align-content: center; }
.ui-avatars span { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 18px -10px rgb(16 40 90 / .4); transition: transform .35s var(--ease-out); }
.ui-avatars span + span { margin-left: -14px; }
.ui-avatars img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ui-avatars span::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #22B07D; border: 2px solid #fff; }
.how__card:hover .ui-avatars span:nth-child(1) { transform: translateX(-5px); }
.how__card:hover .ui-avatars span:nth-child(3) { transform: translateX(5px); }
/* запись: живой выбор слота */
.ui-slots__card { position: relative; padding: 12px 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .05), 0 14px 30px -16px rgb(16 40 90 / .28); }
.ui-slots__days { position: relative; display: flex; gap: 14px; padding: 0 2px 8px; margin-bottom: 10px; font-size: 12px; color: var(--ink-3); }
.ui-slots__days span { transition: color .35s ease; }
.ui-slots__days .is-on { color: var(--ink); font-weight: 600; }
.ui-slots__bar { position: absolute; left: 0; bottom: 3px; height: 2px; width: 0; border-radius: 2px; background: var(--blue); transform: translateX(var(--x, 2px)); width: var(--w, 52px); transition: transform .5s var(--ease-soft), width .5s var(--ease-soft); }
.ui-slots__times { display: flex; gap: 6px; }
.ui-slots__times span {
  position: relative; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.ui-slots__times .is-off { color: var(--ink-4); text-decoration: line-through; box-shadow: none; background: #F1F4F8; font-weight: 500; }
.ui-slots__times .is-free::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 0 rgb(34 176 125 / .5); animation: slot-dot 2.2s ease-out infinite; }
.ui-slots__times .is-free:nth-child(3)::after { animation-delay: .5s; }
.ui-slots__times .is-free:nth-child(4)::after { animation-delay: 1s; }
@keyframes slot-dot { 0% { box-shadow: 0 0 0 0 rgb(34 176 125 / .5); } 70%, 100% { box-shadow: 0 0 0 6px rgb(34 176 125 / 0); } }
.ui-slots__times .is-picked { background: var(--blue); color: #fff; box-shadow: 0 8px 16px -8px rgb(11 107 229 / .7); animation: slot-pop .45s var(--ease-out); }
.ui-slots__times .is-picked::after { animation: none; width: 14px; height: 14px; top: -6px; right: -6px; background: #22B07D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: 0 0 0 2px #fff; }
@keyframes slot-pop { 0% { transform: scale(.92); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* звонок: фото врача, волна голоса, живой таймер */
.ui-call { width: auto; min-height: 0; gap: 8px; padding: 8px 8px 8px 8px; margin: 22px 0 40px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .05), 0 14px 30px -16px rgb(16 40 90 / .28); }
.ui-call__ava { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; }
.ui-call__ava img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ui-call__ava::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #3CC19A; animation: speak 1.6s ease-in-out infinite; }
@keyframes speak { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .25; } }
.ui-call__who { display: flex; flex-direction: column; text-align: left; line-height: 1.25; padding-right: 6px; }
.ui-call__who b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ui-call__who small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ui-call__live { width: 6px; height: 6px; border-radius: 50%; background: #22B07D; animation: pulse 1.6s ease-in-out infinite; }
.ui-call__wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.ui-call__wave i { width: 2.5px; height: 100%; border-radius: 2px; background: #3CC19A; transform-origin: center; animation: wave 1s ease-in-out infinite; }
.ui-call__wave i:nth-child(2) { animation-delay: -.25s; }
.ui-call__wave i:nth-child(3) { animation-delay: -.5s; }
.ui-call__wave i:nth-child(4) { animation-delay: -.75s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.ui-call__btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s ease, transform .2s var(--ease-out); }
.ui-call__btn:hover { background: var(--blue-50); transform: translateY(-1px); }
.ui-call__btn .icon { width: 17px; height: 17px; }
.ui-call__btn--end { width: 52px; border-radius: var(--r-pill); background: var(--red); color: #fff; box-shadow: 0 8px 16px -8px rgb(239 68 68 / .8); }
.ui-call__btn--end:hover { background: #E23434; }
/* анимации — только когда блок на экране */
.how:not(.is-live) .ui-slots__times .is-free::after, .how:not(.is-live) .ui-call__ava::before, .how:not(.is-live) .ui-call__wave i, .how:not(.is-live) .ui-call__live { animation-play-state: paused; }
@media (max-width: 1100px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .how { grid-template-columns: 1fr; gap: 10px; }
  .how__card { padding: 22px 18px 24px; }
  .center .btn--lg { width: 100%; }
}

/* ---------- платформа ---------- */
.plat { position: relative; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; }
.plat::before {
  content: ""; position: absolute; z-index: -1; inset: -6% -4% -8% 22%; border-radius: 48px;
  background: radial-gradient(50% 60% at 30% 30%, #D3E6FF, transparent 70%), radial-gradient(50% 60% at 80% 70%, #E2DEFF, transparent 70%), radial-gradient(40% 50% at 70% 10%, #D6F3F7, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.plat__tabs { display: grid; gap: 8px; }
.plat__tab {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border: 0; border-radius: 20px; background: transparent; text-align: left;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.plat__tab:hover { background: rgb(255 255 255 / .5); }
.plat__tab[aria-selected="true"] { background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.plat__tab-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgb(11 107 229 / .08); color: var(--ink-3); transition: background-color .35s ease, color .35s ease; }
.plat__tab[aria-selected="true"] .plat__tab-ico { background: var(--blue); color: #fff; }
.plat__tab-text b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 1px; }
.plat__tab-text span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-3); max-height: 0; opacity: 0; transition: max-height .45s var(--ease-out), opacity .3s ease; }
.plat__tab[aria-selected="true"] .plat__tab-text span { max-height: 64px; opacity: 1; }
.plat__progress { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; border-radius: 2px; background: rgb(11 107 229 / .1); opacity: 0; transition: opacity .3s ease; }
.plat__progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.plat.is-auto .plat__tab[aria-selected="true"] .plat__progress { opacity: 1; }
.plat.is-auto .plat__tab[aria-selected="true"] .plat__progress i { animation: plat-progress var(--plat-dur, 7s) linear forwards; }
.plat.is-auto:hover .plat__progress i, .plat.is-paused .plat__progress i { animation-play-state: paused !important; }
@keyframes plat-progress { to { transform: scaleX(1); } }

.app { border-radius: 26px; overflow: hidden; }
.app.glass { background: rgb(255 255 255 / .5); }
.app__bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / .7); }
.app__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(15 26 42 / .12); }
.app__bar span { margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: rgb(255 255 255 / .65); font-size: 12px; color: var(--ink-3); }
.app__body { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); aspect-ratio: 1536 / 1024; min-height: 540px; }
/* экраны-скриншоты накрывают всё окно, включая нарисованное меню */
.screen--shot { position: absolute; inset: 0; z-index: 2; padding: 0; background: #F7FAFD; }
.screen--shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* вкладка «Как мы отбираем врачей»: 16:9 видео заполняет экран без полос */
.screen--video { overflow: hidden; container-type: size; background: #0F1A2A; }
.screen__frame { position: absolute; top: 50%; left: 50%; width: max(100%, 100cqh * 16 / 9); aspect-ratio: 16 / 9; border: 0; transform: translate(-50%, -50%); pointer-events: none; }
.screen__play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.screen__play .crit__vlabel { left: 24px; bottom: 24px; font-size: 20px; letter-spacing: -.01em; text-align: left; }
.screen__play .play { right: 22px; bottom: 22px; width: 60px; height: 60px; }
.screen__play:hover .play { transform: scale(1.08); }
.screen__play:hover .crit__shade { opacity: .8; }
.app__side { padding: 20px 12px; border-right: 1px solid rgb(255 255 255 / .7); background: rgb(255 255 255 / .35); }
.app__side ul { display: grid; gap: 2px; }
.app__side li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background-color .35s ease, color .35s ease; }
.app__side li .icon { width: 18px; height: 18px; color: var(--ink-3); transition: color .35s ease; }
.app__side li.is-on { background: rgb(11 107 229 / .1); color: var(--blue-hover); }
.app__side li.is-on .icon { color: var(--blue); }
.app__dot { position: absolute; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.app__screens { display: grid; padding: 22px; }
.screen {
  grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.985); filter: blur(6px);
  transition: opacity .45s ease, transform .6s var(--ease-out), filter .5s ease, visibility 0s .6s;
}
.screen.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .5s ease .08s, transform .7s var(--ease-out) .08s, filter .5s ease .08s; }
.scr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.scr-head b { display: block; font-size: 20px; letter-spacing: -.02em; }
.scr-head span { font-size: 13px; color: var(--ink-3); }
.scr-bell { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgb(255 255 255 / .7); color: var(--ink-2); }
.scr-grid { display: grid; gap: 12px; }
.scr-grid--home { grid-template-columns: 1fr 1fr; }
.scr-grid--call { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.scr-grid--stats { grid-template-columns: repeat(3, 1fr); }
.scr-grid--rx { grid-template-columns: 1fr 1fr; }
.tile { padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .04), 0 6px 18px -12px rgb(16 32 64 / .14); }
.tile--wide { grid-column: 1 / -1; display: flex; gap: 12px; }
.tile__title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14.5px; font-weight: 600; }
.tile__date { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.tile__date .icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--blue-100); color: var(--blue); }
.tile__date b { color: var(--ink); font-size: 14px; }
.tile__doc { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tile__doc b { display: block; font-size: 13.5px; }
.tile__doc small { font-size: 12px; color: var(--ink-3); }
.ava { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; }
.ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ava .icon { width: 18px; height: 18px; }
.tile__btns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
.mini-btn .icon { width: 16px; height: 16px; }
.mini-btn--soft { background: #E6F0FE; color: var(--blue-hover); box-shadow: none; }
.pill-ok { padding: 3px 10px; border-radius: var(--r-pill); background: var(--mint-100); color: #0F7354; font-size: 11.5px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: #EAF0F7; margin-bottom: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #4D9BFF, var(--blue)); transform-origin: left; }
.screen.is-on .bar i { animation: grow 1s var(--ease-out) .3s both; }
@keyframes grow { from { transform: scaleX(0); } }
.steps-mini { display: grid; gap: 9px; }
.steps-mini li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6E7989; }
.steps-mini li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #CBD5E3; }
.steps-mini li.done { color: var(--ink-2); }
.steps-mini li.done::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.steps-mini li.now { color: var(--ink); font-weight: 600; }
.steps-mini li.now::before { box-shadow: inset 0 0 0 5px var(--blue); background: #fff; }
.metric { flex: 1; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.metric small { display: block; font-size: 12px; color: var(--ink-3); }
.metric b { display: block; margin: 2px 0; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #0F7354; }
.metric em .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.metric em.muted { color: var(--ink-3); font-weight: 500; }
.metric--tile { background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .04), 0 6px 18px -12px rgb(16 32 64 / .14); border-radius: 18px; padding: 16px; }

.call { position: relative; border-radius: 18px; overflow: hidden; align-self: start; box-shadow: 0 14px 30px -18px rgb(16 40 90 / .35); }
.call img { display: block; width: 100%; height: auto; aspect-ratio: 868 / 800; object-fit: cover; }
.call .ph--fill { border-radius: inherit; }
.call__time { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.call__time i { width: 7px; height: 7px; border-radius: 50%; background: #3CD39F; }
.call__self { position: absolute; top: 12px; right: 12px; width: 26%; aspect-ratio: 3 / 4; border-radius: 12px; box-shadow: 0 0 0 2px rgb(255 255 255 / .8); color: var(--ink-4); }
.call__ctrl { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 18px; }
.call__ctrl span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgb(255 255 255 / .14); }
.call__ctrl .icon { width: 19px; height: 19px; }
.call__ctrl .is-end { width: 58px; background: var(--red); }

.chart { grid-column: 1 / -1; position: relative; padding: 18px 16px 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: #EDF1F6; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 0; }
.chart__dots circle { fill: #fff; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.screen.is-on .chart__line { animation: draw 1.4s var(--ease-out) .25s both; }
.screen.is-on .chart__area { animation: fade-in 1s ease .7s both; }
.screen.is-on .chart__dots, .screen.is-on .chart__tip { animation: fade-in .6s ease 1.1s both; }
@keyframes draw { from { stroke-dashoffset: 700; } }
@keyframes fade-in { from { opacity: 0; } }
.chart__tip { position: absolute; right: 26px; top: 30%; padding: 7px 11px; border-radius: 11px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart__tip.glass { background: rgb(255 255 255 / .85); }
.chart__tip em { font-style: normal; font-weight: 600; color: #0F7354; margin-left: 4px; }
.chart__x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.rx { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.rx + .rx { margin-top: 8px; }
.rx b { display: block; font-size: 13.5px; }
.rx small { font-size: 12px; color: var(--ink-3); }
.rx .pill-ok { margin-left: auto; }
.rx__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue); }
.rx--next .rx__ico { background: var(--lav-100); color: var(--lav); }
.labs { display: grid; gap: 4px; }
.labs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid #EEF2F7; }
.labs li:last-child { border-bottom: 0; }
.labs em { font-style: normal; font-weight: 600; font-size: 12px; white-space: nowrap; }
.labs .ok { color: #0F7354; }
.labs .wait { color: #A15C07; }
.labs .plan { color: var(--blue-hover); }
.tile--recs { gap: 10px; }
.rec { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.rec__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue); }
.rec__ico .icon { width: 18px; height: 18px; }
.rec__ico--mint { background: var(--mint-100); color: var(--mint); }
.rec__ico--lav { background: var(--lav-100); color: var(--lav); }

@media (max-width: 1180px) {
  .plat { grid-template-columns: minmax(0, 1fr); }
  .plat__tabs { grid-template-columns: repeat(5, 1fr); }
  .plat__tab { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .plat__tab-text span { display: none; }
  .plat::before { inset: 20% -4% -6%; }
}
@media (max-width: 760px) {
  .plat { gap: 16px; }
  .plat__tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-snap-type: x mandatory; }
  .plat__tabs::-webkit-scrollbar { display: none; }
  .plat__tab { flex: none; scroll-snap-align: start; grid-template-columns: 32px auto; align-items: center; padding: 10px 16px 10px 10px; border-radius: 16px; }
  .plat__tab-ico { width: 32px; height: 32px; border-radius: 10px; }
  .plat__tab-ico .icon { width: 17px; height: 17px; }
  .plat__tab-text b { font-size: 14.5px; margin: 0; white-space: nowrap; }
  .plat__progress { left: 12px; right: 12px; bottom: 4px; }
  .app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; aspect-ratio: auto; }
  .screen--shot { position: relative; inset: auto; margin: -14px; border-radius: 0; }
  .screen--shot img { height: auto; aspect-ratio: 1536 / 1024; }
  .screen--video.is-on { aspect-ratio: 16 / 10; }
  .screen__play .crit__vlabel { left: 16px; bottom: 16px; font-size: 16px; }
  .screen__play .play { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .screen--shot:not(.is-on) { position: absolute; inset: 0; margin: 0; }
  .app__side { display: none; }
  .app__screens { padding: 14px; }
  .app__screens { position: relative; }
  .screen:not(.is-on) { position: absolute; inset: 14px; }
  .scr-grid--home, .scr-grid--call, .scr-grid--rx { grid-template-columns: minmax(0, 1fr); }
  .scr-grid--stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .metric--tile { padding: 10px; }
  .metric b { font-size: 17px; }
  .tile--wide { flex-wrap: wrap; }
  .tile--wide .metric { min-width: 30%; }
  .tile--recs .rec { min-width: 100%; }
  .scr-head b { font-size: 17px; }
}

/* ---------- первый приём ---------- */
.expect { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.expect__main { grid-row: span 2; padding: 40px 38px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.expect__main h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.18; font-weight: 300; letter-spacing: -.02em; max-width: 18ch; }
.expect__main > p { margin: 16px 0 28px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.expect__list { display: grid; gap: 8px; margin-top: auto; }
.expect__list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.expect__list span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; }
.expect__list .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.doc-card { position: relative; overflow: hidden; min-height: 250px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; }
.doc-card--photo { background: #F4F8FD; }
.doc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; transition: transform .8s var(--ease-out); }
.doc-card--photo::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(to top, rgb(255 255 255 / .85), transparent); pointer-events: none; }
.doc-card--photo:hover .doc-card__img { transform: scale(1.04); }
.doc-card__img--labs { object-position: 62% 25%; }
.doc-card__img--diary { object-position: 68% 35%; }
.doc-card__img--plan { object-position: 45% 20%; }
.doc-card--blue { background: linear-gradient(180deg, #EEF5FF, #DCEBFF); }
.doc-card--mint { background: linear-gradient(180deg, #F0FAF6, #D9F2E8); }
.doc-card--lav { background: linear-gradient(180deg, #F4F2FF, #E5E0FF); }
.doc-card h4 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.doc-card p { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.doc-card > h4 + p { margin-top: auto; padding-top: 24px; }
.doc-card__foot { position: relative; z-index: 1; margin: auto -10px -10px; padding: 16px 18px; border-radius: 16px; }
.doc-card__foot.glass { background: rgb(255 255 255 / .62); }
.paper { position: absolute; top: 18px; left: 50%; width: 120px; height: 150px; transform: translateX(-30%) rotate(4deg); padding: 18px 14px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-md); display: grid; align-content: start; gap: 9px; transition: transform .5s var(--ease-out); }
.paper::before { content: ""; position: absolute; inset: 8px -14px -6px 14px; z-index: -1; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); transform: rotate(-8deg); }
.paper span { height: 6px; border-radius: 3px; background: #E3EAF4; }
.paper span:first-child { width: 60%; background: var(--blue); opacity: .6; }
.paper span:nth-child(3) { width: 80%; }
.paper--tilt { transform: translateX(-60%) rotate(-5deg); }
.doc-card:hover .paper { transform: translateX(-30%) rotate(1deg) translateY(-6px); }
.doc-card:hover .paper--tilt { transform: translateX(-60%) rotate(-2deg) translateY(-6px); }
.doc-card--mint .paper span:first-child { background: var(--mint); }
.doc-card--lav .paper span:first-child { background: var(--lav); }
@media (max-width: 1100px) { .expect { grid-template-columns: 1fr 1fr; } .expect__main { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) {
  .expect { gap: 10px; }
  .expect__main { padding: 28px 18px; }
  .doc-card { min-height: 210px; padding: 18px; }
  .doc-card h4 { font-size: 16px; }
  .paper { width: 90px; height: 112px; top: 14px; }
}

/* ---------- ИМТ ---------- */
.bmi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 52px; border-radius: var(--r-xl); }
.pills { display: flex; gap: 6px; margin-bottom: 20px; }
.pills span { padding: 6px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.bmi__intro h2 { margin-bottom: 16px; }
.bmi__intro p { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.bmi__card { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: var(--r-lg); overflow: hidden; }
.bmi__card.glass { background: rgb(255 255 255 / .62); }
.bmi__form { padding: 28px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.bmi__sex { width: 100%; }
.bmi__sex button { height: 38px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
.field label span { color: var(--ink-3); font-size: 14px; }
.field output { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #4D9BFF 0, var(--blue) var(--p), rgb(20 50 100 / .1) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgb(20 50 100 / .1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgb(16 32 64 / .08), 0 4px 12px rgb(11 107 229 / .3); transition: transform .2s var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 12px rgb(11 107 229 / .3); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgb(11 107 229 / .2); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1.5px solid #C3CEDD; border-radius: 7px; background: #fff; color: #fff; transition: background-color .2s ease, border-color .2s ease; }
.check__box .icon { width: 14px; height: 14px; stroke-width: 2.5; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s var(--ease-out); }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.bmi__result { padding: 28px; background: rgb(255 255 255 / .55); display: flex; flex-direction: column; }
.bmi__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.bmi__extra div { padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px var(--line); }
.bmi__extra dt { font-size: 12px; color: var(--ink-3); }
.bmi__extra dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bmi__label { font-size: 14px; color: var(--ink-3); }
.bmi__value { min-width: 4ch; font-size: 58px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 2px 0 16px; align-self: flex-start; }
.bmi__scale { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #CFE3FC 0 12%, #9BC5F9 12% 33%, #5EA2F7 33% 50%, var(--blue) 50% 100%); }
.bmi__marker { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 4px 10px rgb(16 32 64 / .2); transform: translate(-50%, -50%); transition: left .5s var(--ease-soft); }
/* фиксированная высота: карточка не прыгает, когда меняется длина вывода */
.bmi__verdict { font-size: 15px; line-height: 1.5; font-weight: 600; margin: 16px 0 18px; height: 4.5em; overflow: hidden; }
.bmi__result .btn { margin-top: auto; }
.bmi__hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }
@media (max-width: 1100px) { .bmi { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; } }
@media (max-width: 640px) {
  .bmi { padding: 28px 10px 10px; gap: 24px; }
  .bmi__intro { padding: 0 8px; }
  .bmi__card { grid-template-columns: 1fr; }
  .bmi__form, .bmi__result { padding: 24px 18px; }
  .bmi__value { font-size: 48px; }
  .bmi__verdict { height: 6em; }
}

/* ---------- врачи ---------- */
.docs { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 56px; }
.docs__list { position: relative; flex: 1; max-width: 860px; height: 340px; }
.doc { position: absolute; left: 50%; top: 0; width: 240px; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateX(-50%) scale(.5); opacity: 0; pointer-events: none; transition: transform .7s var(--ease-soft), opacity .5s ease, filter .5s ease; }
.doc__photo img, .doc__photo video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.doc__photo { overflow: hidden; background: #E2ECF8; width: 224px; height: 224px; border-radius: 50%; box-shadow: 0 0 0 6px rgb(255 255 255 / .9), var(--shadow-md); }
.doc__tag { position: relative; z-index: 1; margin-top: -18px; padding: 8px 15px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22); transition: background-color .4s ease, color .4s ease, opacity .4s ease; }
.doc__name { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.doc[data-pos="0"] { transform: translateX(-50%); opacity: 1; pointer-events: auto; }
.doc[data-pos="-1"] { transform: translateX(calc(-50% - 290px)) translateY(36px) scale(.62); opacity: .55; filter: grayscale(.4) blur(1px); pointer-events: auto; cursor: pointer; }
.doc[data-pos="1"] { transform: translateX(calc(-50% + 290px)) translateY(36px) scale(.62); opacity: .55; filter: grayscale(.4) blur(1px); pointer-events: auto; cursor: pointer; }
.doc[data-pos="-1"] .doc__tag, .doc[data-pos="1"] .doc__tag { background: var(--blue-100); color: var(--blue-hover); }
html:not(.js) .docs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; height: auto; }
html:not(.js) .doc { position: static; transform: none; opacity: 1; }
.crit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.75fr); gap: 12px; }
.crit__card { min-height: 200px; padding: 24px 22px; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.crit__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-100); color: var(--blue); }
.crit__card p { font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.crit__video { position: relative; min-height: 200px; border-radius: var(--r-lg); overflow: hidden; }
.crit__vbtn { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: inherit; background: #DCE7F4; overflow: hidden; cursor: pointer; text-align: left; }
/* видео 16:9 заполняет карточку как cover: по высоте, по центру, без растяжения */
.crit__bg { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; min-width: 100%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.crit__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 24 44 / .55), rgb(12 24 44 / 0) 55%); transition: opacity .3s ease; }
.crit__vlabel { position: absolute; left: 16px; right: 70px; bottom: 16px; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.crit__vbtn:hover .crit__shade { opacity: .8; }
.crit__vbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* попап видео */
.vdlg { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 24px; background: #0F1A2A; overflow: visible; }
.vdlg::backdrop { background: rgb(10 18 32 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vdlg[open] { animation: vdlg-in .45s var(--ease-out); }
@keyframes vdlg-in { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(6px); } }
.vdlg__frame { position: relative; aspect-ratio: 16 / 9; border-radius: inherit; overflow: hidden; }
.vdlg__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vdlg__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); transition: transform .2s var(--ease-out); }
.vdlg__close:hover { transform: rotate(90deg); }
.vdlg__close .icon { width: 20px; height: 20px; }
.play { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); transition: transform .25s var(--ease-out); }
.crit__video:hover .play { transform: scale(1.08); }
@media (max-width: 1180px) { .crit { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .docs { gap: 8px; margin-bottom: 36px; }
  .docs__list { height: 280px; }
  .doc { width: 190px; }
  .doc__photo { width: 170px; height: 170px; }
  .doc[data-pos="-1"] { transform: translateX(calc(-50% - 110px)) translateY(30px) scale(.5); opacity: .35; }
  .doc[data-pos="1"] { transform: translateX(calc(-50% + 110px)) translateY(30px) scale(.5); opacity: .35; }
  .doc[data-pos="-1"] .doc__tag, .doc[data-pos="1"] .doc__tag { opacity: 0; }
  .crit { grid-template-columns: 1fr 1fr; gap: 10px; }
  .crit__card { min-height: 0; padding: 18px; gap: 14px; }
  .crit__card p { font-size: 14px; }
  .crit__video { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .crit__card:nth-child(5) { grid-column: 1 / -1; }
}

/* ---------- цены: консультация + пакеты ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -18px rgb(16 40 90 / .16); transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #E1E9F3, var(--shadow-md); }
.plan--accent { box-shadow: inset 0 0 0 1.5px #B9D5FB, 0 20px 44px -22px rgb(11 107 229 / .35); }
.plan__step { display: inline-flex; align-self: flex-start; padding: 5px 12px; margin-bottom: 18px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-hover); font-size: 12.5px; font-weight: 600; }
.plan--first .plan__step { background: rgb(255 255 255 / .7); }
.plan__name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 22px; }
.plan__price > span { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__price small { font-size: 14px; color: var(--ink-3); }
.plan__list { display: grid; gap: 10px; margin-bottom: 22px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plan__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--mint); stroke-width: 2.4; }
.plan__plus { padding: 10px 12px; margin: 2px -4px 0; border-radius: 12px; background: var(--blue-50); color: var(--ink) !important; font-weight: 600; }
.plan__plus .icon { color: var(--blue) !important; }
.plan__fit { margin-top: auto; margin-bottom: 22px; padding-top: 18px; border-top: 1px solid #EDF2F8; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.plan__fit b { color: var(--ink); font-weight: 600; }
.plan--first .plan__list { margin-bottom: 28px; }
.plan--first .btn { margin-top: auto; }
.plans__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--ink-3); text-align: center; }
.plans__note .icon { width: 18px; height: 18px; color: var(--blue); flex: none; }
@media (max-width: 1100px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan--first { grid-column: 1 / -1; }
  .plan--first .plan__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .plan { padding: 24px 20px; }
  .plan--first .plan__list { grid-template-columns: 1fr; }
  .plans__note { align-items: flex-start; text-align: left; font-size: 13px; }
}

/* ---------- отзывы ---------- */
.stories__track { position: relative; overflow: hidden; width: 100vw; margin: -8px calc(50% - 50vw) -28px; padding: 8px 0 28px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stories__track.is-drag { cursor: grabbing; }
.stories__rail { display: flex; gap: var(--gap, 16px); width: max-content; will-change: transform; }
.stories__rail .story { flex: none; width: var(--cw, 320px); }
.stories__track img { pointer-events: none; -webkit-user-drag: none; }
html:not(.js) .stories__track { display: flex; gap: 16px; overflow-x: auto; }
html:not(.js) .stories__track .story { flex: none; width: 300px; }
.story { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease-out); }
.story.glass { background: rgb(255 255 255 / .7); }
.story:hover { transform: translateY(-4px); }
.story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 10px 10px 0; }
.story__photos figure { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #EEF2F7; }
.story__photos figure:first-child { border-radius: 16px 4px 4px 16px; }
.story__photos figure:last-child { border-radius: 4px 16px 16px 4px; }
.story__photos img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.story__photos figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: var(--r-pill); background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 600; color: var(--ink); }
.story__photos .ph { aspect-ratio: 3 / 4; }
.story__photos .ph:first-child { border-radius: 16px 4px 4px 16px; }
.story__photos .ph:last-child { border-radius: 4px 16px 16px 4px; }
.story__photos .ph__label { font-size: 12px; padding: 5px 11px; border-radius: var(--r-pill); background: rgb(255 255 255 / .8); }
.story__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.story__result { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.story__result strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.story__result span { font-size: 13px; color: var(--ink-3); }
.story blockquote { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 14px; flex: 1; }
.story__who { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.stories__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; }
.stories__nav p { font-size: 13px; color: var(--ink-3); text-align: center; max-width: 46ch; }
@media (max-width: 560px) { .stories__nav { gap: 12px; } .stories__nav p { font-size: 12px; } }

/* ---------- журнал ---------- */
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.seg--filters { margin-bottom: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg--filters::-webkit-scrollbar { display: none; }
/* статьи — типографские карточки с градиентом, крупной цифрой и автором */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: 24px 24px 20px;
  border-radius: var(--r-lg); color: var(--ink); transition: transform .45s var(--ease-out), box-shadow .45s ease;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 10px 30px -20px rgb(16 40 90 / .25);
}
.post:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 24px 48px -24px rgb(16 40 90 / .35); }
.post[hidden] { display: none; }
/* мягкие градиенты, как в референсах */
.post--g1 { background: radial-gradient(120% 90% at 0% 0%, #CFC6F2 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #BFDCF7 0%, transparent 60%), linear-gradient(160deg, #EEEAFB, #E3EEFB); }
.post--g2 { background: radial-gradient(110% 90% at 0% 0%, #D6CFF0 0%, transparent 55%), radial-gradient(100% 80% at 30% 100%, #C9E2F8 0%, transparent 60%), linear-gradient(160deg, #F1F0F7, #E8EEF5); }
.post--g3 { background: radial-gradient(110% 90% at 100% 0%, #CDEDE3 0%, transparent 55%), radial-gradient(100% 90% at 0% 100%, #C8DDF7 0%, transparent 60%), linear-gradient(160deg, #EEF7F4, #E6EEF9); }
.post--g4 { background: radial-gradient(110% 90% at 100% 0%, #FBDCCB 0%, transparent 55%), radial-gradient(100% 90% at 0% 100%, #DCD3F6 0%, transparent 60%), linear-gradient(160deg, #FAF1EE, #EFEBFA); }
/* белая карточка для чередования: без кольца, цифра — синим градиентом */
.post--plain { background: #fff; box-shadow: inset 0 0 0 1px #E8EEF6, 0 10px 30px -22px rgb(16 40 90 / .2); }
.post--plain .post__ring { display: none; }
.post--plain .post__tag { background: var(--blue-50); }
.post--plain .post__num { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.post--plain .post__num small { -webkit-text-fill-color: #33467A; }
.post--plain .post__author { border-top-color: #EEF2F7; }
.post--plain .post__go { background: var(--blue-50); }
.post--g5 { background: radial-gradient(120% 90% at 0% 0%, #C3DDFB 0%, transparent 55%), radial-gradient(100% 90% at 100% 100%, #CFF0F4 0%, transparent 60%), linear-gradient(160deg, #EAF3FE, #E9F6F8); }
/* декоративное кольцо */
.post__ring { position: absolute; z-index: -1; right: -42%; top: -48%; width: 88%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgb(255 255 255 / .75); transition: transform 1s var(--ease-out); }
.post__ring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid transparent; border-left-color: rgb(110 150 190 / .45); transform: rotate(-30deg); }
.post:hover .post__ring { transform: rotate(18deg) scale(1.03); }
.post__tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 7px 13px 7px 10px; border-radius: var(--r-pill); background: rgb(255 255 255 / .8); font-size: 13px; font-weight: 600; color: var(--ink); }
.post__tag .icon { width: 16px; height: 16px; color: var(--blue); }
.post__num { margin: auto 0 0; padding-top: 28px; display: flex; align-items: flex-start; gap: 8px; font-size: clamp(4rem, 3rem + 3vw, 6rem); font-weight: 300; line-height: .9; letter-spacing: -.05em; color: #1A2A55; font-variant-numeric: tabular-nums; }
.post__num small { margin-top: .5em; font-size: .26em; font-weight: 400; letter-spacing: 0; line-height: 1.1; color: #33467A; }
.post h3 { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: var(--ink); }
.post__lead { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.post__author { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .7); }
.post__author img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.post__author > span:not(.post__go) { display: grid; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.post__author b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.post__go { margin-left: auto; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--blue); transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out); }
.post__go .icon { width: 18px; height: 18px; }
.post:hover .post__go { background: var(--blue); color: #fff; transform: rotate(45deg); }
/* первая статья — широкая, цифра огромная слева */
.post--big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto; column-gap: 48px; min-height: 340px; padding: 32px 36px 28px; }
.post--big .post__tag { grid-column: 1; grid-row: 1; justify-self: start; }
/* первая статья — заметно светлее остальных */
.post--big.post--g1 { background: radial-gradient(70% 90% at 0% 0%, #ECE8FB 0%, transparent 60%), radial-gradient(60% 90% at 100% 100%, #E6F1FD 0%, transparent 60%), linear-gradient(160deg, #FAF9FE, #F5F9FE); box-shadow: inset 0 0 0 1px #EDEFF8, 0 10px 30px -22px rgb(16 40 90 / .2); }
.post--big.post--g1 .post__tag { background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .06); }
.post--big .post__num { grid-column: 1; grid-row: 2 / -1; align-self: end; font-size: clamp(6rem, 4rem + 6vw, 11rem); }
.post--big h3 { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); font-weight: 400; letter-spacing: -.025em; }
.post--big .post__lead { grid-column: 2; grid-row: 3; font-size: 15.5px; max-width: 46ch; }
.post--big .post__author { grid-column: 2; grid-row: 4; }
.post--big .post__ring { right: -10%; top: -60%; width: 70%; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease-soft); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: .35s; }
@media (max-width: 1000px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post--big { display: flex; padding: 26px 24px 20px; }
  .post--big .post__num { font-size: clamp(5rem, 3rem + 6vw, 7rem); }
  .post--big .post__ring { right: -30%; top: -40%; width: 110%; }
}
@media (max-width: 640px) {
  .blog__head { flex-direction: column; align-items: stretch; gap: 20px; }
  .blog__head .btn { order: 2; }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .post { min-height: 340px; }
  .seg--filters { margin: 0 calc(var(--gutter) * -1) 20px; border-radius: 0; padding-left: var(--gutter); padding-right: var(--gutter); background: transparent; box-shadow: none; }
  .seg--filters .seg__thumb { display: none; }
  .seg--filters button { flex: none; background: rgb(20 50 100 / .035); margin-right: 6px; }
  .seg--filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
}

/* ---------- миссия ---------- */
.mission { position: relative; max-width: 940px; margin: 0 auto; padding: 60px 64px; border-radius: var(--r-xl); text-align: center; overflow: visible; }
.mission blockquote { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.25; font-weight: 300; letter-spacing: -.02em; text-wrap: balance; }
.mission figcaption { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--blue-hover); }
.note--mission { right: -36px; top: -28px; }
.note--mission .note__text { font-size: 28px; transform: rotate(8deg); }
@media (max-width: 1060px) { .note--mission { right: 16px; top: -34px; } }
@media (max-width: 560px) { .mission { padding: 40px 20px; } .note--mission .note__text { font-size: 22px; } }

/* ---------- FAQ: плавное раскрытие ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { border-radius: 20px; background: var(--surface); transition: box-shadow .3s ease, background-color .3s ease; }
.faq details:hover { box-shadow: var(--shadow-sm); }
.faq details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; line-height: 1.35; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq__ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue); transition: transform .45s var(--ease-soft), background-color .3s ease, color .3s ease; }
.faq__ico .icon { width: 17px; height: 17px; }
.faq details[open] .faq__ico { transform: rotate(135deg); background: var(--blue); color: #fff; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-soft), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq__a p { padding: 0 24px 22px; margin-top: -6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 8px; } .faq summary { padding: 18px; font-size: 15.5px; } .faq__a p { padding: 0 18px 18px; } }

/* ---------- финал ---------- */
.final { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; min-height: 480px; border-radius: var(--r-xl); }
.final__copy { padding: 68px 0 60px 60px; display: flex; flex-direction: column; align-items: flex-start; }
.final__copy h2 { max-width: 13ch; }
.final__copy p { margin: 18px 0 32px; font-size: 17px; color: var(--ink-2); max-width: 40ch; }
.final__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.final__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.final__meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.final__meta .icon { width: 18px; height: 18px; }
.final__media { position: relative; display: grid; place-items: center; padding: 36px 40px 36px 0; }
@media (max-width: 960px) {
  .final { grid-template-columns: minmax(0, 1fr); }
  .final__copy { padding: 44px 32px 0; }
}
@media (max-width: 560px) {
  .final__copy { padding: 34px 18px 0; }
  .final__btns { width: 100%; }
  .final__btns .btn { flex: 1; padding: 0 16px; }
}

/* ---------- колода врачей в финальном блоке ---------- */
.match { width: 100%; max-width: 290px; display: grid; justify-items: center; gap: 14px; }
.match__deck { position: relative; width: 100%; height: 356px; } /* карточка 320 + выглядывающие края */
.mcard {
  position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; overflow: hidden;
  height: 320px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .06), 0 24px 48px -24px rgb(16 40 90 / .4);
  transform-origin: 50% 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .5s var(--ease-out), opacity .4s ease;
}
.mcard.is-top { cursor: grab; }
.mcard.is-drag { cursor: grabbing; transition: none; }
.mcard__photo { position: relative; height: 176px; flex: none; background: #E2ECF8; }
.mcard__photo { overflow: hidden; }
.mcard__photo img { display: block; pointer-events: none; }
/* портрет целиком квадратом по центру, по бокам — его размытая копия */
.mcard__bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) saturate(1.2); opacity: .55; }
.mcard__face { position: relative; height: 100%; width: auto; aspect-ratio: 1; margin: 0 auto; object-fit: cover; box-shadow: 0 0 30px -6px rgb(16 32 64 / .25); }
.mcard__picked { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); background: rgb(34 176 125 / .92); color: #fff; font-size: 15px; font-weight: 600; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; box-shadow: 0 12px 26px -10px rgb(20 120 85 / .6); }
.mcard__picked .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.mcard.is-picked .mcard__picked { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mcard__body { padding: 12px 16px 14px; transition: opacity .3s ease; }
/* у задних карточек виден только край, без текста */
.mcard:not(.is-top) .mcard__body, .mcard:not(.is-top) .mcard__photo img { opacity: 0; }
.mcard.is-top .mcard__photo img { transition: opacity .3s ease .15s; }
.mcard__name { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.mcard__role { margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.mcard__tags { display: flex; gap: 6px; margin-top: 9px; }
.mcard__tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-hover); font-size: 12.5px; font-weight: 600; }
.mcard__tag--star { background: #FFF5DD; color: #8A5A00; }
.mcard__tag--star .icon { width: 13px; height: 13px; fill: #F5B400; stroke: #F5B400; }
.mcard__slot { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.mcard__slot b { color: var(--ink); font-weight: 600; }
.mcard__slot i { width: 7px; height: 7px; border-radius: 50%; background: #22B07D; animation: pulse 2s ease-in-out infinite; }
.match__actions { display: flex; gap: 10px; }
.match__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 15px; font-weight: 600; color: var(--ink); transition: background-color .2s ease, transform .15s var(--ease-out); }
.match__btn:hover { background: #fff; }
.match__btn:active { transform: scale(.96); }
.match__btn .icon { width: 18px; height: 18px; }
.match__btn--pick { background: #22B07D; color: #fff; box-shadow: 0 10px 22px -12px rgb(20 120 85 / .7); }
.match__btn--pick:hover { background: #1C9C6E; }
.match__hint { font-size: 12.5px; color: var(--ink-3); text-align: center; }
html:not(.js) .mcard:not(:first-child) { display: none; }
@media (max-width: 960px) { .final__media { padding: 28px 24px 36px; } }
@media (max-width: 560px) { .final__media { padding: 24px 16px 28px; } }

/* ---------- подвал: светлый ---------- */
.footer { position: relative; overflow: hidden; margin-top: var(--section-y); padding: 64px 0 36px; font-size: 14.5px; color: var(--ink-2);
  background: radial-gradient(60% 120% at 0% 0%, #E6F1FF 0%, transparent 60%), radial-gradient(50% 100% at 100% 100%, #EAF7FC 0%, transparent 60%), #F3F7FC;
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: inset 0 1px 0 #fff, 0 -1px 0 var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; }
.footer .logo img { height: 36px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--ink-3); }
.footer__contacts { display: grid; gap: 6px; margin-top: 22px; }
.footer__contacts a, .footer__contacts span { justify-self: start; color: var(--ink-3); transition: color .2s ease; }
.footer__contacts a:hover { color: var(--blue); }
.footer__contacts .footer__phone { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.social__link { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 6px; border-radius: 14px; background: rgb(255 255 255 / .75); font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .25s ease, box-shadow .25s ease, transform .2s var(--ease-out); }
.social__link:hover { background: #fff; box-shadow: 0 8px 20px -12px rgb(16 40 90 / .3); transform: translateY(-1px); }
.social__ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.social__ico svg { width: 19px; height: 19px; }
.social__ico--max { background: linear-gradient(145deg, #7B5CFF, #3D5BFF); }
.social__ico--vk { background: #0077FF; }
.social__ico--tg { background: #229ED9; }
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__col h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer__col a { color: var(--ink-3); transition: color .2s ease; }
.footer__col a:hover { color: var(--blue); }
.footer__badges { margin-top: 8px; }
.age { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px #8C97A8; color: #6E7989; font-size: 13px; font-weight: 700; }
.footer__bottom { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid #DFE7F1; font-size: 13px; color: var(--ink-3); }
.footer__bottom p { max-width: 110ch; }
.footer__warning { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-bottom: 6px; padding: 7px 14px 7px 10px; border-radius: 12px; background: rgb(255 255 255 / .8); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.footer__warning .icon { width: 17px; height: 17px; color: var(--blue); }
@media (max-width: 1000px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .footer { padding: 48px 0 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__warning { font-size: 12.5px; }
}

/* ---------- прелоадер (только первый визит) ---------- */
.preloader { display: none; }
.is-preloading .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 28px;
  background: radial-gradient(60% 50% at 50% 45%, #EAF3FF 0%, rgb(255 255 255 / 0) 70%), #fff;
  transition: opacity .9s ease, filter .9s ease, transform .9s var(--ease-out);
}
.is-preloading .preloader__logo { height: 48px; width: auto; animation: pl-in 1s var(--ease-out) both; }
.preloader__bar { width: 140px; height: 3px; border-radius: 3px; background: #E6EEF8; overflow: hidden; animation: pl-fade .6s ease .3s both; }
.preloader__bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #5FB2F6, var(--blue)); animation: pl-bar 1.1s var(--ease-in-out) infinite; }
@keyframes pl-in { from { opacity: 0; filter: blur(14px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
/* сайт под прелоадером размыт и проясняется вместе с его уходом */
.is-preloading body { overflow: hidden; }
.is-preloading .header, .is-preloading main, .is-preloading .footer { filter: blur(18px); opacity: .5; transform: scale(1.015); transition: filter 1.1s ease, opacity 1s ease, transform 1.2s var(--ease-out); }
.is-preloading.pl-done body { overflow: auto; }
.is-preloading.pl-done .header, .is-preloading.pl-done main, .is-preloading.pl-done .footer { filter: none; opacity: 1; transform: none; }
.is-preloading.pl-done .preloader { opacity: 0; filter: blur(16px); transform: scale(1.04); pointer-events: none; }

/* ---------- появление ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s ease; transition-delay: var(--d, 0ms); }
.js [data-float] { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); }
.js [data-float].is-in { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .6s ease; transition-delay: var(--d, 0ms); }
.js .note__text { opacity: 0; }
.js .note.is-in .note__text { opacity: 1; transition: opacity .7s ease .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-float], .js .note__text { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .aurora__blob, .glow span, .marquee__track, .dot, .chip--float, .num-card__video::before, .ui-slots__times span, .ui-slots__times span::after, .ui-call__ava::before, .ui-call__wave i, .ui-call__live, .mcard__slot i { animation: none !important; }
  .js .note__arrow path { stroke-dashoffset: 0 !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
