/* ===== Токены ===== */
:root {
  --bg: #f4f8fc; --bg-alt: #eaf2fa; --surface: #ffffff; --surface-2: #f6fafd;
  --text: #12263a; --muted: #5c7186; --line: #d9e5f0;
  --brand: #1677c7; --brand-2: #0fb0a4; --brand-soft: #e1eefa;
  --cta: #17a55d; --cta-2: #2cc584; --cta-ink: #ffffff; --cta-glow: rgba(23, 165, 93, .35);
  --ink: #0f2135; --ink-text: #eaf2fa;
  --ok: #17a55d; --star: #f5a524;
  --glow-a: rgba(22, 119, 199, .22); --glow-b: rgba(15, 176, 164, .20); --glow-c: rgba(44, 197, 132, .18);
  --shadow: 0 14px 40px rgba(22, 80, 130, .10); --shadow-lg: 0 30px 80px rgba(22, 80, 130, .16);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0a1119; --bg-alt: #0e1721; --surface: #131e2a; --surface-2: #172533;
  --text: #e8eff6; --muted: #93a6b9; --line: #213245;
  --brand: #56b4f2; --brand-2: #3ed6c6; --brand-soft: #152a3d;
  --cta: #25b871; --cta-2: #45d996; --cta-ink: #ffffff; --cta-glow: rgba(47, 195, 124, .35);
  --ink: #101c29; --ink-text: #e8eff6;
  --glow-a: rgba(60, 150, 235, .20); --glow-b: rgba(40, 200, 190, .14); --glow-c: rgba(47, 195, 124, .12);
  --shadow: 0 14px 40px rgba(0, 0, 0, .35); --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
}
/* Градиенты для выделяемого текста */
:root { --grad: linear-gradient(95deg, #1677c7 0%, #0fb0a4 55%, #1fb468 100%); }
[data-theme="dark"]:root { --grad: linear-gradient(95deg, #5cc0ff 0%, #3ed6c6 55%, #5be39a 100%); }
/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
section { padding: 88px 0; position: relative; }
.muted { color: var(--muted); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 18px; }
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow--grad { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.head { max-width: 720px; margin-bottom: 44px; }
.head--c { margin-left: auto; margin-right: auto; text-align: center; }
.head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ===== Кнопки: три роли ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: var(--r-md); font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .opt:focus-visible, summary:focus-visible, .nav a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* 1. Заказ — отправка формы / шаг квиза: зелёная, со свечением */
.btn--order { background: linear-gradient(180deg, var(--cta-2), var(--cta)); color: var(--cta-ink); box-shadow: 0 10px 26px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--order:hover { box-shadow: 0 14px 34px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
/* 2. Поп-ап — открывает окно заявки: синяя */
.btn--popup { background: linear-gradient(180deg, #2a8fe0, #1670c0); color: #fff; box-shadow: 0 10px 26px rgba(22, 119, 199, .30), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--popup:hover { box-shadow: 0 14px 34px rgba(22, 119, 199, .40), inset 0 1px 0 rgba(255, 255, 255, .25); }
/* 3. Навигация — прокрутка / переход: контурная со стрелкой */
.btn--nav { background: var(--surface); color: var(--text); border: 1.5px solid var(--line); }
.btn--nav:hover { border-color: var(--brand); color: var(--brand); }
.btn--nav .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn--nav:hover .icon { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--r-sm); }
.btn--wide { width: 100%; }

/* ===== Фоновые элементы ===== */
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.decor > * { position: absolute; }
.glow { border-radius: 50%; filter: blur(70px); }
.rings { width: 720px; height: 720px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 58px, var(--line) 58px 59px); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); opacity: .8; }
.dots { width: 420px; height: 300px; background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); mask-image: linear-gradient(135deg, #000, transparent 75%); }
.plus { width: 56px; height: 56px; opacity: .5; background: linear-gradient(var(--brand), var(--brand)) center / 100% 30% no-repeat, linear-gradient(var(--brand), var(--brand)) center / 30% 100% no-repeat; border-radius: 6px; -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, .35), transparent); mask-image: linear-gradient(135deg, rgba(0, 0, 0, .35), transparent); }
section > .wrap, .hero > .wrap { position: relative; z-index: 1; }

/* ===== Шапка ===== */
.topbar { background: var(--ink); color: var(--ink-text); font-size: 13px; text-align: center; padding: 8px 16px; }
.topbar b { color: #6fe0a6; }
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 22px; padding: 12px 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: -.02em; }
.logo__mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; }
.logo small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.logo, .phone, .nav a { white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav__item:hover .nav__top { color: var(--text); background: var(--brand-soft); }
.nav a[aria-current] { color: var(--brand); }
.nav__item { position: relative; }
.nav__item--sub .nav__top::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav__item--sub.is-open .nav__top::after { transform: translateY(1px) rotate(225deg); }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 280px; margin-top: 8px; padding: 8px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item--sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { color: var(--text); padding: 10px 12px; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.phone { text-align: right; line-height: 1.2; }
.phone a { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.phone small { display: block; font-size: 12px; color: var(--muted); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 0 0 var(--cta-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.theme { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme:hover { color: var(--brand); border-color: var(--brand); }

/* ===== Hero ===== */
.hero { position: relative; padding: 64px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 20px 0 30px; max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.rating b { color: var(--text); }
.stars { color: var(--star); letter-spacing: 2px; }

/* Квиз */
.halo { position: relative; }
.halo::before { content: ""; position: absolute; inset: -18px; border-radius: 44px; background: conic-gradient(from 200deg, var(--glow-a), var(--glow-c), var(--glow-b), var(--glow-a)); filter: blur(34px); z-index: -1; }
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 28px; }
.quiz__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.quiz__top small { display: block; color: var(--muted); font-size: 13px; }
.quiz__step { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--brand-soft); margin-bottom: 20px; overflow: hidden; }
.progress i { display: block; width: 33%; height: 100%; background: var(--grad); border-radius: 3px; }
.quiz h3 { margin-bottom: 14px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; background: var(--surface-2); color: var(--text); border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover, .opt.is-on { border-color: var(--brand); background: var(--brand-soft); }
.opt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; }
.opt.is-on::before { border: 6px solid var(--brand); }
.quiz .btn { margin-top: 8px; }
.note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Лента доверия */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chip .icon { width: 18px; height: 18px; color: var(--brand); }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: 28px; }
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--muted); }
.stat--hit { background: var(--grad); border-radius: calc(var(--r-lg) - 1px) 0 0 calc(var(--r-lg) - 1px); color: #fff; }
.stat--hit b { font-size: 38px; }
.stat--hit span { color: rgba(255, 255, 255, .9); }
[data-theme="dark"] .stat--hit, [data-theme="dark"] .stat--hit span { color: #06121c; }

/* ===== Преимущества: чередующиеся ряды ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature__vis { order: -1; }
.feature p { color: var(--muted); margin: 14px 0 18px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; padding: 6px 0; }
.ticks .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.panel__cap { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; font-size: 15px; }
.row em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.eta { display: flex; align-items: baseline; gap: 8px; }
.eta b { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.spark { width: 100%; height: 90px; margin: 14px 0; display: block; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 12px; color: var(--muted); }
.mini b { display: block; font-size: 17px; color: var(--text); }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vital { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.vital .icon { color: var(--brand); margin-bottom: 8px; }
.vital b { display: block; font-size: 22px; letter-spacing: -.02em; }
.vital span { font-size: 13px; color: var(--muted); }

/* ===== Цены ===== */
.alt { background: var(--bg-alt); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan__name { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan__sum { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; line-height: 1.1; }
.plan__sum small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__for { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 46px; }
.plan .ticks { flex: 1; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 22px; font-size: 15px; }
.plan .ticks .ticks__highlight { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); background: var(--brand-soft); line-height: 1.45; }
.plan .ticks__highlight .icon { color: var(--brand); flex: none; }
.plan .btn { white-space: normal; }
/* Выделенный тариф: бегущая подсветка рамки */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan--hit {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), transparent 0 58%, var(--brand) 72%, #bff3ea 84%, var(--cta-2) 92%, transparent 100%) border-box,
    linear-gradient(color-mix(in srgb, var(--brand) 35%, var(--line)), color-mix(in srgb, var(--brand) 35%, var(--line))) border-box;
  box-shadow: var(--shadow-lg);
  animation: spin 5s linear infinite;
}
.plan--hit::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--ang), transparent 0 58%, var(--brand) 72%, #bff3ea 84%, var(--cta-2) 92%, transparent 100%); filter: blur(12px); opacity: .55; animation: spin 5s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
/* Бегущая подсветка рамки: блок формы на первом экране; у кнопки действия — только в тёмной теме */
[data-theme="dark"] .btn--run {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #2a8fe0, #1670c0) padding-box,
    conic-gradient(from var(--ang), transparent 0 55%, #3aa0f0 70%, #d9f1ff 88%, transparent 100%) border-box,
    linear-gradient(#1670c0, #1670c0) border-box;
  animation: spin 3.6s linear infinite;
}
[data-theme="dark"] .btn--run::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--ang), transparent 0 50%, #2a8fe0 68%, #8fd4ff 88%, transparent 100%); filter: blur(12px); opacity: .85; animation: spin 3.6s linear infinite; }
.quiz--run {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), transparent 0 58%, var(--brand) 72%, #bff3ea 84%, var(--cta-2) 92%, transparent 100%) border-box,
    linear-gradient(var(--line), var(--line)) border-box;
  animation: spin 6s linear infinite;
}
.plan__flag { position: absolute; top: -14px; left: 26px; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px var(--glow-a); }
[data-theme="dark"] .plan__flag { color: #06121c; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 22px; text-align: center; }

/* ===== Этапы ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 32px; border-top: 2px dashed var(--line); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__ico { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; position: relative; }
.step__ico .icon { width: 28px; height: 28px; }
.step__ico i { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 13px/26px var(--font); }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.steps--cards { align-items: stretch; }
.service-detail { overflow-wrap: anywhere; }
.service-detail .eyebrow { max-width: 100%; white-space: normal; }
.service-detail .form-alt .msgr__btn { flex: 1 1 max-content; white-space: normal; max-width: 100%; }
.service-detail .btn { white-space: normal; text-align: center; line-height: 1.25; }
.service-detail :is(.hero__grid, .steps, .cmp, .faq, .order) > * { min-width: 0; }
@media (min-width: 901px) {
  .service-detail .steps:has(> .step:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps--cards::before { display: none; }
.steps--cards .step { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; }
.steps--cards .step__ico { width: 52px; height: 52px; margin: 0 0 20px; border-radius: 16px; box-shadow: none; background: var(--brand-soft); }
.steps--cards .step__ico i { text-align: center; }
.steps--cards .step h3 { min-height: 2.7em; font-size: 18px; line-height: 1.35; }
.step__list { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; line-height: 1.6; }
.step__list li { position: relative; padding-left: 16px; }
.step__list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
@media (max-width: 600px) {
  .steps.steps--cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps--cards .step h3 { min-height: 0; }
}

/* ===== Карточки: состав, врачи, отзывы ===== */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.ico { width: 48px; height: 48px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.doc { text-align: center; }
.doc__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); }
.doc__photo .icon { width: 44px; height: 44px; }
.doc__tag { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.license { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.license__doc { width: 70px; height: 92px; border-radius: 8px; border: 1.5px solid var(--line); background: repeating-linear-gradient(180deg, var(--bg-alt) 0 6px, transparent 6px 14px); flex: none; }
.license .btn { margin-left: auto; }

/* ===== Форма заказа (градиентный блок) ===== */
.order { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; color: #fff; background: linear-gradient(135deg, #0f4f95 0%, #1677c7 45%, #0fa6a0 100%); box-shadow: 0 30px 80px rgba(22, 119, 199, .35); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
[data-theme="dark"] .order { background: linear-gradient(135deg, #0c2e55 0%, #12508a 50%, #0c6e6c 100%); }
.order::before { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 48px, rgba(255, 255, 255, .12) 48px 49px); }
.order > * { position: relative; min-width: 0; }
.order p { opacity: .88; font-size: 18px; margin-top: 14px; }
.order__form { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font: 500 17px var(--font); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow-a); }
.consent { font-size: 12px; color: var(--muted); margin-top: 12px; }
.consent a { text-decoration: underline; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ===== Подвал ===== */
.footer { background: var(--ink); color: var(--ink-text); padding: 44px 0 44px; font-size: 14px; }
.footer .muted { color: #8fa3b8; }
.warn { font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 16px; border: 1px solid #2a3e55; border-radius: var(--r-sm); margin-bottom: 26px; color: #b9c8d8; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }

/* ===== Мобильная панель и поп-ап ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; background: rgba(8, 18, 30, .6); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal__box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.modal__box h3 { font-size: 26px; margin-bottom: 8px; }
.modal__box > p { color: var(--muted); margin-bottom: 20px; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); font-size: 22px; cursor: pointer; }

@media (max-width: 980px) {
  section { padding: 56px 0; }
  .nav, .header .btn, .phone small { display: none; }
  .hero { padding-top: 36px; }
  .hero__grid, .feature, .order, .faq { grid-template-columns: 1fr; gap: 32px; }
  .feature { margin-bottom: 48px; }
  .feature:nth-child(even) .feature__vis { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans, .grid3 { grid-template-columns: 1fr; }
  .plan--hit { order: -1; }
  .grid4, .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps::before { display: none; }
  .order { padding: 32px 22px; }
  .license { flex-wrap: wrap; }
  .license .btn { margin-left: 0; width: 100%; }
  .rings { display: none; }
}
@media (max-width: 520px) {
  .logo > span:last-child { display: none; }
  .header__in { gap: 12px; }
  .phone a { font-size: 17px; }
  .stat { padding: 18px; }
  .stat b { font-size: 26px; }
  .grid4 { grid-template-columns: 1fr; }
  .quiz { padding: 20px; }
  .btn { padding: 0 20px; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .plan--hit, .plan--hit::after, .live, .btn, .btn::after, .quiz--run { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   Дополнения к дизайн-системе: блоки сайта, которых не было в макете
   =================================================================== */
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: 84px; }
img { max-width: 100%; }

/* Логотип */
.logo__svg { height: 46px; width: auto; display: block; color: var(--text); }
.footer .logo__svg { color: var(--ink-text); }

/* Мобильное меню */
.burger { display: none; }
.mnav { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.mnav { max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.mnav summary, .mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.mnav details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mnav details a { display: block; padding: 12px 4px 12px 16px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav a[aria-current] { color: var(--brand); }
.mnav > :last-child { border-bottom: 0; }

/* Меню услуг в подвале */
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px 64px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid #2a3e55; }
.footer__nav .footer__col b { font-size: 15px; }
.footer__nav a { color: #b9c8d8; }
.footer__nav a:hover { color: #fff; }

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--brand); }
.crumbs b { font-weight: 500; color: var(--text); }

/* Квиз */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.quiz__final { margin: -6px 0 16px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Формы */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field input.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.form-status { font-size: 14px; margin-top: 10px; color: #e5484d; min-height: 0; }
.form-status:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.js-lead.is-loading .btn { opacity: .7; pointer-events: none; }

/* Услуги с ценами */
.card--service { display: flex; flex-direction: column; }
.card--service p { flex: 1; }
.card--article { padding: 0; overflow: hidden; color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card--article:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.card--article:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.article-card__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.card--article > .ico { margin: 24px 24px 0; }
.card--article .btn { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .card--article { transition: none; } .card--article:hover { transform: none; } }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.card__price { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.panel__img { display: block; width: 100%; border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; }

/* Врачи и лицензия */
.slider--docs .slider__item { flex: 0 0 calc((100% - 42px) / 4); }
.slider--docs .doc__photo { width: 120px; height: 120px; aspect-ratio: auto; }
img.doc__photo { object-fit: cover; padding: 0; display: block; }
.doc h3 { font-size: 17px; }
.license__docs { display: flex; gap: 8px; flex: none; }
.license__docs img { width: 70px; height: 98px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Рейтинги и отзывы */
.rate { display: flex; flex-direction: column; gap: 4px; }
.rate__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rate__score { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.rate p { flex: 1; margin-top: 0; }
.rate__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand); }
.rate__link .icon { width: 16px; height: 16px; }
.reviews-widget { margin-top: 28px; }

/* Слайдер текстовых отзывов */
.slider--cards { margin-top: 20px; }
.slider--cards .slider__track { align-items: stretch; }
.review { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.review__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.review__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__who .stars { font-size: 13px; }
.review__src { flex: none; align-self: flex-start; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.review__text { flex: 1; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review__text--full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.family-plan { align-items: start; }
.family-plan__book { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.family-plan__book > span { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 13px; font-weight: 600; }
.family-plan__book h3 { margin-top: 16px; font-size: 30px; line-height: 1.15; }
.family-plan__book p { color: var(--muted); margin: 14px 0; }
.family-plan__urgent { margin-top: 20px; color: var(--muted); font-size: 13px; }
.family-quiz { box-sizing: border-box; min-width: 0; width: 100%; }
.family-quiz .opt { white-space: normal; text-align: left; }
.family-quiz__nav { display: flex; gap: 12px; margin-top: 18px; }
.family-quiz__nav [data-family-next] { flex: 1; }
.family-quiz__nav .btn { padding: 0 20px; }
.family-quiz__result { padding: 16px; margin-bottom: 20px; border-radius: var(--r-md); background: var(--brand-soft); }
.family-quiz__result p { margin-top: 8px; font-size: 14px; }
.family-quiz__success p { margin: 14px 0; }
.family-quiz__success a:not(.btn) { color: var(--brand); text-decoration: underline; }
.family-quiz .btn--wide { white-space: normal; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 980px) {
  .wrap.family-plan { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .family-plan > .info__text { display: contents; }
  .family-plan > .info__text > .eyebrow { grid-row: 1; justify-self: start; }
  .family-plan > .info__text > h2 { grid-row: 2; margin: 0; }
  .family-plan > .info__text > .info__p { grid-row: 3; margin: 0; }
  .family-plan__urgent { grid-row: 4; margin: 0; }
  .family-plan > .family-quiz { grid-row: 5; }
  .family-plan__book { grid-row: 6; margin: 0; max-width: 560px; }
}
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.review__foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.review__foot .icon { width: 14px; height: 14px; }
.footer__logo { margin-bottom: 8px; align-self: flex-start; }

/* Форма заказа: дополнения и вариант для родственников */
.order h2 { color: #fff; }
.order__tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.order__tag .icon { width: 16px; height: 16px; }
.order .ticks { margin-top: 18px; }
.order .ticks .icon { color: #fff; }
.order__form h3 { margin-bottom: 16px; }
.order--family { background: linear-gradient(135deg, #0a6c80 0%, #0fa39c 50%, #1fb468 100%); box-shadow: 0 30px 80px rgba(15, 163, 156, .30); }
[data-theme="dark"] .order--family { background: linear-gradient(135deg, #083f4d 0%, #0b6a66 50%, #14774a 100%); }

/* О клинике */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.about .ticks { margin-top: 18px; }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.about__addr { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.about__addr .icon { color: var(--brand); }
.faq__text { margin: 14px 0 22px; }

/* Подвал */
.footer__in { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a:hover { text-decoration: underline; }
.footer__phone { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* Поп-ап: мессенджеры */
.modal { overflow-y: auto; }
body.is-locked { overflow: hidden; }

/* Cookie: узкая полоска в одну строку */
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.cookie .icon { width: 18px; height: 18px; color: var(--brand); }
.cookie a { text-decoration: underline; text-underline-offset: 2px; }
.cookie button { border: 0; border-radius: 999px; padding: 7px 16px; background: var(--brand-soft); color: var(--brand); font: 600 13px var(--font); cursor: pointer; }

/* Служебные страницы: «спасибо», 404 */
.notice { text-align: center; padding: 110px 0 130px; }
.notice .lead { margin-left: auto; margin-right: auto; }
.notice .hero__cta { justify-content: center; }
.notice__ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 40px var(--cta-glow); }
.notice__ico .icon { width: 44px; height: 44px; }

@media (max-width: 980px) {
  .burger { display: grid; }
  .header.is-open .mnav { display: flex; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .footer__in { grid-template-columns: 1fr; gap: 24px; }
  .card__foot { flex-wrap: wrap; }
  .logo__svg { height: 40px; }
  .notice { padding: 64px 0 80px; }
}
@media (max-width: 520px) {
  .header [data-toggle-theme] { display: none; }
  .logo__svg { height: 34px; }
  .license__docs img { width: 56px; height: 78px; }
}

/* Поля формы: размер считается вместе с рамкой и отступами */
.field input, .opt, .btn { box-sizing: border-box; max-width: 100%; }

/* Плавные переходы между блоками: фон перетекает, а не обрывается */
section.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 160px, var(--bg-alt) calc(100% - 160px), var(--bg) 100%); }

/* Слайдер фотографий */
.slider { position: relative; }
.slider__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; }
.slider--3 .slider__item { flex-basis: calc((100% - 28px) / 3); }
.slider__item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slider__item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 22, 35, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 500; }
.slider__btn { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: opacity .2s, color .2s; }
.slider__btn:hover { color: var(--brand); }
.slider__btn--prev { left: -14px; }
.slider__btn--prev .icon { transform: rotate(180deg); }
.slider__btn--next { right: -14px; }
.slider__btn[disabled] { opacity: 0; pointer-events: none; }

/* Стационар */
.stac { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: stretch; }
.stac > * { min-width: 0; }
.stac__ticks { justify-content: flex-start; margin-top: 16px; }
.stac__prices { display: flex; flex-direction: column; padding: 28px; }
.stac__prices .rooms { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.stac__prices .row { margin-bottom: 0; padding: 18px; }
.stac__prices .row > span { display: flex; flex-direction: column; }
.stac__prices .row small { margin-left: 0; }
.stac__prices .row strong { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.stac__prices .row strong small { font-weight: 400; }
.rooms .row b { font-weight: 600; }
.rooms .row small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.rooms .row strong { font-size: 17px; white-space: nowrap; }
.rooms .row--hit { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.rooms__note { font-size: 13px; color: var(--muted); margin: 10px 0 22px; }

.stac__explain { margin-top: 56px; }
.stac__title { font-size: clamp(22px, 2.4vw, 30px); }
.stac__lead { color: var(--muted); font-size: 17px; margin: 10px 0 28px; }
/* Анонимность — выделенная плашка */
.anon { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 20px; padding: 28px 32px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, #0f4f95 0%, #1677c7 50%, #0fa6a0 100%); box-shadow: 0 20px 50px rgba(22, 119, 199, .28); overflow: hidden; }
[data-theme="dark"] .anon { background: linear-gradient(135deg, #0c2e55 0%, #12508a 50%, #0c6e6c 100%); }
.anon::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 40px, rgba(255, 255, 255, .10) 40px 41px); pointer-events: none; }
.anon > * { position: relative; }
.anon__ico { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.anon__ico .icon { width: 30px; height: 30px; }
.anon h3 { font-size: 24px; }
.anon p { opacity: .9; margin-top: 6px; }
.anon__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anon__points li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: 15px; white-space: nowrap; }
.anon__points .icon { width: 18px; height: 18px; }
@media (max-width: 980px) {
  .stac__explain { margin-top: 36px; }
  .anon { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 22px 18px; }
  .anon__ico { width: 52px; height: 52px; border-radius: 16px; }
  .anon h3 { font-size: 20px; }
  .anon__points { grid-column: 1 / -1; }
  .anon__points li { white-space: normal; border-radius: 14px; }
}

/* О клинике: фото + лента */
.about { margin-bottom: 36px; }
.about > * { min-width: 0; }
.about__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); display: block; }

@media (max-width: 980px) {
  .stac { grid-template-columns: 1fr; gap: 20px; }
  .stac__prices { padding: 20px; }
  .stac__ticks .chip { font-size: 13px; padding: 8px 12px; }
  .slider__item { flex-basis: 88%; }
  .slider--3 .slider__item { flex-basis: 78%; }
  .slider__btn { display: none; }
  .slider__track { margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; border-radius: 0; }
  section.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 90px, var(--bg-alt) calc(100% - 90px), var(--bg) 100%); }
}

/* ===== Мессенджеры ===== */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr__btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s, border-color .2s, box-shadow .2s; }
.msgr__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.msgr__btn svg { width: 20px; height: 20px; flex: none; }
.msgr__btn b { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.msgr__btn--tg svg { color: #2aabee; }
.msgr__btn--tg:hover { border-color: #2aabee; }
.msgr__btn--max b { color: var(--brand); }
.msgr__btn--max:hover { border-color: var(--brand); }
.msgr--icons .msgr__btn { width: 44px; padding: 0; }
.form-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__msgr { margin-top: 8px; }
.footer .msgr__btn { background: transparent; border-color: #2a3e55; color: var(--ink-text); }
@media (max-width: 1180px) { .header__msgr { display: none; } }
@media (max-width: 520px) {
  .form-alt .msgr { width: 100%; }
  .form-alt .msgr__btn { flex: 1; padding: 0 8px; gap: 6px; }
}

/* ===== Больничный лист ===== */
.sick__btn { margin-top: 22px; }
.feature .sick__note { font-size: 13px; margin: 14px 0 0; }
.sick__vis { position: relative; }
.sick__vis::before { content: ""; position: absolute; inset: 10% 6%; border-radius: 40px; background: linear-gradient(120deg, var(--glow-a), var(--glow-c)); filter: blur(40px); }
.sick__doc { position: relative; padding: 26px; }
.sick__head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); }
.sick__head b { display: block; font-size: 17px; letter-spacing: -.02em; }
.sick__head small { display: block; font-size: 13px; color: var(--muted); }
.sick__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.sick__stamp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--ok); border-radius: 10px; color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); white-space: nowrap; }
.sick__stamp .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.sick__doc .row:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .sick__doc { padding: 18px; }
  .sick__head { flex-wrap: wrap; }
  .sick__stamp { margin-left: 58px; }
  .sick__btn { width: 100%; }
}

/* ---------- Цветной блок с формой: оформление задаётся в YAML — style: 2…5 (класс order--vN) ---------- */
.order > .order__decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.order__decor > * { position: absolute; display: none; }
.order__docs, .order__stats { display: none; }
.order__glow { width: 460px; height: 460px; left: -140px; bottom: -220px; border-radius: 50%; background: rgba(120, 235, 200, .45); filter: blur(80px); }
.order__dots { left: 0; top: 0; width: 380px; height: 260px; background-image: radial-gradient(rgba(255, 255, 255, .28) 1.5px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.order__pulse { left: 0; right: 0; bottom: 18px; width: 100%; height: 110px; color: rgba(255, 255, 255, .30); }
.order__pulse path { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 7s ease-in-out infinite; }
@keyframes draw { 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.order__photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.order__docs { align-items: center; gap: 14px; margin-top: 26px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); width: fit-content; max-width: 100%; }
.order__avas { display: flex; flex: none; }
.order__avas img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -12px; background: #fff; }
.order__avas img:first-child { margin-left: 0; }
.order__docs b { display: flex; align-items: center; font-size: 15px; }
.order__docs small { display: block; font-size: 13px; opacity: .85; }
.order__docs .live { background: #7df0b0; }

.order__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.order__stats div { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.order__stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.order__stats span { display: block; font-size: 12px; opacity: .85; line-height: 1.3; margin-top: 2px; }

/* 2. Врач на связи: аватары врачей, свечение и точки */
.order--v2 .order__docs { display: flex; }
.order--v2 .order__glow, .order--v2 .order__dots { display: block; }

/* 3. Цифры и пульс: три показателя и линия ЭКГ */
.order--v3 .order__stats { display: grid; }
.order--v3 .order__glow, .order--v3 .order__pulse { display: block; }
.order--v3 { padding-bottom: 76px; }

/* 4. Фото клиники: врачи проступают сквозь градиент */
.order--v4 .order__photo { display: block; opacity: .5; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 60%); mask-image: linear-gradient(90deg, transparent 8%, #000 60%); }
.order--v4::before { display: none; }
.order--v4 .order__docs { display: flex; }
.order--v4 .order__form { background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* 5. Светлый: белая карточка с градиентной рамкой, цвет — в акцентах */
.order--v5 { color: var(--text); border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #1677c7, #0fb0a4 55%, #1fb468) border-box; box-shadow: var(--shadow-lg); }
.order--v5.order--family { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #0fb0a4, #1fb468 60%, #1677c7) border-box; }
.order--v5::before { background: repeating-radial-gradient(circle, transparent 0 48px, var(--line) 48px 49px); opacity: .7; }
.order--v5 h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.order--v5 p { opacity: 1; color: var(--muted); }
.order--v5 .order__tag { background: var(--brand-soft); color: var(--brand); }
.order--v5 .ticks .icon { color: var(--ok); }
.order--v5 .order__glow { display: block; left: auto; right: -80px; bottom: -200px; background: var(--glow-c); }
.order--v5 .order__dots { display: block; background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px); }
.order--v5 .order__docs { display: flex; background: var(--surface-2); border-color: var(--line); }
.order--v5 .order__docs .live { background: var(--ok); }
.order--v5 .order__form { background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.order--v5 .order__form .field input { background: var(--surface); }

@media (max-width: 980px) {
  .order__docs { width: 100%; margin-top: 20px; }
  .order__stats { margin-top: 20px; gap: 8px; }
  .order__stats div { padding: 12px 10px; }
  .order__stats b { font-size: 19px; }
  .order__pulse { bottom: 8px; height: 70px; }
  .order--v3 { padding-bottom: 60px; }
  .order--v4 .order__photo { height: 46%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); opacity: .30; }
}

/* ---------- Кнопки: анимация по ролям ---------- */
@keyframes halo { 0% { box-shadow: 0 10px 26px rgba(22, 119, 199, .34), 0 0 0 0 rgba(22, 119, 199, .35); } 70%, 100% { box-shadow: 0 10px 26px rgba(22, 119, 199, .34), 0 0 0 12px rgba(22, 119, 199, 0); } }
@keyframes breathe { 50% { box-shadow: 0 14px 44px rgba(23, 165, 93, .62), inset 0 1px 0 rgba(255, 255, 255, .3); } }

/* Синие (открывают окно заявки): пульс — расходящееся кольцо */
.btn--popup { position: relative; background: linear-gradient(180deg, #1f86dc, #0f62b0); animation: halo 2.4s ease-out infinite; }
/* Зелёные (отправка заявки): дыхание — свечение плавно усиливается и гаснет */
.btn--order { animation: breathe 2.8s ease-in-out infinite; }
/* Контурные (навигация, тарифы): бегущая рамка */
.btn--nav { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), transparent 0 55%, var(--brand) 72%, var(--cta-2) 90%, transparent 100%) border-box, linear-gradient(var(--line), var(--line)) border-box; animation: spin 5s linear infinite; }
.btn--nav:hover { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--brand), var(--brand)) border-box; }

.btn:disabled { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .order__pulse path { animation: none; stroke-dashoffset: 0; }
}

/* ===== Лента этапов ===== */
.tl { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.tl::before { content: ""; position: absolute; left: 190px; top: 12px; bottom: 12px; border-left: 2px dashed var(--line); }
.tl__item { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 60px; align-items: start; margin-bottom: 16px; }
.tl__item:last-child { margin-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: 183px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px var(--bg); }
.alt .tl__item::before { box-shadow: 0 0 0 5px var(--bg-alt); }
.tl__when { justify-self: end; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tl__body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; }
.tl__body p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ===== Сравнение двух вариантов ===== */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.cmp__col { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.cmp__col--hit { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.cmp__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.cmp__head .ico { margin-bottom: 0; flex: none; }
.cmp__col--hit .cmp__head .ico { background: var(--grad); color: #fff; }
.cmp__head small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.cmp__list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.cmp__list li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; }
.cmp__list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.cmp__col--hit .cmp__list .icon { color: var(--ok); }
.cmp__col > .btn:last-child { margin-top: auto; }

@media (max-width: 980px) {
  .tl::before { left: 7px; }
  .tl__item { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .tl__item::before { left: 0; top: 8px; }
  .tl__when { justify-self: start; margin-top: 0; }
  .cmp { grid-template-columns: 1fr; }
  .cmp__col { padding: 22px; }
}

/* Первый экран на телефоне: кнопка должна быть видна без прокрутки */
.eyebrow { white-space: nowrap; }
.eyebrow__short { display: none; }
@media (max-width: 520px) {
  .eyebrow__full { display: none; }
  .eyebrow__short { display: inline; }
  .hero { padding-top: 16px; }
  .hero .crumbs { font-size: 12px; margin-bottom: 12px; gap: 6px; }
  .hero .eyebrow { margin-bottom: 12px; padding: 6px 12px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 15px; line-height: 1.45; margin: 12px 0 18px; }
}
@media (max-width: 980px) { .topbar { display: none; } }
@media (max-width: 520px) { .hero .plus { left: auto !important; right: 18px; top: 14px !important; width: 36px; height: 36px; } }
@media (max-width: 520px) { .hero .crumbs { padding-right: 52px; } }

/* ---------- Телефон: первый экран, цены, врачи, форма для родственников ---------- */
.stat__short { display: none; }
@media (max-width: 980px) {
  .plan--hit { order: 0; }
  /* «Близкий не хочет лечиться»: вместо фото — чистый градиент, как в оформлении 2 */
  .order--v4 .order__photo { display: none; }
  .order--v4::before, .order--v4 .order__glow, .order--v4 .order__dots { display: block; }
}
@media (max-width: 520px) {
  .hero .wrap > .chips { display: none; }
  .hero .stats { margin-top: 32px; }
  .stat--hit { border-radius: calc(var(--r-lg) - 1px) 0 0 0; }
  .stat__full { display: none; }
  .stat__short { display: inline; }
  .stat span { font-size: 14px; }
  /* Врачи — лента со свайпом, как отзывы */
  .slider--docs .slider__item { flex-basis: 68%; }
}
.order__docs { box-sizing: border-box; }
.order__docs .live { flex: none; }
@media (max-width: 520px) {
  /* «Врач на связи»: фото и заголовок в строку, пояснение — отдельной строкой во всю ширину */
  .order--v2 .order__docs, .order--v4 .order__docs, .order--v5 .order__docs { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 14px; }
  .order__docs > span:last-child { display: contents; }
  .order__docs b { line-height: 1.25; }
  .order__docs small { grid-column: 1 / -1; line-height: 1.4; }
  .order__avas img { width: 40px; height: 40px; }
}

/* ===== Поп-ап с подарком ===== */
.promo .modal__box { max-width: 460px; animation: promo-in .35s ease-out; }
@keyframes promo-in { from { opacity: 0; transform: translateY(24px); } }
.promo__top { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.promo__ico { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.promo__ico .icon { width: 18px; height: 18px; }
.promo .modal__box h3 { font-size: 24px; padding-right: 28px; }
.promo .modal__box > p { margin-bottom: 14px; }
.promo__ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.promo__ticks span { display: inline-flex; align-items: center; gap: 6px; }
.promo__ticks .icon { width: 16px; height: 16px; color: var(--ok); }
.promo__call a { font-weight: 700; font-size: 18px; color: var(--text); white-space: nowrap; }
@media (max-width: 520px) {
  /* на телефоне — шторка снизу */
  .promo { place-items: end center; padding: 0; }
  .promo .modal__box { max-width: none; padding: 22px 18px 20px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .promo .modal__box h3 { font-size: 21px; }
  .promo .modal__box > p { font-size: 15px; }
  .promo__ticks { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .promo .modal__box { animation: none; } }
.promo .modal__box { box-sizing: border-box; }

.sick__badge { margin-left: 6px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); color: var(--ok); }
@media (max-width: 520px) { .sick__badge { margin-left: 0; } }

/* Кнопки шапки: нажатие всегда приходит на саму кнопку, а не на иконку внутри */
.theme .icon { pointer-events: none; }
.burger { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Заглушка телефона, пока коллтрекинг подменяет номер */
.phone-wait .msmk-phone { color: transparent !important; border-radius: 8px; pointer-events: none; user-select: none; background: linear-gradient(100deg, var(--line) 35%, var(--surface) 50%, var(--line) 65%) 0 0 / 220% 100%; animation: phone-wait 1.1s linear infinite; }
@keyframes phone-wait { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) { .phone-wait .msmk-phone { animation: none; } }

/* Свои кнопки связи поверх страницы: кнопка с врачом открывает поп-ап консультации, кнопка чата - свой чат */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; touch-action: manipulation; }
.fab__btn[hidden] { display: none; }
.fab__btn .icon { width: 24px; height: 24px; pointer-events: none; }
.fab__btn--call { background: var(--grad); color: #fff; box-shadow: 0 10px 26px var(--cta-glow); }
.fab__btn--chat { background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(8, 18, 30, .12); }
.fab__btn:hover { transform: translateY(-2px); }
body.is-locked .fab, .header.is-open ~ .fab { display: none; }
@media (max-width: 520px) { body:has(#cookie:not([hidden])) .fab { bottom: 72px; } }
a.callbackkiller.cbk-phone, a.callbackkiller.cbk-btn, .ws-chat-btn-container { display: none !important; }
.callbackkiller #cbkPhoneBtn, .callbackkiller .cbk-button-lg { background: var(--grad) !important; }

/* Кнопка звонка: фото главного врача, зелёная точка «на связи», значок трубки; пульс как у синих кнопок */
.fab { right: 28px; bottom: 28px; align-items: center; }
.fab__btn--call { position: relative; width: 72px; height: 72px; background: var(--surface); border: 3px solid #fff; box-shadow: 0 10px 26px rgba(22, 119, 199, .34); animation: halo 2.4s ease-out infinite; }
.fab__btn--call img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; pointer-events: none; }
.fab__dot { position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2.5px solid #fff; }
.fab__ico { position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #1f86dc, #0f62b0); color: #fff; border: 2.5px solid #fff; }
.fab__btn .fab__ico .icon { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .fab { right: 22px; bottom: 26px; }
  .fab__btn--call { width: 68px; height: 68px; }
  body:has(#cookie:not([hidden])) .fab { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .fab__btn--call { animation: none; } }

/* Кнопка звонка: «дыхание» и расходящиеся сине-зелёные круги */
@media (min-width: 521px) { .fab { right: 50px; bottom: 50px; } }
.fab__btn--call { border: 0; box-shadow: 0 10px 26px rgba(22, 119, 199, .30); animation: fab-breathe 2.8s ease-in-out infinite; }
.fab__btn--call:hover { transform: none; }
.fab__btn--call img { box-sizing: border-box; border: 3px solid #fff; background: var(--surface); }
.fab__btn--call::before, .fab__btn--call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: var(--grad); animation: fab-ring 2.8s ease-out infinite; }
.fab__btn--call::after { animation-delay: 1.4s; }
@keyframes fab-breathe { 50% { transform: scale(1.06); } }
@keyframes fab-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab__btn--call, .fab__btn--call::before, .fab__btn--call::after { animation: none; } .fab__btn--call::before, .fab__btn--call::after { display: none; } }

/* Плашка «позвоните» над кнопкой связи */
.hint { position: absolute; right: 0; bottom: calc(100% + 18px); box-sizing: border-box; width: min(300px, calc(100vw - 44px)); padding: 16px 18px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(8, 18, 30, .2); animation: promo-in .35s ease-out; }
.hint[hidden] { display: none; }
.hint::after { content: ""; position: absolute; right: 28px; bottom: -7px; width: 12px; height: 12px; background: var(--surface); border: solid var(--line); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.hint__title { margin: 0 26px 6px 0; font-weight: 700; font-size: 16px; line-height: 1.25; }
.hint__text { margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hint__btn { width: 100%; box-sizing: border-box; justify-content: center; white-space: nowrap; }
.hint__close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.hint__close:hover { background: var(--brand-soft); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .hint { animation: none; } }

/* Мессенджеры в шапке не переносятся в столбик */
.header__msgr { flex-wrap: nowrap; flex: none; }

/* «Дышит» только кружок с трубкой, сама кнопка неподвижна */
.fab__btn--call { animation: none; }
.fab__ico { animation: fab-ico 2.4s ease-in-out infinite; }
@keyframes fab-ico { 50% { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .fab__ico { animation: none; } }

/* Кардиограмма под кнопкой в плашке - та же анимация, что в блоке «Нужна помощь прямо сейчас?» */
.hint { padding-bottom: 10px; }
.hint__pulse { display: block; width: 100%; height: 36px; margin-top: 8px; color: color-mix(in srgb, var(--brand) 45%, transparent); }
.hint__pulse path { stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hint__pulse path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 520px) {
  .hint { width: min(260px, calc(100vw - 44px)); padding: 12px 14px; border-radius: 16px; }
  .hint::after { right: 22px; }
  .hint__title { margin: 0 24px 6px 0; font-size: 14px; }
  .hint__text { margin-bottom: 10px; font-size: 13px; }
  .hint__pulse { height: 24px; margin-top: 5px; }
  .hint__close { top: 6px; right: 6px; }
}

/* Кружок с трубкой: мягкое «дыхание» и раз в 30 секунд оборот «монеткой» */
.fab__ico { animation: fab-ico 2.4s ease-in-out infinite, fab-coin 30s ease-in-out infinite; }
@keyframes fab-ico { 50% { transform: none; scale: 1.08; } }
@keyframes fab-coin { 0%, 94% { rotate: y 0deg; } 100% { rotate: y 720deg; } }
@media (prefers-reduced-motion: reduce) { .fab__ico { animation: none; } }

/* Меню шапки: на узких экранах первым уходит «О клинике», разделы с услугами остаются */

/* Плашка «заявка отправляется» */
.sending { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(8, 18, 30, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.sending.is-active { opacity: 1; visibility: visible; }
.sending__box { box-sizing: border-box; width: min(340px, 100%); padding: 30px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(8, 18, 30, .35); text-align: center; }
.sending__spin { width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: sending-spin .8s linear infinite; }
.sending__box b { display: block; font-size: 18px; margin-bottom: 6px; }
.sending__box span { font-size: 14px; color: var(--muted); }
@keyframes sending-spin { to { transform: rotate(360deg); } }

/* Районы и города выезда (блок geo) */
.geo__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: stretch; }
.geo__top--wide { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
.geo__info { display: flex; flex-direction: column; gap: 18px; }
.geo__info .btn { margin-top: auto; white-space: normal; text-align: center; }
.geo__row { display: flex; gap: 14px; align-items: flex-start; }
.geo__row .ico { flex: none; margin: 0; }
.geo__row > div { min-width: 0; }
.geo__row b { display: block; margin-bottom: 4px; }
.geo__row p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.geo__map { display: flex; flex-direction: column; gap: 10px; }
.geo__map iframe { flex: 1; width: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.geo__top--wide .geo__map iframe { min-height: 420px; }
.geo__map p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.geo__map p .icon { flex: none; width: 16px; height: 16px; color: var(--brand); }
.geo { max-width: 920px; margin: 0 auto; display: grid; gap: 10px; }
.geo__group { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.geo__group summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.geo__group summary::-webkit-details-marker { display: none; }
.geo__group summary small { color: var(--muted); font-weight: 500; }
.geo__group summary .icon { width: 18px; height: 18px; margin-left: auto; color: var(--brand); transform: rotate(90deg); transition: transform .2s; }
.geo__group[open] summary .icon { transform: rotate(-90deg); }
.geo__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.geo__list .chip { color: inherit; text-decoration: none; transition: border-color .2s, color .2s; }
.geo__list .chip:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) {
  .geo__top { grid-template-columns: minmax(0, 1fr); }
  .geo__map iframe, .geo__top--wide .geo__map iframe { min-height: 300px; }
}
@media (max-width: 720px) {
  .geo__info { gap: 14px; padding: 18px; }
  .geo__row p { font-size: 14px; }
  .geo__group summary { padding: 14px 16px; font-size: 15px; }
  .geo__list { padding: 0 16px 14px; }
  .geo__list .chip { font-size: 13px; padding: 8px 12px; }
}

/* Второе меню в шапке (пункт с sub внутри выпадающего меню): выезжает сбоку при наведении */
.nav__more { position: relative; }
.nav__more > a { justify-content: space-between; color: var(--text); padding: 10px 12px; }
.nav__more > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.nav__more:hover > a, .nav__more:focus-within > a { color: var(--text); background: var(--brand-soft); }
.nav__sub2 { top: -9px; left: 100%; margin: 0 0 0 14px; min-width: 250px; transform: translateX(-6px); }
.nav__sub2::before { top: 0; bottom: 0; left: -16px; right: auto; width: 16px; height: auto; }
.nav__item--sub:hover .nav__sub2, .nav__item--sub:focus-within .nav__sub2 { opacity: 0; visibility: hidden; transform: translateX(-6px); }
.nav__item--sub .nav__more:hover .nav__sub2, .nav__item--sub .nav__more:focus-within .nav__sub2 { opacity: 1; visibility: visible; transform: none; }
/* Мобильное меню: вложенный раздел */
.mnav__cap { display: block; padding: 12px 4px 6px 16px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mnav details a.mnav__deep { padding-left: 30px; }

/* Страница «Лицензии» (блок licenses) */
.lic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.lic__docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lic__docs img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.lic__info .row { gap: 16px; padding: 12px 16px; }
.lic__info .row span { color: var(--muted); }
.lic__info .row strong { text-align: right; overflow-wrap: anywhere; }
.lic__info .btn { margin-top: 18px; }
@media (max-width: 900px) { .lic { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .lic__docs { gap: 8px; } }

/* ===== Свой онлайн-чат (js/chat.js) ===== */
.fab__btn--chat { position: relative; cursor: pointer; padding: 0; font: inherit; }
.fab__badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #e5484d; color: #fff; font: 700 12px/20px var(--font); text-align: center; border: 2px solid var(--surface); }
.fab__badge[hidden] { display: none; }
.chatw { position: fixed; right: 50px; bottom: 50px; z-index: 60; margin: 0; padding: 0; width: 380px; height: min(620px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: promo-in .25s ease-out; }
.chatw[hidden] { display: none; }
.chatw:not([hidden]) ~ .fab, .fab:has(~ .chatw:not([hidden])) { display: none; }
.chatw__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--grad); color: #fff; }
.chatw__ava { position: relative; flex: none; width: 40px; height: 40px; }
.chatw__ava img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid #fff; box-sizing: border-box; background: var(--surface); }
.chatw__ava i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.chatw__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chatw__who b { font-size: 16px; }
.chatw__who small { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatw__x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.chatw__x:hover { background: rgba(255, 255, 255, .3); }
.chatw__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); overscroll-behavior: contain; }
.chatw__msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatw__msg b { display: block; font-size: 12px; color: var(--brand); margin-bottom: 2px; }
.chatw__msg--ai, .chatw__msg--operator { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chatw__msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.chatw__msg--system { align-self: center; max-width: 92%; padding: 4px 10px; background: transparent; color: var(--muted); font-size: 13px; text-align: center; }
.chatw__typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; }
.chatw__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite ease-in-out; }
.chatw__typing i:nth-child(2) { animation-delay: .15s; }
.chatw__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chatw__offer, .chatw__lead { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--brand-soft); }
.chatw__offer p, .chatw__lead p { margin: 0; font-size: 14px; font-weight: 600; }
.chatw__offer small, .chatw__lead small { font-size: 11px; line-height: 1.35; color: var(--muted); }
.chatw__offer small a, .chatw__lead small a { color: inherit; }
.chatw__offer .btn, .chatw__lead .btn { justify-content: center; width: 100%; box-sizing: border-box; }
.chatw__lead { margin: 0 12px 8px; }
.chatw__lead[hidden] { display: none; }
.chatw__lead input[name="phone"] { padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: 16px var(--font); }
.chatw__lead input.is-invalid { border-color: #e5484d; }
.chatw__err { font-size: 13px; color: #e5484d; }
.chatw__err:empty { display: none; }
.chatw__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: var(--bg); }
.chatw__quick[hidden] { display: none; }
.chatw__quick button { padding: 7px 12px; border: 1px solid var(--brand); border-radius: 999px; background: var(--surface); color: var(--brand); font: 500 13px var(--font); cursor: pointer; }
.chatw__quick button:hover { background: var(--brand-soft); }
.chatw__bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.chatw__bar a, .chatw__bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 0; background: none; color: var(--brand); font: 500 11px var(--font); text-decoration: none; cursor: pointer; }
.chatw__bar a:hover, .chatw__bar button:hover { background: var(--brand-soft); }
.chatw__bar .icon { width: 20px; height: 20px; }
.chatw__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chatw__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface-2); color: var(--text); font: 15px/1.4 var(--font); }
.chatw__form textarea:focus { outline: none; border-color: var(--brand); }
.chatw__form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chatw__form button .icon { width: 20px; height: 20px; }
.chatw__op { margin: 0 12px 10px; padding: 4px; border: 0; background: none; color: var(--muted); font: 13px var(--font); text-decoration: underline; cursor: pointer; }
.chatw__op[hidden] { display: none; }
@media (max-width: 520px) {
  .chatw { inset: 0; width: auto; height: auto; height: 100dvh; border: 0; border-radius: 0; }
  .chatw__form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .chatw { animation: none; } .chatw__typing i { animation: none; } }

/* Статья / памятка (блок article): узкая колонка текста, разделы, рамка для выводов */
.article { max-width: 800px; margin: 0 auto; }
.article > h2, .article > h1 { margin-bottom: 14px; }
.article > h1 { font-size: clamp(28px, 3.6vw, 44px); }
.article > .eyebrow { max-width: 100%; white-space: normal; }
.article__lead { color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.article__guide-link { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); }
.article__guide-link .btn { text-align: center; white-space: normal; }
.article__part { margin-top: 32px; }
.article__part h3 { margin-bottom: 12px; }
.article__part p { margin-top: 10px; }
.article__part--box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); }
.article__part--box h3:first-child { margin-top: 0; }
.article__list { margin: 12px 0 0; padding-left: 22px; }
.article__list li { padding: 4px 0; }
.article__list li::marker { color: var(--brand); font-weight: 700; }
.article__part .ticks { margin-top: 10px; }
.article__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.article__cols--3 { grid-template-columns: repeat(3, 1fr); }
.article__col { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.article__col > b { display: block; font-size: 16px; }
.article__col p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.article__col ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.article__col ul li { padding: 3px 0; }
.article__col ul li::marker { color: var(--brand); }
.article__panel { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.article__panel > b { display: block; font-size: 16px; margin-bottom: 6px; }
.article__panel p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.article__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.article__links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand); font-size: 14px; font-weight: 600; line-height: 1.35; transition: border-color .2s, background .2s; }
.article__links a:hover { border-color: var(--brand); background: var(--brand-soft); }
.article__links a span { flex: none; }
.article__readmore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.article__readmore p { flex: 1 1 300px; margin: 0; font-size: 15px; line-height: 1.5; }
.article__readmore a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--brand); }
.article__readmore a:hover { text-decoration: underline; }
.check-pop { position: fixed; right: 20px; bottom: 150px; z-index: 80; width: 320px; max-width: calc(100vw - 32px); padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 18px 50px rgba(10, 22, 35, .18); }
.check-pop p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.check-pop p b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--text); }
.check-pop__close { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.check-pop__close:hover { color: var(--text); }
.check-pop__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.check-pop.is-shown { animation: popIn .35s ease-out; }
/* Поп-ап чек-листа стоит сбоку от кнопки звонка с фото врача и указывает на неё */
.check-pop { right: 140px; bottom: 26px; }
.check-pop::after { content: ""; position: absolute; right: -8px; bottom: 31px; width: 14px; height: 14px; background: var(--surface); border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
@media (max-width: 520px) {
  .check-pop { right: 16px; bottom: 176px; }
  .check-pop::after { right: 34px; bottom: -8px; border-top: 0; border-bottom: 1px solid var(--line); }
  body:has(#cookie:not([hidden])) .check-pop { bottom: 226px; }
}
body:has(.check-pop:not([hidden])) .hint { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .check-pop { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
.article__promo { display: flex; gap: 18px; align-items: stretch; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.article__promo:hover { border-color: var(--brand); }
.article__promo img { width: 240px; object-fit: cover; flex: none; }
.article__promo-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px 0; }
.article__promo-text b { font-size: 17px; color: var(--text); }
.article__promo-text > span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.article__promo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; color: var(--brand) !important; }
.article__cta-card { margin-top: 24px; }
@media (max-width: 640px) {
  .article__promo { flex-direction: column; gap: 0; }
  .article__promo img { width: 100%; height: 160px; }
  .article__promo-text { padding: 16px 18px; }
}
.article__note { margin-top: 14px !important; padding: 16px 18px; border: 1px solid var(--line); background: var(--brand-soft); border-radius: var(--r-md); font-weight: 500; }
.article__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Статья: подзаголовки разделов, «Проверил врач», короткий ответ, навигация по разделам и плашка со звонком */
.article__part h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; scroll-margin-top: 90px; }
.article__part { scroll-margin-top: 90px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; }
.byline p { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.byline p span + span { color: var(--muted); font-size: 14px; }
.article__hero { position: relative; margin: 22px 0; }
.article__hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.article__hero figcaption { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 22, 35, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 500; }
.article__hero figcaption .icon { width: 14px; height: 14px; }
.article__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line); overflow: hidden; }
.article__facts > div { padding: 14px 18px; background: var(--surface); }
.article__facts dt { color: var(--muted); font-size: 13px; }
.article__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.article__steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.article__steps::before { content: ""; position: absolute; left: 47px; top: 14px; bottom: 14px; border-left: 2px dashed var(--line); }
.article__steps li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; margin-bottom: 12px; }
.article__steps li:last-child { margin-bottom: 0; }
.article__steps-when { position: relative; z-index: 1; justify-self: center; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 4px var(--bg); }
.article__steps li > div { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.article__steps li p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) {
  .article__facts { grid-template-columns: 1fr; }
  .article__steps::before { left: 35px; }
  .article__steps li { grid-template-columns: 72px 1fr; gap: 10px; }
  .article__steps li > div { padding: 12px 14px; }
}
.article__answer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); background: var(--brand-soft); border-radius: var(--r-lg); }
.article__answer b { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; line-height: 1.2; }
.article__answer p { margin: 0; font-size: 16px; line-height: 1.55; }
.article__nav { margin: 32px 0 48px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow-wrap: anywhere; }
.article__nav-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 20px; line-height: 1.3; }
.article__nav-title > .icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--muted); }
.article__nav-list { margin: 0; padding: 0; list-style: none; }
.article__nav-list li { font-size: 16px; line-height: 1.5; }
.article__nav-list a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px; margin: 0 -10px; border-radius: 8px; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.article__nav-list a:hover, .article__nav-list a:focus-visible { color: var(--text); background: var(--surface-2); text-decoration: none; }
.article__nav-hash { color: var(--muted); font-weight: 500; }
.article__nav-list .icon { align-self: center; width: 16px; height: 16px; transform: rotate(90deg); opacity: .65; }
.article__nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 2px; }
@media print {
  .article__nav { display: none; }
}
.article__ask { margin-top: 32px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--brand-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.article__ask p { flex: 1 1 300px; margin: 0; }
.article__ask p b { display: block; font-size: 18px; margin-bottom: 4px; }
.article__ask-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.notice--short { padding-bottom: 70px; }
@media (max-width: 520px) {
  .article__part--box { padding: 18px; }
  .article__cta .btn, .article__ask-btns, .article__ask-btns .btn { width: 100%; }
  .article__answer, .article__ask { padding: 18px; }
  .article__answer { flex-direction: column; gap: 8px; }
  .article__answer b { align-self: flex-start; }
  .article__hero { margin: 18px 0; }
}
.article__support { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.article__support .eyebrow { margin-bottom: 12px; }
.article__support h3 { font-size: 21px; }
.article__support-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
.article__support-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; }
.article-quiz { min-width: 0; margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.article-quiz [hidden] { display: none !important; }
.article-quiz .article-quiz__title { margin: 12px 0; font-size: 23px; line-height: 1.3; }
.article-quiz .article-quiz__title[tabindex="-1"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.article-quiz .eyebrow { max-width: 100%; white-space: normal; }
.article-quiz .btn { max-width: 100%; white-space: normal; line-height: 1.4; min-height: 48px; padding-top: 12px; padding-bottom: 12px; animation: none; }
.article-quiz .btn--nav { border: 1px solid var(--line); background: var(--surface); }
.article-quiz .btn--nav:hover { border-color: var(--brand); }
.article-guide { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 28px; margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.article-guide__preview { justify-self: center; width: 132px; padding: 0 7px 7px 0; }
.article-guide__preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; box-shadow: 5px 6px 0 var(--surface), 5px 6px 0 1px var(--line), 0 10px 22px rgba(20, 43, 64, .12); }
.article-guide__body { min-width: 0; }
.article-guide__format { display: block; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.article-guide__body .article-guide__title { margin: 8px 0 10px; color: var(--text); font: 700 21px/1.35 var(--font); letter-spacing: -.02em; text-wrap: balance; }
.article-guide__body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.article-guide__body .btn { margin-top: 16px; padding-right: 20px; padding-left: 20px; font-size: 15px; }
.article-guide__body small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-guide__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 16px; }
.article-guide__actions .btn { margin-top: 0; }
.article-quiz__invite .eyebrow { margin-bottom: 16px; }
.article-quiz__invite .article-quiz__title { margin: 0 0 14px; font-size: 25px; line-height: 1.3; }
.article-quiz__invite .hl { color: var(--brand); background: none; }
.article-quiz__invite > p:not(.article-quiz__privacy) { font-size: 17px; line-height: 1.6; }
.article-quiz__note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.article-quiz__note { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--line); }
.article-quiz__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.article-quiz__top > span { flex: none; white-space: nowrap; }
.article-quiz .opt { white-space: normal; text-align: left; padding: 14px 16px; }
.article-quiz__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.article-quiz__urgent-contact a { color: var(--brand); font-weight: 700; }
.article-quiz__result .article-guide { margin-top: 22px; }
.article-quiz__invite > .btn { margin-top: 6px; }
.article-quiz__bonus { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 14px !important; line-height: 1.5 !important; }
.article-quiz__bonus .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.article-quiz__bonus a { color: var(--brand); font-weight: 600; }
.article-quiz__result > .article-quiz__bonus { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.article-quiz__consult { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-quiz__consult .article-quiz__contact-title { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.article-quiz__consult form { max-width: 420px; margin-top: 18px; }
.article-quiz__consult p a { color: var(--brand); font-weight: 600; }
.article-quiz__messengers { margin-top: 22px; }
.article-quiz__messengers > p { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) {
  .article__nav { padding: 18px 20px; }
  .article__nav-list a { padding-top: 9px; padding-bottom: 9px; }
  .article-quiz { padding: 18px; }
  .article-quiz .article-quiz__title { font-size: 21px; }
  .article-guide { position: relative; display: block; padding: 18px; }
  .article-guide__heading { display: flow-root; min-height: 112px; margin-bottom: 14px; }
  /* Reserve only the preview height, so long titles can continue at full width below it. */
  .article-guide__heading::before { content: ""; float: right; width: 88px; height: 112px; }
  .article-guide__preview { position: absolute; top: 18px; right: 18px; width: 76px; }
  .article-guide__body .article-guide__title { margin-bottom: 0; font-size: 18px; }
  .article-quiz__invite .article-quiz__title { font-size: 22px; }
  .article-quiz__invite > p:not(.article-quiz__privacy) { font-size: 16px; }
  .article-quiz .btn { width: 100%; }
  .article-quiz__nav .btn { width: auto; }
  .article-card__body { padding: 20px; }
}
@media print {
  .header, .topbar, .footer, .no-print, .modal, .cookie, .chatw, [class*="msgr"], #hint { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding: 16px 0; }
  .hl { color: #000; background: none; }
}

/* Ритм длинной статьи. Значения и правила описаны в design/BRAND.md. */
.page--guide main { overflow-wrap: anywhere; }
.page--guide .hero__grid > *, .page--guide .grid3 > *, .page--guide .feature > *, .page--guide .faq > *, .page--guide .tl__item > * { min-width: 0; }
.page--guide .quiz__step, .service-detail .quiz__step { flex: none; white-space: nowrap; }
.page--guide main .eyebrow { max-width: 100%; white-space: normal; }
.page--guide .card__price { max-width: 100%; white-space: normal; }
.page--guide .tl__when { max-width: 100%; white-space: normal; }
.page--guide .sick__stamp { max-width: 100%; white-space: normal; }
.page--guide main .btn { min-width: 0; max-width: 100%; white-space: normal; line-height: 1.4; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 520px) { .page--guide .sick__stamp { margin-left: 0; } }
.page--article main { overflow-wrap: anywhere; }
.page--article .faq > *, .page--article .cta-line > * { min-width: 0; }
.page--article .faq .btn, .page--article .cta-line .btn { max-width: 100%; white-space: normal; line-height: 1.4; padding-top: 12px; padding-bottom: 12px; }
.article--editorial { --reading-section: 56px; --reading-paragraph: 18px; --reading-feature: 24px; overflow-wrap: anywhere; }
.article--editorial .eyebrow, .materials__head > .eyebrow, .test-page > .eyebrow { max-width: 100%; white-space: normal; }
.article--editorial .article__hero figcaption { max-width: calc(100% - 24px); }
.article--editorial .article__part { margin-top: var(--reading-section); scroll-margin-top: 110px; }
.article--editorial .article__part > h2 { margin: 0 0 20px; font-size: clamp(24px, 2.7vw, 30px); line-height: 1.25; }
.article--editorial .article__part > h3 { margin: 32px 0 12px; }
.article--editorial .article__part > p { margin-top: var(--reading-paragraph); font-size: 18px; line-height: 1.75; }
.article--editorial .article__part > h2 + p, .article--editorial .article__part > h3 + p { margin-top: 0; }
.article--editorial .article__hero { margin: 32px 0; }
.article--editorial .article__cols, .article--editorial .article__panel { margin-top: var(--reading-feature); }
.article--editorial .article__cols + p, .article--editorial .article__panel + p, .article--editorial p.article__note + p { margin-top: var(--reading-feature); }
.article--editorial .article__note { margin-top: var(--reading-feature) !important; font-size: 16px; line-height: 1.65; }
.article--editorial .article__list { margin-top: 20px; font-size: 18px; line-height: 1.7; }
.article--editorial .article__list + p { margin-top: 20px; }
.article--editorial .article__col p { line-height: 1.65; }
.article--editorial .article-quiz { margin-top: 36px; }
.materials-sec, .test-page-sec { padding-top: 48px; }
.materials-sec { overflow-wrap: anywhere; }
.materials__head { max-width: 860px; margin: 28px 0 36px; }
.materials__head h1 { font-size: clamp(32px, 4vw, 48px); }
.materials__head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.materials-sec--under-hero { padding-top: 24px; scroll-margin-top: 80px; }
.materials-sec--under-hero .materials__head { margin-top: 0; }
.materials__head > p { max-width: 760px; margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.materials__types { display: flex; flex-wrap: wrap; gap: 8px 32px; border-bottom: 1px solid var(--line); }
.materials__types a { min-height: 48px; padding: 8px 0 16px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 20px; font-weight: 700; }
.materials__types a:hover, .materials__types a[aria-current] { color: var(--text); }
.materials__types a[aria-current] { border-color: var(--brand); }
.materials__tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; }
.materials__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.materials__filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 15px; }
.materials__filters a:hover, .materials__filters a[aria-current] { color: var(--text); border-color: var(--line); background: var(--surface); }
.materials__filters span { font-size: 13px; color: var(--muted); }
.materials__search { display: flex; flex: 0 1 370px; gap: 8px; min-width: 0; }
.materials__search input { min-width: 0; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.materials__search .btn { flex: none; animation: none; }
.materials-sec .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.materials__status { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0 18px; color: var(--muted); font-size: 14px; }
.materials__status a { text-decoration: underline; text-underline-offset: 3px; }
.materials__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.materials__grid--tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.materials__grid > .card { min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.materials__grid > a:focus-visible, .materials__types a:focus-visible, .materials__filters a:focus-visible, .materials__search input:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.material-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.material-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.material-card__body h3 { font-size: 21px; line-height: 1.3; }
.material-card__body > p { margin-top: 12px; font-size: 15px; line-height: 1.65; }
.material-card__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
.material-card__foot > span { color: var(--muted); font-size: 13px; }
.material-card__foot b { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; }
.material-card__foot .icon { width: 16px; height: 16px; }
.material-card__visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; min-height: 180px; aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--brand-soft), var(--surface-2)); color: var(--brand); }
.material-card__visual > .icon { width: 52px; height: 52px; }
.material-card__visual > span { font-size: 14px; font-weight: 600; }
.material-card__visual strong { font-size: 54px; line-height: 1; font-weight: 700; }
.material-card__visual--test { gap: 12px; min-height: 190px; aspect-ratio: auto; padding: 24px; }
.material-card__visual--test > strong { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.material-card__visual--test > small { color: var(--text); font-size: 16px; line-height: 1.4; text-align: center; }
.material-card__dots { display: flex; gap: 5px; margin-top: 6px; }
.material-card__dots i { width: 24px; height: 4px; border-radius: 4px; background: var(--brand); opacity: .35; }
.material-card__dots i:first-child { opacity: 1; }
.materials__empty { padding: 56px 24px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.materials__empty h2 { font-size: 26px; }
.materials__empty p { margin: 16px 0 24px; color: var(--muted); }
.materials__note { max-width: 840px; margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.materials__related { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.materials__related > div { flex: 1 1 350px; }
.materials__related h2 { font-size: 24px; }
.materials__related p { margin-top: 12px; color: var(--muted); line-height: 1.65; }
.materials__related .btn { flex: none; max-width: 100%; white-space: normal; }
.test-page { overflow-wrap: anywhere; }
.test-page > h1 { margin: 8px 0 20px; }
.test-page > .article__lead { line-height: 1.65; }
.test-page__back { margin-top: 28px; }
.test-page__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); }
@media (max-width: 980px) {
  .materials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials__search { flex-basis: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .article--editorial { --reading-section: 40px; --reading-paragraph: 16px; --reading-feature: 20px; }
  .article--editorial .article__part > h2 { margin-bottom: 16px; }
  .article--editorial .article__part > h3 { margin-top: 28px; }
  .article--editorial .article__part > p, .article--editorial .article__list { font-size: 17px; line-height: 1.7; }
  .article--editorial .article__hero { margin: 24px 0; }
  .article--editorial .article__list, .article--editorial .article__list + p { margin-top: 16px; }
  .article--editorial .article-quiz { margin-top: 28px; }
  .materials-sec, .test-page-sec { padding-top: 28px; }
  .materials__head { margin: 24px 0 28px; }
  .materials__head > p { font-size: 16px; }
  .materials__types { gap: 28px; }
  .materials__types a { font-size: 18px; }
  .materials__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .material-card__body { padding: 20px; }
  .materials__filters { gap: 4px; }
  .materials__filters a { padding: 8px 10px; }
}

/* ---------- Вовлекающие страницы: первый экран с фото, блок «текст + фото», сетка 3+3+2 ---------- */
.hero__media { margin: 0; }
.hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero__media figcaption { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.hero__media figcaption .icon { width: 18px; height: 18px; color: var(--brand); }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.info > * { min-width: 0; }
.info--rev .info__media { order: -1; }
.info h2 { margin-bottom: 6px; }
.info__p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.info .ticks { margin-top: 18px; }
.info .article__note { margin-top: 22px !important; }
.info__img { position: relative; margin: 0; }
.info__img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.info__img figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 22, 35, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 500; }
@media (min-width: 981px) {
  /* 8 карточек: два ряда по 3, в последнем две карточки на всю ширину */
  .grid3--fill { grid-template-columns: repeat(6, 1fr); }
  .grid3--fill > * { grid-column: span 2; }
  .grid3--fill > :nth-last-child(2):nth-child(3n+1), .grid3--fill > :last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (max-width: 980px) {
  .info { grid-template-columns: 1fr; gap: 28px; }
  .info--rev .info__media { order: 0; }
}
@media (max-width: 520px) {
  .hero__media { display: none; }
}
.info .halo { max-width: 520px; margin-left: auto; }
@media (max-width: 980px) {
  .info .halo { max-width: none; }
  .halo::before { inset: -12px; }
}

/* Фото на первом экране вовлекающих страниц: на компьютере стоит полубоком и плавно парит, подпись висит чуть впереди */
@media (min-width: 981px) {
  .hero__media { transform-style: preserve-3d; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); animation: media-float 7s ease-in-out infinite; transition: transform .6s ease; }
  .hero__media figcaption { transform: translateZ(40px); animation: media-cap 7s ease-in-out infinite; }
  .hero__media:hover { animation-play-state: paused; }
  .hero__media:hover figcaption { animation-play-state: paused; }
}
@keyframes media-float {
  0%, 100% { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-6deg) rotateX(1.5deg) translateY(-12px); }
}
@keyframes media-cap { 50% { transform: translateZ(40px) translate(6px, -4px); } }
@media (prefers-reduced-motion: reduce) { .hero__media, .hero__media figcaption { animation: none; } }

/* Квиз на первом экране (float: true у hero): на компьютере стоит полубоком и парит.
   При наведении и вводе выпрямляется и замирает, чтобы было удобно отвечать */
@media (min-width: 981px) {
  .hero__float { perspective: 1400px; animation: quiz-float 7s ease-in-out infinite; }
  .hero__float > .halo { transform: rotateY(-8deg) rotateX(2.5deg); transition: transform .5s ease; }
  .hero__float:hover, .hero__float:focus-within { animation-play-state: paused; }
  .hero__float:hover > .halo, .hero__float:focus-within > .halo { transform: none; }
}
@keyframes quiz-float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero__float { animation: none; } }

/* Хаб статей /stati (блок articles) */
.hub__rubric { margin: 34px 0 16px; font-size: 22px; }
.hub__rubric:first-of-type { margin-top: 0; }
.hub__webinar { margin-top: 40px; }

/* Чек-лист с галочками в статье (s.check): счётчик, шкала, вывод по уровню */
.check__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.check__list label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.check__list label:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.check__list input { appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid color-mix(in srgb, var(--brand) 55%, var(--line)); border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check__list input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check__list input:checked { background: var(--brand); border-color: var(--brand); }
.check__list input:checked::after { opacity: 1; }
.check__list input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.check__list label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check__score { --lvl: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.check__num { font-weight: 500; white-space: nowrap; }
.check__num b { font-size: 22px; color: var(--lvl); }
.check__bar { flex: 1 1 160px; display: flex; gap: 4px; }
.check__bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); transition: background .2s; }
.check__label { font-weight: 600; color: var(--lvl); }
.check.is-warn .check__score { --lvl: #d98a0b; }
.check.is-bad .check__score { --lvl: #e04b3c; }
.check .check__bar i.on { background: var(--lvl); }
.check.is-warn .check__verdict { border-left-color: #d98a0b; background: color-mix(in srgb, #f5a524 14%, var(--surface)); }
.check.is-bad .check__verdict { border-left-color: #e04b3c; background: color-mix(in srgb, #e04b3c 12%, var(--surface)); }
.article__ask[hidden] { display: none; }
.article__ask.is-shown { animation: askIn .35s ease-out; }
@keyframes askIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Подзаголовок раздела с кнопкой звонка (s.call) */
.article__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 12px; }
.article__head h2, .article__head h3 { margin: 0; }
.cta-band-sec { padding: 0 0 8px; }
.cta-band { max-width: 800px; margin: 0 auto; display: grid; gap: 28px; }
.cta-variant__tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.cta-card__text { flex: 1 1 320px; }
.cta-card__text b { display: block; font-size: 20px; margin-bottom: 6px; }
.cta-card__text p { margin: 0; color: var(--muted); line-height: 1.55; }
.cta-card__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--brand-soft); }
.cta-line p { flex: 1 1 300px; margin: 0; font-size: 15px; line-height: 1.5; }
.cta-mini { padding: 14px 2px; border-top: 1px dashed var(--line); }
.cta-mini p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cta-mini__phone { font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (max-width: 640px) {
  .cta-card { padding: 18px; }
  .cta-card__btns, .cta-card__btns .btn { width: 100%; }
}
@media (max-width: 640px) { .article__head .btn { width: 100%; } }
@media (max-width: 640px) {
  .article__cols, .article__cols--3 { grid-template-columns: 1fr; }
  .article__col { padding: 14px 16px; }
}

/* Служба заботы: сопровождение после стационара и поддержка семьи */
.care { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.care__text { margin-top: 20px; color: var(--muted); font-size: 18px; }
.care__main .ticks { margin-top: 24px; }
.care__note { margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.care__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.care__caption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.care__webinar { display: grid; gap: 20px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.care__webinar > .icon { width: 32px; height: 32px; color: var(--brand); }
.care__webinar p { color: var(--muted); }
.care__webinar .care__schedule { color: var(--text); font-weight: 600; }
@media (max-width: 980px) {
  .care { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .care__webinar { padding: 24px; }
  .care__actions .btn { width: 100%; }
}

/* Каталог услуг с фильтрами и горизонтальной прокруткой */
.service-catalog__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-catalog__filters [aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.service-catalog__slider { overflow: visible; }
.service-catalog__slider .slider__track { align-items: stretch; padding: 5px 0 12px; }
.service-catalog__item { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.service-catalog__item[hidden] { display: none; }
.service-catalog__item .card__foot { margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.service-catalog__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.service-catalog__controls > div { display: flex; gap: 10px; }
.service-catalog__controls .slider__btn { position: static; transform: none; }
.service-catalog__controls [data-dir="-1"] .icon { transform: rotate(180deg); }
@media (max-width: 980px) { .service-catalog__item { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 600px) { .service-catalog__item { flex-basis: 90%; } }

.hero--compact h1 { font-size: clamp(32px, 3.6vw, 48px); }
.hero--consult { padding-top: 36px; padding-bottom: 52px; }
.hero--consult .lead { font-size: 19px; margin-bottom: 22px; }
.hero--consult .hero__media { display: block; transform: none; animation: none; }
.hero__media .hero__image-badge { position: absolute; left: 18px; bottom: 18px; margin: 0; max-width: calc(100% - 36px); background: var(--surface); font-size: 13px; }
.hero__bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.hero__bullets li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.hero__bullet-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.hero__bullet-icon .icon { width: 19px; height: 19px; }
.hero__bullets b { display: block; font-size: 14px; line-height: 1.4; }
.hero__bullets small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hero__aftercare { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-soft); }
.hero__visual { min-width: 0; }
.hero__aftercare > .icon { flex: none; color: var(--brand); }
.hero__aftercare > .icon:last-child { margin-left: auto; width: 18px; }
.hero__aftercare b { display: block; font-size: 14px; line-height: 1.45; }
.hero__aftercare small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero__aftercare:hover, .hero__aftercare:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Сопровождение после стационара и форматы поддержки семьи */
.aftercare__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: stretch; }
.aftercare__offer { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--brand-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.aftercare__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.aftercare__duration { display: flex; align-items: center; gap: 16px; }
.aftercare__duration b { font-size: 72px; line-height: 1; letter-spacing: -.05em; color: var(--brand); }
.aftercare__duration span { max-width: 180px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.aftercare__included { font-size: 18px; line-height: 1.45; font-weight: 600; }
.aftercare__offer > p:not(.aftercare__included) { font-size: 15px; line-height: 1.6; color: var(--muted); }
.aftercare__offer .btn { margin-top: auto; white-space: normal; line-height: 1.4; }
.aftercare__help { display: grid; gap: 16px; min-width: 0; }
.aftercare__item { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.aftercare__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.aftercare__item h3 { font-size: 18px; line-height: 1.35; }
.aftercare__item p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.aftercare__resources { margin-top: 40px; }
.aftercare__resources > h3 { font-size: 24px; }
.aftercare__intro { color: var(--muted); margin-top: 10px; }
.aftercare__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.aftercare__resource { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.aftercare__resource > .icon { color: var(--brand); }
.aftercare__resource h4 { min-height: 2.8em; font-size: 17px; line-height: 1.4; }
.aftercare__resource p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.aftercare__resource a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 14px; font-weight: 600; margin-top: auto; padding-top: 8px; }
.aftercare__resource a .icon { flex: none; width: 16px; }
.aftercare__note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 20px; max-width: 900px; }
.aftercare__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.aftercare__actions > a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--brand); }
@media (max-width: 980px) {
  .aftercare__grid { grid-template-columns: minmax(0, 1fr); }
  .aftercare__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .aftercare__offer, .aftercare__item, .aftercare__resource { padding: 22px; }
  .aftercare__duration { gap: 12px; }
  .aftercare__duration b { font-size: 64px; }
  .aftercare__duration span { font-size: 18px; }
  .aftercare__offer .btn { box-sizing: border-box; max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .aftercare__item { gap: 12px; }
  .aftercare__links { grid-template-columns: minmax(0, 1fr); }
  .aftercare__resource h4 { min-height: 0; }
  .aftercare__actions .btn { box-sizing: border-box; width: 100%; white-space: normal; line-height: 1.4; }
}
@media (max-width: 700px) {
  .hero--consult { padding-top: 24px; }
  .hero--consult .lead { font-size: 17px; }
  .hero--consult .hero__media { display: block; }
  .hero__bullets { gap: 8px; }
  .hero__bullets li { padding: 12px 10px; gap: 8px; }
  .hero__bullet-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .hero__bullets b { font-size: 13px; }
}
@media (max-width: 360px) {
  .hero__bullet-icon { display: none; }
  .hero--consult .hero__cta .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .header .header__in, .header .header__right { gap: 6px; }
  .header .logo__svg { height: 30px; }
  .header .phone a { font-size: 14px; }
}

@media (max-width: 520px) {
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp__col, .step { min-width: 0; }
  .cmp__col .btn { white-space: normal; text-align: center; padding: 12px 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step h3 { overflow-wrap: anywhere; hyphens: auto; }
}


/* Логотипы площадок и награда в карточках рейтингов */
.rate__brand { display: flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 36px; max-width: 100%; padding: 4px 8px; margin: -4px -8px 8px; border-radius: 8px; background: #fff; }
.rate__brand img { display: block; width: auto; height: auto; max-width: 150px; max-height: 26px; object-fit: contain; }
.rate__brand-label { color: #12263a; font-size: 17px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.rate__score { display: flex; align-items: center; gap: 10px; }
.rate__score > .icon { width: 32px; height: 32px; stroke-width: 1.8; }

/* Посадочная вебинаров Службы заботы */
/* Компактная шапка и вложенная навигация «Полезное». */
.header__in { gap: 14px; }
.header__in > .nav { margin-left: 0; gap: 2px; flex: none; }
.nav .nav__top { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 500 15px var(--font); white-space: nowrap; cursor: pointer; }
.nav .nav__top:hover, .nav .nav__top.is-current, .nav__item.is-open > .nav__top { color: var(--brand); background: var(--brand-soft); }
.nav button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.nav__sub a { white-space: normal; line-height: 1.4; }
.nav__sub { display: none; }
.nav__item.is-open > .nav__sub, .nav__branch.is-open > .nav__sub2 { display: grid; }
.nav__branch { position: relative; }
.nav .nav__branch-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; border-radius: 10px; background: transparent; padding: 10px 12px; color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer; }
.nav__branch-toggle::after { content: ""; flex: none; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.nav .nav__branch-toggle:hover, .nav .nav__branch-toggle.is-current, .nav__branch.is-open > .nav__branch-toggle { background: var(--brand-soft); color: var(--brand); }
.nav__branch > .nav__sub2 { width: 360px; max-height: calc(100dvh - 140px); overflow-y: auto; }
.nav__item .nav__branch.is-open > .nav__sub2 { visibility: visible; opacity: 1; transform: none; }
.nav__branch--left > .nav__sub2 { left: auto; right: 100%; margin-left: 0; margin-right: 14px; }
.nav__caption { display: block; padding: 12px 12px 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav__note { display: block; padding: 6px 12px 10px; color: var(--muted); font-size: 13px; }
.mnav .mnav__group--nested { margin-left: 12px; }
.mnav .mnav__group--nested > summary { font-size: 15px; }
.mnav details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.mnav details:not([open]) > summary::after { transform: translateY(-2px) rotate(45deg); }
.mnav__note { display: block; padding: 6px 16px 12px; color: var(--muted); font-size: 13px; }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1320px) { .header__msgr { display: none; } }
@media (max-width: 1180px) { .header__in { gap: 12px; } .phone small { display: none; } .header__right { gap: 10px; } }
@media (max-width: 980px) { .header__in > .nav { display: none; } .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__nav { grid-template-columns: minmax(0, 1fr); } }

.webinar--hero { padding-top: 48px; background: radial-gradient(ellipse at 90% 20%, var(--glow-c), transparent 55%); }
.webinar__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.webinar h1 { font-size: clamp(32px, 3.6vw, 48px); }
.webinar .lead { margin-top: 24px; }
.webinar .ticks { margin-top: 24px; }
.webinar__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.webinar__caption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.webinar-modal .modal__box { box-sizing: border-box; max-width: 640px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px 20px 20px; }
.webinar-modal h2 { padding-right: 36px; font-size: 24px; }
.webinar-modal .modal__box > p { margin-top: 12px; margin-bottom: 16px; }
.webinar-modal__widget { min-height: 320px; background: #fff; border-radius: 12px; }
.webinar-modal__widget iframe { display: block; width: 100%; border: 0; }
.webinar-modal__status { font-size: 14px; }
.webinar-modal .webinar-modal__fallback { margin-bottom: 0; font-size: 13px; }
.webinar-modal__fallback a { color: var(--brand); text-decoration: underline; }
.webinar-form { display: grid; gap: 16px; margin-top: 24px; }
.webinar-form[hidden], .webinar-form__result[hidden], .webinar-modal__widget[hidden] { display: none; }
.webinar-form .field { display: grid; gap: 6px; }
.webinar-form .field > span { font-size: 14px; font-weight: 600; }
.webinar-form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.webinar-form__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.webinar-form__consent a { color: var(--brand); text-decoration: underline; }
.webinar-form__error { color: #c72e3b; font-size: 13px; line-height: 1.4; }
.webinar-form__help { color: var(--muted); font-size: 12px; font-weight: 400; }
.webinar-form__privacy { font-size: 12px; color: var(--muted); }
.webinar-form__result { display: grid; gap: 18px; padding: 24px 0; }
.webinar-form__result > b { font-size: 22px; }
.webinar__schedule { box-sizing: border-box; min-width: 0; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.webinar__schedule-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 24px; }
.webinar__schedule-icon .icon { width: 28px; height: 28px; }
.webinar__schedule > p { color: var(--muted); margin-bottom: 8px; }
.webinar__schedule h2 { font-size: clamp(24px, 2.5vw, 32px); }
.webinar__time { display: block; margin: 16px 0 24px; font-size: 56px; line-height: 1.1; letter-spacing: -.04em; }
.webinar__time small { font-size: 17px; font-weight: 500; letter-spacing: normal; color: var(--muted); }
.webinar__contact { display: grid; gap: 6px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.webinar__contact p, .webinar__contact small { color: var(--muted); }
.webinar__contact a { font-size: 24px; font-weight: 700; }
@media (max-width: 980px) {
  .webinar__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .webinar__schedule { max-width: 540px; width: 100%; }
}
@media (max-width: 520px) {
  .webinar--hero { padding-top: 28px; }
  .webinar__schedule { padding: 24px; }
  .webinar__actions .btn { width: 100%; }
  .webinar-modal { padding: 8px; }
  .webinar-modal .modal__box { padding: 24px 8px 16px; max-height: calc(100dvh - 16px); }
  .webinar-modal h2, .webinar-modal .modal__box > p { margin-left: 8px; margin-right: 8px; }
}

/* Быстрое оглавление слева, напротив кнопки связи. */
.reading-nav { position: fixed; left: 50px; bottom: 50px; }
.reading-nav__toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); font: 500 14px/1.3 var(--font); cursor: pointer; box-shadow: 0 6px 20px rgba(8,18,30,.08); }
.reading-nav__toggle[hidden], .reading-nav__panel[hidden] { display: none; }
.reading-nav__toggle .icon { width: 22px; height: 22px; }
.reading-nav__toggle:hover, .reading-nav__toggle[aria-expanded=true] { background: var(--surface-2); }
.reading-nav__panel { position: absolute; left: 0; bottom: calc(100% + 14px); width: min(400px, calc(100vw - 64px)); max-height: calc(100dvh - 280px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--surface); color: var(--text); box-shadow: 0 18px 50px rgba(8,18,30,.18); }
.reading-nav__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reading-nav__head b { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; font-size: 18px; }
.reading-nav__head .icon { width: 22px; height: 22px; color: var(--muted); }
.reading-nav__head button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font: 26px/1 var(--font); cursor: pointer; }
.reading-nav__location { margin: 12px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.reading-nav__location span { display: block; color: var(--text); font-weight: 500; }
.reading-nav__panel ol { list-style: none; margin: 0 -8px; padding: 0 8px 0 0; overflow-y: auto; overscroll-behavior: contain; }
.reading-nav__panel a { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 10px; min-height: 44px; padding: 10px; border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.reading-nav__panel a:hover, .reading-nav__panel a:focus-visible, .reading-nav__panel a[aria-current] { background: var(--surface-2); color: var(--text); text-decoration: none; }
.reading-nav__panel a[aria-current] { box-shadow: inset 3px 0 var(--brand); font-weight: 600; }
.fab:has(.reading-nav__panel:not([hidden])) .hint { visibility: hidden; }
.article-guide-final { padding-top: 0; padding-bottom: 40px; scroll-margin-top: 112px; }
.article-guide-final .article-quiz { margin: 0; }
.article-quiz__title, #faq, .article__part { scroll-margin-top: 112px; }
@media(max-width: 520px) {
  .reading-nav { left: 22px; bottom: 26px; }
  body:has(#cookie:not([hidden])) .reading-nav { bottom: 76px; }
}
@media(max-width: 640px) {
  .reading-nav__toggle { width: 48px; height: 48px; padding: 0; }
  .reading-nav__toggle > span { display: none; }
  .reading-nav__panel { bottom: calc(100% + 40px); padding: 16px; max-height: calc(100dvh - 250px); }
  body:has(#cookie:not([hidden])) .reading-nav__panel { max-height: calc(100dvh - 300px); }
  .article-guide-final { padding-bottom: 28px; }
}
@media print { .fab { display: none !important; } }

/* Продающий первый экран (hero sell: true): короткие преимущества, «Позвонить» и запись в один ряд, врач.
   80% заявок уходит без прокрутки, 90% трафика с телефона: на мобиле весь оффер и обе кнопки - в первом экране */
.hero__ticks { display: grid; gap: 10px; list-style: none; margin: -8px 0 28px; padding: 0; }
.hero__ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; font-weight: 500; line-height: 1.35; }
.hero__ticks .icon { flex: 0 0 24px; width: 24px; height: 24px; padding: 4px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.hero__call-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hero__doctor { display: flex; align-items: center; gap: 14px; max-width: 34em; margin-top: 22px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.hero__doctor img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hero__doctor b { display: block; font-size: 15px; line-height: 1.3; }
.hero__doctor span { display: block; font-size: 13px; color: var(--muted); }
.hero__doctor q { display: block; margin-top: 4px; font-size: 14px; font-style: italic; line-height: 1.4; }
.hero--sell .hero__media img { aspect-ratio: 4 / 4.2; }
@media (max-width: 520px) {
  .hero--sell { padding-top: 12px; padding-bottom: 28px; }
  .hero--sell .crumbs { display: none; }
  .hero--sell h1 { font-size: 25px; line-height: 1.18; }
  .hero--sell .lead { display: none; }
  .hero--sell .hero__ticks { gap: 7px; margin: 14px 0 18px; }
  .hero--sell .hero__ticks li { font-size: 15px; gap: 8px; }
  .hero--sell .hero__ticks .icon { flex-basis: 20px; width: 20px; height: 20px; padding: 3px; }
  .hero--sell .hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero--sell .hero__cta .btn { width: auto; min-height: 54px; padding: 0 10px; gap: 7px; font-size: 15px; }
  .hero--sell .hero__link { display: none; }
  .hero--sell .rating { margin-top: 14px; gap: 4px 12px; font-size: 12.5px; }
  .hero--sell .hero__doctor { margin-top: 14px; padding: 10px 12px; gap: 10px; box-shadow: none; }
  .hero--sell .hero__doctor img { flex-basis: 48px; width: 48px; height: 48px; }
  .hero--sell .hero__doctor q { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Квиз отдельным блоком в середине страницы (type: quiz) */
.quiz-block__grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 56px; align-items: center; }
.quiz-block__lead { font-size: 18px; color: var(--muted); margin: 14px 0 22px; }
.quiz-block__call { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; padding: 18px 20px; background: var(--brand-soft); border-radius: var(--r-md); }
.quiz-block__call span { flex: 1 1 220px; font-weight: 600; }
@media (max-width: 980px) { .quiz-block__grid { grid-template-columns: 1fr; gap: 28px; } }
/* Квиз лид-магнита: карточка бонусов слева, на телефоне - под квизом */
.quiz-block--bonus .quiz-block__grid { align-items: start; }
.quiz-block__bonus { margin-top: 0; }
.quiz-block__bonus h3 { font-size: 26px; }
@media (max-width: 980px) {
  .quiz-block--bonus .quiz-block__grid { gap: 18px; }
  .quiz-block--bonus .quiz-block__text { display: contents; }
  .quiz-block--bonus .quiz-block__text > * { margin: 0; }
  .quiz-block--bonus .quiz-block__text > .eyebrow { justify-self: start; }
  .quiz-block--bonus .halo { order: 5; }
  .quiz-block--bonus .quiz-block__bonus { order: 6; grid-row: auto; }
  .quiz-block--bonus .quiz-block__urgent { order: 7; grid-row: auto; }
}
@media (max-width: 520px) { .quiz-block__bonus { padding: 20px; } .quiz-block__bonus h3 { font-size: 22px; } }
.cards__call { margin-top: 28px; }
.cards__call p { font-size: 16px; }
@media (max-width: 520px) {
  .quiz-block__lead { font-size: 16px; }
  .quiz-block__call { padding: 14px; }
  .quiz-block__call .btn { width: 100%; }
}
.hero__doctor small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .hero--sell .hero__doctor small { display: none; } }
@media (min-width: 981px) {
  .hero--sell { padding-top: 40px; }
  .hero--sell h1 { font-size: 48px; }
  .hero--sell .lead { font-size: 17px; margin: 16px 0 26px; }
}

/* Опасения ЦА (type: fears): страх в кавычках и ответ клиники */
.fears__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fear { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fear__q { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.fear__q .icon { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.fear__a { color: var(--muted); line-height: 1.55; }
.fear__review { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; font-style: italic; }
.fear__review .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--star); }
.fears__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; padding: 18px 22px; background: var(--brand-soft); border-radius: var(--r-md); }
.fears__cta span { flex: 1 1 260px; font-weight: 600; }
@media (max-width: 760px) { .fears__grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 520px) {
  .fear { padding: 18px; }
  .fear__q { font-size: 16px; gap: 10px; }
  .fear__q .icon { flex-basis: 30px; width: 30px; height: 30px; padding: 6px; }
  .fears__cta { padding: 14px; }
  .fears__cta .btn { width: 100%; }
}

/* Графический элемент первого экрана (hero art) */
.hero__art { display: block; border-radius: 50%; }
.hero__art--m { display: none; }
.hero__media img.hero__art--d { position: absolute; left: -44px; top: 36px; width: 132px; height: 132px; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow-lg); }
@media (min-width: 981px) { .hero__art--d { transform: translateZ(60px); } }
@media (max-width: 980px) { .hero__art--d { display: none; } }
@media (max-width: 520px) {
  .hero__art--m { display: block; float: right; width: 88px; height: 88px; margin: 0 -4px 4px 10px; shape-outside: circle(50%); box-shadow: var(--shadow); }
  .hero:has(.hero__art--m) .plus { display: none; }
}
@media (max-width: 520px) {
  .hero__art--m.hero__art--rect { width: 108px; height: auto; aspect-ratio: 300 / 320; border-radius: 18px; shape-outside: inset(0 round 18px); margin-top: 2px; }
}
/* Продающий первый экран: картинка на уровне заголовка, а не по центру высокой левой колонки */
@media (min-width: 981px) { .hero--sell .hero__grid { align-items: start; } .hero--sell .hero__media { margin-top: 64px; } }
.hero__media--free img { border-radius: 0; box-shadow: none; object-fit: contain; }
.hero__media--free::before { opacity: .55; }
/* Мобильная картинка первого экрана - слот 3:4 (112×150), начинается на уровне заголовка */
@media (max-width: 520px) {
  .hero:has(.hero__art--m) .eyebrow { display: flex; width: fit-content; }
  .hero__art--m.hero__art--rect { width: 112px; aspect-ratio: 3 / 4; object-fit: cover; margin: 4px -2px 6px 12px; border-radius: 16px; shape-outside: inset(0 round 16px); }
}
@media (max-width: 520px) { .hero:has(.hero__art--m) .hero__ticks { clear: both; padding-top: 4px; } }

/* Карточка врача с отзывом: лёгкий поворот, пять звёзд, бегущая обводка (как у btn--nav) */
.hero__doctor { transform: rotate(.6deg); border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), transparent 0 55%, var(--brand) 72%, var(--cta-2) 90%, transparent 100%) border-box, linear-gradient(var(--line), var(--line)) border-box; animation: spin 5s linear infinite; }
.hero__doctor .hero__doctor-stars { display: inline-block; margin-left: 6px; color: var(--star); font-size: 13px; letter-spacing: 1px; line-height: 1; white-space: nowrap; vertical-align: 1px; }
@media (max-width: 520px) { .hero--sell .hero__doctor { transform: rotate(.5deg); margin-left: 4px; margin-right: 4px; } .hero__doctor .hero__doctor-stars { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .hero__doctor { animation: none; } }
/* Телефон: картинка справа на высоту плашки и заголовка (сетка hero__head) */
@media (max-width: 520px) {
  .hero__head--art { display: grid; grid-template-columns: minmax(0, 1fr) 118px; column-gap: 12px; align-items: start; }
  .hero__head--art > .eyebrow { grid-column: 1; grid-row: 1; }
  .hero__head--art > h1 { grid-column: 1; grid-row: 2; }
  .hero__head--art > .hero__art--m, .hero__head--art > .hero__art--m.hero__art--rect { grid-column: 2; grid-row: 1 / 3; float: none; width: 118px; height: 100%; min-height: 150px; aspect-ratio: auto; margin: 0; object-fit: cover; object-position: 30% 20%; border-radius: 16px; shape-outside: none; }
  .hero:has(.hero__art--m) .hero__ticks { clear: none; }
}
/* Гайд (hero--consult) с мобильной обрезкой: на телефоне вместо большой картинки - слот рядом с заголовком */
@media (max-width: 520px) { .hero--consult:has(.hero__art--m) .hero__media { display: none; } }
/* Карточка отзыва: звёзды и дата не переносятся по символам; на узкой карточке плашку источника убираем -
   источник и так назван в ссылке «Читать на ...», а нижняя строка переносится целиком */
.review__who .stars, .review__foot span { white-space: nowrap; }
.review__foot { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 520px) { .review__src { display: none; } }
/* Гайд на коротком экране телефона (360×640): плашки без подписей, чтобы кнопка влезла в первый экран */
@media (max-width: 520px) and (max-height: 700px) {
  .hero--consult .hero__bullets small { display: none; }
  .hero--consult .hero__bullets li { align-items: center; padding-top: 10px; padding-bottom: 10px; }
}
/* Меню-колонки (group: true): одна панель с подписанными колонками вместо вложенных выпадашек */
.nav__item.is-open > .nav__sub--mega { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 8px; padding: 12px; }
.nav__col { display: grid; align-content: start; gap: 2px; }
.nav__col + .nav__col { padding-left: 8px; border-left: 1px solid var(--line); }
.nav__col .nav__caption { padding-top: 6px; }
.nav__col a { padding: 8px 12px; font-size: 15px; }
.nav__item:has(> .nav__sub--mega) { position: static; }
.header__in > .nav { position: relative; }
.nav__item.is-open > .nav__sub--mega { grid-auto-columns: 232px; }
.nav__col a { white-space: nowrap; }
.nav__col .nav__caption { color: var(--brand); }
@media (max-width: 1199px) { .nav__item.is-open > .nav__sub--mega { grid-auto-flow: row; grid-template-columns: repeat(2, 232px); row-gap: 12px; } .nav__col:nth-child(odd) { padding-left: 0; border-left: 0; } }
.nav__item.is-open > .nav__sub--mega { grid-auto-columns: 246px; }
@media (max-width: 1279px) { .nav__item.is-open > .nav__sub--mega { grid-auto-flow: row; grid-template-columns: repeat(2, 246px); row-gap: 12px; } .nav__col:nth-child(odd) { padding-left: 0; border-left: 0; } }
/* Широкую панель (3+ колонки) ставим от начала меню, узкую (2 колонки) - под своим пунктом */
.nav__item:has(> .nav__sub--mega) { position: relative; }
.nav__item:has(> .nav__sub--mega > .nav__col:nth-child(3)) { position: static; }
/* Меню с разделами слева (rail): слева список разделов, справа ссылки активного раздела. Масштабируется добавлением строк */
.nav__item:has(> .nav__sub--rail) { position: static; }
.nav__item.is-open > .nav__sub--rail { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; width: min(860px, calc(100vw - 48px)); padding: 0; overflow: hidden; }
.nav__rail { display: grid; align-content: start; gap: 2px; padding: 12px; background: var(--brand-soft); border-right: 1px solid var(--line); }
.nav .nav__rail-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer; }
.nav__rail-btn .icon { flex: none; width: 18px; height: 18px; color: var(--brand); }
.nav__rail-btn::after { content: ""; margin-left: auto; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); opacity: .4; }
.nav .nav__rail-btn[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.nav .nav__rail-btn[aria-selected="true"]::after { opacity: 1; }
.nav__rail-btn.is-current span { font-weight: 700; }
.nav__pane { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; min-height: 100%; box-sizing: border-box; }
.nav__pane[hidden] { display: none; }
.nav__pane-head { display: grid; gap: 2px; padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
.nav__pane-head b { font-size: 17px; }
.nav__pane-head span { color: var(--muted); font-size: 14px; }
.nav__pane-links { columns: 2; column-gap: 12px; }
.nav__pane-links > a, .nav__pane-links > .nav__caption { break-inside: avoid; }
.nav__pane-links > a { display: block; padding: 8px 12px; }
.nav__pane-links > .nav__caption { break-after: avoid; color: var(--brand); }
.nav .nav__pane-all { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start; color: var(--brand); font-weight: 600; }
.nav__pane-all .icon { width: 15px; height: 15px; }
.mnav .mnav__all { color: var(--brand); font-weight: 600; }
.nav__pane-links { columns: auto; display: block; }
.nav__pane-links:not(.nav__pane-links--blocks) .nav__pane-block { columns: 2; column-gap: 12px; }
.nav__pane-links--blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; align-items: start; }
.nav__pane-block > a { display: block; padding: 8px 12px; break-inside: avoid; }
.nav__pane-block > .nav__caption { color: var(--brand); padding-top: 4px; }

/* Кнопки первого экрана в одну строку: «Позвонить» + запись + ссылка (sell) не переносятся,
   отступы и шрифт сжимаются по ширине колонки (cqi). На телефоне - своя сетка 2 кнопки, ссылка скрыта */
@media (min-width: 521px) {
  .hero__cta { container-type: inline-size; flex-wrap: nowrap; gap: clamp(8px, 1.6cqi, 12px); }
  .hero__cta .btn { flex: 0 1 auto; min-width: 0; padding-inline: clamp(12px, 3.2cqi, 28px); gap: clamp(6px, 1.4cqi, 10px); font-size: clamp(14px, 2.7cqi, 16px); }
  .hero__cta .btn .icon { flex-shrink: 0; }
}

/* Карточки с ценой и кнопкой: длинная цена («Цена после консультации») не распирает колонку - низ карточки переносится */
.grid3 > * { min-width: 0; }
.card__foot { flex-wrap: wrap; }

/* Блок compare: кнопка записи + ссылка в одной колонке - в ряд, запись цветная (на узких экранах друг под другом) */
.cmp__btns { display: flex; gap: 10px; margin-top: auto; }
.cmp__btns .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
@media (max-width: 520px) { .cmp__btns { flex-direction: column; } }

/* Карточки слайдером на телефоне и планшете (cards: slider_m: true) - короче скролл, следующая карточка выглядывает справа */
@media (max-width: 980px) {
  .cards--slide { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px; }
  .cards--slide::-webkit-scrollbar { display: none; }
  .cards--slide > * { flex: 0 0 calc((100% - 14px) / 2.15); scroll-snap-align: start; }
}
@media (max-width: 640px) { .cards--slide > * { flex-basis: 84%; } }

/* Каталог услуг: на телефоне направления в одну строку с прокруткой вбок */
@media (max-width: 600px) {
  .service-catalog__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .service-catalog__filters::-webkit-scrollbar { display: none; }
  .service-catalog__filters .btn { flex: 0 0 auto; }
}
@media (min-width: 601px) { #services .service-catalog__filters { justify-content: center; } }

/* Листание зажатой мышкой (main.js): на время перетаскивания без привязки к карточкам и без выделения текста */
@media (hover: hover) and (pointer: fine) {
  .slider__track, .cards--slide, .service-catalog__filters { cursor: grab; }
}
.is-dragging { cursor: grabbing !important; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.is-dragging * { pointer-events: none; }
