/* Ясно — сайт клиники: всё, кроме первого экрана (.hero наполняет 3D-сцена).
   Мир «ясности»: белый, бирюза, стекло; блоки проявляются из размытия. */

:root {
  --bg: #ffffff;
  --soft: #f4f9fc;
  --ink: #0c2632;
  --ink-2: #2a4655;
  --muted: #557282;
  --teal: #0b7285;
  --teal-h: #0d8296;
  --aqua: #16a2ae;
  --gold: #f4b43c;
  --err: #b4380a;
  --line: rgb(11 114 133 / .14);
  --line-2: rgb(11 114 133 / .26);
  --grad: linear-gradient(100deg, #0b7285, #16a2ae);
  --glass: linear-gradient(180deg, rgb(255 255 255 / .93), rgb(255 255 255 / .84));
  --sh-1: 0 1px 2px rgb(12 38 50 / .04), 0 12px 32px -16px rgb(12 38 50 / .18);
  --sh-2: 0 2px 8px rgb(12 38 50 / .05), 0 28px 54px -24px rgb(11 114 133 / .42);
  --sh-btn: inset 0 1px 0 rgb(255 255 255 / .22), 0 12px 26px -12px rgb(11 114 133 / .72), 0 2px 6px -1px rgb(11 114 133 / .28);
  --sh-btn-h: inset 0 1px 0 rgb(255 255 255 / .26), 0 16px 32px -12px rgb(11 114 133 / .8), 0 3px 8px -1px rgb(11 114 133 / .3);
  --r-card: 22px;
  --r-btn: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 76px;
  --hh: var(--hd-h); /* то же для 3D-сцены (stage.css берёт высоту шапки из --hh) */
  --pad: clamp(16px, 4vw, 40px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked { overflow: hidden; }
/* фон только у html: так световые пятна (z-index:-1) остаются видны за разделами */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { display: block; overflow-x: clip; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
::selection { background: rgb(22 162 174 / .22); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff;
  font: 600 15px/1.2 var(--font); text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.i {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.st { width: 18px; height: 18px; flex: none; fill: var(--gold); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  background: var(--teal); color: #fff; box-shadow: var(--sh-btn);
  font: 700 16px/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out), color .25s;
}
.btn .i { width: 18px; height: 18px; }
.btn:hover { background: var(--teal-h); box-shadow: var(--sh-btn-h); transform: translateY(-1px); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn .i { transition: transform .3s var(--ease-out); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-ghost { background: rgb(255 255 255 / .75); color: var(--teal); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 1px rgb(11 114 133 / .45), 0 10px 24px -14px rgb(11 114 133 / .5); }
.btn-white { background: #fff; color: var(--teal); box-shadow: 0 14px 30px -14px rgb(3 40 50 / .55); }
.btn-white:hover { background: #f1fbfc; color: var(--teal); box-shadow: 0 18px 36px -14px rgb(3 40 50 / .6); }
.btn-line { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.btn-line:hover { background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.btn:disabled, .btn[disabled] {
  background: #e7f0f4; color: var(--muted); box-shadow: inset 0 0 0 1px rgb(11 114 133 / .1);
  cursor: not-allowed; transform: none;
}

/* ---------- шапка ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); }
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgb(255 255 255 / .74);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 1px 0 rgb(11 114 133 / .1), 0 14px 32px -26px rgb(12 38 50 / .4);
  opacity: 0; transition: opacity .35s var(--ease);
}
.hd.is-scrolled::before, .hd.is-menu::before { opacity: 1; }
.hd::after { /* полоска прогресса прокрутки */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2px;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
}
@supports (animation-timeline: scroll()) {
  .hd.is-scrolled::after { opacity: .9; animation: hd-progress linear both; animation-timeline: scroll(root); }
}
@keyframes hd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hd-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: var(--hd-h); }

.logo {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px; flex: none;
  color: var(--ink); text-decoration: none; border-radius: 12px; min-width: 0;
}
.bead {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background:
    radial-gradient(circle at 70% 80%, rgb(140 236 240 / .7), rgb(140 236 240 / 0) 46%),
    radial-gradient(circle at 46% 42%, #20b6c2 0%, #0b7285 62%, #064f5e 100%);
  box-shadow: inset 0 -4px 7px rgb(3 45 56 / .35), inset 0 2px 3px rgb(255 255 255 / .45), 0 8px 16px -6px rgb(11 114 133 / .6);
}
.bead::after {
  content: ""; position: absolute; left: 20%; top: 13%; width: 44%; height: 28%; border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(255 255 255 / 0)); transform: rotate(-24deg);
}
.logo-txt { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo-txt b {
  font-size: 23px; font-weight: 800; letter-spacing: -.035em;
  max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 1px;
}
.logo-txt small { margin-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--muted); }

.hd-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hd-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: color .2s, background .2s;
}
.hd-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--aqua); transform: scale(0); transition: transform .35s var(--ease-out);
}
.hd-nav a:hover { color: var(--teal); background: rgb(11 114 133 / .06); }
.hd-nav a.is-current { color: var(--teal); }
.hd-nav a.is-current::after { transform: scale(1); }
.hd-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
  color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; border-radius: 10px; transition: color .2s;
}
.hd-phone .i { color: var(--teal); }
.hd-phone:hover { color: var(--teal); }
.hd-cta { flex: none; }

.burger {
  position: relative; display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 0;
  border-radius: 12px; background: rgb(11 114 133 / .08); color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* мобильное меню */
.mnav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + 8px) max(var(--pad), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--pad), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(80% 50% at 100% 0%, rgb(22 162 174 / .12), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .97), rgb(244 249 252 / .98));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.mnav.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.mnav-links { list-style: none; margin: 0; padding: 0; }
.mnav-links li {
  opacity: 0; filter: blur(6px);
  transition: opacity .45s var(--ease), filter .45s var(--ease); transition-delay: calc(var(--i) * 45ms);
}
.mnav.is-open .mnav-links li { opacity: 1; filter: none; }
.mnav-links a {
  display: flex; align-items: center; justify-content: space-between; min-height: 62px;
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: 24px; font-weight: 700;
  letter-spacing: -.02em; text-decoration: none;
}
.mnav-links a .i { color: var(--teal); }
.mnav-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }
.mnav-foot .btn { width: 100%; }
.mnav-meta { margin: 4px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- первый экран: только каркас, содержимое — 3D-сцена ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: #fff; }

/* ---------- разделы, световые пятна ---------- */
.sec { position: relative; padding-block: clamp(84px, 10vw, 140px); }
.sec--band::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgb(244 249 252 / 0), var(--soft) 16%, var(--soft) 84%, rgb(244 249 252 / 0));
}
.glow {
  position: absolute; z-index: -1; width: min(760px, 120vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(22 162 174 / .18), rgb(22 162 174 / .07) 52%, rgb(22 162 174 / 0));
  animation: drift 32s var(--ease) infinite alternate; will-change: transform;
}
.glow--b {
  background: radial-gradient(closest-side, rgb(11 114 133 / .14), rgb(11 114 133 / .05) 52%, rgb(11 114 133 / 0));
  animation-duration: 40s; animation-direction: alternate-reverse;
}
.is-off .glow { animation-play-state: paused; }
.glow--s1 { top: -6%; left: -18%; }
.glow--s2 { bottom: -8%; right: -16%; width: min(620px, 110vw); }
.glow--d1 { top: 18%; right: -20%; }
.glow--b1 { top: 4%; left: -22%; width: min(820px, 130vw); }
.glow--b2 { bottom: -4%; right: -18%; width: min(640px, 110vw); }
.glow--r1 { top: 10%; left: 46%; width: min(700px, 120vw); }
.glow--f1 { top: 20%; left: -20%; }
.glow--c1 { bottom: 0; right: -14%; width: min(680px, 120vw); }
@keyframes drift {
  0% { transform: translate3d(-6%, -5%, 0) scale(1); }
  50% { transform: translate3d(5%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(9%, -3%, 0) scale(.95); }
}

/* ---------- заголовки ---------- */
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4.6vw, 60px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 28px 56px;
}
.sec-head--row > :first-child { flex: 1 1 520px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 0 4px rgb(22 162 174 / .14), 0 0 16px rgb(22 162 174 / .7);
}
.eyebrow--light { color: #bff1f4; }
.eyebrow--light::before { background: #8eeaf0; box-shadow: 0 0 0 4px rgb(142 234 240 / .18), 0 0 16px rgb(142 234 240 / .8); }
.h2 {
  margin: 0; font-size: clamp(32px, 1.3rem + 2.5vw, 58px); font-weight: 800; line-height: 1.04;
  letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.h2--light { color: #fff; }
/* акцентное слово: в покое — бирюза→аква; при появлении по нему один раз проходит блик */
.grad {
  background: linear-gradient(100deg, #0b7285 0%, #16a2ae 38%, #9ae9ee 50%, #16a2ae 62%, #0b7285 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .js .rv.is-in .grad { animation: sheen 1.9s var(--ease) .3s both; }
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lead { margin: 20px 0 0; font-size: clamp(17px, 1rem + .25vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.sec-head--center .lead { max-width: 620px; margin-inline: auto; }

/* ---------- стеклянные карточки ---------- */
.card {
  position: relative; isolation: isolate; background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-1), inset 0 1px 0 rgb(255 255 255 / .95);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(140deg, rgb(255 255 255 / .9), rgb(255 255 255 / 0) 42%),
    radial-gradient(120% 80% at 100% 0%, rgb(22 162 174 / .06), transparent 60%);
}
.card::after { /* свет под курсором */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(22 162 174 / .13), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card-hover { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
@media (hover: hover) {
  .card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--sh-2), inset 0 1px 0 #fff; }
  .card:hover::after { opacity: 1; }
}

/* ---------- услуги ---------- */
.pledge { flex: 0 1 470px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; }
.pledge-ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px;
  color: #fff; background: var(--grad); box-shadow: 0 10px 20px -10px rgb(11 114 133 / .8);
}
.pledge p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pledge b { color: var(--ink); }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { display: flex; flex-direction: column; padding: 24px 22px 20px; }
.svc-ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--teal);
  background: linear-gradient(145deg, #ffffff, #e4f3f6);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -10px rgb(11 114 133 / .5);
}
.svc-ico .i { width: 24px; height: 24px; }
.svc-t { margin: 20px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.svc-x { flex: 1; margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.svc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgb(11 114 133 / .1);
}
.price { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.svc-book {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgb(11 114 133 / .08); color: var(--teal); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s, box-shadow .25s;
}
.svc-book .i { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.svc-book:hover { background: var(--teal); color: #fff; box-shadow: var(--sh-btn); }
.svc-book:hover .i { transform: translateX(3px); }
.svc-badge {
  position: absolute; top: 20px; right: 18px; padding: 5px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  color: #fff; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32);
}
.svc--feat {
  color: #fff; border-color: rgb(6 80 95 / .5);
  background: linear-gradient(160deg, #0a687a 0%, #0b7285 48%, #0c7f92 100%);
  box-shadow: 0 30px 56px -26px rgb(11 114 133 / .85), inset 0 1px 0 rgb(255 255 255 / .22);
}
.svc--feat::before {
  background:
    radial-gradient(70% 55% at 0% 0%, rgb(255 255 255 / .2), transparent 70%),
    radial-gradient(60% 60% at 110% 110%, rgb(127 227 233 / .28), transparent 70%);
}
.svc--feat::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .14), transparent 62%); }
.svc--feat .svc-x { color: rgb(255 255 255 / .92); }
.svc--feat .svc-ico { color: #fff; background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.svc--feat .svc-foot { border-top-color: rgb(255 255 255 / .22); }
.svc--feat .price, .svc--feat .price small { color: #fff; }
.svc--feat .svc-book { background: #fff; color: var(--teal); }
.svc--feat .svc-book:hover { background: #effbfc; color: var(--teal); box-shadow: 0 12px 26px -12px rgb(3 40 50 / .7); }

.trust {
  list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 32px; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.trust li { display: inline-flex; align-items: center; gap: 10px; }
.trust .i { color: var(--teal); }

/* ---------- врачи ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.doc { display: flex; flex-direction: column; padding: 24px 22px 22px; }
.doc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bead-av {
  --c1: #2fc3cc; --c2: #0b7285; --c3: #064f5e;
  position: relative; display: grid; place-items: center; width: 66px; height: 66px; flex: none; border-radius: 50%;
  color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgb(3 45 56 / .45);
  background:
    radial-gradient(circle at 72% 82%, rgb(150 238 242 / .6), rgb(150 238 242 / 0) 46%),
    radial-gradient(circle at 46% 42%, var(--c1) 0%, var(--c2) 62%, var(--c3) 100%);
  box-shadow: inset 0 -7px 12px rgb(3 45 56 / .32), inset 0 3px 6px rgb(255 255 255 / .35), 0 16px 26px -14px rgb(11 114 133 / .7);
}
.bead-av::before { /* блик */
  content: ""; position: absolute; left: 18%; top: 11%; width: 46%; height: 26%; border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(255 255 255 / 0)); transform: rotate(-22deg);
}
.bead-av::after { /* орбита */
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px dashed rgb(11 114 133 / .28); transition: transform 1.2s var(--ease-out);
}
@media (hover: hover) { .doc:hover .bead-av::after { transform: rotate(140deg); } }
.bead-av--sm { width: 44px; height: 44px; font-size: 15px; }
.bead-av--sm::after { display: none; }
.doc-exp {
  padding: 6px 12px; border-radius: 999px; background: rgb(11 114 133 / .08); color: var(--teal);
  font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.doc-name { margin: 22px 0 4px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.doc-role { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--teal); }
.doc-bio { flex: 1; margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-2);
}
.doc-foot { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid rgb(11 114 133 / .1); }
.doc-next { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.doc-next b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc-book { width: 100%; }
.live { position: relative; width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; background: var(--aqua); }
.live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--aqua);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.is-off .live::after { animation-play-state: paused; }

/* ---------- запись ---------- */
.bk {
  display: grid; grid-template-columns: minmax(0, 1fr) 384px; grid-template-areas: "steps steps" "main side";
  gap: 26px 32px; padding: clamp(16px, 3vw, 36px); border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / .92), rgb(255 255 255 / .84));
  box-shadow: 0 2px 6px rgb(12 38 50 / .04), 0 44px 90px -44px rgb(11 114 133 / .4), inset 0 1px 0 #fff;
}
.bk-steps { grid-area: steps; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; z-index: 6; }
.bk-steps li { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.bk-steps li:last-child { flex: 0 0 auto; }
.bk-steps li:not(:last-child)::after {
  content: ""; flex: 1; min-width: 12px; height: 2px; margin: 0 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--aqua)) 0 0 / 0% 100% no-repeat, rgb(11 114 133 / .2);
  transition: background-size .6s var(--ease-out);
}
.bk-steps li.is-done::after { background-size: 100% 100%; }
.bk-n {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: #fff; border: 1.5px solid rgb(11 114 133 / .22); color: var(--muted);
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.bk-n .i { width: 16px; height: 16px; stroke-width: 2.6; }
.bk-steps li.is-active { color: var(--ink); }
.bk-steps li.is-active .bk-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgb(22 162 174 / .16); }
.bk-steps li.is-done { color: var(--ink-2); }
.bk-steps li.is-done .bk-n { background: #e2f4f6; border-color: transparent; color: var(--teal); }

.bk-main { grid-area: main; display: grid; gap: 30px; align-content: start; min-width: 0; }
.bk-h {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3;
}
.bk-h small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.bk-h--sm { font-size: 18px; margin-bottom: 4px; }
.bk-k {
  display: inline-block; padding: 1px 0; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: .02em;
  color: var(--aqua); font-variant-numeric: tabular-nums; transition: background .3s, color .3s, padding .3s, box-shadow .3s;
}
.is-current > .bk-h .bk-k { padding: 1px 9px; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgb(11 114 133 / .7); }
.bk-hint { margin: -6px 0 12px; font-size: 15px; color: var(--muted); }
.bk-block:not(.is-locked) .bk-hint { display: none; }
.bk-days, .bk-slots { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.bk-block.is-locked .bk-days, .bk-block.is-locked .bk-slots { opacity: .45; filter: saturate(.2); }

/* шаг 1: услуги */
.bk-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s var(--ease-out);
}
.opt:hover { border-color: var(--line-2); box-shadow: 0 10px 22px -16px rgb(11 114 133 / .55); }
.opt[aria-checked="true"] {
  border-color: var(--teal); background: linear-gradient(180deg, #f3fbfc, #e8f6f8);
  box-shadow: 0 0 0 3px rgb(22 162 174 / .16), 0 12px 26px -18px rgb(11 114 133 / .7);
}
.radio {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.75px solid rgb(11 114 133 / .38); transition: border-color .25s;
}
.radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad);
  transform: scale(0); transition: transform .35s var(--ease-out);
}
.opt[aria-checked="true"] .radio { border-color: var(--teal); }
.opt[aria-checked="true"] .radio::after { transform: scale(1); }
.opt-txt { min-width: 0; }
.opt-txt b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.opt-txt small { display: block; margin-top: 3px; font-size: 15px; line-height: 1.3; color: var(--muted); }

/* шаг 2: дни */
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day {
  display: grid; grid-template-areas: "top" "num" "bot"; justify-items: center; align-content: center; gap: 2px;
  min-height: 98px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .25s, box-shadow .25s, background .25s, color .25s;
}
.day-top { grid-area: top; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.day-num { grid-area: num; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.day-bot { grid-area: bot; font-size: 15px; line-height: 1.2; color: var(--muted); }
.day:hover:not(:disabled) { border-color: var(--teal); box-shadow: 0 10px 22px -16px rgb(11 114 133 / .6); }
.day[aria-checked="true"] {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 3px rgb(22 162 174 / .18), 0 14px 26px -14px rgb(11 114 133 / .8);
}
.day[aria-checked="true"] .day-top, .day[aria-checked="true"] .day-bot { color: rgb(255 255 255 / .92); }
.day:disabled {
  cursor: not-allowed; border-style: dashed; color: #9cb1bb;
  background: repeating-linear-gradient(135deg, rgb(11 114 133 / .035) 0 6px, transparent 6px 12px), #fbfdfe;
}
.day:disabled .day-top { color: #8ea5b0; }
.day:disabled .day-bot { color: var(--muted); font-weight: 600; }

/* шаг 3: время */
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; padding: 0 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font: 700 16px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.slot:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.slot[aria-checked="true"] {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 3px rgb(22 162 174 / .18), 0 12px 22px -12px rgb(11 114 133 / .8);
}
.slot:disabled {
  cursor: not-allowed; border-style: dashed; background: #f7fafb; color: #93a9b3;
  text-decoration: line-through; text-decoration-color: rgb(85 114 130 / .55);
}
.bk-empty {
  grid-column: 1 / -1; margin: 0; padding: 22px 18px; border-radius: 16px; border: 1px dashed var(--line-2);
  background: rgb(244 249 252 / .7); text-align: center; font-size: 15px; color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .opt[aria-checked="true"], .day[aria-checked="true"], .slot[aria-checked="true"] { animation: pop .4s var(--ease-out); }
}
@keyframes pop { 0% { transform: scale(.95); } 100% { transform: scale(1); } }

/* сводка и контакты */
.bk-side {
  grid-area: side; position: sticky; top: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + 20px); align-self: start;
  padding: 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(170deg, #f7fcfd 0%, #eaf6f9 100%); box-shadow: inset 0 1px 0 #fff;
}
.bk-side-h { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.bk-side-sub { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.bk-sum { margin: 0; }
.bk-sum > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed rgb(11 114 133 / .2);
}
.bk-sum dt { flex: none; font-size: 15px; color: var(--muted); }
.bk-sum dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: right; color: var(--ink); }
.bk-sum dd.is-empty { font-weight: 500; color: var(--muted); }
.bk-sum dd.is-flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { color: var(--aqua); } 100% { color: var(--ink); } }
.bk-note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid rgb(22 162 174 / .3);
  box-shadow: 0 10px 22px -18px rgb(11 114 133 / .7);
}
.bk-note > .i { margin-top: 2px; color: var(--teal); }
.bk-note p { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.bk-note-k { display: block; font-size: 15px; font-weight: 600; color: var(--muted); }
.bk-note-x {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -8px -10px 0; flex: none;
  border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer;
}
.bk-note-x:hover { color: var(--teal); background: rgb(11 114 133 / .07); }
.bk-contacts { margin-top: 22px; }
.field { margin-top: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid rgb(11 114 133 / .24); border-radius: 12px;
  background: #fff; color: var(--ink); font: 500 17px/1.2 var(--font); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8299a5; }
.field input:hover { border-color: rgb(11 114 133 / .4); }
.field input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgb(22 162 174 / .18); }
.field.is-invalid input { border-color: var(--err); box-shadow: 0 0 0 4px rgb(180 56 10 / .1); }
.field.is-invalid.is-shake input { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.err { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--err); font-weight: 600; }
.bk-submit { width: 100%; margin-top: 18px; }
.bk-legal { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); text-align: center; }

/* заявка принята */
.bk-ok { text-align: center; outline: none; }
.bk-ok-ico {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 18px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 10px rgb(22 162 174 / .12), 0 0 0 22px rgb(22 162 174 / .05), 0 20px 34px -14px rgb(11 114 133 / .8);
}
.bk-ok-ico svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bk-ok:not([hidden]) .bk-ok-ico { animation: okin .6s var(--ease-out) both; }
  .bk-ok:not([hidden]) .bk-ok-ico svg { animation: draw .55s .25s var(--ease-out) both; }
}
@keyframes okin { 0% { transform: scale(.6); opacity: 0; filter: blur(6px); } 100% { transform: scale(1); opacity: 1; filter: none; } }
@keyframes draw { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
.bk-ok-h { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.bk-ok-text { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.bk-sum--ok { text-align: left; margin-bottom: 18px; padding: 4px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bk-sum--ok > div:last-child { border-bottom: 0; }
.bk-again { width: 100%; }

/* ---------- отзывы ---------- */
.rating { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 20px; }
.rating-big { margin: 0; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 3px; margin: 0; }
.rating-sub { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rev { display: flex; flex-direction: column; margin: 0; padding: 28px 26px 24px; }
.rev-q { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; fill: rgb(22 162 174 / .16); }
.rev-text { flex: 1; margin: 16px 0 22px; }
.rev-text p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.rev-by { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid rgb(11 114 133 / .1); }
.rev-by b { display: block; font-size: 16px; font-weight: 800; }
.rev-by small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.proof {
  list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.proof li {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 20px;
  background: linear-gradient(135deg, rgb(255 255 255 / .7), rgb(255 255 255 / .35)); border: 1px solid var(--line);
}
.proof b { font-size: clamp(28px, 1.2rem + 1.2vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.proof b, .rating-big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof li > span { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--hd-h) + 32px); }
.faq-aside .sec-head { margin-bottom: 0; }
.ask { margin-top: 32px; padding: 24px; }
.ask-h { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ask p { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ask-row { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; }
.faq-item.is-open { border-color: var(--line-2); }
.faq-h { margin: 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 66px;
  padding: 18px 20px 18px 24px; border: 0; border-radius: 20px; background: none; color: var(--ink);
  font: 700 17px/1.35 var(--font); letter-spacing: -.01em; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { color: var(--teal); }
.pm {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgb(11 114 133 / .08);
  transition: background .3s, transform .45s var(--ease-out);
}
.pm::before, .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--teal); transition: transform .45s var(--ease-out), background .3s;
}
.pm::after { transform: rotate(90deg); }
.is-open .pm { background: var(--teal); transform: rotate(180deg); }
.is-open .pm::before, .is-open .pm::after { background: #fff; }
.is-open .pm::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { margin: 0; padding: 0 24px 22px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ---------- контакты и схема ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.ct-card { padding: 28px; }
.ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ct-list li { display: flex; align-items: flex-start; gap: 16px; }
.ct-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; color: var(--teal);
  background: linear-gradient(145deg, #fff, #e4f3f6); box-shadow: inset 0 0 0 1px var(--line);
}
.ct-k { margin: 0 0 2px; font-size: 15px; color: var(--muted); }
.ct-v { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.ct-link { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -8px; text-decoration: none; transition: color .2s; }
.ct-link:hover { color: var(--teal); }
.ct-n { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.ct-hours-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px;
  margin: 26px 0 8px; padding-top: 22px; border-top: 1px solid rgb(11 114 133 / .1);
}
.ct-h3 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.ct-h3 .i { color: var(--teal); }
.open-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 6px 13px 6px 11px; border-radius: 999px;
  background: rgb(22 162 174 / .1); color: var(--teal); font-size: 15px; font-weight: 700; line-height: 1.3;
}
.open-badge i { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--aqua); }
.open-badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--aqua); animation: ping 2.4s var(--ease-out) infinite; }
.open-badge.is-closed { background: rgb(85 114 130 / .1); color: var(--muted); }
.open-badge.is-closed i { background: #9ab0bb; }
.open-badge.is-closed i::after { display: none; }
.ct-hours { list-style: none; margin: 0; padding: 0; }
.ct-hours li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin: 0 -12px; padding: 9px 12px;
  border-radius: 12px; font-size: 16px; color: var(--ink-2);
}
.ct-hours li b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct-hours li.is-today { background: rgb(22 162 174 / .09); }
.ct-hours li.is-today > span::after { content: " · сегодня"; color: var(--teal); font-weight: 700; }
.ct-next { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--teal); }
.ct-next:empty { display: none; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.ct-map { margin: 0; padding: 10px; }
.map { position: relative; aspect-ratio: 640 / 520; border-radius: 16px; overflow: hidden; background: #edf5f8; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(11 114 133 / .08);
  background: radial-gradient(120% 100% at 50% 40%, transparent 62%, rgb(11 114 133 / .07));
}
.map { --px: 54.06%; --py: 47.9%; }
.map-route { animation: route 1.4s linear infinite; }
@keyframes route { to { stroke-dashoffset: -22; } }
.map-ping {
  position: absolute; left: var(--px); top: var(--py); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: rgb(22 162 174 / .45); animation: mping 2.4s var(--ease-out) infinite;
}
@keyframes mping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.4); opacity: 0; } }
.map-pin {
  position: absolute; left: var(--px); top: var(--py); width: 40px; height: 54px; transform: translate(-50%, -100%);
  filter: drop-shadow(0 8px 10px rgb(3 45 56 / .3));
}
.map-card {
  position: absolute; left: var(--px); top: var(--py); transform: translate(calc(-100% + 30px), calc(-100% - 64px));
  display: block; padding: 10px 16px; border-radius: 14px; text-align: left; white-space: nowrap;
  background: rgb(255 255 255 / .95); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -18px rgb(12 38 50 / .45);
}
.map-card b { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.map-card > span { display: block; font-size: 15px; line-height: 1.35; color: var(--muted); }
.map-lbl {
  position: absolute; transform: translate(-50%, -50%); font-size: 15px; font-weight: 700; line-height: 1.2;
  color: #6f8c9a; text-align: center; white-space: nowrap; text-shadow: 0 0 6px #fff, 0 0 3px #fff, 0 0 1px #fff;
}
.map-lbl--street { left: 29%; top: 49.6%; letter-spacing: .02em; }
.map-lbl--park { left: 82.8%; top: 25%; color: #4f8a70; }
.is-off .map-route, .is-off .map-ping { animation-play-state: paused; }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 12px 6px 4px; }
.map-chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgb(11 114 133 / .06); color: var(--ink-2); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.map-chips .i { color: var(--teal); }

/* ---------- финальный призыв ---------- */
.cta-final { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(84px, 9vw, 128px); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center; gap: 32px 56px; padding: clamp(28px, 5vw, 68px); border-radius: 32px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #0f8b9c 0%, #0b7285 40%, #075468 100%);
  box-shadow: 0 44px 90px -44px rgb(7 84 104 / .75), inset 0 1px 0 rgb(255 255 255 / .2);
}
.cta-card::before { /* медленно плывущий свет, без резких краёв */
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 46% at 28% 34%, rgb(142 234 240 / .3), rgb(142 234 240 / 0) 72%),
    radial-gradient(30% 40% at 74% 70%, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 72%);
  animation: cta-light 24s ease-in-out infinite alternate;
}
@keyframes cta-light {
  0% { transform: translate3d(-7%, -4%, 0) rotate(0deg); }
  100% { transform: translate3d(8%, 5%, 0) rotate(10deg); }
}
.cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 100% 100%, rgb(22 162 174 / .45), transparent 70%);
}
.cta-bead {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgb(255 255 255 / .75), rgb(255 255 255 / 0) 26%),
    radial-gradient(circle at 50% 50%, rgb(142 234 240 / .4), rgb(22 162 174 / .18) 62%, rgb(22 162 174 / .04));
  box-shadow: inset 0 -10px 20px rgb(3 45 56 / .22), inset 0 0 0 1px rgb(255 255 255 / .18);
  animation: float 14s ease-in-out infinite alternate;
}
.cta-bead--1 { width: 180px; height: 180px; right: 6%; top: -60px; }
.cta-bead--2 { width: 90px; height: 90px; right: 30%; bottom: -30px; animation-duration: 11s; animation-delay: -4s; }
.cta-bead--3 { width: 44px; height: 44px; left: 46%; top: 22px; animation-duration: 9s; animation-delay: -2s; }
@keyframes float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-14px, 18px, 0); } }
.cta-copy p:not(.eyebrow) { margin: 18px 0 0; max-width: 56ch; font-size: clamp(17px, 1rem + .2vw, 19px); line-height: 1.6; color: rgb(255 255 255 / .9); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-card.is-off::before, .cta-card.is-off .cta-bead { animation-play-state: paused; }
.is-off .open-badge i::after { animation-play-state: paused; }

/* ---------- подвал ---------- */
.ft {
  position: relative; padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgb(244 249 252 / 0), var(--soft) 40%); border-top: 1px solid rgb(11 114 133 / .08);
}
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.ft-about p { margin: 16px 0 0; max-width: 36ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ft-h { margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ft-col li { display: flex; align-items: center; min-height: 38px; font-size: 15px; color: var(--muted); }
.ft-col a { display: inline-flex; align-items: center; min-height: 38px; min-width: 44px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.ft-col a:hover { color: var(--teal); }
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid rgb(11 114 133 / .1); font-size: 15px; color: var(--muted);
}
.ft-bottom p { margin: 0; }
.ft-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.ft-top .i { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .3s var(--ease-out); }
.ft-top:hover { color: var(--teal); }
.ft-top:hover .i { transform: rotate(-90deg) translateX(3px); }

/* ---------- появление «ясность»: из размытия, без перелёта ---------- */
.js .rv { opacity: 0; filter: blur(8px); transition: opacity .5s var(--ease) var(--d, 0s), filter .5s var(--ease) var(--d, 0s); }
.js .rv.is-in { opacity: 1; filter: none; }
.js .rv.card-hover {
  transition: opacity .5s var(--ease) var(--d, 0s), filter .5s var(--ease) var(--d, 0s),
    transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
/* страховка: если скрипт не загрузился, через 3 с всё видно */
.js:not(.site-ready) .rv { animation: rv-safe 0s linear 3s forwards; }
@keyframes rv-safe { to { opacity: 1; filter: none; } }

/* ---------- адаптив ---------- */
@media (max-width: 1199px) {
  .hd-phone span { display: none; }
  .svc-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "main" "side"; }
  .bk-side { position: static; }
  .bk-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; align-items: start; }
  .bk-contacts { margin-top: 0; }
  .bk-ok { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 1079px) {
  :root { --hd-h: 64px; }
  .hd-nav, .hd-phone { display: none; }
  .burger { display: inline-block; }
  .hd-bar { gap: 10px; }
  .hd-cta { margin-left: auto; }
}
@media (min-width: 1080px) { .mnav { display: none; } }
@media (max-width: 979px) {
  .rev-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .proof { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .faq-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-about { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .bk-days { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .day {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num top" "num bot";
    justify-items: start; align-items: center; column-gap: 12px; row-gap: 0;
    min-height: 66px; padding: 10px 14px; text-align: left;
  }
  .day-num { min-width: 36px; text-align: center; font-size: 28px; }
}
@media (max-width: 760px) {
  .bk-form { grid-template-columns: minmax(0, 1fr); }
  .bk-contacts { margin-top: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo-txt b { font-size: 21px; max-width: 9ch; }
  .logo-txt small { font-size: 15px; letter-spacing: 0; margin-top: 2px; }
  .bead { width: 30px; height: 30px; }
  .logo { gap: 9px; }
  .hd-cta { padding: 0 14px; }
  .sec-head--row { gap: 22px; }
  .sec-head--row > :first-child { flex-basis: 100%; }
  .pledge { flex-basis: 100%; padding: 18px; }
  .svc-grid, .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc { padding: 22px 20px 18px; }
  .trust { justify-content: flex-start; flex-direction: column; gap: 12px; }
  .rating { width: 100%; }
  /* запись: одна колонка, шаги — липкая полоска под шапкой */
  .bk { padding: 14px; border-radius: 24px; gap: 20px; }
  .bk-steps {
    position: sticky; top: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + 8px);
    padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line);
    background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 12px 26px -20px rgb(12 38 50 / .5);
  }
  .bk-steps::before { /* то, что уезжает под полоску, мягко гаснет над ней */
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; pointer-events: none;
    background: linear-gradient(rgb(255 255 255 / .7), rgb(255 255 255 / .96));
  }
  /* шаги не сжимаются меньше содержимого; свободное место уходит в линии между ними,
     подпись видна только у текущего шага */
  .bk-steps li { flex: 1 1 auto; min-width: auto; gap: 0; }
  .bk-steps li:last-child { flex: 0 0 auto; }
  .bk-n { width: 30px; height: 30px; }
  .bk-steps li.is-active .bk-t { margin-left: 8px; white-space: nowrap; }
  .bk-steps li:not(.is-active) .bk-t {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .bk-steps li:not(:last-child)::after { margin: 0 5px; min-width: 8px; }
  .bk-steps li.is-active .bk-n { box-shadow: 0 0 0 3px rgb(22 162 174 / .18); }
  .bk-svc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .opt { min-height: 62px; padding: 10px 14px; }
  .bk-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-side { padding: 18px 16px; border-radius: 20px; }
  .bk-sum > div { gap: 12px; }
  .rev { padding: 24px 20px 20px; }
  .faq-q { padding: 16px 16px 16px 18px; font-size: 17px; }
  .faq-a p { padding: 0 18px 20px; }
  .ct-card { padding: 22px 18px; }
  .ct-actions .btn, .ask-row .btn { flex: 1 1 100%; }
  .map-card { transform: translate(calc(-100% + 24px), calc(-100% - 50px)); padding: 8px 12px; }
  .map-pin { width: 32px; height: 43px; }
  .cta-card { border-radius: 26px; }
  .cta-actions .btn { width: 100%; }
  .cta-bead--1 { width: 120px; height: 120px; right: -20px; top: -40px; }
  .cta-bead--3 { display: none; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ft-col li, .ft-col a { min-height: 44px; }
}
@media (max-width: 380px) {
  .logo-txt b { font-size: 20px; max-width: 8ch; }
  .hd-cta { padding: 0 12px; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.card-hover { opacity: 1; filter: none; transition: none; animation: none; }
  .glow, .live::after, .open-badge i::after, .map-route, .map-ping, .cta-card::before, .cta-bead, .hd.is-scrolled::after { animation: none; }
  .mnav-links li { opacity: 1; filter: none; transition: none; }
  .card-hover, .card-hover:hover, .btn, .btn:hover { transform: none; }
  .faq-a, .bk-steps li::after, .bead-av::after { transition: none; }
}
