/* ==========================================================================
   РевонМед — стили прототипа.
   Палитра «Аква» — по референсу владельца (выбрана 19.11.2026).
   Шрифт: Montserrat (решение владельца 19.11.2026). Эффекты — внизу файла.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Палитра «Аква» (выбрана владельцем 19.11.2026): глубокий петроль + мятно-бирюзовые кнопки --- */
:root {
  --deep: #0b4a55;  --deep-2: #12707e;
  --brand: #138a99; --brand-600: #0f7886; --brand-700: #0b5c67;
  --g1: #35dcb6;    --g2: #1fa5bd;
  --hl: #8ff1dc;
  --glow: rgba(62, 236, 192, .30);
  --on-deep: #d3ecee;
  --bg: #eaf1f3; --mist: #f4f8f9; --mint: #e0eff1; --mint-2: #cbe3e6; --line: #d5e3e6;
  --brand-ink: #12707e; --ink: #0f262b; --ink-2: #4a6267; --ink-3: #5a6d71;
  --warm: #ff8a4c; --warm-soft: #fff0e6;
  --footer: #072f36; --on-footer: #8fb0b5;
}
:root {
  --white: #fff;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 100%);
  --radius: 24px;
  --radius-s: 14px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--deep) 8%, transparent), 0 14px 36px -14px color-mix(in srgb, var(--deep) 28%, transparent);
  --wrap: 1760px;   /* широкая раскладка (решение владельца 19.11.2026) */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.i { width: 22px; height: 22px; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 16px; border: 0; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; transition: transform .2s, box-shadow .25s, background-color .2s, filter .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--brand { color: #fff; background: var(--grad); text-shadow: 0 1px 1px color-mix(in srgb, var(--deep) 35%, transparent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--g2) 85%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--brand:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--g2) 95%, transparent), inset 0 1px 0 rgba(255,255,255,.45); filter: saturate(1.1) brightness(1.03); transform: translateY(-1px); }
/* Блик, пробегающий по кнопке */
.btn--brand::after, .btn--white::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.btn--brand:hover::after, .btn--white:hover::after { transform: translateX(120%); }
.btn--white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.btn--white:hover { transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); background: #fff; }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--caps { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* ---------- Заголовок секции: узкий капс + линия-пульс ---------- */
.sec { padding: 88px 0; }
.sec--tight { padding: 56px 0; }
.sec--mist { background: var(--mist); }
.sec__head { margin-bottom: 40px; max-width: 780px; }
.sec__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse { display: block; width: 120px; height: 14px; margin: 14px 0 0; color: var(--brand); opacity: .6; }
.sec__lead { margin: 16px 0 0; color: var(--ink-2); font-size: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

/* ---------- Шапка: верхняя строка (город / лицензия) + логотип и контакты + меню на всю ширину ---------- */
.topline { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); background: color-mix(in srgb, #fff 45%, var(--bg)); }
.topline__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topline__side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topline__side .i { width: 16px; height: 16px; color: var(--brand); }
.topline__city { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.topline__city b { font-weight: 700; }
.topline__city::after { content: ""; width: 6px; height: 6px; margin-left: 4px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); }
.topline__muted { display: inline-flex; align-items: center; gap: 8px; }
.topline__lic { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-700); text-decoration: none; }
.topline__lic:hover { text-decoration: underline; }

.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.5) blur(14px); transition: box-shadow .3s, background-color .3s, padding .3s; padding-bottom: 12px; }
.header.is-stuck { box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--deep) 45%, transparent); background: color-mix(in srgb, #fff 90%, transparent); padding-top: 8px; padding-bottom: 8px; }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 16px; padding-bottom: 14px; overflow: hidden; max-height: 120px; transition: max-height .35s, padding .35s, opacity .25s; }
.header.is-stuck .header__row { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.header__contacts { display: flex; align-items: center; gap: 22px; }
.hinfo { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.hinfo small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; }
.hinfo a { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 56px; height: 56px; filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--g2) 35%, transparent)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.04); }
.logo__text { white-space: nowrap; display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 27px; font-weight: 700; letter-spacing: -0.035em; }
.logo__name b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__tag { margin-top: 6px; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
/* Меню — белая капсула по ширине пунктов, по центру страницы (без пустых полей по бокам) */
.nav { width: fit-content; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 6px; border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -18px color-mix(in srgb, var(--deep) 45%, transparent); }
.nav__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 14px clamp(10px, 1.35vw, 42px); border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; background: none; border: 0; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--mint); color: var(--brand-700); }
.nav__link[data-mega] { background: var(--grad); color: #fff; }
.nav__link[data-mega]:hover, .nav__link[data-mega][aria-expanded="true"] { filter: brightness(1.05); color: #fff; }
.nav__link .i { width: 18px; height: 18px; }
.nav__sep { width: 1px; height: 24px; background: var(--line); margin: 0 clamp(6px, 1.2vw, 20px); }
.nav__search { padding: 12px 14px; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; border: 0; transition: background-color .2s, color .2s, transform .2s; }
.round:hover { background: var(--grad); color: #fff; transform: translateY(-1px); }
.round .i { width: 19px; height: 19px; }
.header__socials { display: flex; gap: 8px; }
.phone-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; align-items: center; justify-content: center; }
.burger { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; border: 0; background: #fff; color: var(--brand-700); align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.header__mob { display: none; gap: 8px; margin-left: auto; }

/* Мегаменю — плавающая карточка ровно по ширине меню-капсулы */
.nav-wrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.mega { position: absolute; top: calc(100% + 12px); left: 0; right: 0; min-width: 980px; z-index: 50; display: none; overflow: hidden; isolation: isolate;
  border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent), 0 40px 80px -30px color-mix(in srgb, var(--deep) 55%, transparent), 0 12px 24px -16px color-mix(in srgb, var(--deep) 30%, transparent); }
.mega::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 22%, transparent), transparent); pointer-events: none; }
.mega.is-open { display: block; animation: megaIn .32s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 0; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
/* Без прокрутки: высота карточки = самой длинной панели, поэтому при переключении направлений она не меняется */
.mega__grid { display: grid; grid-template-columns: 280px 1fr; }
.mega__tabs { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: linear-gradient(180deg, var(--mint), color-mix(in srgb, var(--mist) 60%, #fff)); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.mega__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 2px 12px 8px; }
.mega__tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 14px; line-height: 1.25; font-size: 14.5px; border-radius: 14px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink); transition: background-color .2s, box-shadow .2s, color .2s; }
.mega__tab small { margin-left: auto; min-width: 26px; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.7); color: var(--ink-3); font-weight: 600; font-size: 11px; text-align: center; }
.mega__ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.mega__ico .i { width: 18px; height: 18px; }
.mega__tab:hover { background: rgba(255,255,255,.6); }
.mega__tab[aria-selected="true"] { background: #fff; color: var(--brand-700); box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--deep) 60%, transparent), inset 0 0 0 1px var(--line); }
.mega__tab[aria-selected="true"] .mega__ico { background: var(--grad); color: #fff; box-shadow: none; }
.mega__tab[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.mega__body { display: grid; padding: 30px 36px 28px; }
.mega__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.mega__panel.is-active { visibility: visible; opacity: 1; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(6px); } }
.mega__panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.mega__title { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 23px; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
a.mega__title:hover { color: var(--brand); }
.mega__panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); max-width: 560px; line-height: 1.5; }
.mega__price { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--g2) 90%, transparent); }
.mega__row { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: start; }
.mega__cols { columns: 3 190px; column-gap: 36px; }
.mega__group { break-inside: avoid; margin-bottom: 20px; }
.mega__group h4 { display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin: 0 0 10px; font-weight: 700; }
.mega__group h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.mega__group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -10px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; transition: background-color .15s, color .15s, padding .2s; }
.mega__group a .i { width: 14px; height: 14px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; color: var(--brand); }
.mega__group a:hover { background: var(--mint); color: var(--brand-700); padding-left: 14px; }
.mega__group a:hover .i { opacity: 1; transform: none; }
.mega__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--brand); text-decoration: none; }
.mega__all .i { width: 16px; height: 16px; transition: transform .2s; }
.mega__all:hover .i { transform: translateX(4px); }
.mega__foot { display: flex; align-items: center; gap: 24px; padding: 16px 20px 16px 30px; color: #fff; background: linear-gradient(110deg, var(--deep), var(--deep-2)); position: relative; overflow: hidden; }
.mega__foot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 120px at 85% 0%, color-mix(in srgb, var(--g1) 35%, transparent), transparent 70%); pointer-events: none; }
.mega__foot-txt { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-deep); margin-right: auto; }
.mega__phone { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.mega__phone .i { width: 18px; height: 18px; color: var(--hl); }
.mega__foot .btn { position: relative; }

/* ---------- Первый экран главной: фото в скруглённой карточке + стеклянная плашка ---------- */
.hero { padding: 8px 0 0; }
.hero__card { position: relative; overflow: hidden; border-radius: 36px; min-height: clamp(700px, 84vh, 900px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 56px); isolation: isolate; background: var(--deep); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--deep) 70%, transparent); }
.hero__photo { position: absolute; top: 0; bottom: 0; left: 20%; right: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); z-index: -2; background-size: cover; background-position: 75% 35%; transform-origin: 75% 40%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
/* Левая часть фото высветлена и приглушена — чтобы текст в плашке читался */
.hero__card { background: linear-gradient(120deg, #fff 0%, var(--bg) 40%, var(--mint) 100%); }
/* Левая часть — светлая и спокойная, фото плавно проявляется к правому краю: текст в плашке читается */
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 30%, transparent 50%),
  linear-gradient(0deg, color-mix(in srgb, var(--deep) 55%, transparent) 0%, transparent 34%),
  radial-gradient(600px 400px at 10% 0%, color-mix(in srgb, var(--g1) 18%, transparent), transparent 70%); }
.hero__glass { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; position: relative; max-width: min(720px, 47%); padding: 34px 36px 34px; border-radius: 28px; background: rgba(255,255,255,.55); backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 30px 60px -30px color-mix(in srgb, var(--deep) 45%, transparent); }
.hero__glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.6) 0%, transparent 45%); pointer-events: none; }
.hero__kicker { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-700); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--deep) 50%, transparent); }
.hero__kicker b { background: var(--grad); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.hero h1 { position: relative; margin: 20px 0 14px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(32px, 3.2vw, 56px); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); }
.hero h1 span { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { position: relative; font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__duty { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent); font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.hero__duty a { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.hero__tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: rgba(255,255,255,.62); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); transition: background-color .25s, transform .25s, box-shadow .25s; }
.tile .i { color: var(--brand); width: 26px; height: 26px; }
.tile small { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.tile:hover { background: rgba(255,255,255,.92); transform: translateY(-2px); box-shadow: inset 0 0 0 1px #fff, 0 16px 30px -18px color-mix(in srgb, var(--deep) 60%, transparent); }
.hero__trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.hero__trust div { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--ink-2); border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.hero__trust b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.1; text-transform: uppercase; }
.hero__trust .i { color: var(--brand); margin-top: 2px; width: 26px; height: 26px; }

/* Карта экстренной помощи */
.sos { background: #fff; color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); position: relative; }
.sos__head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.sos__badge { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.sos__head b { display: block; font-size: 16px; }
.sos__head small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 600; }
.sos__live { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13px; color: var(--ink-2); }
.sos__phone { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.sos__phone .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--warm-soft); color: var(--warm); }
.sos__rows { margin: 18px 0; display: grid; gap: 0; }
.sos__rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--mint-2); font-size: 14px; color: var(--ink-2); }
.sos__rows b { color: var(--ink); }
.sos__msg { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.msgr { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none; }
.msgr--tg { background: #2aa3df; }
.msgr--wa { background: #25c063; }
.msgr--max { background: linear-gradient(135deg, #4f6cff, #9a4bff); }
.msgr .i { width: 20px; height: 20px; }

/* ---------- Рейтинги ---------- */
.ratings { margin-top: -1px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ratings .wrap { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 20px; align-items: center; }
.ratings__title b { display: block; font-size: 18px; }
.ratings__title span { font-size: 13px; color: var(--ink-3); }
.rating { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--line); }
.rating__val { display: flex; align-items: center; gap: 4px; font-size: 26px; font-weight: 700; }
.rating__val .i { width: 18px; height: 18px; color: #f2a516; fill: #f2a516; }
.rating small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.rating b { font-size: 14px; display: block; }

/* ---------- Промо-плитки ---------- */
.promos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.promo { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 200px; padding: 26px; border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform .2s; }
.promo:hover { transform: translateY(-3px); }
.promo--dark { background: linear-gradient(140deg, var(--brand), var(--deep)); color: #fff; }
.promo--mint { background: var(--mint); color: var(--ink); }
.promo--light { background: var(--warm-soft); color: var(--ink); }
.promo__val { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.promo__val--long { font-size: 32px; padding-right: 48px; }
.promo--light .promo__val { color: var(--warm); }
.promo--mint .promo__val { color: var(--brand); }
.promo b { font-size: 19px; display: block; }
.promo span { font-size: 14px; opacity: .8; }
.promo__go { position: absolute; right: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.promo--mint .promo__go, .promo--light .promo__go { background: #fff; color: var(--brand); }

/* ---------- Бенто услуг ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc { grid-column: span 2; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; min-height: 260px; }
.svc:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc--wide { grid-column: span 4; }
.svc--dark { background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff; border-color: transparent; }
.svc__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--brand); margin-bottom: 20px; }
.svc--dark .svc__icon { background: rgba(255,255,255,.14); color: #fff; }
.svc__icon .i { width: 26px; height: 26px; }
.svc h3 { font-size: 22px; margin-bottom: 8px; }
.svc p { font-size: 14px; color: var(--ink-2); margin: 0; }
.svc--dark p { color: var(--on-deep); }
.svc__price { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--ink-3); }
.svc__price b { font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.svc--dark .svc__price, .svc--dark .svc__price b { color: #fff; }
.svc__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.svc__list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.svc__list li span:last-child { color: var(--ink-3); white-space: nowrap; }
.svc--dark .svc__list li { border-color: rgba(255,255,255,.18); }
.svc--dark .svc__list li span:last-child { color: var(--on-deep); }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tariff { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tariff--pop { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.tariff__flag { position: absolute; top: -13px; left: 24px; background: var(--warm); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.tariff h3 { font-size: 20px; }
.tariff__note { font-size: 13px; color: var(--ink-3); margin: 6px 0 16px; min-height: 40px; }
.tariff__price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; }
.tariff__price small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.tariff ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 14px; }
.tariff li { display: flex; gap: 10px; }
.tariff li .i { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.tariff .btn { margin-top: auto; }

/* Рассрочка */
.instal { margin-top: 24px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px; padding: 36px 40px; border-radius: var(--radius); background: linear-gradient(120deg, var(--deep), var(--brand)); color: #fff; }
.instal h3 { font-size: 30px; }
.instal p { color: var(--on-deep); margin: 10px 0 0; }
.instal__nums { display: flex; gap: 0; }
.instal__nums div { flex: 1; padding: 0 20px; border-left: 1px solid rgba(255,255,255,.2); }
.instal__nums b { display: block; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.instal__nums span { font-size: 13px; color: var(--on-deep); }

/* ---------- Преимущества (бенто) ---------- */
.adv { display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; }
.adv__card { grid-column: span 3; position: relative; min-height: 230px; padding: 28px; border-radius: var(--radius); overflow: hidden; }
.adv__card--wide { grid-column: span 4; }
.adv__card--dark { background: var(--brand); color: #fff; }
.adv__card--mint { background: var(--mint); }
.adv__card--light { background: var(--mist); border: 1px solid var(--line); }
.adv__card h3 { font-size: 22px; max-width: 220px; }
.adv__card p { margin: 12px 0 0; font-size: 14px; max-width: 250px; color: var(--ink-2); }
.adv__card--dark p { color: var(--on-deep); }
.adv__art { position: absolute; right: -18px; bottom: -18px; width: 140px; height: 140px; color: var(--brand); opacity: .14; }
.adv__card--dark .adv__art { color: #fff; opacity: .18; }
.adv__art .i { width: 100%; height: 100%; stroke-width: 1.1; }

/* ---------- Схема лечения ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step__n { font-size: 120px; font-weight: 800; line-height: .85; letter-spacing: -0.06em; background: linear-gradient(170deg, var(--brand) 10%, var(--hl) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -18px; width: 12px; height: 12px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); }
.cta-strip { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 18px 18px 28px; border-radius: var(--radius); background: var(--mint); flex-wrap: wrap; }
.cta-strip p { margin: 0; color: var(--ink-2); }

/* ---------- Цифры ---------- */
.nums { display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; grid-template-rows: auto auto; gap: 16px; }
.num { padding: 28px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.num b { display: block; font-size: 64px; letter-spacing: -0.04em; line-height: 1; color: var(--brand-700); }
.num strong { display: block; margin: 10px 0 6px; font-size: 17px; }
.num p { font-size: 14px; color: var(--ink-2); margin: 0; }
.num--photo { grid-row: span 2; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.num--photo .ph { flex: 1; min-height: 220px; border-radius: 0; }
.num--photo div.num__in { padding: 24px 28px 28px; }
.num--dark { background: var(--brand); border-color: transparent; color: #fff; }
.num--dark b { color: #fff; }
.num--dark p { color: var(--on-deep); }
.num--chief { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--mint); border-color: transparent; }
.chief { display: flex; align-items: center; gap: 14px; }
.chief b { display: block; font-size: 17px; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.chief small { display: block; font-size: 13px; color: var(--ink-3); }

/* Плейсхолдер фото */
.ph { position: relative; display: grid; place-items: center; border-radius: var(--radius); background:
  linear-gradient(135deg, rgba(255,255,255,.0) 0 49.6%, color-mix(in srgb, var(--brand) 12%, transparent) 49.6% 50.4%, rgba(255,255,255,0) 50.4%),
  linear-gradient(45deg, rgba(255,255,255,.0) 0 49.6%, color-mix(in srgb, var(--brand) 12%, transparent) 49.6% 50.4%, rgba(255,255,255,0) 50.4%),
  var(--mint-2); color: var(--brand-700); font-size: 13px; font-weight: 600; text-align: center; }
.ph span { background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 99px; }

/* ---------- Врачи ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.doc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc__photo { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(170deg, var(--mint-2), var(--mint-2)); display: grid; place-items: center; }
.doc__photo .ava { font-size: 64px; font-weight: 700; color: color-mix(in srgb, var(--brand-700) 35%, transparent); letter-spacing: -0.04em; }
.doc__tags { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.doc__tags span { background: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.doc__body { padding: 18px 18px 20px; }
.doc__body b { display: block; font-size: 18px; }
.doc__body small { display: block; color: var(--ink-2); font-size: 13px; }
.doc__exp { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--brand); }
.ava-sm { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; flex: none; }

/* ---------- Родственникам ---------- */
.family { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 48px; border-radius: 28px; background: var(--mint); }
.family__list { display: grid; gap: 22px; }
.family__item { display: flex; gap: 16px; }
.family__item .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--brand); }
.family__item b { display: block; font-size: 18px; margin-bottom: 4px; }
.family__item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review__stars { display: flex; gap: 2px; }
.review__stars .i { width: 16px; height: 16px; color: #f2a516; fill: #f2a516; }
.review p { margin: 0; font-size: 15px; }
.review footer { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.review footer b { color: var(--ink); }
.review__svc { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--mint); border-radius: 8px; padding: 3px 10px; }
.review--audio { background: var(--deep); color: #fff; border: 0; }
.audio { display: flex; align-items: center; gap: 14px; }
.audio button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); display: grid; place-items: center; }
.audio__wave { flex: 1; height: 36px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 3px, transparent 3px 7px); mask: linear-gradient(transparent 0 0), radial-gradient(circle, #000 0, #000 100%); clip-path: polygon(0 40%, 5% 20%, 10% 55%, 15% 10%, 20% 45%, 25% 25%, 30% 60%, 35% 15%, 40% 50%, 45% 30%, 50% 5%, 55% 40%, 60% 20%, 65% 55%, 70% 25%, 75% 45%, 80% 15%, 85% 50%, 90% 30%, 95% 45%, 100% 35%, 100% 65%, 95% 55%, 90% 70%, 85% 50%, 80% 85%, 75% 55%, 70% 75%, 65% 45%, 60% 80%, 55% 60%, 50% 95%, 45% 70%, 40% 50%, 35% 85%, 30% 40%, 25% 75%, 20% 55%, 15% 90%, 10% 45%, 5% 80%, 0 60%); }

/* ---------- Лицензии ---------- */
.lic { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.lic__docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lic__doc { aspect-ratio: 3 / 4; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.lic__doc i { display: block; height: 6px; border-radius: 3px; background: var(--mint-2); }
.lic__doc i:nth-child(1) { width: 60%; background: var(--brand); opacity: .5; }
.lic__doc i:nth-child(3) { width: 80%; }
.lic__doc i:nth-child(5) { width: 70%; }
.lic__doc span { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq__aside .ph { margin-top: 28px; height: 300px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { color: var(--brand); transition: transform .2s; }
.qa[open] summary .i { transform: rotate(45deg); }
.qa p { margin: -6px 0 22px; color: var(--ink-2); max-width: 640px; }

/* ---------- Форма ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--deep); color: #fff; }
.lead-form__text { padding: 52px; }
.lead-form__text h2 { font-size: clamp(28px, 3vw, 38px); }
.lead-form__text h2 em { font-style: normal; color: var(--hl); }
.lead-form__text p { color: var(--on-deep); margin-top: 16px; }
.lead-form__perks { margin-top: 28px; display: grid; gap: 12px; font-size: 15px; color: var(--on-deep); }
.lead-form__perks div { display: flex; gap: 10px; align-items: center; }
.lead-form__perks .i { color: var(--hl); }
.form { padding: 52px; background: #fff; color: var(--ink); display: grid; gap: 14px; align-content: center; }
.form h3 { font-size: 22px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mist); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.consent input { margin-top: 2px; accent-color: var(--brand); }
.form__ok { display: none; padding: 16px; border-radius: 12px; background: var(--mint); color: var(--brand-700); font-weight: 600; }
.form.is-sent .form__ok { display: block; }

/* ---------- SEO-текст с оглавлением ---------- */
.article { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.toc { position: sticky; top: 110px; align-self: start; }
.toc b { display: block; margin-bottom: 12px; font-size: 14px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }
.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: 30px; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; color: var(--brand-700); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin: 8px 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); opacity: .7; }
.prose .note { padding: 20px 24px; border-radius: 16px; background: var(--warm-soft); border-left: 4px solid var(--warm); font-size: 16px; }
.stub { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--brand) 5%, transparent) 8px 16px); border: 1.5px dashed var(--mint-2); border-radius: 16px; padding: 18px 22px; color: var(--ink-3); font-size: 15px; }
.checked { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); font-size: 14px; }
.checked small { display: block; color: var(--ink-3); }

/* ---------- Подвал ---------- */
.footer { position: relative; margin-top: 40px; padding: 0 0 26px; color: var(--on-footer); font-size: 14px; background: linear-gradient(180deg, var(--deep) 0%, var(--footer) 55%); border-radius: 40px 40px 0 0; }
.footer .ecg { top: -2px; bottom: auto; opacity: .35; }
.footer a { color: var(--on-deep); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer .logo__tag { color: var(--on-footer); border-color: rgba(255,255,255,.15); }
/* полоса доверия */
.ftrust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 34px 0 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ftrust__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.ftrust__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--g1) 80%, transparent); }
.ftrust__ico .i { width: 21px; height: 21px; }
.ftrust__item b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.ftrust__item span { font-size: 13px; }
/* основная часть */
.fmain { display: grid; grid-template-columns: 1.15fr 2fr 1fr; gap: 48px; padding: 48px 0 44px; }
.fabout p { margin: 18px 0 18px; line-height: 1.6; max-width: 380px; }
.fcontacts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.fcontacts li { display: flex; gap: 10px; align-items: center; }
.fcontacts .i { width: 18px; height: 18px; color: var(--hl); flex: none; }
.fmsgr { display: flex; gap: 8px; }
.fround { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff !important; transition: background .2s, transform .2s; }
.fround:hover { background: var(--grad); transform: translateY(-2px); }
.fround .i { width: 19px; height: 19px; }
.fnav { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.fnav h4 { margin: 4px 0 16px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fnav a { position: relative; }
.fnav a:hover { padding-left: 4px; }
.fcta { position: relative; overflow: hidden; isolation: isolate; align-self: start; display: grid; gap: 12px; padding: 26px; border-radius: 26px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.fcta::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 30%, transparent), transparent); }
.fcta__live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.fcta__phone { font-size: 26px; font-weight: 700; color: #fff !important; letter-spacing: -.01em; white-space: nowrap; }
.fcta p { margin: 0; font-size: 13px; line-height: 1.55; }
.fcta__route { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--hl) !important; }
.fcta__route .i { width: 17px; height: 17px; }
.fcta__route .i:last-child { transition: transform .2s; }
.fcta__route:hover .i:last-child { transform: translateX(4px); }
/* юридическая часть */
.flegal { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 12px; font-size: 12.5px; line-height: 1.6; }
.flegal p { margin: 0; }
.flegal__warn { display: flex; align-items: center; gap: 10px; color: var(--warm); font-weight: 600; font-size: 13.5px; }
.flegal__warn .i { width: 18px; height: 18px; flex: none; }
.flegal__text { max-width: 1200px; }
.flegal__text a { text-decoration: underline; text-underline-offset: 3px; }
.flegal__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.flegal__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flegal__links button { padding: 0; border: 0; background: none; color: var(--on-deep); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.flegal__links button:hover { color: #fff; }

/* Плавающие кнопки */
.float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float__btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--warm); box-shadow: 0 12px 30px -8px rgba(233,128,47,.7); text-decoration: none; animation: ring 2.8s infinite; }
.float__btn .i { width: 26px; height: 26px; }
@keyframes ring { 0%, 70%, 100% { box-shadow: 0 12px 30px -8px rgba(233,128,47,.7), 0 0 0 0 rgba(233,128,47,.45); } 85% { box-shadow: 0 12px 30px -8px rgba(233,128,47,.7), 0 0 0 16px rgba(233,128,47,0); } }
@media (prefers-reduced-motion: reduce) { .float__btn { animation: none; } html { scroll-behavior: auto; } }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(6, 47, 42, .55); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal__box { position: relative; width: min(460px, 100%); border-radius: 24px; overflow: hidden; }
.modal__box .form { padding: 36px; }
.modal__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mint); color: var(--brand-700); display: grid; place-items: center; z-index: 2; }

/* ---------- Внутренние страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--on-deep); margin-bottom: 22px; }
.crumbs a { color: var(--on-deep); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs--light { color: var(--ink-3); }
.crumbs--light a { color: var(--ink-2); }
.page-hero__lead { margin-top: 18px; font-size: 18px; color: var(--on-deep); max-width: 620px; }
.page-hero__price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 24px; padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 15px; color: var(--on-deep); }
.page-hero__price b { font-size: 28px; color: #fff; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; color: var(--on-deep); }
.chip .i { width: 16px; height: 16px; color: var(--hl); }

.subnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.subnav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s; }
.subnav a:hover { border-color: var(--brand); background: #fff; }
.subnav a small { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.group-title { font-size: 22px; margin: 40px 0 16px; }
.group-title:first-child { margin-top: 0; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid var(--line); }
.price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tr:hover td { background: var(--mist); }
.price-table a { color: var(--ink); text-decoration: none; }
.price-table a:hover { color: var(--brand); }
.price-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-bottom: 28px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.price-search input { flex: 1; border: 0; min-height: 52px; font: inherit; outline: none; background: none; }
.price-search .i { color: var(--ink-3); }

.side { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.side__box { position: sticky; top: 110px; padding: 26px; border-radius: var(--radius); background: var(--mint); }
.side__box h3 { font-size: 20px; margin-bottom: 10px; }
.side__box p { font-size: 14px; color: var(--ink-2); }
.side__box .btn { margin-top: 8px; }
.side__links { margin-top: 20px; display: grid; gap: 4px; }
.side__links a { font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; }
.side__links a.is-active { color: var(--brand); font-weight: 600; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--mist); font-size: 13px; color: var(--ink-2); }
.compare tr:last-child td { border-bottom: 0; }

/* Тест AUDIT */
.quiz { max-width: 760px; margin: 0 auto; padding: 40px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz__bar { height: 8px; border-radius: 4px; background: var(--mint); overflow: hidden; margin-bottom: 28px; }
.quiz__bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.quiz__q { font-size: 24px; font-weight: 700; margin-bottom: 22px; letter-spacing: -0.02em; }
.quiz__count { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts button { text-align: left; padding: 16px 20px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--mist); font-size: 16px; color: var(--ink); transition: border-color .15s, background .15s; }
.quiz__opts button:hover { border-color: var(--brand); background: #fff; }
.quiz__res { display: none; text-align: center; }
.quiz__res b { display: block; font-size: 72px; color: var(--brand); letter-spacing: -0.04em; line-height: 1; }
.quiz.is-done .quiz__step { display: none; }
.quiz.is-done .quiz__res { display: block; }

/* Статьи */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s; }
.post:hover { box-shadow: var(--shadow); }
.post .ph { border-radius: 0; aspect-ratio: 16 / 9; }
.post__body { padding: 20px; }
.post__body small { color: var(--brand); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.post__body h3 { font-size: 18px; margin: 8px 0 10px; }
.post__body span { font-size: 13px; color: var(--ink-3); }

.sitemap-cols { columns: 3 260px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 28px; }
.sitemap-cols h3 { font-size: 17px; margin-bottom: 8px; }
.sitemap-cols a { display: block; font-size: 14px; padding: 2px 0; color: var(--ink-2); text-decoration: none; }
.sitemap-cols a:hover { color: var(--brand); }

.proto-note { background: #fff7e8; border-bottom: 1px solid #f3dfb8; color: #7a5a1c; font-size: 13px; text-align: center; padding: 8px 16px; }

/* ---------- Внутренние страницы: первый экран — скруглённая тёмная карточка ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; width: calc(100% - 2 * clamp(16px, 3vw, 48px)); max-width: calc(var(--wrap) - 2 * clamp(16px, 3vw, 48px)); margin: 8px auto 0; border-radius: 36px; background: linear-gradient(150deg, var(--deep-2), var(--deep)); }
.page-hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 44px 44px 52px; max-width: none; }
.page-hero--simple .wrap { grid-template-columns: 1fr; padding-bottom: 48px; }
.page-hero h1 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 3vw, 46px); line-height: 1.08; letter-spacing: -.015em; }

/* ==========================================================================
   ЭФФЕКТЫ — чтобы сайт не выглядел шаблонным
   ========================================================================== */

/* Точка «на линии» с пульсацией */
.topbar__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c07a; box-shadow: 0 0 0 0 rgba(34,192,122,.5); animation: live 2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34,192,122,0); } 100% { box-shadow: 0 0 0 0 rgba(34,192,122,0); } }

/* «Северное сияние» в тёмных блоках: медленно плывущие цветные пятна */
.page-hero::before, .lead-form::before, .instal::before, .footer::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--g1) 38%, transparent), transparent) 15% 20% / 50% 50% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g2) 45%, transparent), transparent) 85% 70% / 55% 55% no-repeat;
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 50% { transform: translate(6%, -4%) rotate(8deg); } 100% { transform: translate(-5%, 5%) rotate(-6deg); } }
.lead-form, .instal, .footer { position: relative; isolation: isolate; overflow: hidden; }
.lead-form .form { position: relative; z-index: 1; }

/* Зернистость поверх тёмных блоков — убирает «пластиковый» цифровой вид */
.page-hero::after, .lead-form::after, .footer::after, .hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__card::after { opacity: .06; }
.page-hero .wrap, .lead-form__text, .footer .wrap { position: relative; z-index: 1; }

/* Линия кардиограммы, бегущая через первый экран («пронизывающая» линия) */
.ecg { position: absolute; left: 0; right: 0; bottom: 118px; height: 80px; z-index: 0; pointer-events: none; opacity: .85; }
.ecg path { fill: none; stroke: url(#ecgGrad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340 2400; animation: ecg 6s linear infinite; filter: drop-shadow(0 0 6px var(--g1)); }
@keyframes ecg { from { stroke-dashoffset: 2740; } to { stroke-dashoffset: 0; } }
.page-hero .ecg { bottom: 18px; opacity: .55; }

/* Подсветка карточек за курсором (spotlight) */
[data-spot] { position: relative; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--g1) 22%, transparent), transparent 45%); }
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }
/* Градиентная рамка у карточек при наведении */
.svc, .doc, .tariff, .review, .post { background-clip: padding-box; }
.svc:hover, .doc:hover, .post:hover { border-color: transparent; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--g1) 70%, var(--g2)), var(--shadow); }

/* Карточки — белые на тонированном фоне страницы */
.svc, .doc, .num, .subnav a, .adv__card--light { background: #fff; }
.sec--mist { background: color-mix(in srgb, #fff 55%, var(--bg)); }

/* Тёмные бенто-карточки и акценты — на градиенте палитры */
.svc--dark, .promo--dark, .adv__card--dark, .num--dark { background: linear-gradient(150deg, var(--deep-2), var(--deep)); }
.step__n { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.tariff--pop { border-color: transparent; box-shadow: 0 0 0 2px var(--g2), var(--shadow); }
.tariff__flag { background: var(--grad); }
.lead-form { background: linear-gradient(150deg, var(--deep-2), var(--deep)); }
.lead-form .form { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); margin: 14px; border-radius: 24px; }
.instal { background: linear-gradient(120deg, var(--deep), var(--deep-2)); }
.float__btn { background: var(--grad); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g2) 80%, transparent); animation: ring 2.8s infinite; }
@keyframes ring { 0%, 70%, 100% { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g2) 80%, transparent), 0 0 0 0 color-mix(in srgb, var(--g1) 50%, transparent); } 85% { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g2) 80%, transparent), 0 0 0 18px transparent; } }
.modal { background: color-mix(in srgb, var(--deep) 55%, transparent); }
.ph { background:
  linear-gradient(135deg, transparent 49.6%, color-mix(in srgb, var(--brand) 14%, transparent) 49.6% 50.4%, transparent 50.4%),
  linear-gradient(45deg, transparent 49.6%, color-mix(in srgb, var(--brand) 14%, transparent) 49.6% 50.4%, transparent 50.4%),
  linear-gradient(160deg, var(--mint), var(--mint-2)); }
.doc__photo { background: linear-gradient(170deg, var(--mint), var(--mint-2)); overflow: hidden; }
.doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.doc:hover .doc__photo img { transform: scale(1.05); }
.doc__tags { z-index: 1; }
.svc h3, .adv__card h3, .tariff h3, .step h3, .doc__body b, .family__item b { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; }
.svc h3 { font-size: 20px; }
.qa summary { font-weight: 600; }

/* Появление блоков при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__photo, .hero__glass, .page-hero::before, .lead-form::before, .instal::before, .footer::before, .ecg path, .topbar__dot, .float__btn { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn--brand::after, .btn--white::after { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .nav, .header__contacts { display: none; }
  .header__mob { display: flex; }
  .header { padding-bottom: 0; }
  .header.is-stuck { padding-top: 0; padding-bottom: 0; }
  .header.is-stuck .header__row { max-height: 120px; padding-top: 10px; padding-bottom: 10px; opacity: 1; }
  .topline__in { justify-content: center; }
  .nav-wrap { position: static; width: auto; }
  .mega { position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; min-width: 0; border-radius: 22px; }
  .mega__grid { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 200px); overflow: auto; }
  .mega__panel { display: none; }
  .mega__panel.is-active { display: block; }
  .mega__cols { columns: 2 150px; }
  .mega__tabs { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .mega__label { width: 100%; }
  .mega__tab[aria-selected="true"]::before { display: none; }
  .mega__body { padding: 20px; overflow: visible; }
  .mega__foot { flex-wrap: wrap; }
}
@media (max-width: 1024px) {
  .page-hero .wrap { grid-template-columns: 1fr; padding: 36px 28px 44px; }
  .hero__card { padding: 28px; min-height: 0; }
  .hero__tiles { grid-template-columns: repeat(2, 1fr); }
  .hero__trust { grid-template-columns: repeat(2, 1fr); }
  .tariffs, .docs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc--wide { grid-column: span 1; }
  .svc--wide { grid-column: span 2; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .adv__card, .adv__card--wide { grid-column: span 1; }
  .ratings .wrap { grid-template-columns: repeat(2, 1fr); }
  .ratings__title { grid-column: span 2; }
  .faq, .lic, .family, .lead-form, .instal, .side, .article { grid-template-columns: 1fr; }
  .toc, .side__box { position: static; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num--photo { grid-row: auto; grid-column: span 2; }
  .reviews, .posts, .promos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 60px 0; }
  .topline { display: none; }
  .header__row { padding-top: 12px; padding-bottom: 12px; }
  .logo__name { font-size: 21px; }
  .logo__mark, .header.is-stuck .logo__mark { width: 42px; height: 42px; }
  .logo__tag { font-size: 8.5px; letter-spacing: .12em; }
  .page-hero { width: calc(100% - 20px); margin: 4px auto 0; border-radius: 26px; }
  .page-hero .wrap { padding: 28px 20px 36px; }
  .hero .wrap { padding: 0 10px; }
  .hero__card { padding: 12px; border-radius: 26px; }
  .hero__card::before { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 65%, transparent), transparent 50%); }
  .hero__photo { -webkit-mask-image: none; mask-image: none; left: 0; right: 0; background-position: 82% 0; background-size: cover; top: 0; bottom: auto; height: 300px; animation: none; }
  .hero__glass { margin-top: 220px; padding: 24px 20px; background: rgba(255,255,255,.88); }
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 25px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__tiles { grid-template-columns: 1fr; margin-top: 10px; }
  .hero__trust { grid-template-columns: 1fr 1fr; }
  .hero__trust div { padding: 14px; }
  .ecg { display: none; }
  .ratings .wrap { grid-template-columns: 1fr 1fr; }
  .ratings__title { grid-column: 1 / -1; }
  .rating { padding-left: 0; border-left: 0; }
  .tariffs, .docs, .reviews, .posts, .promos, .bento, .adv, .nums, .lic__docs { grid-template-columns: 1fr; }
  .svc--wide, .num--chief, .num--photo { grid-column: span 1; }
  .svc__list { grid-template-columns: 1fr; }
  .step__n { font-size: 90px; }
  .steps { grid-template-columns: 1fr; }
  .family, .lead-form__text, .form, .instal, .quiz { padding: 28px 20px; }
  .lead-form .form { margin: 8px; }
  .instal__nums div { padding: 0 12px; }
  .instal__nums b { font-size: 30px; }
  .sos { padding: 20px; }
  .sos__phone { font-size: 22px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
}

/* Колонки сетки не должны распирать страницу широкими таблицами */
.side > *, .article > *, .lic > *, .faq > * { min-width: 0; }
@media (max-width: 640px) {
  .compare { display: block; overflow-x: auto; white-space: nowrap; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
}

/* Узкие телефоны (до 380 px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 23px; }
  .hero__glass { padding: 20px 16px; }
  .logo { gap: 10px; }
  .logo__name { font-size: 18px; }
  .logo__mark, .header.is-stuck .logo__mark { width: 36px; height: 36px; }
  .logo__tag { font-size: 7.5px; letter-spacing: .08em; }
  .phone-ico, .burger { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .hero__trust, .ratings .wrap { grid-template-columns: 1fr; }
  .hero__trust > div, .ratings .wrap > * { min-width: 0; }
}
.hero__trust > div, .ratings .wrap > * { min-width: 0; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; } }
/* Montserrat шире — колонки сеток не должны распираться содержимым */
.instal > *, .family > *, .lead-form > *, .nums > *, .bento > *, .adv > *, .tariffs > *, .docs > *, .reviews > *, .posts > *, .promos > *, .steps > * { min-width: 0; }
@media (max-width: 640px) {
  .instal__nums { flex-wrap: wrap; row-gap: 14px; }
  .instal__nums b { font-size: 26px; }
  .family__item { min-width: 0; }
  .family__item p, .family__item b { overflow-wrap: break-word; }
  .step__n { font-size: 76px; }
}
.page-hero .wrap > *, .checked > div, .sos__rows div > span { min-width: 0; }
.checked > div { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .sos__phone { font-size: 20px; gap: 8px; }
  .sos__phone .i { width: 38px; height: 38px; padding: 9px; }
  .sos__rows div { gap: 10px; }
  .sos__msg { flex-wrap: wrap; }
  .side__box { padding: 20px; }
}

/* Страница вариантов логотипа (прототип) */
.logo-cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-cmp__card { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 18px; }
.logo-cmp__big { display: grid; place-items: center; padding: 30px; border-radius: 18px; background: var(--mist); }
.logo-cmp__big .logo__mark { width: 160px; height: 160px; }
.logo-cmp__row { padding: 18px; border-radius: 14px; background: var(--bg); }
.logo-cmp__dark { padding: 18px; border-radius: 14px; background: var(--footer); }
.logo-cmp__dark .logo { color: #fff; }
.logo-cmp__dark .logo__tag { color: var(--on-footer); }
.logo-cmp__card h3 { font-size: 20px; text-transform: uppercase; }
.logo-cmp__card p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 1024px) { .logo-cmp { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .hero__glass { max-width: 640px; } }
@media (max-width: 1400px) and (min-width: 1025px) { .hero h1 { font-size: 40px; } .hero__lead { font-size: 16px; } }

/* Продающие пункты в первом экране */
.hero__usp { position: relative; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.hero__usp li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.hero__usp b { color: var(--ink); font-weight: 600; }
.hero__usp .i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: #fff; color: var(--brand); box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--deep) 60%, transparent); }
.hero h1 span { display: inline; }
@media (max-width: 640px) { .hero__usp li { font-size: 15px; } .hero__usp .i { width: 30px; height: 30px; padding: 6px; } }

/* Закреплённая шапка: при прокрутке в строке меню — логотип слева и телефон справа */
.nav-row { position: relative; }
.stuck-logo, .stuck-phone { position: absolute; top: 50%; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.stuck-logo { left: clamp(16px, 3vw, 48px); transform: translate(-10px, -50%); }
.stuck-phone { right: clamp(16px, 3vw, 48px); transform: translate(10px, -50%); display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.header.is-stuck .stuck-logo, .header.is-stuck .stuck-phone { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.stuck-logo .logo__mark { width: 42px; height: 42px; }
.stuck-logo .logo__name { font-size: 22px; }
.stuck-logo .logo__tag { font-size: 8px; letter-spacing: .16em; margin-top: 4px; padding-top: 4px; }
.stuck-phone__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--g2) 90%, transparent); }
.stuck-phone__ico .i { width: 19px; height: 19px; }
.stuck-phone__txt { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 18px; white-space: nowrap; }
.stuck-phone__txt small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
/* Ноутбуки: места меньше — знак без надписи и телефон кружком */
@media (max-width: 1700px) { .stuck-logo .logo__text, .stuck-phone__txt { display: none; } }
@media (max-width: 1240px) { .stuck-logo, .stuck-phone { display: none; } }

@media (max-width: 640px) {
  .mega__tabs { flex-wrap: nowrap; overflow-x: auto; padding: 14px 12px; gap: 6px; scrollbar-width: none; }
  .mega__tabs::-webkit-scrollbar { display: none; }
  .mega__label { display: none; }
  .mega__tab { flex: none; white-space: nowrap; padding: 6px 10px 6px 6px; }
  .mega__tab small { display: none; }
  .mega__ico { width: 30px; height: 30px; }
  .mega__panel-head { flex-direction: column; gap: 10px; }
  .mega__foot { padding: 14px 16px; gap: 10px; }
  .mega__foot-txt { font-size: 13px; }
}

/* Невысокие экраны ноутбуков: мегаменю компактнее, чтобы целиком помещалось без прокрутки */
@media (max-height: 720px) and (min-width: 1241px) {
  .mega__panel-head p, .mega__label { display: none; }
  .mega__panel-head { padding-bottom: 10px; margin-bottom: 10px; align-items: center; }
  .mega__body { padding: 16px 24px 14px; }
  .mega__tabs { padding: 10px 10px; }
  .mega__tab { padding: 3px 10px; font-size: 13px; }
  .mega__ico { width: 28px; height: 28px; border-radius: 9px; }
  .mega__group { margin-bottom: 8px; }
  .mega__group a { padding: 2px 8px; font-size: 12.5px; line-height: 1.3; }
  .mega__foot { padding: 8px 14px 8px 22px; }
  .mega__foot .btn { min-height: 40px; }
}

/* Продающие пункты: на компьютере «заголовок — пояснение» в строку, на телефоне — две аккуратные строки */
.hero__usp i { font-style: normal; }
.hero__usp i::before { content: " — "; }
.hero__kicker b { font-weight: 600; letter-spacing: .02em; }
@media (max-width: 640px) {
  .hero__usp { gap: 12px; }
  .hero__usp li { align-items: flex-start; }
  .hero__usp b, .hero__usp i { display: block; }
  .hero__usp i::before { content: none; }
  .hero__usp i { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
  .hero__kicker { font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; padding: 5px 12px 5px 5px; gap: 8px; }
  .hero__kicker b { font-size: 10.5px; padding: 3px 8px; }
  .hero h1 { text-wrap: balance; }
}
.k-short { display: none; }
@media (max-width: 380px) {
  .k-long { display: none; }
  .k-short { display: inline; }
  .hero__usp b { font-size: 14px; }
  .hero__usp i { font-size: 12.5px; }
  .header__mob { gap: 6px; }
  .phone-ico, .burger { width: 40px; height: 40px; border-radius: 12px; }
  .logo__mark, .header.is-stuck .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 17px; }
  .logo__tag { font-size: 7px; }
}

/* Карточка «Чаще выбирают» справа в мегаменю */
.mega__aside { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; color: #fff; background: linear-gradient(155deg, var(--deep-2), var(--deep)); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--deep) 80%, transparent); }
.mega__aside::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 45%, transparent), transparent); }
.mega__aside-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hl); }
.mega__aside ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mega__aside li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 13px; line-height: 1.3; }
.mega__aside li a b { white-space: nowrap; font-weight: 600; color: var(--hl); }
.mega__aside li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mega__aside-price { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.mega__aside-price small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep); opacity: .8; }
.mega__aside-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--on-deep); }
.mega__aside-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-deep); }
.mega__aside-note .i { width: 14px; height: 14px; color: var(--hl); }
@media (max-width: 1240px) { .mega__row { grid-template-columns: 1fr; } .mega__aside { display: none; } }

/* ---------- Всплывающее окно заявки: форма слева, контакты справа ---------- */
.modal__box--wide { width: min(940px, 100%); display: grid; grid-template-columns: 1fr 300px; background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); animation: megaIn .3s cubic-bezier(.2,.7,.2,1); }
.modal__box--wide .modal__close { background: #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.mform { display: grid; gap: 16px; align-content: start; padding: 36px 36px 32px; }
.mform__head { display: flex; align-items: center; gap: 14px; }
.mform__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--g2) 90%, transparent); flex: none; }
.mform__head h3 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.mform__lead { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.mform__service { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--mint); border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.mform__service .i { width: 22px; height: 22px; color: var(--brand); flex: none; }
.mform__service small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mform__service b { font-size: 15px; font-weight: 600; color: var(--ink); }
.mform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { font-weight: 600; color: var(--ink); font-size: 14px; }
.field input, .field select { font-weight: 400; background: #fff; }
.req { font-style: normal; color: var(--warm); }
.consent { font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 0; }
.consent a { color: var(--brand); }
.mform__note { display: flex; gap: 10px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.mform__note .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.mform__side { padding: 40px 30px 30px; background: linear-gradient(180deg, var(--mint), var(--mist)); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.mform__side-title { font-size: 18px; font-weight: 600; line-height: 1.3; padding-right: 30px; }
.mform__side p { margin: 0; font-size: 14px; color: var(--ink-2); }
.mform__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mform__phone .i { color: var(--brand); }
.mform__msgr { display: flex; gap: 8px; }
.mform__side hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.mform__side .mform__safe { display: flex; gap: 8px; font-size: 13px; }
.mform__safe .i { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 2px; }
.mform__side .mform__small { font-size: 12.5px; color: var(--ink-3); }
.mform.is-sent .form__ok { display: block; }
@media (max-width: 860px) {
  .modal { align-items: start; overflow-y: auto; }
  .modal__box--wide { grid-template-columns: 1fr; margin: 12px 0; }
  .mform__side { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .mform { padding: 28px 20px 22px; }
  .mform__row { grid-template-columns: 1fr; }
  .mform__head h3 { font-size: 23px; }
}
/* Мегаменю: карточка «Чаще выбирают» — только на широких экранах, иначе ссылкам тесно */
@media (max-width: 1499px) { .mega__row { grid-template-columns: 1fr; } .mega__aside { display: none; } }

/* ---------- Мобильное меню: панель справа, простой список ---------- */
.no-scroll, .no-scroll body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 55%, transparent); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); display: flex; flex-direction: column; background: #fff; border-radius: 26px 0 0 26px; box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .logo__mark { width: 38px; height: 38px; }
.drawer__head .logo__name { font-size: 19px; }
.drawer__head .logo__tag { font-size: 8px; }
.drawer__close { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--mint); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 14px 20px; overscroll-behavior: contain; }
.drawer__label { display: block; margin: 8px 8px 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.drawer__label ~ .drawer__label { margin-top: 20px; }
.drawer__sec { border-radius: 16px; transition: background-color .2s; }
.drawer__sec[open] { background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.drawer__sec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 8px; cursor: pointer; }
.drawer__sec summary::-webkit-details-marker { display: none; }
.drawer__ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--brand); flex: none; }
.drawer__ico .i { width: 19px; height: 19px; }
.drawer__sec[open] .drawer__ico { background: var(--grad); color: #fff; }
.drawer__name { font-weight: 600; font-size: 15px; }
.drawer__sec summary small { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.drawer__chev { width: 18px; height: 18px; color: var(--brand); transition: transform .25s; }
.drawer__sec[open] .drawer__chev { transform: rotate(45deg); }
.drawer__list { display: grid; padding: 0 14px 14px 56px; }
.drawer__group { margin: 10px 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.drawer__list a { padding: 6px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.drawer__list a:active { color: var(--brand); }
.drawer__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--brand) !important; }
.drawer__all .i { width: 15px; height: 15px; }
.drawer__links { display: grid; }
.drawer__links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 8px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.drawer__links a .i { width: 16px; height: 16px; color: var(--ink-3); }
.drawer__foot { display: grid; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--mist)); }
.drawer__phone { display: flex; flex-direction: column; font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.2; }
.drawer__phone small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.drawer__msgr { display: flex; align-items: center; gap: 8px; }
.drawer__msgr span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.drawer__msgr span .i { width: 15px; height: 15px; color: var(--brand); }
@media (min-width: 1241px) { .drawer { display: none; } }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__backdrop { transition: none; } }

/* Мегаменю: длинные группы продолжаются в соседней колонке, «Все услуги» — у заголовка */
.mega__group { break-inside: auto; }
.mega__group h4 { break-after: avoid; }
.mega__group a { break-inside: avoid; }
.mega__panel-head .mega__all { flex: none; margin-top: 6px; padding: 8px 14px; border-radius: 99px; background: var(--mint); white-space: nowrap; }
.mega__panel-head .mega__all:hover { background: var(--mint-2); }
@media (max-height: 900px) and (min-width: 1241px) {
  .mega__panel-head p { display: none; }
  .mega__panel-head { align-items: center; }
}

/* Мегаменю: чуть плотнее по вертикали, чтобы помещалось в экран высотой 800 px */
.mega__group a { padding-top: 4px; padding-bottom: 4px; }
.mega__group { margin-bottom: 16px; }
.mega__panel-head { margin-bottom: 18px; }
.mega__tab { padding-top: 6px; padding-bottom: 6px; }
.mega__tabs { gap: 4px; }
@media (max-height: 900px) and (min-width: 1241px) {
  .mega__aside { padding: 20px; gap: 10px; }
  .mega__aside li a { padding: 7px 0; }
  .mega__aside-price, .mega__aside-note { display: none; }
}
@media (max-height: 900px) and (min-width: 1241px) {
  .mega__tabs { padding-top: 14px; padding-bottom: 14px; gap: 3px; }
  .mega__tab { padding-top: 5px; padding-bottom: 5px; }
}

/* Закреплённая шапка: капсула меню компактнее, чтобы логотип слева и телефон справа не перекрывались */
.nav, .nav__link { transition: padding .3s, font-size .3s, background-color .2s, color .2s; }
.header.is-stuck .nav { padding: 4px; }
.header.is-stuck .nav__link { padding: 10px clamp(9px, 1vw, 20px); font-size: 13px; }
.header.is-stuck .nav__sep { margin: 0 clamp(4px, .6vw, 10px); }

/* Плашка cookie — компактная, внизу слева */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(400px, calc(100vw - 40px)); padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--deep) 50%, transparent), inset 0 0 0 1px var(--line); animation: megaIn .35s cubic-bezier(.2,.7,.2,1); }
.cookie[hidden] { display: none; }
.cookie__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.cookie__title .i { width: 20px; height: 20px; color: var(--brand); }
.cookie p { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cookie p a { font-weight: 600; }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__btns .btn { min-height: 44px; }
.cookie__no { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.cookie__no:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* Подвал: адаптив */
@media (max-width: 1240px) {
  .fmain { grid-template-columns: 1fr 1fr; }
  .fnav { grid-column: 1 / -1; order: 3; }
  .ftrust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer { border-radius: 28px 28px 0 0; }
  .ftrust { grid-template-columns: 1fr; padding-top: 24px; }
  .fmain { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .fnav { grid-template-columns: 1fr 1fr; }
  .fnav > div:first-child { grid-column: 1 / -1; }
  .flegal__bottom { flex-direction: column; align-items: flex-start; }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* Мегаменю в закреплённой шапке — той же ширины, что в обычной, по центру */
@media (min-width: 1241px) {
  .header.is-stuck .mega { left: 50%; right: auto; width: min(var(--mega-w, 1340px), calc(100vw - 32px)); margin-left: calc(min(var(--mega-w, 1340px), calc(100vw - 32px)) / -2); }
}

/* Нижняя полоса мегаменю: когда справа есть карточка с кнопкой «Вызвать врача» — тут мессенджеры, без дубля кнопки */
.mega__foot-msgr { position: relative; display: none; gap: 8px; }
.mega__foot-msgr .msgr { width: 40px; height: 40px; }
@media (min-width: 1500px) {
  .mega__foot-msgr { display: flex; }
  .mega__foot-btn { display: none; }
}

/* Шапка: рейтинг и адрес между логотипом и контактами */
.header__mid { flex: 1; display: flex; justify-content: center; gap: 12px; min-width: 0; }
.hchip { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.hchip:hover { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, var(--line)), 0 10px 20px -16px color-mix(in srgb, var(--deep) 60%, transparent); transform: translateY(-1px); }
.hchip__big { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 11px; background: #fff7e6; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hchip__big .i { width: 18px; height: 18px; color: #f2a516; fill: #f2a516; }
.hchip__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--brand); }
.hchip__ico .i { width: 20px; height: 20px; }
.hchip__txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.hchip__txt b { font-size: 14px; font-weight: 600; }
.hchip__txt small { font-size: 12px; color: var(--ink-3); }
.hchip:hover .hchip__txt small { color: var(--brand); }
.hchip__stars { display: flex; gap: 1px; }
.hchip__stars .i { width: 13px; height: 13px; color: #f2a516; fill: #f2a516; }
/* мало места — сначала прячем адрес, потом и рейтинг */
@media (max-width: 1560px) { .header__mid .hchip:last-child { display: none; } }
@media (max-width: 1240px) { .header__mid { display: none; } }

/* Рейтинг и адрес в шапке — без плашек: просто текст с иконками и тонкий разделитель */
.header__mid { gap: 0; }
.hchip, .hchip:hover { background: none; box-shadow: none; transform: none; border-radius: 0; padding: 4px 28px; }
.hchip + .hchip { border-left: 1px solid var(--line); }
.hchip__big { padding: 0; background: none; font-size: 24px; gap: 6px; }
.hchip__big .i { width: 20px; height: 20px; }
.hchip__ico { width: auto; height: auto; background: none; }
.hchip__ico .i { width: 24px; height: 24px; }
.hchip:hover .hchip__txt b { color: var(--brand); }

/* Самые востребованные услуги в меню: жирнее, фирменным цветом, с меткой «ТОП» */
.hot { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #fff; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; vertical-align: 2px; box-shadow: 0 4px 10px -6px color-mix(in srgb, var(--g2) 90%, transparent); }
.drawer__list a.is-hot { font-weight: 600; color: var(--brand-700); }
/* в мегаменю — мятная подложка, жирный шрифт и точка-акцент (без метки, чтобы не было переносов) */
.mega__group a.is-hot { position: relative; margin-top: 2px; margin-bottom: 2px; background: var(--mint); font-weight: 600; color: var(--brand-700); padding-left: 22px; margin-left: -10px; }
.mega__group a.is-hot::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1) 25%, transparent); }
.mega__group a.is-hot:hover { background: var(--mint-2); padding-left: 24px; }
/* Экраны высотой до 800 px (ноутбуки 1366×768): мегаменю плотнее, чтобы целиком помещалось */
@media (max-height: 800px) and (min-width: 1241px) {
  .mega__body { padding: 20px 30px 18px; }
  .mega__group { margin-bottom: 10px; }
  .mega__group a { padding-top: 3px; padding-bottom: 3px; font-size: 13.5px; }
  .mega__panel-head { margin-bottom: 12px; padding-bottom: 12px; }
  .mega__tabs { padding-top: 10px; padding-bottom: 10px; gap: 2px; }
  .mega__tab { padding-top: 4px; padding-bottom: 4px; }
  .mega__ico { width: 32px; height: 32px; }
  .mega__foot { padding-top: 10px; padding-bottom: 10px; }
}

/* Популярные услуги в мегаменю: без подложки — жирный шрифт тёплого акцентного цвета и точка слева */
.mega__group a.is-hot, .mega__group a.is-hot:hover { background: none; color: #d9652b; }
.mega__group a.is-hot:hover { background: #fff3ea; }
.drawer__list a.is-hot { color: #d9652b; }

/* ---------- Фото клиники ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 22px; background: var(--mint); cursor: zoom-in; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 55%, transparent), transparent 45%); pointer-events: none; }
.gallery__item span { position: absolute; z-index: 1; left: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.num__img { flex: 1; width: 100%; min-height: 220px; object-fit: cover; }
.faq__photo { margin-top: 28px; width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--deep) 80%, transparent); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: #fff; font-weight: 600; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 640px) { .gallery { grid-auto-rows: 150px; gap: 10px; } .gallery__item { border-radius: 16px; } .gallery__item span { font-size: 12.5px; left: 12px; bottom: 10px; } }

/* Акции: 5 карточек — две крупные сверху, три снизу */
.promos { grid-template-columns: repeat(6, 1fr); }
.promos .promo { grid-column: span 2; }
.promos .promo:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 1024px) { .promos { grid-template-columns: 1fr 1fr; } .promos .promo, .promos .promo:nth-child(-n+2) { grid-column: span 1; } .promos .promo:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .promos { grid-template-columns: 1fr; } .promos .promo:last-child { grid-column: span 1; } }
@media (max-width: 640px) { .gallery__item:first-child { grid-row: span 1; } .gallery { grid-auto-rows: 140px; } }

/* Форма заявки: слева — карточка дежурного врача, телефон и мессенджеры */
.lead-form__text { display: flex; flex-direction: column; }
.duty { margin-top: auto; padding-top: 28px; display: grid; gap: 16px; }
.duty__doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.duty__photo { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: visible; background: rgba(255,255,255,.15); }
.duty__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.duty__photo .topbar__dot { position: absolute; right: 2px; bottom: 4px; width: 12px; height: 12px; box-shadow: 0 0 0 3px var(--deep); }
.duty__doc small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl); }
.duty__doc b { display: block; font-size: 17px; color: #fff; margin: 2px 0; }
.duty__doc span { font-size: 13px; color: var(--on-deep); }
.duty__contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.duty__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.duty__phone .i { width: 22px; height: 22px; color: var(--hl); }
.duty__msgr { display: flex; gap: 8px; }
@media (max-width: 640px) { .duty__phone { font-size: 22px; } }

/* SEO-текст главной: на всю ширину и красивое содержание */
.article--wide { grid-template-columns: 300px 1fr; gap: 64px; }
.article--wide .prose { max-width: none; }
.toc--card { counter-reset: toc; padding: 24px 20px 20px; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--deep) 40%, transparent), inset 0 0 0 1px var(--line); }
.toc--card b { display: block; margin: 0 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.toc__bar { display: block; height: 4px; margin: 0 4px 14px; border-radius: 2px; background: var(--mint); overflow: hidden; }
.toc__bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 2px; transition: width .2s; }
.toc--card a { counter-increment: toc; position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.toc--card a::before { content: counter(toc, decimal-leading-zero); flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--mint); transition: background .2s, color .2s; }
.toc--card a:hover { background: var(--mist); color: var(--ink); }
.toc--card a.is-active { background: var(--mint); color: var(--brand-700); font-weight: 600; }
.toc--card a.is-active::before { background: var(--grad); color: #fff; }
@media (max-width: 1024px) { .article--wide { grid-template-columns: 1fr; gap: 28px; } .toc--card { position: static; } }
.toc--card { top: 140px; }

/* ---------- Закреплённая шапка без рывков ---------- */
.header { position: relative; }
.header-spacer { height: 0; }
.header.is-stuck { position: fixed; top: 0; left: 0; right: 0; animation: hdrIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes hdrIn { from { transform: translateY(-100%); } }
.header__row { transition: none; }
.header.is-stuck .header__row { display: none; }
@media (max-width: 1240px) {
  .header.is-stuck .header__row { display: flex; max-height: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .header.is-stuck { animation: none; } }

/* Первый экран: «Наркологическая клиника» в одну строку, город — второй строкой */
.hero h1 .h1__line { display: block; white-space: nowrap; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.hero h1 .h1__city { display: block; }
.hero h1 { font-size: clamp(30px, 2.45vw, 50px); }
.hero__glass { max-width: min(760px, 50%); }
@media (max-width: 1024px) { .hero__glass { max-width: 640px; } .hero h1 { font-size: 34px; } }
@media (max-width: 640px) { .hero h1 .h1__line { white-space: normal; } .hero h1 { font-size: 27px; } }
@media (max-width: 380px) { .hero h1 { font-size: 23px; } }

/* Тень первого экрана мягче и не ложится на полосу плашек */
.hero__card { box-shadow: 0 24px 48px -36px color-mix(in srgb, var(--deep) 55%, transparent); }
.hero__trust { margin-top: 22px; }

/* Телефон: врачи и лицензии листаются вбок (следующая карточка выглядывает) */
@media (max-width: 640px) {
  .docs, .lic__docs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .docs::-webkit-scrollbar, .lic__docs::-webkit-scrollbar { display: none; }
  .docs > .doc { flex: 0 0 78%; scroll-snap-align: start; }
  .lic__docs > .lic__doc { flex: 0 0 62%; scroll-snap-align: start; }
  .docs > [data-reveal], .lic__docs > [data-reveal] { opacity: 1; transform: none; }
}
/* Узкие телефоны: таблица цен не шире экрана */
@media (max-width: 640px) {
  .price-table { table-layout: fixed; }
  .price-table th, .price-table td { padding: 12px 8px; }
  .price-table td:first-child, .price-table th:first-child { overflow-wrap: anywhere; }
  .price-table td:last-child, .price-table th:last-child { width: 104px; white-space: normal; font-size: 14px; }
}

.ratings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ratings-grid > * { min-width: 0; }
@media (max-width: 1024px) { .ratings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ratings-grid .rating { padding-left: 0; border-left: 0; } }
@media (max-width: 380px) { .ratings-grid { grid-template-columns: 1fr; } }
/* Заголовок первого экрана подстраивается под ширину плашки (а не окна) — «Наркологическая клиника» всегда в одну строку */
@media (min-width: 641px) {
  .hero__glass { container-type: inline-size; }
  .hero h1 { font-size: clamp(24px, 5.6cqi, 50px); }
}

/* Заголовок: «Наркологическая» / «клиника в Саратове» — по строке, размер по ширине плашки на всех экранах */
.hero__glass { container-type: inline-size; }
.hero h1 .h1__line { display: block; white-space: nowrap; }
.hero h1 .h1__city { display: inline; }
.hero h1 { font-size: clamp(20px, 7cqi, 64px); }
@media (max-width: 640px) { .hero h1 .h1__line { white-space: nowrap; } .hero h1 { font-size: clamp(20px, 7cqi, 40px); } }
@media (max-width: 380px) { .hero h1 { font-size: clamp(16px, 7cqi, 30px); } }

/* Плашка первого экрана — по ширине содержимого: правый край сразу за «в Саратове» */
@media (min-width: 641px) {
  .hero__glass { container-type: normal; width: fit-content; max-width: min(820px, 58%); padding-right: 44px; }
  .hero h1 { font-size: clamp(30px, 2.65vw, 54px); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .hero__glass { max-width: 100%; }
  .hero h1 { font-size: clamp(30px, 4.4vw, 42px); }
}

/* Плашки-примечания в текстах (.note): белая карточка со значком «!» вместо оранжевой полосы */
.prose .note {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0 0; padding: 18px 22px 18px 18px;
  border: 0; border-left: 0; border-radius: 20px;
  background: #fff; font-size: 15.5px; line-height: 1.55; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -24px color-mix(in srgb, var(--deep) 45%, transparent);
}
.prose .note::before {
  content: "!"; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--g2) 90%, transparent), 0 0 0 5px color-mix(in srgb, var(--g1) 14%, transparent);
}
.prose .note::after {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 16%, transparent), transparent);
}

/* ===== Поиск по сайту (окно #search) ===== */
button.nav__link { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.search { place-items: start center; padding: clamp(16px, 9vh, 110px) 16px 16px; }
.search__box { width: min(720px, 100%); max-height: calc(100dvh - clamp(32px, 12vh, 130px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); overflow: hidden; animation: megaIn .25s cubic-bezier(.2,.7,.2,1); }
.search__field { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 22px; border-bottom: 1px solid var(--line); }
.search__field > .i { width: 22px; height: 22px; color: var(--brand); flex: none; }
.search__field input { flex: 1; min-width: 0; min-height: 56px; border: 0; outline: none; background: none; font: inherit; font-size: 18px; color: var(--ink); }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mint); color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.search__hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 22px 22px; }
.search__hints small { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.search__hints button { border: 1px solid var(--line); background: var(--mist); color: var(--ink); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.search__hints button:hover { border-color: var(--brand); background: #fff; }
.search__hints[hidden] { display: none; }
.search__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.search__list:empty { display: none; }
.search__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.search__list a:hover, .search__list .is-sel a { background: var(--mist); }
.search__list b { display: block; font-weight: 600; line-height: 1.35; }
.search__list small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.search__list em { flex: none; font-style: normal; font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.search__list mark { background: color-mix(in srgb, var(--g1) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search__empty { padding: 26px 22px 28px; text-align: center; }
.search__empty[hidden] { display: none; }
.search__empty b { display: block; font-size: 18px; }
.search__empty p { margin: 6px auto 16px; max-width: 380px; color: var(--ink-2); }
.drawer__search { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 18px; padding: 0 16px; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-3); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.drawer__search .i { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 640px) {
  .search { padding: 0; }
  .search__box { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .search__field input { font-size: 16px; }
  .search__list em { display: none; }
}

/* ===== Страница услуги с текстом: цифры, пакеты, этапы, прайс-список ===== */
.facts-bar { padding: 28px 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.fact b { font-size: clamp(24px, 2vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.fact span { font-size: 14px; color: var(--ink-2); }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -32px rgba(11,74,85,.45); transition: transform .25s, box-shadow .25s; }
.pack:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(11,74,85,.55); }
.pack h3 { font-size: 22px; font-weight: 700; }
.pack__note { margin: 8px 0 20px; font-size: 14px; line-height: 1.45; color: var(--ink-3); min-height: 3em; }
.pack__price { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 22px; color: var(--deep); }
.pack__price small { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pack ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 11px; font-size: 14.5px; line-height: 1.45; }
.pack li { position: relative; padding-left: 22px; }
.pack li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.pack .btn { margin-top: auto; }
.pack--pop { background: linear-gradient(160deg, var(--deep-2), var(--deep) 70%); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(11,74,85,.8); }
.pack--pop .pack__note { color: rgba(255,255,255,.72); }
.pack--pop .pack__price { color: #fff; }
.pack--pop .pack__price small { color: rgba(255,255,255,.7); }
.pack--pop ul { border-color: rgba(255,255,255,.22); }
.pack--pop li::before { background: var(--g1); box-shadow: 0 0 0 4px rgba(53,220,182,.18); }
.pack__flag { position: absolute; top: -13px; left: 26px; padding: 5px 14px; border-radius: 99px; background: var(--warm); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { background: var(--deep-2); }
.packs__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 0; font-size: 14px; color: var(--ink-2); }
.packs__foot .i { width: 18px; height: 18px; color: var(--brand); }

.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.tstep { position: relative; padding: 26px 24px 24px; border-radius: 22px; background: var(--mist); border: 1px solid var(--line); }
.tstep__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 18px; }
.tstep:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -18px; width: 18px; height: 2px; background: var(--line); }
.tstep__time { position: absolute; top: 34px; right: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; color: var(--deep-2); }
.tstep__time .i { width: 15px; height: 15px; }
.tstep h3 { font-size: 18px; margin: 18px 0 8px; }
.tstep p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.plist { margin: 18px 0 0; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.prow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--mist); }
.prose .prow, .prose .prow:hover { text-decoration: none; color: var(--ink); }
.prow__name b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.prow__name small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.prow__price { font-size: 18px; font-weight: 700; color: var(--deep); white-space: nowrap; letter-spacing: -.01em; }
.prow__price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.prow__price em { font-style: normal; color: var(--brand); }
.prow__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--deep-2); transition: background .2s, color .2s; }
.prow__go .i { width: 16px; height: 16px; }
a.prow:hover .prow__go { background: var(--grad); color: #fff; }
a.prow:hover .prow__name b { color: var(--brand); }
.plist__foot { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

@media (max-width: 1100px) {
  .packs, .tsteps { grid-template-columns: repeat(2, 1fr); }
  .tstep:not(:last-child)::after { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .packs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 16px 16px 8px; scrollbar-width: none; }
  .packs::-webkit-scrollbar { display: none; }
  .pack { flex: 0 0 84%; scroll-snap-align: center; padding: 26px 20px 22px; }
  .tsteps { grid-template-columns: 1fr; gap: 12px; }
  .fact { padding: 16px 16px; }
  .fact span { font-size: 13px; }
  .prow { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 16px; }
  .prow__go { display: none; }
  .prow__name b { font-size: 15px; }
  .prow__price { font-size: 16px; }
}

/* ===== Страница цен: разделы и карточки групп ===== */
.tstep { background: #fff; }
.ptop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.ptop .price-search { flex: 1 1 420px; max-width: 560px; margin: 0; }
.ptop__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.ptop__trust span { display: inline-flex; align-items: center; gap: 6px; }
.ptop__trust .i { width: 17px; height: 17px; color: var(--brand); }
.pnav { position: sticky; top: 76px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px; margin: 0 0 36px; border-radius: 20px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 14px 30px -26px rgba(11,74,85,.5); }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: 1 0 auto; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.pnav a:hover, .pnav a.is-active { background: var(--mint); }
.pnav .i { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.pnav span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pnav small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pcat { scroll-margin-top: 170px; margin-bottom: 48px; }
.pcat__head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 22px 26px; margin-bottom: 18px; border-radius: 24px; background: linear-gradient(140deg, var(--deep-2), var(--deep) 75%); color: #fff; }
.pcat__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.12); color: var(--g1); }
.pcat__icon .i { width: 28px; height: 28px; }
.pcat__head h2 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; margin: 0; color: #fff; }
.pcat__head p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.74); max-width: 640px; }
.pcat__from { font-size: 26px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.pcat__from small { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); }
.pcat__more { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.pcat__more:hover { background: rgba(255,255,255,.22); }
.pcat__more .i { width: 16px; height: 16px; }
.pcat__groups { columns: 2; column-gap: 18px; }
.pgroup { break-inside: avoid; margin-bottom: 18px; }
.pgroup h3 { margin: 0 0 10px 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pgroup .plist { margin: 0; }
.pgroup .prow { padding: 13px 18px; }
.pgroup .prow__name b { font-size: 15px; font-weight: 500; }
.pgroup .prow__name small { color: var(--warm); font-weight: 600; font-size: 12px; }
.pgroup .prow__price { font-size: 16px; }
.pgroup .prow__go { width: 30px; height: 30px; }
.pcat[hidden], .pgroup[hidden], .prow[hidden] { display: none; }
.price-empty { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-align: center; }
.price-empty[hidden] { display: none; }
.pcalc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 30px 34px; margin-top: 12px; border-radius: 26px; background: var(--grad); color: #fff; }
.pcalc > div { flex: 1 1 380px; }
.pcalc h3 { font-size: 24px; margin: 0 0 6px; color: #fff; }
.pcalc p { margin: 0; color: rgba(255,255,255,.9); }
.reviews + .demo-note { margin-top: 20px; }

/* Карточка отзыва: услуга-ссылка, звёзды, аватар-инициал, кто пишет, дата и источник */
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
a.review__svc { text-decoration: none; transition: background .2s, color .2s; }
a.review__svc:hover { background: var(--grad); color: #fff; }
.review__stars .i.is-off { color: var(--line); fill: var(--line); }
.review footer { align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); justify-content: flex-start; }
.review__ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; }
.review__who { min-width: 0; }
.review__who b { display: block; font-size: 15px; }
.review__who small { display: block; font-size: 13px; color: var(--ink-3); }
.review__meta { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.review__meta a, .review__meta small { font-size: 12px; color: var(--brand); font-weight: 600; text-decoration: none; }

/* «Проверено врачом» — фото, ФИО, ссылка на страницу врача */
a.checked { text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
a.checked:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 16px 34px -26px rgba(11,74,85,.5); }
.checked__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mint); }
.checked b { display: block; font-size: 16px; margin: 1px 0 2px; }
.checked small.checked__label { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.checked__label .i { width: 14px; height: 14px; }
.checked__go { margin-left: auto; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--deep-2); transition: background .2s, color .2s; }
.checked__go .i { width: 16px; height: 16px; }
a.checked:hover .checked__go { background: var(--grad); color: #fff; }
.chief { text-decoration: none; min-width: 0; max-width: 100%; }
.chief > div { min-width: 0; }
.chief b { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.chief__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid #fff; }

/* Страница врача */
.vhero { grid-template-columns: 1fr minmax(260px, 380px) !important; }
.vhero__role { display: inline-block; margin: 6px 0 10px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.14); color: var(--g1); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.vhero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vhero__facts > div { padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.vhero__facts b { display: block; font-size: 20px; color: #fff; }
.vhero__facts span { font-size: 13px; color: rgba(255,255,255,.7); }
.vhero__photo { margin: 0; justify-self: end; width: 100%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--mint-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); border: 4px solid rgba(255,255,255,.18); }
.vhero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.vdoc__dirs { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.vdoc__dirs li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.vdoc__dirs li::before { display: none; }
.vdoc__dirs .i { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--mint); color: var(--deep-2); }
.vtime { list-style: none; padding: 0; margin: 0 0 8px; border-left: 2px solid var(--line); }
.vtime li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0 0 20px 22px; margin: 0; }
.vtime li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px #fff; }
.vtime__y { font-weight: 700; color: var(--deep-2); font-size: 15px; }
.vtime b { display: block; font-size: 16px; }
.vtime p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.vtime--sm li { padding-bottom: 14px; }
.vtime--sm b { font-weight: 500; font-size: 15px; }
.vprin { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vprin > div { padding: 18px 20px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); }
.vprin b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.vprin span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.vside { text-align: left; }
.vside__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid #fff; margin-bottom: 12px; }
.vside__note { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.vside__note .i { width: 15px; height: 15px; color: var(--brand); flex: none; }
@media (max-width: 900px) {
  .vhero { grid-template-columns: 1fr !important; }
  .vhero__photo { justify-self: start; max-width: 320px; order: -1; }
  .vdoc__dirs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vtime li { grid-template-columns: 1fr; gap: 2px; }
  .checked { padding: 14px 16px; gap: 12px; }
  .checked__go { display: none; }
}

/* Карта на странице «Контакты» */
.cmap { position: relative; min-height: 470px; border-radius: 28px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(11,74,85,.55); isolation: isolate; }
.cmap__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.cmap .leaflet-container { font: inherit; background: #e3eef0; }
.cmap .leaflet-tile-pane { filter: grayscale(.9) sepia(.25) hue-rotate(135deg) saturate(1.6) brightness(1.04) contrast(.95); }
.cmap .leaflet-control-zoom { border: 0; box-shadow: 0 10px 24px -14px rgba(11,74,85,.6); border-radius: 14px; overflow: hidden; margin: 16px 16px 0 0; }
.cmap .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; color: var(--deep); font-size: 20px; }
.cmap .leaflet-control-attribution { background: rgba(255,255,255,.75); font-size: 11px; color: var(--ink-3); border-radius: 8px 0 0 0; }
.cmap__marker { position: relative; }
.cmap__dot { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); border: 4px solid #fff; box-shadow: 0 8px 18px -6px rgba(11,74,85,.7); }
.cmap__dot::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--g2); opacity: 0; animation: cmapPulse 2.4s ease-out infinite; }
@keyframes cmapPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.cmap__tag { position: absolute; left: 22px; top: -17px; white-space: nowrap; padding: 6px 12px; border-radius: 10px; background: var(--deep); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 20px -10px rgba(11,74,85,.8); }
@media (prefers-reduced-motion: reduce) { .cmap__dot::after { animation: none; } }
.cmap::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 -80px 80px -60px rgba(11,74,85,.18); }
.cmap__card { position: absolute; left: 20px; bottom: 20px; z-index: 2; width: min(360px, calc(100% - 40px)); padding: 20px 20px 18px; border-radius: 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -24px rgba(11,74,85,.5); }
.cmap__head { display: flex; align-items: center; gap: 12px; }
.cmap__pin { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px var(--g2); }
.cmap__pin .i { width: 24px; height: 24px; }
.cmap__head b { display: block; font-size: 16px; }
.cmap__head small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.cmap__info { list-style: none; margin: 14px 0 16px; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.cmap__info li { display: flex; align-items: center; gap: 8px; }
.cmap__info .i { width: 16px; height: 16px; color: var(--brand); flex: none; }
.cmap__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmap__btns .btn { gap: 6px; padding: 0 12px; }
.cmap__btns .btn--ghost { background: var(--mint); }
.cmap__btns .i { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .cmap { min-height: 0; display: flex; flex-direction: column; border-radius: 22px; }
  .cmap__frame { position: relative; height: 320px; }
  .cmap__card { position: relative; left: 0; bottom: 0; width: 100%; border-radius: 0; box-shadow: none; background: #fff; }
}

/* Источники и литература — компактная свёрнутая строка после текста */
.sources { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sources summary::-webkit-details-marker { display: none; }
.sources summary .i { width: 18px; height: 18px; color: var(--brand); }
.sources summary small { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--mint); color: var(--deep-2); font-size: 12px; font-weight: 700; }
.sources summary:hover span { color: var(--brand); }
.sources .sources__chev { margin-left: auto; transition: transform .2s; }
.sources[open] .sources__chev { transform: rotate(45deg); }
.prose .sources ol { margin: 0 0 12px; padding-left: 22px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.prose .sources li { margin-bottom: 8px; }
.prose .sources li::marker { color: var(--ink-3); font-weight: 600; }
.prose .sources a { color: var(--brand); word-break: break-word; }
.prose .sources p { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); }

/* Вопросы и ответы: заголовок по центру, вопросы карточками под ним */
.faq--stack { display: block; }
.faq--stack .sec__head { text-align: center; margin-left: auto; margin-right: auto; max-width: 760px; }
.faq--stack .sec__head > svg, .faq--stack .sec__head .pulse { margin-left: auto; margin-right: auto; }
.faq__list { max-width: 1040px; margin: 0 auto; display: grid; gap: 10px; }
.faq--stack .qa { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 26px; transition: border-color .2s, box-shadow .2s; }
.faq--stack .qa:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.faq--stack .qa[open] { border-color: transparent; box-shadow: 0 0 0 2px var(--g2), 0 20px 40px -30px rgba(11,74,85,.5); }
.faq--stack .qa summary { padding: 20px 0; font-size: 17px; align-items: center; }
.faq--stack .qa summary .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--mint); }
.faq--stack .qa[open] summary .i { background: var(--grad); color: #fff; }
.faq--stack .qa p { max-width: none; margin: -4px 0 22px; font-size: 15.5px; line-height: 1.6; }
.faq__more { max-width: 1040px; margin: 22px auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.faq__more a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) {
  .faq--stack .qa { padding: 0 16px; border-radius: 14px; }
  .faq--stack .qa summary { font-size: 15.5px; padding: 16px 0; gap: 12px; }
  .faq--stack .qa summary .i { width: 30px; height: 30px; padding: 7px; }
}
@media (max-width: 1600px) {
  .pnav a { padding: 9px 11px; column-gap: 8px; }
  .pnav small { display: none; }
  .pnav .i { grid-row: auto; }
}
@media (max-width: 1440px) and (min-width: 1101px) { .pnav .i { display: none; } .pnav a { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 1100px) {
  .pcat__groups { columns: 1; }
  .pcat__head { grid-template-columns: auto 1fr auto; }
  .pcat__more { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .pnav { top: 64px; margin: 0 -16px 28px; border-radius: 0; border-left: 0; border-right: 0; }
  .pcat__head { grid-template-columns: auto 1fr; gap: 12px 14px; padding: 18px; }
  .pcat__head p { display: none; }
  .pcat__from { grid-column: 1 / -1; font-size: 22px; }
  .pcat__icon { width: 44px; height: 44px; }
  .pcalc { padding: 24px 20px; }
  .pcalc .btn { width: 100%; }
}

/* Ловушка для ботов в формах — человек это поле не видит */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Прилипающая шапка: пока не прилипла, логотип и телефон скрыты и для программ чтения экрана */
.stuck-logo, .stuck-phone { visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
.header.is-stuck .stuck-logo, .header.is-stuck .stuck-phone { visibility: visible; transition: opacity .3s, transform .3s, visibility 0s; }

/* Мобильная версия: карточки доверия под первым экраном — текст не упирается в край */
@media (max-width: 640px) {
  .hero__trust div { padding: 14px 12px; gap: 10px; }
  .hero__trust b { font-size: clamp(14px, 4.3vw, 17px); letter-spacing: 0; }
  .hero__trust span { min-width: 0; }
  .hero__trust .i { width: 22px; height: 22px; flex: none; }
}
@media (max-width: 380px) {
  .hero__trust { grid-template-columns: 1fr; }
}

/* Блок «О нас в цифрах»: главный врач под текстом, а не сбоку — ФИО не рвётся */
@media (max-width: 900px) {
  .num--chief { flex-direction: column; align-items: flex-start; }
  .num--chief .chief { width: 100%; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--deep) 12%, transparent); }
}

/* Узкие экраны (320–400 px): ничего не упирается в края и не рвётся посреди слова */
@media (max-width: 400px) {
  .adv__card { padding: 20px; }
  .adv__card h3 { font-size: 19px; max-width: none; }
  .family__item b { font-size: 16px; }
  .sos { padding: 18px; }
  .sos__rows div { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; font-size: 13px; }
  .cmap__btns { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .family__item b { font-size: 14.5px; letter-spacing: -.01em; }
}
@media (max-width: 400px) {
  .subnav a { flex-wrap: wrap; row-gap: 2px; }
  .subnav a small { white-space: nowrap; }
}

/* Кардиограмма: постоянная линия на всю ширину блока + бегущий импульс поверх */
/* Кардиограмма-«комета»: линия на всю ширину, её открывает бегущая маска — яркий импульс и гаснущий хвост */
.ecg { left: 0; right: 0; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.55) 45%, #000 49.2%, transparent 50%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.55) 45%, #000 49.2%, transparent 50%, transparent 100%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: ecgSweep 5.5s linear infinite; }
.ecg path, .ecg path.ecg__line { stroke: var(--g1); stroke-width: 2; stroke-dasharray: none; animation: none; filter: drop-shadow(0 0 6px var(--g1)); }
@keyframes ecgSweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ecg { animation: none; -webkit-mask-image: none; mask-image: none; opacity: .25; }
}

/* Внутренние страницы: текст и боковая карточка рядом по центру, без пустоты посередине широкого экрана */
.side { grid-template-columns: minmax(0, 1fr) 360px; justify-content: stretch; gap: 56px; }
.side > .prose { max-width: none; }
@media (max-width: 1100px) { .side { grid-template-columns: 1fr; } }

/* Оглавление-«таблетки» в начале текста */
.toc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.prose .toc-pills a { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.prose .toc-pills a:hover { border-color: var(--brand); color: var(--brand); }
.prose .toc-pills a.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Панель разделов, прилипающая под шапкой при прокрутке */
.anchorbar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -22px rgba(11,74,85,.6); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.anchorbar.is-on { transform: none; opacity: 1; pointer-events: auto; }
.anchorbar__in { max-width: var(--wrap); margin: 0 auto; padding: 10px clamp(16px, 3vw, 48px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.anchorbar__in::-webkit-scrollbar { display: none; }
.anchorbar a { flex: none; padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.anchorbar a:hover { background: var(--mist); color: var(--ink); }
.anchorbar a.is-active { background: var(--deep); color: #fff; }
.prose h2[id] { scroll-margin-top: 150px; }
@media (max-width: 640px) { .anchorbar a { padding: 7px 13px; font-size: 13px; } }

/* Цены на странице услуги — строки как в прайсе; текущая страница отмечена */
.plist--compact .prow { padding: 13px 18px; }
.plist--compact .prow__name b { font-size: 15.5px; font-weight: 500; }
.plist--compact .prow__name small { color: var(--warm); font-weight: 600; font-size: 12px; }
.plist--compact .prow__price { font-size: 16px; }

/* Доступность: бирюзовый ТЕКСТ — на тон темнее (контраст ≥ 4,5:1 на белом и светлом фоне). Иконки и кнопки — прежние. */
a, .hinfo small, .mega__group h4, .mega__all, .sos__head small, .doc__exp, .side__links a.is-active, .post__body small,
.stuck-phone__txt small, .mform__service small, .consent a, .drawer__group, .drawer__all, .drawer__phone small,
.toc--card b, .search__list em, .prow__price em, .review__meta a, .review__meta small, .checked small.checked__label,
.prose .sources a, .faq__more a, .eyebrow, .cookie p a, .plist__foot a { color: var(--brand-ink); }
.drawer__all { color: var(--brand-ink) !important; }

/* Оранжевый ТЕКСТ на светлом фоне — тёмный оттенок (контраст ≥ 4,5:1). Кнопки и плашки — прежние. */
.pgroup .prow__name small, .plist--compact .prow__name small, .req, .mega__group a.is-hot, .mega__group a.is-hot:hover { color: #c2410c; }

/* Панель разделов — нижняя часть прилипшей шапки */
.header .anchorbar { position: absolute; top: 100%; left: 0; right: 0; }
.header:not(.is-stuck) .anchorbar { display: none; }
.header .anchorbar { background: #fff; backdrop-filter: none; }
/* Главная: кардиограмма на первом экране не нужна (решение владельца) — только в зелёных блоках внутренних страниц */
.hero__card .ecg { display: none; }

/* Листание фото в окне просмотра */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: background .2s, transform .2s; z-index: 2; }
.lightbox__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox__nav .i { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--prev .i { transform: rotate(180deg); }
.lightbox__nav--next { right: 24px; }
.lightbox.is-single .lightbox__nav { display: none; }
.lightbox img { touch-action: pan-y; user-select: none; }
@media (max-width: 700px) {
  .lightbox__nav { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
  .lightbox__nav:hover { transform: none; }
  .lightbox__nav--prev { left: calc(50% - 58px); }
  .lightbox__nav--next { right: calc(50% - 58px); }
}

/* Ответ появляется мягко, пока раскрывается карточка */
.qa > p { transition: opacity .3s ease; }
.qa.is-closing > p { opacity: 0; }

/* Плашка «Выбирают чаще» — над рамкой карточки, не сдвигает содержимое.
   Правило [data-spot] > * (подсветка) ставило ей position: relative — плашка вставала в поток и опускала заголовок и цену. */
.tariff > .tariff__flag, .pack > .pack__flag { position: absolute; z-index: 2; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 5px 14px; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(11,74,85,.45); }
/* Строки карточек на одном уровне: заголовок, подпись, цена, список, кнопка (subgrid) */
@supports (grid-template-rows: subgrid) {
  .tariffs .tariff { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .tariffs .tariff__note { min-height: 0; }
  .tariffs .tariff .btn { align-self: end; }
}

/* «Клиника и семье»: две колонки целиком, без переноса пунктов группы в соседнюю колонку */
.mega__panel[data-panel="more"] .mega__cols { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 0 56px; align-items: start; }
.mega__panel[data-panel="more"] .mega__group { break-inside: avoid; }

/* Ширина мегаменю не зависит от строки меню: иначе при узкой строке колонки «Наркомании» и «Кодирования»
   вытягиваются вниз и всё меню становится высоким. Ширина — до 1400 px, по центру, в обычной и закреплённой шапке. */
@media (min-width: 1241px) {
  .mega, .header.is-stuck .mega { left: 50%; right: auto; min-width: 0; width: min(1400px, calc(100vw - 48px)); margin-left: calc(min(1400px, calc(100vw - 48px)) / -2); }
}

/* Мегаменю закрывается плавно (класс ставит main.js, когда мышь ушла с меню) */
.mega.is-open.is-closing { animation: megaOut .22s ease forwards; pointer-events: none; }
@keyframes megaOut { to { opacity: 0; transform: translateY(-8px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .mega.is-open.is-closing { animation-duration: .01s; } }

/* Плашка над H1 на главной: на телефоне — только «24/7 Наркологическая помощь», без хвоста; и никогда не шире карточки */
.hero__kicker { max-width: 100%; }
.hero__kicker > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .hero__kicker .k-long { display: none; } }

/* Плашки доверия на главной: на телефоне — короткие подписи в одну строку, карточки одной высоты */
.hero__trust i { font-style: normal; }
.t-short { display: none; }
@media (max-width: 640px) {
  .hero__trust .t-long { display: none; }
  .hero__trust .t-short { display: inline; }
  .hero__trust > div { align-items: center; }
  .hero__trust span { white-space: nowrap; min-width: 0; }
}

/* Телефон: отзывы на главной листаются вбок, как врачи (следующая карточка выглядывает); карточки одной высоты */
@media (max-width: 640px) {
  .reviews--slide { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reviews--slide::-webkit-scrollbar { display: none; }
  .reviews--slide > .review { flex: 0 0 86%; scroll-snap-align: start; padding: 22px 20px; }
  .reviews--slide > [data-reveal] { opacity: 1; transform: none; }
}

/* Телефон: окно заявки — компактная шторка снизу (выезжает), всё нужное видно без прокрутки */
@media (max-width: 640px) {
  #modal-call.modal { align-items: end; padding: 0; overflow: hidden; }
  #modal-call .modal__box--wide { margin: 0; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 24px 24px 0 0; animation: sheetUp .32s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  #modal-call .modal__close { top: 12px; right: 12px; width: 36px; height: 36px; box-shadow: none; background: var(--mint); }
  #modal-call .mform { gap: 12px; padding: 18px 16px 14px; }
  #modal-call .mform__head { gap: 10px; padding-right: 40px; }
  #modal-call .mform__ico { width: 38px; height: 38px; box-shadow: none; }
  #modal-call .mform__ico .i { width: 18px; height: 18px; }
  #modal-call .mform__head h3 { font-size: 20px; }
  #modal-call .mform__lead { font-size: 13.5px; line-height: 1.45; }
  /* «Заявка по услуге» — одной строкой, без рамки */
  #modal-call .mform__service { padding: 8px 12px; border-radius: 12px; gap: 8px; }
  #modal-call .mform__service small { display: inline; font-size: 10.5px; margin-right: 6px; }
  #modal-call .mform__service b { font-size: 13.5px; }
  #modal-call .mform__service .i { width: 18px; height: 18px; }
  #modal-call .mform__row { gap: 10px; }
  #modal-call .field { font-size: 13px; }
  #modal-call .field input { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  #modal-call .consent { font-size: 12px; line-height: 1.4; gap: 10px; }
  #modal-call .mform__note { font-size: 11.5px; line-height: 1.4; }
  #modal-call .mform .btn { min-height: 50px; }
  /* Контакты — одной полосой: телефон и мессенджеры, без заголовка и пояснений */
  #modal-call .mform__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px 14px; background: var(--mint); border-top: 1px solid var(--line); }
  #modal-call .mform__side-title, #modal-call .mform__side > p:not(.mform__small), #modal-call .mform__side hr { display: none; }
  #modal-call .mform__phone { font-size: 17px; gap: 8px; }
  #modal-call .mform__msgr .msgr { width: 38px; height: 38px; }
  #modal-call .mform__side .mform__small { flex-basis: 100%; font-size: 11.5px; text-align: center; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { #modal-call .modal__box--wide { animation: none; } }

/* Шторка заявки на телефоне — ещё компактнее: панель браузера снизу не должна закрывать телефон и мессенджеры */
.m-short { display: none; }
@media (max-width: 640px) {
  #modal-call .m-long { display: none; }
  #modal-call .m-short { display: inline; }
  #modal-call .modal__box--wide { max-height: 88dvh; }
  #modal-call .mform { gap: 10px; padding: 16px 16px 12px; }
  #modal-call .mform__head h3 { font-size: 19px; }
  /* Услуга — строго в одну строку */
  #modal-call .mform__service { padding: 7px 12px; white-space: nowrap; }
  #modal-call .mform__service > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #modal-call .mform__service small { font-size: 10px; letter-spacing: .06em; }
  /* Подписи полей прячем (остаются для экранных читалок), подсказка — внутри поля */
  #modal-call .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #modal-call .mform__row { gap: 8px; }
  #modal-call .field input { min-height: 44px; }
  #modal-call .consent { font-size: 11.5px; }
  #modal-call .mform__note { display: none; }
  #modal-call .mform .btn { min-height: 48px; }
  #modal-call .mform__side { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  #modal-call .mform__side .mform__small { display: none; }
}

/* Форма не шире шторки: длинное название услуги обрезается многоточием, а не растягивает окно */
@media (max-width: 640px) {
  #modal-call .modal__box--wide { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  #modal-call .mform { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  #modal-call .mform > * { min-width: 0; }
}

/* Мобильное меню: внизу закреплены только мессенджеры (низкая полоса), телефон — последним пунктом списка */
.drawer__foot { gap: 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); }
.drawer__body .drawer__phone { margin: 18px 6px 4px; padding: 14px 16px; border-radius: 16px; background: var(--mint); }

/* Телефон: номер не повторяется дважды подряд — в первом экране остаётся кнопка заявки (белая, главная),
   а номер — в карточке «Дежурный врач на линии» сразу под ней */
@media (max-width: 640px) {
  .hero__actions .hero__tel { display: none; }
  .hero__actions .btn--glass { background: #fff; color: var(--brand-ink, #12707e); border-color: #fff; }
}

/* Понятно, что раздел — ссылка: стрелка у заголовка, подчёркивание при наведении, вкладка с курсором-рукой */
.mega__title { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink, #12707e); }
.mega__title .i { width: 22px; height: 22px; transition: transform .2s; }
.mega__title:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mega__title:hover .i { transform: translateX(4px); }
.mega__tab[data-url] { cursor: pointer; }
.drawer__overview { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 8px; padding: 12px 14px !important; border-radius: 12px; background: var(--mint); color: var(--brand-ink, #12707e) !important; font-weight: 600; text-decoration: none; }
.drawer__overview .i { width: 16px; height: 16px; flex: none; }

/* Отзывы на главной — слайдер на всех экранах: 3 карточки на компьютере, 2 на планшете, 1 с краем следующей на телефоне */
.reviews--slide { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; align-items: flex-start; }
.reviews--slide::-webkit-scrollbar { display: none; }
.reviews--slide > .review { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
@media (max-width: 1024px) { .reviews--slide > .review { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .reviews--slide > .review { flex-basis: 86%; } }
.slider-nav { display: flex; align-items: center; gap: 8px; }
.slider-nav__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.slider-nav__btn:hover { border-color: var(--brand); color: var(--brand); }
.slider-nav__btn .i { width: 18px; height: 18px; }
.slider-nav__btn--prev .i { transform: rotate(180deg); }
@media (max-width: 640px) { .slider-nav .btn { display: none; } .slider-nav__btn { width: 40px; height: 40px; } }
/* Длинный отзыв свёрнут до 7 строк */
.review__text { display: grid; gap: 10px; }
.review__text p { margin: 0; }
.review__text[data-clamp] { max-height: calc(1.6em * 7); overflow: hidden; position: relative; line-height: 1.6; }
.review__text.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(transparent, #fff); pointer-events: none; }
.review__text.is-open { max-height: none; }
.review__text.is-open::after { display: none; }
.review__more { align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; color: var(--brand-ink, #12707e); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review__more[hidden] { display: none; }

/* Юридические документы: разделы с номерами «№ 01», ссылки на соседние документы */
.legal__body { counter-reset: legal; font-size: 16px; }
.legal__body h2 { counter-increment: legal; font-size: 24px; margin-top: 40px; }
.legal__body h2::before { content: "№ " counter(legal, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.legal__ask { margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.legal__docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legal__docs a { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.legal__docs a:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---------- Статьи блога ---------- */
.a-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; font-size: 13px; color: var(--on-deep); }
.a-hero__meta .i { width: 15px; height: 15px; vertical-align: -3px; }
.a-hero__rubric { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, #fff 16%, transparent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; color: #fff; }
.a-hero__date:empty { display: none; }
/* Карточки статей: обложка-плашка с цветом рубрики */
.post__cover { position: relative; aspect-ratio: 16 / 7; display: flex; align-items: flex-end; padding: 16px 18px; background: var(--grad); overflow: hidden; }
.post__cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 28px solid color-mix(in srgb, #fff 18%, transparent); }
.post__cover span { position: relative; z-index: 1; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--brand-700); font-size: 12px; font-weight: 700; }
.post__cover--zapoy { background: linear-gradient(120deg, #138a99, #0b4a55); }
.post__cover--alko { background: linear-gradient(120deg, #1fa5bd, #138a99); }
.post__cover--kod { background: linear-gradient(120deg, #35dcb6, #1fa5bd); }
.post__cover--nark { background: linear-gradient(120deg, #0f7886, #072f36); }
.post__cover--lek { background: linear-gradient(120deg, #4f8fb3, #2b5f80); }
.post__cover--rod { background: linear-gradient(120deg, #ff9d6b, #e06d3c); }
.post__cover--psy { background: linear-gradient(120deg, #7c8fd6, #4d5fa8); }
.post__cover--reab { background: linear-gradient(120deg, #4cc79a, #1e8f6a); }
.post__cover--kur { background: linear-gradient(120deg, #8a9ba0, #4a6267); }
.post__cover--pac { background: linear-gradient(120deg, #5aa9b5, #12707e); }
.post__body p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.post__meta { font-size: 13px; color: var(--ink-3); }
.post[hidden] { display: none; }
.a-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.a-filter__btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.a-filter__btn:hover { border-color: var(--brand); color: var(--brand); }
.a-filter__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 1024px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .a-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; } .a-filter__btn { flex: none; } }

/* Тело статьи: плашки, таблицы, схема этапов, чек-лист, карточки, призыв */
.a-body .note--warn { background: #fdecea; border-left-color: #d64545; }
.a-body .note--warn::before { content: "Опасно · "; font-weight: 700; color: #b42f2f; }
.a-table { margin: 24px 0; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.a-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th { text-align: left; padding: 14px 16px; background: var(--mint); color: var(--brand-700); font-size: 13px; font-weight: 700; }
.a-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.a-table tr:nth-child(even) td { background: var(--mist); }
@media (max-width: 640px) {
  .a-table { background: none; box-shadow: none; overflow: visible; }
  .a-table thead { display: none; }
  .a-table table, .a-table tbody, .a-table tr, .a-table td { display: block; width: 100%; }
  .a-table tr { margin-bottom: 12px; padding: 6px 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .a-table tr:nth-child(even) td { background: none; }
  .a-table td { border: 0; padding: 5px 16px; display: grid; grid-template-columns: minmax(0, 44%) 1fr; gap: 10px; align-items: baseline; font-size: 14.5px; }
  .a-table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
  .a-table td:first-child { display: block; padding: 10px 16px 6px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .a-table td:first-child::before { display: none; }
}
.a-steps { margin: 28px 0; }
.a-steps ol { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 0; }
.a-steps li { counter-increment: st; position: relative; padding: 4px 0 26px 64px; margin: 0; }
.a-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 10px 20px -12px var(--brand); }
.a-steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--mint-2) 0 6px, transparent 6px 11px); }
.a-steps li:last-child { padding-bottom: 0; }
.a-steps li:last-child::after { display: none; }
.a-steps li strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.a-check { margin: 28px 0; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.a-check__title { display: block; margin-bottom: 14px; font-size: 18px; }
.a-check__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; cursor: pointer; font-size: 16px; transition: background .2s; }
.a-check__item:hover { background: var(--mist); }
.a-check__item input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.a-check__res { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--mint); font-size: 14.5px; color: var(--brand-700); }
.a-check__res span { font-weight: 700; }
.a-check.is-many .a-check__res { background: var(--warm-soft); color: #8a3d12; }
.a-cards ul { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.a-cards li { margin: 0; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.prose .a-cards li::before { display: none; }
.a-cards li strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--brand-700); }
@media (max-width: 640px) { .a-cards ul { grid-template-columns: 1fr; } }
.prose .a-cards li { padding-left: 20px; }
.a-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 36px 0; padding: 24px 28px; border-radius: 20px; background: var(--deep); color: var(--on-deep); }
.a-cta b { display: block; color: #fff; font-size: 19px; margin-bottom: 4px; }
.a-cta p { margin: 0; font-size: 15px; max-width: 520px; }
.a-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.a-cta .btn--ghost { color: #fff; border-color: color-mix(in srgb, #fff 40%, transparent); }

.kontakty__req { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }


/* Групповое фото врачей: низ кадра (светлая полоса) — под плашками услуг, без медленного приближения */
.hero__photo[style*="vrachi-gruppa"] { animation: none; background-position: 72% 100%; }
@media (max-width: 640px) { .hero__photo[style*="vrachi-gruppa"] { background-position: 78% 0%; background-size: auto 102%; } }
