/* =========================================================
   R-DENT — вариант 2: «бенто», тёмная тема, крупная типографика.
   Отдельный файл, вариант 1 не трогает.
   ========================================================= */

:root {
  --navy:      #0a2540;
  --blue:      #1479c7;
  --blue-2:    #2b93e0;
  --cyan:      #49c2f1;
  --wa:        #25d366;
  --wa-2:      #1dad58;
  --tg:        #2aabee;
  --tg-2:      #229ed9;
  --free:      #0a7a43;

  /* светлая тема */
  --bg:        #ffffff;
  --bg-soft:   #f1f7fc;
  --surface:   #ffffff;
  --surface-2: #f7fbfe;
  --ink:       #0a2540;
  --ink-soft:  #55708b;
  --line:      rgba(10, 37, 64, .10);
  --line-soft: rgba(10, 37, 64, .06);
  /* тени с синим подтоном — теплее и «дороже», чем серые */
  --shadow:    0 1px 2px rgba(10, 45, 85, .06), 0 18px 44px rgba(12, 60, 110, .11);
  --shadow-lg: 0 2px 6px rgba(10, 45, 85, .08), 0 38px 72px rgba(12, 60, 110, .18);
  --chip-bg:   rgba(10, 37, 64, .05);
  --edge: linear-gradient(140deg,
            color-mix(in srgb, var(--cyan) 60%, transparent) 0%,
            color-mix(in srgb, var(--blue) 26%, transparent) 42%,
            var(--line) 100%);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 26px;
  --r-xl: 32px;

  --font: "Manrope", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;

  color-scheme: light;
}

/* тёмная тема — по системной настройке… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #07192e;
    --bg-soft:   #0a2240;
    --surface:   #0e2a49;
    --surface-2: #113157;
    --ink:       #e9f3fb;
    --ink-soft:  #9db5cd;
    --line:      rgba(255, 255, 255, .11);
    --line-soft: rgba(255, 255, 255, .07);
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 36px 70px rgba(0, 0, 0, .45);
    --chip-bg:   rgba(255, 255, 255, .08);
    --blue:      #3a95dd;
    color-scheme: dark;
  }
}
/* …и по кнопке в шапке */
:root[data-theme="dark"] {
  --bg:        #07192e;
  --bg-soft:   #0a2240;
  --surface:   #0e2a49;
  --surface-2: #113157;
  --ink:       #e9f3fb;
  --ink-soft:  #9db5cd;
  --line:      rgba(255, 255, 255, .11);
  --line-soft: rgba(255, 255, 255, .07);
  --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 36px 70px rgba(0, 0, 0, .45);
  --chip-bg:   rgba(255, 255, 255, .08);
  --blue:      #3a95dd;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
body.is-locked { overflow: hidden; }

/* Мягкое цветное свечение за светлыми секциями: убирает «пустую белизну». */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 32% at 86% 12%, color-mix(in srgb, var(--cyan) 16%, transparent) 0%, transparent 70%),
    radial-gradient(38% 30% at 6% 52%, color-mix(in srgb, var(--blue) 13%, transparent) 0%, transparent 70%),
    radial-gradient(46% 34% at 72% 88%, color-mix(in srgb, var(--cyan) 11%, transparent) 0%, transparent 72%);
}

/* Едва заметное зерно — градиенты перестают выглядеть «пластиковыми». */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { opacity: .05; }

h1, h2, h3, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--surface); color: var(--blue);
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.shell { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- полоса прочитанного ---------- */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 120;
  height: 3px; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ---------- логотип ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  --m-outline: #fff; --m-fill: var(--cyan); --m-wave: #fff;
  --logo-name: #fff; --logo-sub: rgba(255, 255, 255, .7);
}
.logo { flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-size: 19px; font-weight: 700; letter-spacing: .1em;
  color: var(--logo-name); white-space: nowrap;
}
.logo__sub {
  font-size: 9px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--logo-sub); margin-top: 4px; white-space: nowrap;
}

/* на узких экранах шапка тесная: ужимаем логотип и переключатели */
@media (max-width: 479px) {
  .logo { gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 16px; letter-spacing: .08em; }
  .logo__sub { display: none; }
  .hdr__side { gap: 6px; }
  .theme { width: 38px; height: 38px; }
  .langs { padding: 2px; }
  .lang { min-width: 31px; min-height: 28px; padding: 0 6px; font-size: 11px; }
  .burger { width: 40px; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px;
  border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
/* на узких экранах длинная подпись переносится, иначе кнопка вылезает за край */
@media (min-width: 600px) { .btn { white-space: nowrap; } }
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 10px 24px rgba(20, 121, 199, .3);
}
.btn--wa {
  color: #fff;
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  box-shadow: 0 10px 24px rgba(29, 173, 88, .32);
}
.btn--tg {
  color: #fff;
  background: linear-gradient(135deg, var(--tg), var(--tg-2));
  box-shadow: 0 10px 24px rgba(34, 158, 217, .3);
}
.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--lg { min-height: 56px; padding: 17px 32px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 14px; }

.round {
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.round:hover { background: var(--blue); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr.is-solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 34px rgba(5, 20, 40, .1);
}
.hdr.is-menu { background: var(--bg); backdrop-filter: none; }
.hdr.is-solid .logo { --m-outline: var(--blue); --logo-name: var(--ink); --logo-sub: var(--ink-soft); }
.hdr.is-solid .nav__list a { color: var(--ink-soft); }
.hdr.is-solid .nav__list a:hover { color: var(--blue); }
.hdr.is-solid .langs { background: var(--chip-bg); }
.hdr.is-solid .lang { color: var(--ink-soft); }
.hdr.is-solid .lang[aria-current="true"] { background: var(--surface); color: var(--blue); box-shadow: var(--shadow); }
.hdr.is-solid .burger span { background: var(--ink); }
.hdr.is-solid .theme { color: var(--ink); border-color: var(--line); }
.hdr.is-solid .hdr__phone { color: var(--ink); }

.hdr__side { display: flex; align-items: center; gap: 10px; }
.hdr__cta { display: none; }

.hdr__phone {
  display: none; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap;
}
.hdr__phone .icon { width: 18px; height: 18px; color: var(--cyan); }
.hdr__phone:hover { background: var(--chip-bg); }

/* переключатель темы */
.theme {
  width: 42px; height: 42px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent; color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.theme:hover { background: var(--chip-bg); }
.theme .icon { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.theme__moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .theme__sun,
.theme__sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { opacity: 0; transform: rotate(40deg) scale(.6); }
  :root:not([data-theme="light"]) .theme__moon { opacity: 1; transform: none; }
}
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(40deg) scale(.6); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
:root[data-theme="light"] .theme__sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme__moon { opacity: 0; transform: rotate(-40deg) scale(.6); }

/* языки */
.langs {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 30px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; color: rgba(255, 255, 255, .78);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang[aria-current="true"] { background: rgba(255, 255, 255, .95); color: var(--blue); }

.burger {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; border-radius: 12px;
}
.burger span {
  width: 20px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__list { display: none; }
.nav__cta, .nav__phone { display: none; }
.nav__list a {
  color: rgba(255, 255, 255, .9);
  font-size: 15px; font-weight: 600; padding: 8px 2px;
  position: relative; transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

@media (max-width: 899px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0;
    background: var(--bg);
    padding: 24px 20px 40px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { display: flex; flex-direction: column; }
  .nav__list a {
    display: block; color: var(--ink) !important;
    font-size: 19px; font-weight: 700; padding: 15px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a::after { display: none; }
  .nav__phone {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 22px; min-height: 52px; padding: 14px 22px;
    border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface-2); font-size: 17px; font-weight: 700; color: var(--ink);
  }
  .nav__phone .icon { color: var(--blue); }
  .nav__cta { display: inline-flex; margin-top: 10px; }
}

@media (min-width: 900px) {
  :root { --header-h: 82px; }
  .nav__list { display: flex; align-items: center; gap: 26px; }
  .nav__list a { white-space: nowrap; }
  .burger { display: none; }
  .hdr__cta { display: inline-flex; }
  .nav { display: contents; }
}
@media (min-width: 1140px) { .hdr__phone { display: inline-flex; } }

/* =========================================================
   Главный экран — бенто
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(155deg, #061627 0%, #0a2947 45%, #0f4476 100%);
  color: #fff;
}
.hero__mesh {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(73, 194, 241, .4) 0%, transparent 60%),
    radial-gradient(50% 45% at 10% 90%, rgba(20, 121, 199, .45) 0%, transparent 62%),
    radial-gradient(40% 40% at 50% 40%, rgba(73, 194, 241, .14) 0%, transparent 70%);
}
/* декоративные концентрические дуги — «эхо» волны из логотипа */
.hero__rings {
  position: absolute; z-index: -1; pointer-events: none;
  right: -14%; top: -28%;
  width: min(900px, 95vw); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(255, 255, 255, .055) 38.3%, transparent 39%),
    radial-gradient(circle, transparent 54%, rgba(255, 255, 255, .05) 54.3%, transparent 55%),
    radial-gradient(circle, transparent 70%, rgba(255, 255, 255, .04) 70.3%, transparent 71%);
}
/* крупный знак клиники водяным знаком */
.hero__mark {
  position: absolute; z-index: -1; pointer-events: none;
  left: -6%; bottom: -16%;
  width: min(430px, 55vw); height: auto;
  opacity: .055;
  --m-outline: #fff; --m-fill: #fff; --m-wave: #fff;
}

.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__title {
  font-size: clamp(34px, 8vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 16px;
  text-wrap: balance;
}
.hero__title .accent {
  background: linear-gradient(100deg, var(--cyan) 0%, #a9e5ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin-top: 20px; max-width: 48ch;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, .8);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero__actions .btn { flex: 0 1 auto; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  font-size: 11.5px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.eyebrow--light {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
}

/* плитки */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.tile--accent {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(37, 211, 102, .22), rgba(73, 194, 241, .2));
  border-color: rgba(255, 255, 255, .22);
}
.tile--link:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.tile__icon { color: var(--cyan); margin-bottom: 4px; }
.tile__value { font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tile__value--sm { font-size: clamp(19px, 3vw, 24px); }
.tile__label { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.tile__stars { position: relative; display: inline-block; font-size: 16px; letter-spacing: 2px; color: rgba(255, 255, 255, .26); margin-bottom: 4px; }

.stars, .tile__stars { position: relative; display: inline-block; line-height: 1; }
.stars { font-size: 19px; letter-spacing: 3px; color: color-mix(in srgb, var(--ink) 22%, transparent); }
.stars__fg {
  position: absolute; inset: 0; width: var(--fill, 0%);
  overflow: hidden; white-space: nowrap; color: #f0a500;
}

/* =========================================================
   Секции
   ========================================================= */
.sect { padding: clamp(64px, 9vw, 120px) 0; }
.sect--soft { background: var(--bg-soft); }
.sect--dark {
  background: linear-gradient(160deg, #081e36 0%, #0d3258 100%);
  color: #fff;
}
.sect--dark .sect__title, .sect--dark .doctor__text { color: #fff; }

.sect__head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.sect__head--wide { max-width: 760px; }
.sect__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sect__title {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12; font-weight: 800; letter-spacing: -.03em;
  margin-top: 12px; text-wrap: balance;
}
.sect__sub {
  margin-top: 14px; font-size: clamp(15px, 1.9vw, 18px);
  color: var(--ink-soft); text-wrap: pretty;
}
.sect--dark .sect__sub, .sect--dark .doctor__text { color: rgba(255, 255, 255, .78); }

/* =========================================================
   Бенто-сетки
   ========================================================= */
.bento { display: grid; gap: 14px; }

/* Карточки с градиентной рамкой: фон рисуем в padding-box, рамку — в border-box. */
.card, .price-card, .step, .wa-form, .contacts__info, .route {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--edge) border-box;
}
.sect--soft .card, .sect--soft .price-card, .sect--soft .step, .sect--soft .wa-form {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--edge) border-box;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* мягкое пятно в углу — карточка перестаёт быть пустым прямоугольником */
.card::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 20%, transparent) 0%, transparent 68%);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  opacity: .75;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; transform: scale(1.15); }
.card > * { position: relative; z-index: 1; }
.card__icon {
  width: 54px; height: 54px; border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cyan) 28%, transparent), color-mix(in srgb, var(--blue) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  color: var(--blue); margin-bottom: 20px;
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.card__text { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.card--service { display: flex; flex-direction: column; }
.card__foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__price { font-size: 16px; font-weight: 800; color: var(--ink); }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.card__link .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.card:hover .card__link .icon { transform: translateX(4px); }
.cur { font-size: .72em; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); margin-left: 2px; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1000px) {
  .bento--adv { grid-template-columns: repeat(6, 1fr); }
  .bento--adv > *:nth-child(1) { grid-column: span 4; }
  .bento--adv > *:nth-child(2) { grid-column: span 2; }
  .bento--adv > *:nth-child(3) { grid-column: span 2; }
  .bento--adv > *:nth-child(4) { grid-column: span 4; }

  .bento--srv { grid-template-columns: repeat(6, 1fr); }
  .bento--srv > * { grid-column: span 2; }
  .bento--srv > *:nth-child(1), .bento--srv > *:nth-child(6) { grid-column: span 3; }
}

/* =========================================================
   Прайс с фильтром
   ========================================================= */
.filters {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 26px;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px rgba(20, 121, 199, .26);
}
.filters__search { position: relative; display: flex; align-items: center; }
.filters__search .icon {
  position: absolute; left: 16px; color: var(--ink-soft); width: 19px; height: 19px; pointer-events: none;
}
.filters__search input {
  width: 100%; min-height: 50px;
  padding: 13px 16px 13px 46px;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.filters__search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
@media (min-width: 760px) {
  .filters { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters__search { max-width: 300px; }
}

.price-grid { display: grid; gap: 16px; }
.price-card {
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.price-card[hidden] { display: none; }
.price-card__head {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 2px solid color-mix(in srgb, var(--cyan) 30%, transparent);
}
.price-card__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--blue) 12%, transparent));
  color: var(--blue);
}
.price-card__icon .icon { width: 22px; height: 22px; }
.price-card__title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }

.price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.price-row[hidden] { display: none; }
.price-row:last-child { border-bottom: 0; }
.price-row__name { font-size: 15px; font-weight: 500; }
.price-row__leader {
  flex: 1 1 auto; min-width: 10px; height: 1px; margin-bottom: 4px;
  border-bottom: 1.5px dotted color-mix(in srgb, var(--ink) 28%, transparent);
}
.price-row__val {
  font-size: 15.5px; font-weight: 800; color: var(--blue);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price-row--free {
  margin: 4px -12px 6px; padding: 12px;
  border-radius: var(--r-sm); border-bottom: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--free) 14%, transparent), color-mix(in srgb, var(--cyan) 14%, transparent));
}
.price-row--free .price-row__name { font-weight: 700; }
.price-row--free .price-row__val {
  color: var(--free); text-transform: uppercase; font-size: 13px; letter-spacing: .06em;
}
:root[data-theme="dark"] .price-row--free .price-row__val { color: #5fd49b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price-row--free .price-row__val { color: #5fd49b; }
}
.price-row__mark { background: color-mix(in srgb, var(--cyan) 35%, transparent); border-radius: 3px; padding: 0 2px; }

.price-empty {
  padding: 28px 24px; text-align: center;
  color: var(--ink-soft); font-size: 15px;
  border: 1px dashed var(--line); border-radius: var(--r-xl);
}
.price-foot {
  margin-top: 26px; padding: 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 9%, transparent), color-mix(in srgb, var(--cyan) 12%, transparent));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.price-note { font-size: 14px; color: var(--ink-soft); max-width: 62ch; }

@media (max-width: 479px) {
  .price-row__leader { display: none; }
  .price-row { justify-content: space-between; }
  .price-row__name { flex: 1 1 auto; }
}
@media (min-width: 640px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 26px; }
  .price-foot .btn { flex: none; }
}

/* =========================================================
   Врач
   ========================================================= */
.doctor { display: grid; gap: 34px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 4.4;
  border-radius: var(--r-xl); overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(110% 80% at 78% 12%, rgba(73, 194, 241, .5) 0%, transparent 58%),
    linear-gradient(165deg, #0b2a4d 0%, #1565a8 68%, #2a93d6 100%);
  box-shadow: var(--shadow-lg);
}
.portrait::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -14%;
  height: 46%; background: rgba(255, 255, 255, .07);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}
.portrait__icon {
  width: 38%; height: 38%; color: rgba(255, 255, 255, .34);
  fill: none; stroke: currentColor; stroke-width: 1.1;
  stroke-linecap: round; stroke-linejoin: round;
}
.doctor__role { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 700; color: #fff;
}
.doctor__text { margin-top: 18px; font-size: 16px; text-wrap: pretty; }
.quote {
  margin: 26px 0;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--cyan);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 600; line-height: 1.4; letter-spacing: -.015em;
  text-wrap: balance;
}
@media (min-width: 900px) { .doctor { grid-template-columns: .8fr 1fr; gap: 56px; } }

/* =========================================================
   Отзывы каруселью
   ========================================================= */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.rating__text { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.carousel__nav { display: none; gap: 10px; }

.carousel {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 999px;
}
.card--review {
  flex: 0 0 min(86%, 352px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 18px; margin: 0;
  padding: 26px 24px;
}
.card--review::before {
  content: ""; display: block; width: 36px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.card__quote { font-size: 15.5px; line-height: 1.62; text-wrap: pretty; }
.card__author {
  margin-top: auto; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 4px 10px; padding-top: 4px;
}
.card__name { font-size: 14px; font-weight: 700; }
.card__date { font-size: 13px; color: var(--ink-soft); }

.reviews__foot {
  margin-top: 22px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px 20px;
}
.reviews__note { font-size: 13px; color: var(--ink-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--blue); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

@media (min-width: 900px) { .carousel__nav { display: flex; } }

/* =========================================================
   Шаги и форма
   ========================================================= */
.steps { display: grid; gap: 16px; }
.steps { counter-reset: step; }
.step {
  position: relative;
  overflow: hidden;
  counter-increment: step;
  border-radius: var(--r-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* крупная «призрачная» цифра на фоне шага */
.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; right: 14px; top: -6px;
  font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--blue) 9%, transparent);
  pointer-events: none;
}
.step > * { position: relative; z-index: 1; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step__num {
  width: 46px; height: 46px; flex: none; border-radius: 15px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--blue-2));
  box-shadow: 0 8px 20px rgba(20, 121, 199, .28);
}
.step__icon { color: var(--cyan); }
.step__icon .icon { width: 26px; height: 26px; }
.step__title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.step__text { margin-top: 9px; font-size: 15px; color: var(--ink-soft); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.wa-form {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.wa-form::before {
  content: "";
  position: absolute; left: -80px; bottom: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--wa) 14%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.wa-form > * { position: relative; z-index: 1; }
.wa-form__head { max-width: 56ch; }
.wa-form__title { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.wa-form__lead { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.wa-form__grid { display: grid; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.field__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field__input {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font-size: 16px; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
textarea.field__input { min-height: 74px; resize: vertical; line-height: 1.5; }
select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2378909f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 7 7.5 13 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field__input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.field__input.is-invalid { border-color: #e05a4a; }
.field__error { font-size: 13px; font-weight: 600; color: #e05a4a; }
.wa-form__preview {
  margin-top: 22px; padding: 16px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--wa) 10%, transparent), color-mix(in srgb, var(--cyan) 12%, transparent));
  border: 1px dashed var(--line);
}
.wa-form__preview-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.wa-form__text { font: inherit; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.wa-form__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.wa-form__actions .btn { width: 100%; }
.wa-form__note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* мессенджеры в блоке контактов */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.msgr__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.msgr__link .icon { width: 17px; height: 17px; }
.msgr__link--wa { background: linear-gradient(135deg, var(--wa), var(--wa-2)); }
.msgr__link--tg { background: linear-gradient(135deg, var(--tg), var(--tg-2)); }
.msgr__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

@media (min-width: 640px) {
  .wa-form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
  .wa-form__actions { flex-direction: row; flex-wrap: wrap; }
  .wa-form__actions .btn { width: auto; }
}

/* =========================================================
   Контакты
   ========================================================= */
.contacts { display: grid; gap: 24px; }
.contacts__info {
  border-radius: var(--r-xl);
  padding: 8px 26px;
  box-shadow: var(--shadow);
}
.info-row { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row__icon {
  width: 46px; height: 46px; flex: none; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--blue) 12%, transparent));
  color: var(--blue);
}
.info-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info-row__label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.info-row__value { font-size: 17px; font-weight: 700; }
a.info-row__value:hover { color: var(--blue); }
.info-row__hint { font-size: 14px; color: var(--ink-soft); }
.info-row__hint--link { color: var(--blue); font-weight: 600; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 15px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social:hover { background: var(--blue); color: #fff; border-color: transparent; transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }

.map {
  position: relative; aspect-ratio: 4 / 3.3; min-height: 290px;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid; place-content: center; justify-items: center;
  gap: 12px; padding: 24px; box-shadow: var(--shadow);
}
.map__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 14%, transparent) 0 10px, transparent 10px),
    linear-gradient(8deg, transparent 46%, color-mix(in srgb, var(--blue) 11%, transparent) 46% 52%, transparent 52%),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 46px);
  background-position: 62% 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
.map__pin {
  position: absolute; left: 50%; top: 27%;
  transform: translate(-50%, -50%); color: var(--blue);
  filter: drop-shadow(0 8px 14px rgba(10, 37, 64, .25));
}
.map__pin .icon { width: 42px; height: 42px; stroke-width: 1.4; }
.map__btn, .map__hint { position: relative; z-index: 2; }
.map__hint { font-size: 13px; color: var(--ink-soft); text-align: center; }
.map.is-loaded { display: block; padding: 0; }
.map.is-loaded > *:not(iframe) { display: none; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__route {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 15px; font-weight: 700; color: var(--blue);
}
.map__route .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.map__route:hover .icon { transform: translateX(4px); }

.route {
  margin-top: 24px; padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  display: grid; gap: 24px; align-items: center;
}
.route__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.route__text { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.route__body .btn { margin-top: 18px; }
.route__media { margin: 0; }
.route__video {
  width: 100%; max-width: 300px; margin-inline: auto;
  aspect-ratio: 9 / 16; border-radius: var(--r-lg);
  background: #0b2a4d; box-shadow: var(--shadow); object-fit: cover;
}
@media (min-width: 900px) {
  .contacts { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .route { grid-template-columns: 1fr auto; gap: 38px; }
}

/* =========================================================
   Подвал
   ========================================================= */
.footer {
  background: linear-gradient(165deg, #061627 0%, #0b2d50 100%);
  color: rgba(255, 255, 255, .74);
  padding: clamp(52px, 7vw, 80px) 0 108px;
}
.footer__grid { display: grid; gap: 36px; }
.footer__about { margin-top: 18px; font-size: 15px; max-width: 44ch; }
.footer__title {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .52); margin-bottom: 16px;
}
.footer__nav ul, .footer__contacts ul { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a, .footer__contacts a, .footer__contacts li { font-size: 15px; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--cyan); }
.footer__muted { color: rgba(255, 255, 255, .62); font-size: 14px !important; }
.socials--footer { margin-top: 22px; }
.socials--footer .social {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: #fff; padding: 10px; min-width: 42px; justify-content: center;
}
.socials--footer .social:hover { background: var(--cyan); color: #07192e; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(255, 255, 255, .62);
}
@media (min-width: 900px) {
  .footer { padding-bottom: 40px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.1fr; gap: 48px; }
  .footer__bottom { padding-right: 90px; }
}

/* =========================================================
   Плавающая кнопка и нижняя панель
   ========================================================= */
/* Netlify на бесплатном тарифе подмешивает рамку с плашкой «Powered by Netlify».
   Её скрипт и так блокирует наша политика безопасности, но пустая рамка остаётся
   в правом нижнем углу — поверх кнопок WhatsApp и Telegram. Убираем её совсем.
   Правильнее выключить плашку в Netlify: Project configuration → General →
   Powered by Netlify badge. Это правило — подстраховка. */
#nl-badge-frame { display: none !important; }

.floats {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: none; flex-direction: column; gap: 12px;
}
.float {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform .25s var(--ease);
}
.float .icon { width: 28px; height: 28px; }
.float:hover { transform: scale(1.07); }
.float--wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  box-shadow: 0 12px 28px rgba(29, 173, 88, .44);
}
.float--tg {
  background: linear-gradient(135deg, var(--tg), var(--tg-2));
  box-shadow: 0 12px 28px rgba(34, 158, 217, .44);
}
.float--tg .icon { transform: translateX(-1px); }

.actionbar {
  position: fixed; inset: auto 0 0; z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.actionbar.is-visible { transform: none; }
.actionbar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 50px; padding-inline: 6px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap;
}
.actionbar__btn .icon { width: 19px; height: 19px; }
.actionbar__btn--call { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.actionbar__btn--wa { background: linear-gradient(135deg, var(--wa), var(--wa-2)); }
.actionbar__btn--tg { background: linear-gradient(135deg, var(--tg), var(--tg-2)); }

/* на совсем узких экранах подписи прячем, остаются иконки */
@media (max-width: 400px) {
  .actionbar__btn { font-size: 0; gap: 0; }
  .actionbar__btn .icon { width: 22px; height: 22px; }
}

@media (min-width: 760px) {
  .actionbar { display: none; }
  .floats { display: flex; }
}

/* =========================================================
   Волны-разделители и полоса цифр
   ========================================================= */
.divider {
  display: block; width: 100%;
  height: clamp(38px, 5.5vw, 82px);
  fill: var(--bg);
}
.hero { position: relative; }
.divider--hero { position: absolute; left: 0; right: 0; bottom: -1px; }

.sect--dark { position: relative; overflow: hidden; }
.sect--dark { padding-top: calc(clamp(64px, 9vw, 120px) + 34px); padding-bottom: calc(clamp(64px, 9vw, 120px) + 34px); }
.sect--dark .divider { position: absolute; left: 0; right: 0; }
.divider--top { top: -1px; transform: scaleY(-1); }
.divider--bottom { bottom: -1px; }

.doctor__mark {
  position: absolute; pointer-events: none;
  right: -5%; top: 8%;
  width: min(380px, 48vw); height: auto;
  opacity: .05;
  --m-outline: #fff; --m-fill: #fff; --m-wave: #fff;
}

.numbers { padding: clamp(10px, 2vw, 22px) 0 clamp(42px, 6vw, 72px); }
.numbers__grid { display: grid; gap: 14px; }
.num {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--surface) 92%, var(--cyan)), var(--surface)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.num__value {
  font-size: clamp(40px, 6vw, 56px); font-weight: 800;
  line-height: 1; letter-spacing: -.035em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num__value--free {
  background: linear-gradient(135deg, var(--free), #27b472);
  -webkit-background-clip: text; background-clip: text;
  font-size: clamp(34px, 5vw, 46px);
}
.num__label { font-size: 14.5px; color: var(--ink-soft); max-width: 26ch; }
@media (min-width: 700px) { .numbers__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* подсветка в карточках услуг — чуть ярче, чем в остальных */
.card--service::after { background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent) 0%, transparent 68%); }

/* шапка категории в прайсе — на подложке */
.price-card__head {
  margin: -26px -24px 8px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 70%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* подвал: мягкое свечение и знак */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 60% at 88% 8%, rgba(73, 194, 241, .16) 0%, transparent 70%),
    radial-gradient(38% 50% at 4% 92%, rgba(20, 121, 199, .2) 0%, transparent 70%);
}
.footer > * { position: relative; z-index: 1; }

/* =========================================================
   Появление блоков
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .step:hover, .social:hover, .chip:hover, .round:hover { transform: none; }
  .hero__spot { display: none; }
  .carousel { scroll-behavior: auto; }
}

/* =========================================================
   Печать и экспорт в PDF (показать макет клиенту)
   ========================================================= */
@media print {
  @page { size: 338mm 480mm; margin: 0; }

  :root { --header-h: 0px; }

  html, body {
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body::after { display: none; }           /* зерно в печати не нужно */
  body::before { position: absolute; }     /* фоновое свечение на всю высоту, а не на первый лист */

  .hdr, .progress, .wa-float, .actionbar, .skip, .carousel__nav { display: none !important; }

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .hero { padding-top: 72px; padding-bottom: 120px; }

  /* отзывы: в PDF показываем все сразу, без горизонтальной прокрутки */
  .carousel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .card--review { flex: none; }

  .card, .step, .price-card, .num, .wa-form, .contacts__info, .route, .card--review {
    break-inside: avoid;
    box-shadow: none;
  }
  .sect { padding-block: 60px; }

  /* Chrome при печати верстает по узкому макету и медиазапросы по ширине не
     срабатывают — поэтому десктопную сетку задаём явно. */
  .shell { padding-inline: 32px; }
  .hero__grid { grid-template-columns: 1.3fr .9fr; gap: 44px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--accent { grid-column: auto; }
  .bento--adv, .bento--srv { grid-template-columns: repeat(6, 1fr); }
  .bento--adv > *:nth-child(1), .bento--adv > *:nth-child(4) { grid-column: span 4; }
  .bento--adv > *:nth-child(2), .bento--adv > *:nth-child(3) { grid-column: span 2; }
  .bento--srv > * { grid-column: span 2; }
  .bento--srv > *:nth-child(1), .bento--srv > *:nth-child(6) { grid-column: span 3; }
  .numbers__grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .wa-form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
  .doctor { grid-template-columns: .8fr 1fr; gap: 56px; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.1fr; gap: 48px; }
  .footer { padding-bottom: 40px; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters__search { max-width: 300px; }
  .price-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .shell { padding-inline: 32px; }
  .hero__grid { grid-template-columns: 1.3fr .9fr; gap: 44px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--accent { grid-column: auto; }
  .bento { gap: 18px; }
  .price-grid { gap: 18px; }
}
