/* ============================================================
   iDent — дизайн-система 2026
   Світлий преміум у фірмових кольорах лого:
   крижаний білий #F3F7F9 + бірюза #7BC8DD/#0E7490 + графіт #15191B
   Шрифти: Manrope (display, 700-800) + Google Sans (body)
   ============================================================ */

:root {
  --bg: #F3F7F9;
  --bg-soft: #E8EFF3;
  --surface: #FFFFFF;
  --ink: #14191B;
  --ink-60: rgba(20, 25, 27, .62);
  --ink-40: rgba(20, 25, 27, .42);
  --ink-12: rgba(20, 25, 27, .12);
  --teal: #0E7490;
  --teal-deep: #0B5A70;
  --teal-ink: #15191B;
  --mint: #D6EBF3;
  --mint-soft: #E9F3F7;
  --gold: #7BC8DD;
  --gold-soft: #E0F1F7;
  --danger: #C0392B;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Google Sans', system-ui, sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow-soft: 0 6px 30px rgba(20, 25, 27, .07);
  --shadow-card: 0 18px 60px rgba(20, 25, 27, .10);
  --shadow-deep: 0 30px 90px rgba(11, 90, 112, .22);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }

main { overflow-x: clip; width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h-hero { font-size: clamp(2.4rem, 5.4vw, 5rem); max-width: 22ch; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 3.3rem); max-width: 20ch; }
.h-card { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ink-60); max-width: 56ch; }
.text-muted { color: var(--ink-60); }
.accent { color: var(--teal); }
.accent-italic { font-style: normal; color: var(--teal); font-weight: 400; }

/* Інлайн-фото в заголовку */
.h-inline-img {
  display: inline-block;
  width: clamp(72px, 8vw, 130px);
  height: clamp(40px, 4.4vw, 68px);
  border-radius: var(--r-pill);
  background-size: cover;
  background-position: center;
  vertical-align: middle;
  margin: 0 .12em;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.section { padding-block: clamp(3.2rem, 6.5vw, 6rem); }
.section-tight { padding-block: clamp(2.4rem, 4.5vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.section-head .lead { margin-top: 1rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem 2.1rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 34px rgba(14, 116, 144, .35); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(14, 116, 144, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-12); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--teal-ink); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.btn-lg { padding: 1.25rem 2.7rem; font-size: 1.08rem; }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn .btn-tooth { width: 1.15em; height: 1.15em; flex: none; }

/* Сучасна кнопка запису: блиск-світло + м'який пульс */
.btn-book { position: relative; overflow: hidden; }
.btn-book::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  animation: btnShine 4.5s var(--ease-out) infinite;
}
.btn-book:hover::after { animation-duration: 1.2s; }
@keyframes btnShine { 0%,18% { left: -120%; } 38%,100% { left: 130%; } }
.btn-book .btn-tooth { animation: toothWobble 4.5s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes toothWobble { 0%,82%,100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .btn-book::after, .btn-book .btn-tooth { animation: none; } }

/* ---------- Навігація: плаваюча скляна піґулка ---------- */
.nav-wrap {
  position: fixed; inset-inline: 0; top: 18px; z-index: 1000;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: top .4s var(--ease-out);
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem);
  width: min(var(--container), 92vw);
  padding: .65rem .9rem .65rem 1.4rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 10px 40px rgba(20, 25, 27, .10);
  transition: box-shadow .4s, background .4s;
}
.nav.scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 14px 50px rgba(20, 25, 27, .14); }
.nav-logo { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo img {
  width: 62px;
  height: 51px;
  object-fit: contain;
}
.nav-logo b { color: var(--teal); font-weight: 600; }
.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.7rem); margin-inline: auto; }
.nav-menu > li { position: relative; }
.nav-menu a { font-size: .95rem; font-weight: 500; color: var(--ink-60); transition: color .25s; padding-block: .6rem; }
.nav-menu a:hover, .nav-menu li.active > a { color: var(--ink); }

/* Мегаменю послуг */
.nav-drop { position: relative; }
.nav-drop > a::after { content: ''; display: inline-block; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: .45rem; transition: transform .3s; }
.nav-drop:hover > a::after { transform: rotate(225deg) translateY(-1px); }
.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(12px);
  width: min(640px, 90vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--ink) !important;
  transition: background .25s;
}
.mega a:hover { background: var(--mint-soft); }
.mega .mi { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--teal); }
.mega .mi svg { width: 20px; height: 20px; }
.mega .mi img { width: 22px; height: 22px; object-fit: contain; }
.mega small { display: block; color: var(--ink-40); font-size: .78rem; line-height: 1.3; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-mini { display: none; }
.nav-phone { font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--teal); }

/* Перемикач мов */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--ink-12); background: transparent; font-size: .85rem; font-weight: 600; cursor: pointer; text-transform: uppercase; }
.lang-list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 110px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-card); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease-out); }
.lang:hover .lang-list, .lang:focus-within .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a { display: block; padding: .5rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 500; }
.lang-list a:hover { background: var(--mint-soft); }

/* Бургер */
.burger { display: none; width: 46px; height: 46px; border: none; background: var(--ink); border-radius: var(--r-pill); cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: .35s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
body.nav-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Мобільне меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 990;
  background: var(--bg);
  padding: 110px 6vw 40px;
  display: flex; flex-direction: column; gap: .2rem;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: .45s var(--ease-out);
  overflow-y: auto;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > a { font-family: var(--font-display); font-size: clamp(1.1rem, 4.4vw, 1.45rem); font-weight: 700; padding: .6rem 0; border-bottom: 1px solid var(--ink-12); }
.mobile-menu .mm-sub { display: flex; flex-wrap: wrap; gap: .45rem; padding: .9rem 0; }
.mobile-menu .mm-sub a { font-size: .82rem; padding: .45rem .85rem; background: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow-soft); }
.mobile-menu .mm-langs { display: flex; gap: .5rem; padding: 1.1rem 0 0; }
.mobile-menu .mm-langs a { padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1px solid var(--ink-12); font-size: .85rem; font-weight: 700; }
.mobile-menu .mm-langs a.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.mobile-menu .btn { margin-top: 1.5rem; width: 100%; align-self: stretch; justify-content: center; padding-top: 1.5rem; padding-bottom: 1.5rem; min-height: 64px; font-size: 1.12rem; }

/* ---------- Лайтбокс (збільшення фото) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1300;
  display: grid; place-items: center; padding: 4vw;
  background: rgba(10, 16, 18, .9); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-deep); transform: scale(.94); transition: transform .4s var(--ease-out); }
.lightbox.on img { transform: scale(1); }
.lightbox .lb-close { position: absolute; top: 4vw; right: 4vw; width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .3s; }
.lightbox .lb-close:hover { background: var(--teal); transform: rotate(90deg); }
.lightbox .lb-close svg { width: 22px; height: 22px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.lightbox .lb-nav:hover { background: var(--teal); }
.lightbox .lb-prev { left: 3vw; } .lightbox .lb-next { right: 3vw; }
.lightbox .lb-nav svg { width: 24px; height: 24px; }
.zoomable { cursor: zoom-in; }
.gallery-strip figure { position: relative; }
.gallery-strip figure::after {
  content: ''; position: absolute; inset: 0; background: rgba(14,116,144,0); display: grid; place-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity .3s, background-color .3s; pointer-events: none;
}
.gallery-strip figure:hover::after { opacity: 1; background-color: rgba(14,116,144,.35); }

/* ---------- Атом-декор (логотип на фонах) ---------- */
.atom-decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: atomSpin 90s linear infinite;
  z-index: 0;
}
@keyframes atomSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .atom-decor { animation: none; } }

/* ---------- Кнопка та бокова панель «Послуги» ---------- */
.svc-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem;
  border: none; border-radius: var(--r-pill);
  background: var(--mint); color: var(--teal-ink);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .3s, transform .3s;
}
.svc-btn:hover { background: var(--gold); transform: translateY(-1px); }
.sb-ico { display: inline-flex; flex-direction: column; gap: 3px; }
.sb-ico i { width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: .3s; }
body.svc-open .sb-ico i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.svc-open .sb-ico i:nth-child(2) { opacity: 0; }
body.svc-open .sb-ico i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.svc-overlay {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(10, 16, 18, .45);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
body.svc-open .svc-overlay { opacity: 1; visibility: visible; }

.svc-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1100;
  width: min(780px, 96vw);
  background: rgba(18, 24, 26, .82);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  transform: translateX(-104%);
  transition: transform .55s var(--ease-out);
  overflow-y: auto;
  scrollbar-width: none;
  color: #fff;
}
.svc-panel::-webkit-scrollbar { display: none; }
body.svc-open .svc-panel { transform: none; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.sp-head h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); color: #fff; }
.sp-close { width: 46px; height: 46px; flex: none; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .3s; }
.sp-close:hover { background: var(--teal); transform: rotate(90deg); }
.sp-close svg { width: 20px; height: 20px; }

.sp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.sp-groups { display: grid; gap: .55rem; }
.sp-group {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: 1rem 1.3rem;
  border: none; border-radius: var(--r-sm);
  background: rgba(255,255,255,.92); color: var(--ink);
  font-weight: 600; font-size: .95rem; text-align: left;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.sp-group svg { width: 18px; height: 18px; flex: none; opacity: .55; transition: transform .25s; }
.sp-group:hover { transform: translateX(4px); }
.sp-group.on { background: var(--teal-ink); color: #fff; outline: 1px solid rgba(123,200,221,.4); }
.sp-group.on svg { opacity: 1; transform: translateX(3px); color: var(--gold); }
.sp-all { background: var(--gold); color: var(--teal-ink); text-decoration: none; }
.sp-all:hover { background: #97D5E6; }

.sp-subs { position: relative; }
.sp-sub { display: none; gap: .45rem; }
.sp-sub.on { display: grid; animation: spFade .35s var(--ease-out); }
@keyframes spFade { from { opacity: 0; transform: translateY(10px); } }
.sp-sub a {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  color: #fff;
  transition: background .25s;
}
.sp-sub a:hover { background: rgba(255,255,255,.16); }
.sp-sub .mi { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; }
.sp-sub .mi img { width: 24px; height: 24px; object-fit: contain; }
.sp-sub a > span:last-child { font-weight: 600; font-size: .93rem; }
.sp-sub small { display: block; font-weight: 400; color: rgba(255,255,255,.55); font-size: .78rem; }

/* ---------- HERO-дека: відео + слайдер акцій ---------- */
.hero-deck {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 1.1rem;
  padding-top: clamp(132px, 17vh, 156px);
  align-items: stretch;
}
.hd-video {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: clamp(420px, 56vh, 560px);
  background: var(--teal-ink);
  isolation: isolate;
}
.hd-video video, .hd-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hd-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6,12,14,0) 30%, rgba(6,12,14,.78) 100%); z-index: 0; }
.hd-overlay { position: absolute; inset-inline: clamp(1.4rem, 3vw, 2.6rem); bottom: clamp(1.4rem, 3vw, 2.4rem); z-index: 1; color: #fff; }
.hd-overlay h1 { font-size: clamp(1.7rem, 3.2vw, 2.9rem); max-width: 18ch; color: #fff; }
.hd-overlay p { color: rgba(255,255,255,.82); margin-top: .8rem; max-width: 48ch; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.hd-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

.hd-slider { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 320px; }
.hds-track { display: flex; height: 100%; transition: transform .65s var(--ease-out); }
.hds-slide {
  position: relative; flex: 0 0 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  isolation: isolate;
  overflow: hidden;
}
.hds-slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hds-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(195deg, rgba(6,12,14,.05) 35%, rgba(6,12,14,.8) 100%); z-index: 0; }
.hds-box { position: relative; z-index: 1; color: #fff; }
.hds-box .p-off { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--gold); line-height: 1; }
.hds-box h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin: .5rem 0 .4rem; color: #fff; }
.hds-box p { color: rgba(255,255,255,.8); font-size: .92rem; max-width: 46ch; }
.hds-box .btn { margin-top: 1rem; }
.hds-nav {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
  display: flex; gap: .5rem;
}
.hds-nav button {
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s, transform .3s;
}
.hds-nav button:hover { background: var(--gold); transform: scale(1.06); }
.hds-nav svg { width: 18px; height: 18px; }
.hds-dots { position: absolute; bottom: 1.1rem; right: 1.4rem; z-index: 2; display: flex; gap: .4rem; }
.hds-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hds-dots i.on { background: var(--gold); width: 22px; border-radius: 99px; }

/* ---------- HERO: кінематографічний центр ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vh, 10rem) 4vw clamp(3rem, 6vh, 5rem);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(246, 244, 239, .0) 0%, rgba(246, 244, 239, .55) 55%, rgba(246, 244, 239, .97) 100%),
    linear-gradient(180deg, rgba(246,244,239,.88) 0%, rgba(246,244,239,.42) 30%, rgba(246,244,239,.30) 60%, var(--bg) 100%);
}
.hero .h-hero { margin-inline: auto; max-width: 17ch; }
.hero .lead { margin: 1.6rem auto 2.6rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  margin-top: clamp(3rem, 7vh, 5.5rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
}
.hero-strip span {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.3rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  font-size: .9rem; font-weight: 500; color: var(--ink-60);
  box-shadow: var(--shadow-soft);
}
.hero-strip svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* ---------- Маркі (біжуча стрічка) ---------- */
.marquee { overflow: hidden; padding-block: .65rem; background: var(--teal-ink); color: rgba(255,255,255,.85); margin-top: clamp(2rem, 4vw, 3rem); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: flex; align-items: center; white-space: nowrap; }
.marquee-track a {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1.6rem; margin-inline: .6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: .92rem; font-weight: 600; letter-spacing: .03em;
  color: #fff;
  transition: background .3s, color .3s;
}
.marquee-track a b { color: var(--gold); font-weight: 700; }
.marquee-track a:hover { background: var(--gold); color: var(--teal-ink); }
.marquee-track a:hover b { color: var(--teal-ink); }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Бенто-сітка послуг (без порожнеч) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 1.1rem;
}
.bento-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.bento-card .bc-img { position: absolute; inset: 0; }
.bento-card .bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bento-card:hover .bc-img img { transform: scale(1.06); }
.bento-card .bc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,25,27,0) 30%, rgba(21,25,27,.82) 100%); }
.bento-card .bc-body { position: relative; z-index: 1; }
.bento-card.has-img { color: #fff; min-height: 360px; }
.bento-card.has-img .bc-desc { color: rgba(255,255,255,.78); }
.bento-card .bc-desc { color: var(--ink-60); font-size: .95rem; margin-top: .5rem; max-width: 42ch; }
.bento-card .bc-price { margin-top: 1rem; font-weight: 700; font-size: 1.05rem; }
.bento-card.has-img .bc-price { color: var(--gold); }
.bento-card .bc-price small { font-weight: 500; opacity: .7; }
.bento-card .bc-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: auto; }
.bento-card .bc-ico svg { width: 26px; height: 26px; }
.bento-card .bc-ico img { width: 28px; height: 28px; object-fit: contain; }
.bento-card.dark .bc-ico img { filter: invert(1); }
.bento-card .bc-arrow {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  transform: rotate(-45deg);
  transition: transform .45s var(--ease-out), background .3s, color .3s;
}
.bento-card:hover .bc-arrow { transform: rotate(0deg); background: var(--teal); color: #fff; }
.bento-card .bc-arrow svg { width: 18px; height: 18px; }
.b-span-3 { grid-column: span 3; }
.b-span-2 { grid-column: span 2; }
.b-span-4 { grid-column: span 4; }
.b-row-2 { grid-row: span 2; }

.bento-card.tint { background: var(--mint-soft); }
.bento-card.dark { background: var(--teal-ink); color: #fff; }
.bento-card.dark .bc-desc { color: rgba(255,255,255,.72); }
.bento-card.dark .bc-ico { background: rgba(255,255,255,.1); color: var(--gold); }

/* ---------- Горизонтальний акордеон ---------- */
.haccordion { display: flex; gap: .8rem; min-height: 460px; }
.ha-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  flex: 1;
  cursor: pointer;
  transition: flex 1s var(--ease-out);
  background: var(--teal-ink);
}
.ha-item.open { flex: 4.2; }
.ha-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .6s, transform 1.2s var(--ease-out); }
.ha-item.open img { opacity: 1; transform: scale(1.02); }
.ha-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,25,27,.05) 35%, rgba(21,25,27,.88) 100%); }
.ha-label {
  position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 2;
  color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap;
  transition: opacity .4s;
}
.ha-item.open .ha-label { opacity: 0; }
.ha-body {
  position: absolute; inset-inline: 2rem; bottom: 1.8rem; z-index: 2;
  color: #fff; opacity: 0; transform: translateY(16px);
  transition: opacity .55s .25s, transform .55s .25s var(--ease-out);
  pointer-events: none;
}
.ha-item.open .ha-body { opacity: 1; transform: none; pointer-events: auto; }
.ha-body h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: .5rem; }
.ha-body p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 52ch; margin-bottom: 1.1rem; }

/* ---------- Стек карток (GSAP stacking) ---------- */
.stack { display: grid; gap: 1.2rem; }
.stack-card {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-card);
  min-height: 380px;
  overflow: hidden;
}
.stack-card:nth-child(2) { top: 130px; }
.stack-card:nth-child(3) { top: 150px; }
.stack-card:nth-child(4) { top: 170px; }
.stack-card .num { font-family: var(--font-display); font-size: .95rem; color: var(--teal); margin-bottom: 1rem; display: block; }
.stack-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.stack-card p { color: var(--ink-60); max-width: 52ch; }
.stack-card figure { border-radius: var(--r-md); overflow: hidden; height: 100%; min-height: 260px; }
.stack-card figure img { width: 100%; height: 100%; object-fit: cover; }
.stack-card.alt { background: var(--teal-ink); color: #fff; border-color: transparent; }
.stack-card.alt p { color: rgba(255,255,255,.72); }
.stack-card.alt .num { color: var(--gold); }

/* ---------- Лікарі ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.doc-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-soft); }
.doc-card figure { aspect-ratio: 3 / 3.4; overflow: hidden; }
.doc-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease-out); filter: saturate(.92); }
.doc-card:hover figure img { transform: scale(1.05); }
.doc-meta { padding: 1.3rem 1.5rem 1.6rem; }
.doc-meta h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.doc-meta p { font-size: .9rem; color: var(--ink-60); }
.doc-tag { position: absolute; top: 1.1rem; left: 1.1rem; padding: .45rem 1rem; border-radius: var(--r-pill); background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; color: var(--teal-ink); }

/* Бейджі на картці лікаря (досвід / відгуки / локація / запис) */
.dc-media { position: relative; }
.dc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(10,20,24,.45), transparent); pointer-events: none; z-index: 1; }
.doc-card .dc-photo { display: block; }
.doc-card a.doc-meta { display: block; color: inherit; text-decoration: none; }
.dc-badges { position: absolute; top: .85rem; left: .85rem; z-index: 2; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.dc-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: var(--r-pill); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 600; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.dc-badge svg { width: 15px; height: 15px; flex: none; color: var(--teal); }
.dc-foot { position: absolute; left: .85rem; right: .85rem; bottom: .85rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dc-loc { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; padding: .42rem .75rem; border-radius: var(--r-pill); background: rgba(21,25,27,.6); backdrop-filter: blur(8px); color: #fff; font-size: .76rem; font-weight: 600; }
.dc-loc svg { width: 14px; height: 14px; flex: none; }
.dc-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-book { flex: none; padding: .5rem .95rem; border-radius: var(--r-pill); background: var(--teal); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.dc-book:hover { background: var(--teal-ink); transform: translateY(-1px); }
/* ---------- Анімація успішної заявки ---------- */
.lead-ok { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lead-ok.on { opacity: 1; visibility: visible; }
.lo-backdrop { position: absolute; inset: 0; background: rgba(8,40,48,.55); backdrop-filter: blur(6px); }
.lead-ok-card { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-deep); padding: clamp(2rem,4vw,2.8rem); max-width: 380px; width: 100%; text-align: center; transform: scale(.9) translateY(10px); opacity: 0; }
.lead-ok.on .lead-ok-card { animation: loCardIn .5s var(--ease-out) forwards; }
@keyframes loCardIn { to { transform: none; opacity: 1; } }
.lo-anim { position: relative; width: 120px; height: 120px; margin: 0 auto 1.2rem; display: grid; place-items: center; }
.lo-ring { position: absolute; inset: 8px; border-radius: 50%; background: var(--mint); transform: scale(0); }
.lead-ok.on .lo-ring { animation: loRing .55s var(--ease-out) .05s forwards; }
@keyframes loRing { 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.lo-tooth { position: relative; width: 64px; height: 82px; transform: scale(0); transform-origin: center; }
.lead-ok.on .lo-tooth { animation: loPop .6s var(--ease-out) .15s forwards; }
@keyframes loPop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.lo-badge { position: absolute; right: 16px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(22,163,74,.4); transform: scale(0); }
.lead-ok.on .lo-badge { animation: loPop .5s var(--ease-out) .72s forwards; }
.lo-badge svg { width: 22px; height: 22px; }
.lo-check { stroke-dasharray: 100; stroke-dashoffset: 100; }
.lead-ok.on .lo-check { animation: loDraw .4s ease .95s forwards; }
@keyframes loDraw { to { stroke-dashoffset: 0; } }
.lo-spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); opacity: 0; top: 50%; left: 50%; }
.lead-ok.on .lo-spark { animation: loSpark .9s ease-out 1s forwards; }
.lo-spark:nth-child(1){ --tx:-48px; --ty:-30px; background: var(--gold); }
.lo-spark:nth-child(2){ --tx:50px; --ty:-22px; }
.lo-spark:nth-child(3){ --tx:-42px; --ty:36px; background: var(--gold); }
.lo-spark:nth-child(4){ --tx:46px; --ty:40px; }
.lo-spark:nth-child(5){ --tx:0px; --ty:-54px; }
.lo-spark:nth-child(6){ --tx:8px; --ty:54px; background: var(--gold); }
@keyframes loSpark { 0% { opacity:0; transform: translate(-50%,-50%) scale(.2); } 40% { opacity:1; } 100% { opacity:0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); } }
.lo-title { font-size: 1.5rem; margin-bottom: .5rem; }
.lo-text { color: var(--ink-60); margin-bottom: 1.4rem; font-size: .98rem; min-height: 1.2em; }
.lead-ok .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .lead-ok *, .lead-ok-card { animation: none !important; transform: none !important; opacity: 1 !important; } .lo-tooth-p, .lo-check { stroke-dashoffset: 0 !important; } .lo-ring { transform: scale(1) !important; } }

.dh-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.dh-tags a.doc-tag { transition: background .2s var(--ease-out); }
.dh-tags a.doc-tag:hover { background: var(--mint); }

/* ---------- До / Після (слайдер кейсів) ---------- */
.ba-section .section-head { align-items: flex-end; gap: 1.5rem; }
.ba-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.4rem) / 3); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .4rem; cursor: grab; }
.ba-track::-webkit-scrollbar { display: none; }
.ba-track.dragging { cursor: grabbing; }
.ba-card { scroll-snap-align: start; }
.ba-compare { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--bg-soft); user-select: none; }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: .8rem; z-index: 3; padding: .3rem .7rem; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; color: #fff; pointer-events: none; }
.ba-tag-b { left: .8rem; background: rgba(21,25,27,.6); backdrop-filter: blur(6px); }
.ba-tag-a { right: .8rem; background: var(--teal); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); z-index: 4; box-shadow: 0 0 0 1px rgba(0,0,0,.1); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); cursor: ew-resize; pointer-events: auto; touch-action: none; }
.ba-grip svg { width: 18px; height: 18px; }
.ba-meta { padding: 1rem .3rem 0; }
.ba-meta h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.ba-meta p { font-size: .9rem; color: var(--ink-60); }
@media (max-width: 1000px) { .ba-track { grid-auto-columns: calc((100% - 1.2rem) / 2); } }
@media (max-width: 640px) { .ba-track { grid-auto-columns: 86%; } }

/* ---------- Мапа ---------- */
.map-sec { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.4rem; }
.map-info { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.7rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; }
.map-info .mi-row { display: flex; gap: .9rem; align-items: flex-start; }
.mi-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(123, 200, 221, .16); color: #7BC8DD; display: grid; place-items: center; }
.mi-ic svg { width: 20px; height: 20px; }
.map-info small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .5); margin-bottom: .25rem; }
.map-info b, .map-info .mi-row a { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.35; }
.map-info .mi-row a:hover { color: #7BC8DD; }
.map-info .mi-note { font-size: .92rem; color: rgba(255, 255, 255, .62); line-height: 1.5; }
.map-info .btn { align-self: flex-start; margin-top: .2rem; }
.map-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); min-height: 400px; background: var(--bg-soft); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.04); }
.map-chip { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: var(--r-pill); background: #fff; color: var(--teal-ink); font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-soft); }
.map-chip svg { width: 15px; height: 15px; flex: none; color: var(--teal); }

/* ---------- Фінальний CTA з лікарем ---------- */
.cta-doc { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 34px); background: radial-gradient(130% 150% at 82% 8%, #0E7490 0%, #0b6079 55%, #084a5d 100%); color: #fff; display: grid; grid-template-columns: 1.25fr .85fr; align-items: end; gap: 1.5rem; padding: clamp(2rem, 4vw, 3.4rem); padding-bottom: 0; }
.cta-doc::before { content: ""; position: absolute; right: 6%; bottom: -30%; width: 60%; height: 130%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 62%); pointer-events: none; }
.cta-doc-body { padding-bottom: clamp(2rem, 4vw, 3.4rem); position: relative; z-index: 1; }
.cta-doc h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; max-width: 18ch; }
.cta-doc p { margin-top: 1rem; color: rgba(255, 255, 255, .82); font-size: 1.02rem; max-width: 44ch; }
.ctad-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.ctad-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.ctad-ghost:hover { border-color: #fff; transform: translateY(-3px); }
.cta-doc-photo { position: relative; z-index: 1; align-self: end; justify-self: center; max-width: 430px; margin: 0; }
.cta-doc-photo img { width: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28)); }
@media (max-width: 900px) {
  .map-sec { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
  .cta-doc { grid-template-columns: 1fr; padding-bottom: 0; }
  .cta-doc-photo { max-width: 400px; width: 96%; margin: -10px auto 0; align-self: end; }
  .cta-doc-photo img { display: block; }
}

/* ---------- Пін-секція (етапи) ---------- */
.pin-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.pin-left { position: sticky; top: 130px; }
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: flex; gap: 1.4rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--r-md);
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  box-shadow: var(--shadow-soft);
}
.step .s-num {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint); color: var(--teal);
  font-family: var(--font-display); font-weight: 600;
}
.step h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--ink-60); }

/* ---------- Скраб-текст ---------- */
.scrub-text { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.45; max-width: 34ch; }
.scrub-text .w { opacity: .12; display: inline-block; }

/* ---------- Форма відгуку ---------- */
.review-form { display: grid; gap: 1rem; max-width: 760px; }
.review-form .rf-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.review-form .field input, .review-form .field textarea {
  width: 100%; padding: 1rem 1.3rem; border-radius: var(--r-sm);
  border: 1px solid var(--ink-12); background: #fff; color: var(--ink); outline: none; transition: border-color .3s;
}
.review-form .field textarea { resize: vertical; }
.review-form .field input:focus, .review-form .field textarea:focus { border-color: var(--teal); }
.rf-stars { display: inline-flex; align-items: center; gap: .3rem; }
.rf-stars .rf-label { font-size: .9rem; color: var(--ink-60); margin-right: .4rem; }
.rf-stars button { background: none; border: none; cursor: pointer; padding: .1rem; color: var(--ink-12); transition: transform .2s, color .2s; }
.rf-stars button svg { width: 28px; height: 28px; }
.rf-stars button.lit { color: #E8B54D; }
.rf-stars button:hover { transform: scale(1.15); }
@media (max-width: 620px) { .review-form .rf-grid { grid-template-columns: 1fr; } }

/* ---------- Google-бейдж відгуків ---------- */
.google-badge {
  display: inline-flex; align-items: center; gap: 1.1rem;
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  padding: .8rem 1.6rem .8rem 1.1rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.google-badge .g-logo { width: 38px; height: 38px; flex: none; }
.google-badge .g-rate { display: flex; flex-direction: column; line-height: 1.1; }
.google-badge .g-rate b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.google-badge .g-stars { display: flex; gap: 1px; color: #FBBC05; }
.google-badge .g-stars svg { width: 14px; height: 14px; }
.google-badge .g-txt { font-size: .86rem; color: var(--ink-60); max-width: 22ch; border-left: 1px solid var(--ink-12); padding-left: 1.1rem; }

/* ---------- Відгуки ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.review .stars { display: flex; gap: .2rem; color: var(--gold); }
.review .stars svg { width: 18px; height: 18px; }
.review p { color: var(--ink-60); font-size: .97rem; flex: 1; }
.review .who { display: flex; align-items: center; gap: .85rem; }
.review .who .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; font-weight: 700; flex: none; }
.review .who b { display: block; font-size: .95rem; }
.review .who span { font-size: .82rem; color: var(--ink-40); }

/* ---------- Акції ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.7rem, 2.6vw, 2.4rem);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.promo:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.promo.feature { background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%); color: #fff; }
.promo.feature p { color: rgba(255,255,255,.8); }
.promo .p-off { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; }
.promo.feature .p-off { color: var(--gold); }
.promo:not(.feature) .p-off { color: var(--teal); }
.promo h3 { font-size: 1.25rem; }
.promo p { color: var(--ink-60); font-size: .95rem; flex: 1; }
.promo .p-old { text-decoration: line-through; opacity: .55; font-weight: 500; margin-right: .6rem; }
.promo .p-new { font-weight: 700; font-size: 1.3rem; }

/* ---------- Прайс ---------- */
.price-block { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.price-block + .price-block { margin-top: 1.2rem; }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 2rem; cursor: pointer; }
.price-head h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.price-head .ph-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink-12); display: grid; place-items: center; transition: .4s var(--ease-out); flex: none; }
.price-head .ph-toggle::before { content: ''; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .4s; }
.price-block.open .ph-toggle { background: var(--teal); border-color: var(--teal); }
.price-block.open .ph-toggle::before { border-color: #fff; transform: rotate(225deg) translate(-1px, -1px); }
.price-body { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease-out); }
.price-block.open .price-body { max-height: 1400px; }
.price-row { display: flex; align-items: baseline; gap: 1rem; padding: 1.05rem 2rem; border-top: 1px dashed var(--ink-12); }
.price-row .dots { flex: 1; border-bottom: 2px dotted var(--ink-12); transform: translateY(-4px); }
.price-row .val { font-weight: 700; white-space: nowrap; }
.price-row .val small { color: var(--ink-40); font-weight: 500; }
.price-grp { padding: 1rem 2rem .4rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--teal); text-transform: uppercase; letter-spacing: .03em; border-top: 1px dashed var(--ink-12); }
.price-grp:first-child { border-top: none; }

/* ---------- Пошук у прайсі ---------- */
.price-search { position: relative; max-width: 560px; margin-bottom: 1.6rem; }
.price-search input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-12);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.price-search input:focus { border-color: var(--teal); box-shadow: 0 10px 36px rgba(14,116,144,.16); }
.price-search svg { position: absolute; left: 1.2rem; top: 1.85rem; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-40); pointer-events: none; }
.price-search .ps-empty { display: none; margin-top: 1rem; color: var(--ink-40); font-size: .95rem; }
.price-row.ps-hide, .price-block.ps-hide { display: none; }
.price-row mark { background: var(--gold); color: var(--teal-ink); border-radius: 4px; padding: 0 .15em; }

/* ---------- Лікарі біля форми ---------- */
.book-docs { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; position: relative; z-index: 1; flex-wrap: wrap; }
.book-docs .bd-faces { display: flex; flex: none; }
.book-docs .bd-faces img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 3px solid var(--teal-ink);
  margin-left: -14px;
}
.book-docs .bd-faces img:first-child { margin-left: 0; }
.book.light .book-docs .bd-faces img { border-color: #fff; }
.book-docs small { color: rgba(255,255,255,.65); font-size: .85rem; flex: 1; min-width: 12ch; line-height: 1.4; }
.book.light .book-docs small { color: var(--ink-60); }

/* ---------- Відео-секція (КТ) ---------- */
.video-feature {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--teal-ink);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
}
.video-feature video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .28; z-index: -1;
  filter: saturate(.9);
}
.video-feature::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 100% at 20% 50%, rgba(21,25,27,.82) 0%, rgba(21,25,27,.25) 100%); z-index: -1; }
.video-feature h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 20ch; }
.video-feature p { color: rgba(255,255,255,.8); max-width: 52ch; margin-top: 1rem; }
.video-feature .btn { margin-top: 1.6rem; align-self: flex-start; }

/* ---------- Повний прайс CTA ---------- */
.price-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal-ink) 0%, var(--teal-deep) 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.8rem, 3.5vw, 3rem);
}
.price-cta h3 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.price-cta p { color: rgba(255,255,255,.72); margin-top: .4rem; max-width: 48ch; }
.price-cta .btn-primary { background: var(--gold); color: var(--teal-ink); }
.price-cta:hover .btn-primary { background: #97D5E6; }
.price-cta .arr svg { width: 18px; height: 18px; }

/* ---------- Слайдер лікарів ---------- */
.doc-slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.6rem) / 4);
  gap: 1.2rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.doc-slider::-webkit-scrollbar { display: none; }
.doc-slider .doc-card { scroll-snap-align: start; }
@media (max-width: 1100px) { .doc-slider { grid-auto-columns: calc((100% - 1.2rem) / 2); } }
@media (max-width: 620px) { .doc-slider { grid-auto-columns: 80%; } }

.ds-controls { display: inline-flex; align-items: center; gap: .5rem; }
.ds-arrow {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid var(--ink-12); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s, color .3s, transform .3s, opacity .3s;
}
.ds-arrow:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.ds-arrow svg { width: 20px; height: 20px; }
.ds-arrow[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Чипи підпослуг ---------- */
.sub-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.sub-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.3rem;
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  font-size: .92rem; font-weight: 600;
  transition: background .3s, color .3s, transform .3s;
}
.sub-chip svg { width: 15px; height: 15px; opacity: .5; }
.sub-chip:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.sub-chip:hover svg { opacity: 1; }

/* ---------- КТ-акцент на головній ---------- */
.ct-feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, var(--mint-soft) 0%, #fff 55%, var(--mint) 100%);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(1.8rem, 4.5vw, 4rem);
  box-shadow: var(--shadow-soft);
}
.ct-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  background: var(--teal); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.ct-feature h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); max-width: 18ch; }
.ct-feature .lead { margin-top: .8rem; max-width: 50ch; }
.ct-prices { margin-top: 1.6rem; max-width: 520px; }
.ct-prices .price-row { padding: .8rem 0; border-top: 1px dashed var(--ink-12); }
.ct-prices .price-row:first-child { border-top: none; }
.ct-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.ct-img { position: relative; display: grid; place-items: center; }
.ct-img::before {
  content: ''; position: absolute; width: 75%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 200, 221, .4) 0%, transparent 70%);
  z-index: -1;
}
.ct-img img { max-height: clamp(320px, 38vw, 520px); width: auto; filter: drop-shadow(0 20px 44px rgba(11, 90, 112, .25)); }
@media (max-width: 1100px) { .ct-feature { grid-template-columns: 1fr; } .ct-img { order: -1; } .ct-img img { max-height: 300px; } }

/* ---------- Фотострічка ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-strip figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery-strip figure:hover img { transform: scale(1.06); }
.gallery-strip figure:nth-child(2), .gallery-strip figure:nth-child(4) { transform: translateY(14px); }
@media (max-width: 760px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .video-feature { padding: 1.8rem; }
  .svc-hero .sh-card::after { background: linear-gradient(195deg, rgba(6,12,14,.32) 0%, rgba(6,12,14,.88) 100%); }
  .hd-video::after { background: linear-gradient(200deg, rgba(6,12,14,.28) 20%, rgba(6,12,14,.86) 100%); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; max-width: 880px; margin-inline: auto; }
.faq-item { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.4rem 1.8rem; background: none; border: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq-q::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--teal); transition: transform .4s var(--ease-out); flex: none; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.faq-a p { padding: 0 1.8rem 1.5rem; color: var(--ink-60); }

/* ---------- Форма запису ---------- */
.book {
  position: relative; overflow: hidden;
  background: var(--teal-ink);
  border-radius: clamp(28px, 4vw, 48px);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.book::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(123,200,221,.32) 0%, transparent 70%); top: -260px; right: -160px; pointer-events: none; }
.book::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(14,107,92,.55) 0%, transparent 70%); bottom: -240px; left: -120px; pointer-events: none; }
.book h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 14ch; position: relative; z-index: 1; }
.book .lead { color: rgba(255,255,255,.72); position: relative; z-index: 1; max-width: 30ch; }
.book-form { position: relative; z-index: 1; display: grid; gap: .9rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.15rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  outline: none;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.11); }
.book-form .btn-primary { background: var(--gold); color: var(--teal-ink); box-shadow: 0 14px 40px rgba(123,200,221,.35); }
.book-form .btn-primary:hover { background: #97D5E6; }
.form-note { font-size: .8rem; color: rgba(255,255,255,.45); }
.form-note a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
.form-status { font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #8FD9A8; }
.form-status.err { color: #F4A39A; }

/* Світла форма (внутрішні сторінки) */
.book.light { background: var(--mint-soft); color: var(--ink); }
.book.light .lead { color: var(--ink-60); }
.book.light .field input, .book.light .field select, .book.light .field textarea { background: #fff; border-color: var(--ink-12); color: var(--ink); }
.book.light .field input::placeholder { color: var(--ink-40); }
.book.light .form-note { color: var(--ink-40); }
.book.light .book-form .btn-primary { background: var(--teal); color: #fff; }

/* ---------- ВЕЛИКИЙ CTA ---------- */
.mega-cta { text-align: center; }
.mega-cta h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 18ch; margin-inline: auto; }
.mega-cta .btn { margin-top: 2.6rem; }

/* ---------- Футер ---------- */
.footer { position: relative; overflow: hidden; background: var(--teal-ink); color: rgba(255,255,255,.75); margin-top: clamp(4rem, 8vw, 7rem); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.footer .container { position: relative; z-index: 1; }
.footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; }
.footer h4 { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: #fff; margin-bottom: 1.2rem; letter-spacing: .03em; }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: .65rem; font-size: .95rem; }
.f-brand .nav-logo { color: #fff; margin-bottom: 1rem; }
.f-brand p { font-size: .92rem; max-width: 30ch; }
.f-contacts li { display: flex; gap: .7rem; align-items: flex-start; }
.f-contacts svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--gold); }
.f-soc { display: flex; gap: .7rem; margin-top: 1.4rem; }
.f-soc a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.f-soc a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }
.f-soc svg { width: 19px; height: 19px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- Попап швидкого запису ---------- */
.book-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
body.bm-open .book-modal { opacity: 1; visibility: visible; }
.bm-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 18, .55); backdrop-filter: blur(8px); }
.bm-card {
  position: relative; z-index: 1;
  width: min(440px, 94vw);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  transform: translateY(26px) scale(.97);
  transition: transform .4s var(--ease-out);
}
body.bm-open .bm-card { transform: none; }
.bm-card h3 { font-size: 1.4rem; margin-bottom: 1.3rem; padding-right: 2.5rem; }
.bm-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .3s; }
.bm-close:hover { background: var(--mint); transform: rotate(90deg); }
.bm-close svg { width: 18px; height: 18px; }
.bm-call { width: 100%; }
.bm-msgrs { display: flex; gap: .6rem; margin-top: .7rem; }
.bm-msgr {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem; color: #fff;
  transition: transform .3s, filter .3s;
}
.bm-msgr svg { width: 19px; height: 19px; }
.bm-msgr.tg { background: #2AABEE; }
.bm-msgr.vb { background: #7360F2; }
.bm-msgr:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bm-or { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; color: var(--ink-40); font-size: .85rem; text-align: center; }
.bm-or::before, .bm-or::after { content: ''; flex: 1; height: 1px; background: var(--ink-12); }
.bm-form { display: grid; gap: .8rem; }
.bm-form .field input { background: var(--bg); border: 1px solid var(--ink-12); color: var(--ink); width: 100%; padding: 1rem 1.3rem; border-radius: var(--r-sm); outline: none; transition: border-color .3s; }
.bm-form .field input::placeholder { color: var(--ink-40); opacity: 1; }
.bm-form .field input:focus { border-color: var(--teal); }
.bm-form .tel-toggle { color: var(--ink-60); }
.bm-form .form-status.ok { color: #1B8A55; }
.bm-form .form-status.err { color: var(--danger); }

/* ---------- Вирізаний лікар (PNG) ---------- */
.book-doc-cut {
  position: absolute; bottom: 0; left: 47%; transform: translateX(-50%);
  height: 86%; max-height: 400px; width: auto;
  z-index: 0; pointer-events: none; user-select: none;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .3));
}
@media (max-width: 1100px) { .book-doc-cut { display: none; } }

.scrub-doc-wrap { position: relative; }
.scrub-doc {
  position: absolute;
  right: 2vw;
  bottom: calc(-1.25 * clamp(2.5rem, 5vw, 5rem));
  height: clamp(260px, 32vw, 420px);
  width: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 34px rgba(20, 25, 27, .18));
}
.scrub-doc.top { top: -1.5rem; bottom: auto; right: 3vw; height: clamp(280px, 32vw, 440px); }
@media (max-width: 760px) { .scrub-doc, .scrub-doc.top { position: static; height: 240px; margin: 1.5rem auto 0; display: block; } }

/* ---------- Перемикач країни для телефону ---------- */
.tel-toggle {
  background: none; border: none; cursor: pointer;
  font-size: .76rem; opacity: .65; text-decoration: underline;
  padding: .25rem 0 0 .4rem; display: inline-block; color: inherit;
}
.tel-toggle:hover { opacity: 1; }

/* ---------- Плаваюча кнопка запису (моб.) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 950;
  display: none; gap: .55rem; align-items: center;
}
.fab .btn { box-shadow: var(--shadow-deep); }
.fab-call { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-deep); animation: fabPulse 1.8s ease-in-out infinite; }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(14, 116, 144, .5); animation: fabRing 1.8s ease-out infinite; }
.fab-call svg { width: 24px; height: 24px; animation: fabShake 1.8s ease-in-out infinite; transform-origin: 50% 60%; }
.fab-call:active { transform: scale(.95); }
@keyframes fabPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes fabRing { 0% { box-shadow: 0 0 0 0 rgba(14, 116, 144, .45); } 70% { box-shadow: 0 0 0 16px rgba(14, 116, 144, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0); } }
@keyframes fabShake { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .fab-call, .fab-call::before, .fab-call svg { animation: none; } }

/* ---------- Хлібні крихти / hero внутрішніх ---------- */
.page-hero { padding: clamp(9rem, 16vh, 12rem) 0 clamp(2.5rem, 5vw, 4rem); }

/* Фото-hero сторінок послуг */
.svc-hero { padding: clamp(124px, 16vh, 150px) 0 clamp(1.5rem, 3vw, 2.5rem); }
.svc-hero .sh-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: clamp(400px, 52vh, 540px);
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3.4vw, 3rem);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.svc-hero .sh-card > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.svc-hero .sh-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6,12,14,.02) 30%, rgba(6,12,14,.74) 100%); z-index: -1; }
.svc-hero .crumbs { color: rgba(255,255,255,.75); margin-bottom: auto; }
.svc-hero .crumbs a:hover { color: var(--gold); }
.svc-hero h1 { color: #fff; }
.svc-hero .lead { color: rgba(255,255,255,.85); margin-top: .8rem; }
.svc-hero .btn-primary { margin-top: 1.6rem; align-self: flex-start; }

/* ---------- Стрічка переваг ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.benefit .b-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; }
.benefit .b-ico svg { width: 23px; height: 23px; }
.benefit b { display: block; font-size: .98rem; line-height: 1.3; }
.benefit small { color: var(--ink-60); font-size: .84rem; line-height: 1.4; display: block; margin-top: .2rem; }
.benefit.cta { background: var(--teal); color: #fff; flex-direction: column; justify-content: center; align-items: flex-start; gap: .45rem; }
.benefit.cta b { color: #fff; }
.benefit.cta small { color: rgba(255,255,255,.78); font-size: .84rem; line-height: 1.4; }
.benefit.cta .btn { background: #fff; color: var(--teal-ink); padding: .7rem 1.4rem; font-size: .9rem; }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--ink-40); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--teal); }
.crumbs span::before { content: '/'; margin-right: .5rem; }

/* ---------- Анімаційні стани (GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(46px); }
.reveal-img { opacity: 0; transform: scale(.86); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- Числа/статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.6rem, 2.6vw, 2.4rem); box-shadow: var(--shadow-soft); }
.stat b { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 800; color: var(--teal); display: block; line-height: 1.05; }
.stat b span { font-size: inherit; display: inline; margin: 0; color: inherit; }
.stat b sup { font-size: .5em; color: var(--gold); }
.stat > span { color: var(--ink-60); font-size: .95rem; display: block; margin-top: .5rem; }

/* ---------- Сторінка послуги ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.svc-content > * + * { margin-top: 1.3rem; }
.svc-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.svc-content ul { display: grid; gap: .7rem; }
.svc-content ul li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-60); }
.svc-content ul li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: .15em; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.svc-aside { position: sticky; top: 120px; display: grid; gap: 1.2rem; }
.aside-card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 1.7rem; }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.aside-card .price-row { padding: .8rem 0; }
.aside-card.dark { background: var(--teal-ink); color: #fff; }
.aside-card.dark p { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 1.2rem; }

/* ---------- Сторінка лікаря ---------- */
.doc-hero { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 1rem; }
.dh-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 3 / 3.4; }
.dh-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dh-quote { border-left: 3px solid var(--teal); padding: .9rem 1.4rem; margin-top: 1.6rem; background: var(--mint-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; color: var(--ink-60); max-width: 56ch; }
.dh-svc { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px dashed var(--ink-12); transition: transform .25s; }
.dh-svc:first-of-type { border-top: none; }
.dh-svc:hover { transform: translateX(4px); }
.dh-svc .mi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--mint); }
.dh-svc .mi img { width: 22px; height: 22px; object-fit: contain; }
.dh-svc > span:last-child { font-weight: 600; font-size: .92rem; }
.dh-svc small { display: block; font-weight: 400; color: var(--ink-40); font-size: .78rem; }
@media (max-width: 760px) {
  .doc-hero { grid-template-columns: 1fr; }
  .dh-photo { max-width: 320px; }
}

/* ---------- Блог ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .55s var(--ease-out), box-shadow .55s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.post-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover figure img { transform: scale(1.05); }
.post-card .pc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .82rem; color: var(--ink-40); align-items: center; }
.pc-stars { display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 600; }
.pc-stars svg { width: 15px; height: 15px; color: #E8B54D; }
.post-card h3 { font-size: 1.15rem; line-height: 1.3; }
.post-card .pc-body > p { font-size: .92rem; color: var(--ink-60); flex: 1; }
.pc-doc { display: inline-flex; align-items: center; gap: .7rem; }
.pc-doc img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; }
.pc-doc b { display: block; font-size: .9rem; line-height: 1.2; }
.pc-doc small { color: var(--ink-40); font-size: .78rem; }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.4rem; }
.article-meta .am-date { color: var(--ink-40); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; max-height: 460px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 70ch; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2.4rem; }
.article-body h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-top: 2rem; }
.article-body p, .article-body li { color: var(--ink-60); }
.article-body ul, .article-body ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote { border-left: 3px solid var(--teal); padding: .8rem 1.4rem; background: var(--mint-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.article-body strong { color: var(--ink); }

.rate-box { margin-top: 3rem; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 1.8rem 2rem; text-align: center; }
.rate-box h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.rate-stars { display: flex; justify-content: center; gap: .3rem; }
.rate-stars button { background: none; border: none; cursor: pointer; padding: .2rem; color: var(--ink-12); transition: transform .25s var(--ease-out), color .2s; }
.rate-stars button svg { width: 34px; height: 34px; }
.rate-stars button.lit { color: #E8B54D; }
.rate-stars button:hover { transform: scale(1.15); }
.rate-box.voted .rate-stars button { cursor: default; pointer-events: none; }
.rate-status { margin-top: .8rem; font-size: .9rem; color: var(--ink-40); min-height: 1.3em; }

.author-card { margin-top: 2rem; display: flex; gap: 1.6rem; align-items: center; background: var(--mint-soft); border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.author-card > img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; box-shadow: var(--shadow-soft); }
.author-card small { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--ink-40); }
.author-card h3 { font-size: 1.3rem; margin: .2rem 0; }
.author-card p { color: var(--ink-60); font-size: .95rem; margin-bottom: 1rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .burger { display: block; }
  .nav-phone { display: none; }
  .doc-grid, .reviews, .promo-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .hero-deck { grid-template-columns: 1fr; padding-top: 112px; }
  .hd-slider { min-height: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .b-span-3, .b-span-2, .b-span-4 { grid-column: span 3; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { width: 94vw; padding: .55rem .6rem .55rem 1.1rem; }
  .lang { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-logo span { display: none; }
  .nav-mini {
    display: flex; flex-direction: column; gap: .15rem;
    margin-inline: auto; min-width: 0;
  }
  .nav-mini a {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-mini a svg { width: 13px; height: 13px; flex: none; color: var(--teal); }
  .nav-mini a:last-child { color: var(--ink-60); font-weight: 500; }
  .nav-cta { margin-left: auto; }
  .hero { min-height: 92svh; }
  .hero-strip { gap: .5rem; }
  .bento { grid-template-columns: 1fr; }
  .b-span-3, .b-span-2, .b-span-4 { grid-column: auto; }
  .b-row-2 { grid-row: auto; }
  .bento-card { min-height: 230px; }
  .bento-card.has-img { min-height: 300px; }
  /* каталог послуг — компактна сітка 2×N на телефоні */
  .svc-catalog { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .svc-catalog .bento-card { min-height: 140px; padding: 1rem .9rem; }
  .svc-catalog .bento-card .bc-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: .9rem; }
  .svc-catalog .bento-card .bc-ico svg { width: 20px; height: 20px; }
  .svc-catalog .bento-card .bc-ico img { width: 21px; height: 21px; }
  .svc-catalog .bento-card .bc-arrow { width: 30px; height: 30px; top: .75rem; right: .75rem; }
  .svc-catalog .bento-card .bc-arrow svg { width: 14px; height: 14px; }
  .svc-catalog .bento-card .h-card { font-size: 1.02rem; }
  .svc-catalog .bento-card .bc-desc { font-size: .78rem; margin-top: .25rem; }
  .haccordion { flex-direction: column; min-height: 0; }
  .ha-item { min-height: 88px; }
  .ha-item.open { min-height: 360px; flex: none; }
  .ha-label { writing-mode: horizontal-tb; transform: none; left: 1.4rem; bottom: 1.1rem; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .stack-card figure { min-height: 200px; order: -1; }
  .pin-split { grid-template-columns: 1fr; }
  .pin-left { position: static; }
  .reviews, .promo-grid, .stats, .blog-grid { grid-template-columns: 1fr; }
  /* лікарі — у 2 ряди навіть на телефоні, картки компактніші */
  .doc-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .doc-card .dc-badges { top: .45rem; left: .45rem; gap: .3rem; }
  .doc-card .dc-badge { font-size: .68rem; padding: .24rem .42rem; gap: .2rem; }
  .doc-card .dc-badge svg { width: 12px; height: 12px; }
  .doc-card .dc-bw { display: none; }   /* на телефоні лишаємо лише іконку + число, щоб не налазило на обличчя */
  .doc-card .dc-foot { left: .5rem; right: .5rem; bottom: .5rem; flex-direction: column; align-items: stretch; gap: .35rem; }
  .doc-card .dc-loc { font-size: .62rem; padding: .3rem .5rem; justify-content: center; }
  .doc-card .dc-book { font-size: .72rem; padding: .42rem .5rem; text-align: center; }
  .doc-card .doc-meta { padding: .85rem .9rem 1.05rem; }
  .doc-card .doc-meta h3 { font-size: .98rem; }
  .doc-card .doc-meta p { font-size: .8rem; }
  /* хлібні крихти — дрібніші та в один рядок */
  .crumbs { font-size: .72rem; gap: .3rem; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
  .crumbs::-webkit-scrollbar { display: none; }
  .crumbs a, .crumbs span { flex: none; }
  .crumbs span::before { margin-right: .3rem; }
  /* герої хабів/послуг — менший заголовок і підзаголовок */
  .page-hero .h-section { font-size: clamp(1.55rem, 6.4vw, 2.1rem); }
  .page-hero .lead { font-size: .9rem; }
  .svc-hero .h-section { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .svc-hero .lead { font-size: .88rem; }
  /* прайс: пошук липне зверху, категорії — зручні під палець */
  .price-search { position: sticky; top: 80px; z-index: 60; background: var(--bg); padding: .5rem 0; margin-bottom: 1rem; }
  .price-search svg { top: 2.35rem; }   /* компенсація відступу sticky, щоб лупа була по центру поля */
  .price-head { padding: 1.15rem 1.2rem; }
  .price-head h3 { font-size: 1.04rem; }
  .price-head .ph-toggle { width: 42px; height: 42px; }
  .price-row { padding: .9rem 1.2rem; }
  .author-card { flex-direction: column; text-align: center; }
  .sp-cols { grid-template-columns: 1fr; }
  .svc-panel { width: 100vw; }
  .hd-video { min-height: 380px; }
  .book { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .fab { display: flex; }
  .f-bottom { padding-bottom: 96px; }
}

/* ===== Фонові декор-елементи (атом з лого, ледь помітні) ===== */
.bg-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-deco img { position: absolute; width: clamp(340px, 38vw, 600px); height: auto; opacity: .05; }
.bg-deco .d1 { top: -6%; right: -7%; transform: rotate(8deg); }
.bg-deco .d2 { top: 34%; left: -12%; transform: rotate(-12deg); }
.bg-deco .d3 { bottom: -8%; right: 4%; transform: rotate(16deg); }
body > main, body > footer { position: relative; z-index: 1; }
@media (max-width: 760px) { .bg-deco img { width: 70vw; opacity: .04; } .bg-deco .d2 { display: none; } }
