/* ==========================================================================
   Клініка — базова стилістика
   Щоб змінити фірмові кольори — редагуйте блок :root.
   ========================================================================== */

:root {
  /* Палітра */
  --c-accent: #eda150;          /* тепле золото — кнопки, акценти */
  --c-accent-dark: #c78743;
  --c-accent-soft: #f5c89a;     /* світле золото — плями, підкладки */
  --c-accent-pale: #fbecdc;

  --c-bg: #f9f7f4;              /* фон сторінки — світлий крем */
  --c-bg-soft: #f0efed;         /* світло-сірі секції та картки */
  --c-bg-soft-2: #d1c9be;
  --c-bg-warm: #f0efed;         /* той самий тон, що й секції */

  --c-ink: #3a3a3a;
  --c-ink-soft: #6e6a64;
  --c-ink-mute: #918b82;
  --c-line: #d1c9be;
  --c-white: #ffffff;
  --c-danger: #b05f45;

  /* Типографіка */
  --f-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Сітка */
  --w-max: 1280px;
  --pad-x: 28px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .09);

  /* Матове скло — липкі панелі: шапка, ряд якорів, ряд напрямків.
     --glass-solid — запасний колір там, де backdrop-filter не працює. */
  --glass-bg: rgba(255, 255, 255, .84);
  /* панель під шапкою — легша за саму шапку */
  --glass-bg-soft: rgb(255 255 255 / 50%);
  --glass-bg-page: color-mix(in srgb, var(--c-bg) 78%, transparent);
  --glass-solid: rgba(255, 255, 255, .95);
  --glass-blur: saturate(1.8) blur(20px);
  --glass-line: rgba(58, 58, 58, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* страховка: декоративные элементы не создают горизонтальный скролл.
   clip (а не hidden) — чтобы sticky-хедер продолжал работать */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(30px, 3.6vw, 48px); }
h2 { font-size: clamp(25px, 2.6vw, 36px); }
h3 { font-size: clamp(18px, 1.5vw, 22px); }
h4 { font-size: 17px; }
p  { margin: 0 0 1.05em; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }
section[id], .sec-head, h2 { scroll-margin-top: 96px; }
.section { padding: 66px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding: 44px 0; }

/* Заголовок секції ------------------------------------------------------- */
.sec-head { margin-bottom: 32px; }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--c-ink-soft); font-size: 16px; margin: 12px 0 0; max-width: 760px; }
.sec-head--row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sec-head--row h2 { flex: 1; min-width: 0; }
.sec-head--row > :not(h2) { flex: none; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 10px; font-weight: 600; }

/* Кнопки ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 22px;
  min-height: 44px;
  font: 500 15px/1.1 var(--f-body);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); }
.btn--outline { border-color: var(--c-accent); color: var(--c-accent); background: transparent; }
.btn--outline:hover { background: var(--c-accent); color: #fff; }
.btn--ghost { border-color: var(--c-line); color: var(--c-ink); background: #fff; }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--sm { padding: 8px 18px; min-height: 40px; font-size: 14px; }
.btn--arrow,
.reviews__leave { padding: 5px 5px 5px 20px; gap: 14px; min-height: 0; }
.btn__arrow,
.reviews__leave-ico {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.btn__arrow svg,
.reviews__leave-ico svg { width: 13px; height: 13px; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--c-accent); transition: .2s; }
.link-arrow:hover { color: var(--c-accent-dark); gap: 11px; }

/* Кругла кнопка слайдера */
.rbtn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .2s; flex: none;
}
.rbtn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.rbtn svg { width: 15px; height: 15px; }

/* Верхня панель ---------------------------------------------------------- */
.topbar { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); }
.topbar__in { display: flex; align-items: center; gap: 26px; min-height: 74px; padding-top: 10px; padding-bottom: 10px; }

.logo { display: flex; align-items: center; flex: none; }
.logo .logo__mark { height: 42px; max-width: none; width: auto; flex: none; display: block; object-fit: contain; }

.search { flex: 1; max-width: 380px; position: relative; }
.search input {
  width: 100%; padding: 11px 40px 11px 16px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; font: 400 14px var(--f-body); color: var(--c-ink);
}
.search input:focus { outline: none; border-color: var(--c-accent); }
.search > svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--c-ink-mute); pointer-events: none; }

.search-suggest {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); z-index: 80; max-height: min(70vh, 380px);
  overflow-y: auto; padding: 6px; margin: 0; list-style: none;
}
.search-suggest.is-open { display: block; }
.search-suggest a, .search-suggest__empty {
  display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: inherit;
}
.search-suggest a:hover, .search-suggest a.is-active { background: var(--c-bg-soft); }
.search-suggest a.is-active { color: var(--c-accent); }
.search-suggest b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.search-suggest small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--c-ink-mute); }
.search-suggest__empty { color: var(--c-ink-mute); font-size: 13.5px; }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.topbar__phone { text-align: right; line-height: 1.25; }
.topbar__phone a { font-size: 17px; font-weight: 600; white-space: nowrap; }
.topbar__phone small { display: block; font-size: 11.5px; color: var(--c-ink-mute); }
.lang { display: flex; gap: 3px; }
.lang a { padding: 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--c-ink-mute); border: 1px solid transparent; }
.lang a.is-active { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.lang a:hover { color: var(--c-accent); }

/* Навігація -------------------------------------------------------------- */
/* Скло малюємо псевдоелементом, а не на самій .header: backdrop-filter
   на елементі робить його блоком-контейнером для position:fixed нащадків —
   мобільне меню (.nav) через це виїжджає всередину шапки. */
.header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid var(--glass-line);
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.header__in { display: flex; align-items: stretch; gap: 30px; }
.nav { flex: 1; align-self: stretch; }
.nav__list { display: flex; align-items: stretch; gap: 34px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav__list > li { position: relative; display: flex; align-items: center; height: 100%; }
.nav__list > li > a { display: flex; align-items: center; gap: 6px; font-size: 15px; padding: 19px 0; transition: color .2s; }
.nav__list > li > a:hover, .nav__list > li.is-current > a { color: var(--c-accent); }
.nav__caret { width: 9px; height: 9px; opacity: .55; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 320px; z-index: 61;
  /* Суцільна біла підкладка — прозоре скло давало поганий контраст
     на сторінках з темним hero-фото. */
  background: #fff; border: 1px solid var(--glass-line); border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  padding: 10px 8px 12px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.nav__list > li:hover .submenu { opacity: 1; visibility: visible; }
.submenu a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; font-size: 14.5px; line-height: 1.3; border-radius: var(--r-sm);
}
.submenu a:hover { background: rgba(237, 161, 80, .1); color: var(--c-accent); }
.submenu__ico {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid #e9e4dc;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.submenu a:hover .submenu__ico {
  background: transparent;
  border-color: var(--c-accent-soft);
}
.submenu__ico img {
  width: 24px; height: 24px; object-fit: contain; display: block;
}
/* Оптичні зміщення під вагу асиметричних іконок у круглому слоті */
.submenu a[href="hardware.html"] .submenu__ico img { transform: translate(-0.5px, 0.5px); }
.submenu a[href="injection.html"] .submenu__ico img { transform: translateX(-0.5px); }
.submenu a[href="stationary.html"] .submenu__ico img { transform: translate(0.5px, 0.5px); }
.submenu a[href="consultations.html"] .submenu__ico img { transform: translateY(-0.5px); }
.submenu__all { margin-bottom: 6px; }
.submenu__all a {
  display: flex; align-items: center; justify-content: center; gap: 0;
  min-height: 40px; padding: 8px 16px; font-weight: 500;
  border: 1px solid var(--c-line); border-radius: 999px; text-align: center;
}
.submenu__all a:hover {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
}

.header__cta { flex: none; align-self: center; }
/* Лого всередині закріпленого хедера — з'являється тільки в мобільній версії (mobile.css) */
.header .logo { display: none; }
.burger { display: none; align-self: center; width: 42px; height: 42px; border: 1px solid var(--c-line); background: #fff; border-radius: 50%; cursor: pointer; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--c-ink); margin: 4px auto; }

/* Плейсхолдери зображень ------------------------------------------------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: linear-gradient(135deg, #eceae6 0%, #e0e0df 50%, #d1c9be 100%);
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 25% 15%, rgba(255,255,255,.65), rgba(255,255,255,0) 62%);
}
.ph::after {
  content: attr(data-label); position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.34);
}
.ba__photo { background-size: cover; background-position: center 28%; background-repeat: no-repeat; }
.ba__photo::before { content: none; }
img.ph { display: block; width: 100%; height: auto; object-fit: cover; }
img:not(.ph) { max-width: 100%; height: auto; object-fit: cover; }
.about-card__media > img.ph { height: 100%; }
img.ph--warm { object-fit: contain; object-position: center bottom; }
.ph iframe { display: block; }
.ph--warm { background: var(--c-bg-warm); }
.ph--accent { background: linear-gradient(135deg, var(--c-accent-pale) 0%, var(--c-accent-soft) 55%, var(--c-accent) 100%); }
.ph--accent::after { color: rgba(255,255,255,.75); }

/* Про клініку (тепла картка) --------------------------------------------- */
.about-card {
  background: var(--c-bg-warm); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; overflow: hidden;
}
.about-card__body { padding: 48px 10px 48px 52px; align-self: center; }
.about-card__body p { color: var(--c-ink-soft); }
.about-card__sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.about-card__sign i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); flex: none; }
.about-card__sign b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.about-card__sign b span { display: block; margin-top: 2px; font-weight: 500; opacity: .8; }
.about-card__body p.about-card__more { margin: 14px 0 0; }
.about-card__media { position: relative; min-height: 330px; }
.about-card__media > .ph { position: absolute; inset: 0; border-radius: 0; }

/* Картки послуг ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card { display: flex; flex-direction: column; transition: .22s ease; }
.card__media { aspect-ratio: 16/11; border-radius: var(--r-md); }
.card:hover .card__media { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media, .card:hover .card__media { transition: .22s ease; }
.card__body { padding: 18px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 9px; font-size: 19px; }
.card:hover .card__body h3 { color: var(--c-accent); }
.card__body p { color: var(--c-ink-soft); font-size: 14.5px; flex: 1; margin: 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card__price { font-size: 13px; color: var(--c-ink-mute); }
.card__price b { font-size: 17px; color: var(--c-ink); font-weight: 600; }

/* Текстовий блок зі списком ---------------------------------------------- */
.rich { max-width: 980px; color: var(--c-ink-soft); font-size: 15.5px; }
.rich ul { list-style: none; padding: 0; margin: 18px 0 0; columns: 2; column-gap: 44px; }
.rich li { position: relative; padding-left: 22px; margin-bottom: 9px; break-inside: avoid; }
.rich li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }

/* До / після ------------------------------------------------------------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba { position: relative; }
.ba__pair {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden;
  --ba-pos: 50%; touch-action: none; cursor: ew-resize; user-select: none;
}
.ba__half { position: absolute; inset: 0; }
.ba__photo--after { clip-path: inset(0 0 0 var(--ba-pos)); }
.ba__pair::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 2px; margin-left: -1px;
  background: #fff; z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.ba__knob {
  position: absolute; top: 50%; left: var(--ba-pos); transform: translate(-50%, -50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: ew-resize; touch-action: none;
}
.ba__knob .is-ico { width: 15px; height: 15px; }
.ba__pair.is-dragging .ba__knob { box-shadow: 0 4px 18px rgba(0,0,0,.34); }
.ba__tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--c-ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 30px;
}
.ba__tag--after { left: auto; right: 12px; }
.ba__cap { padding: 14px 2px 0; font-size: 14px; color: var(--c-ink-soft); }

/* дисклеймер під до/після — майже непомітний */
.ba-note {
  margin-top: 14px;
  max-width: 980px;
  font-size: 11px;
  line-height: 1.45;
  color: #c4bdb2;
}
.ba-note p { margin: 0; }

/* трохи менше повітря під блоком до/після */
.section--ba { padding-bottom: 36px; }
.ba__cap b { display: block; color: var(--c-ink); font-weight: 600; margin-bottom: 2px; font-size: 15px; }

/* Відгуки ---------------------------------------------------------------- */
.reviews {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(340px, calc(100% - 36px));
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 228px;
  padding: 26px 24px 28px;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
}
.review__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.review__stars {
  display: flex; gap: 3px; margin: 8px 0 14px; color: var(--c-accent);
}
.review__stars svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.review__text {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--c-ink-soft);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.reviews__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.reviews__head h2 { flex: 1; min-width: 0; }
.reviews__bar {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; margin-top: 22px;
}
.reviews__nav { display: flex; align-items: center; gap: 10px; flex: none; }
.reviews__count {
  min-width: 3.4em; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--c-ink-mute); letter-spacing: .02em;
}
.field--stars { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; padding: 0; }
.field--stars .field__label { font-size: 13px; color: var(--c-ink-mute); font-weight: 500; }
.stars-pick { display: flex; gap: 4px; }
.stars-pick__btn {
  width: 36px; height: 36px; padding: 0; border: 0; background: none;
  color: var(--c-line); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stars-pick__btn.is-on { color: var(--c-accent); }
.stars-pick__btn svg { width: 22px; height: 22px; fill: currentColor; }
.modal__panel--review .form { grid-template-columns: 1fr; }

@media (min-width: 901px) {
  .review { flex-basis: calc((100% - 32px) / 3); min-height: 240px; }
}

/* Лікарі ----------------------------------------------------------------- */
.doc { display: flex; flex-direction: column; }
.doc__media { aspect-ratio: 2/3; border-radius: var(--r-md); object-fit: cover; }
.doc__media[alt="Андрій Лисенко"],
.doc__media[alt="Андрей Лысенко"] { object-position: 82% 28%; }
.doc__body { padding: 16px 2px 0; }
.doc__body h4 { margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.doc__spec { font-size: 13.5px; color: var(--c-accent); margin: 0 0 8px; }
.doc__meta { font-size: 13.5px; color: var(--c-ink-mute); margin: 0; }

/* Смуга «про клініку» з фото --------------------------------------------- */
.band { background: var(--c-bg-soft); }
.band__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 60px 0; }
.band__title {
  overflow: hidden; width: 0; height: 0; margin: 0; padding: 0;
  font-size: 0; line-height: 0;
}
.band__tabs {
  display: flex; width: 100%; position: relative;
  margin: 0 0 22px; padding: 5px; gap: 0;
  background: #f7f5f1;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(58, 58, 58, .07),
              inset 0 2px 8px rgba(58, 58, 58, .04);
}
.band__thumb {
  position: absolute; z-index: 0; pointer-events: none;
  top: 0; left: 0;
  width: var(--band-w, calc((100% - 10px) / 3));
  height: var(--band-h, calc(100% - 10px));
  border-radius: 999px; background: var(--c-accent);
  transform: translate3d(var(--band-x, 5px), var(--band-y, 5px), 0);
}
.band__tabs.is-ready .band__thumb {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1),
              width .45s cubic-bezier(.22, 1, .36, 1),
              height .45s cubic-bezier(.22, 1, .36, 1);
}
.band__tabs button {
  flex: 1; min-width: 0; position: relative; z-index: 1;
  border: 0; background: transparent; color: var(--c-ink);
  padding: 12px 10px; min-height: 44px; border-radius: 999px;
  font: 500 15px/1.2 var(--f-body); cursor: pointer;
  transition: color .25s ease;
  white-space: nowrap;
}
.band__tabs button.is-active,
.band__tabs button.band__tab[aria-selected="true"] {
  background: transparent; color: #fff;
}
.band__tabs button:hover:not(.is-active):not([aria-selected="true"]) {
  background: transparent; color: var(--c-ink);
}
.band__tabs button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.band__media { position: relative; aspect-ratio: 4/3; margin: -40px 0; border-radius: var(--r-lg); }

/* Переваги --------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 28px 24px; transition: .2s; }
.tile:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.tile__icon { width: 32px; height: 32px; color: var(--c-accent); margin-bottom: 14px; }
.tile h4 { margin-bottom: 7px; font-weight: 600; font-size: 16px; }
.tile p { font-size: 14px; color: var(--c-ink-soft); margin: 0; }

/* Кроки ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { counter-increment: s; padding-top: 20px; border-top: 2px solid var(--c-line); }
.step::before { content: '0' counter(s); display: block; font-size: 26px; font-weight: 600; color: var(--c-accent); line-height: 1; margin-bottom: 10px; }
.step h4 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.step p { font-size: 14px; color: var(--c-ink-soft); margin: 0; }

/* Статті ----------------------------------------------------------------- */
.post { display: flex; flex-direction: column; }
.post__media { aspect-ratio: 4/3; border-radius: var(--r-md); }
.post h4 { margin: 16px 0 10px; font-weight: 500; font-size: 16px; line-height: 1.4; }
.post:hover h4 { color: var(--c-accent); }
.post__date { font-size: 12.5px; color: var(--c-ink-mute); margin-top: auto; }

/* Розсилка --------------------------------------------------------------- */
.subscribe { background: var(--c-bg-soft); border-radius: var(--r-lg); padding: 40px 46px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.subscribe h3 { margin: 0 0 8px; font-size: 22px; }
.subscribe p { margin: 0; font-size: 14.5px; color: var(--c-ink-soft); }
.subscribe__form { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.subscribe__form input { flex: 1; min-width: 200px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font: 400 15px var(--f-body); background: #fff; }
.subscribe__form input:focus { outline: none; border-color: var(--c-accent); }
.subscribe__form.is-invalid input, .field.is-invalid input { border-color: var(--c-danger); }
.field__hint {
  display: none; margin: 6px 0 0; font-size: 12.5px; color: var(--c-danger); line-height: 1.35;
}
.field.is-invalid .field__hint, .subscribe__form.is-invalid .field__hint { display: block; }
.subscribe__form .field__hint { flex-basis: 100%; }
.subscribe__checks { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }

/* Форма запису ----------------------------------------------------------- */
.book { background: var(--c-bg-soft); border-radius: var(--r-lg); padding: 46px 52px; }
.book h2 { margin-bottom: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px var(--f-body);
  padding: 15px 16px 15px 46px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; color: var(--c-ink); transition: border-color .2s;
}
.field textarea { padding-left: 16px; resize: vertical; min-height: 92px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding: 15px 42px 15px 46px;
  line-height: 1.25;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23918b82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
/* Chromium на Windows переносить padding селекта в нативний список option */
.field select option { padding: 8px 12px; text-indent: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); }
.field > svg {
  position: absolute; left: 16px; top: 50%; width: 18px; height: 18px;
  transform: translateY(-50%); color: var(--c-ink-mute); pointer-events: none;
}
.consent { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; font-size: 13px; color: var(--c-ink-soft); transition: color .2s; }
.consent input { margin-top: 3px; accent-color: var(--c-accent); flex: none; }
.consent > span:not(.consent__err) { flex: 1; min-width: 0; }
.consent__err {
  flex: 1 1 100%;
  display: none;
  margin: 0 0 0 28px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-danger);
}
.consent.is-error { color: var(--c-danger); }
.consent.is-error input { accent-color: var(--c-danger); outline: 1px solid var(--c-danger); outline-offset: 2px; }
.consent.is-error .consent__err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--c-ink-mute); margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list span { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: 4px; }
.contact-list b, .contact-list a { font-size: 16.5px; font-weight: 500; }
.contact-list a:hover { color: var(--c-accent); }

/* Внутрішні сторінки ----------------------------------------------------- */
.crumbs { font-size: 13px; color: var(--c-ink-mute); padding: 18px 0; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs span { margin: 0 7px; opacity: .6; }
/* Шапка сторінки: без сірої плашки — заголовок і три цифри в один ряд.
   Сторінки без цифр (блог) лишають заголовок з лідом. */
.phead { padding: 16px 0 30px; }
.phead .crumbs { padding: 0 0 10px; }
.phead h1 { margin: 0; max-width: 900px; }
.phead p { font-size: 16.5px; line-height: 1.55; color: var(--c-ink-soft); max-width: 720px; margin: 12px 0 0; }

.phead__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 44px; flex-wrap: wrap; }
.phead__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex: none; }
.phead__facts li { min-width: 0; }
.phead__facts b { display: block; font: 600 25px/1.1 var(--f-body); color: var(--c-accent); letter-spacing: -.01em; }
.phead__facts span { display: block; font-size: 13px; line-height: 1.35; color: var(--c-ink-soft); margin-top: 5px; text-wrap: pretty; }

@media (max-width: 900px) {
  .phead__in { display: block; }
  .phead__in h1 { margin-bottom: 18px; }
  .phead__facts { gap: 16px; justify-content: space-between; }
  .phead__facts b { font-size: 21px; }
  .phead__facts span { font-size: 12px; margin-top: 3px; }
}
@media (max-width: 380px) {
  .phead__facts { gap: 12px; }
  .phead__facts b { font-size: 19px; }
  .phead__facts span { font-size: 11.5px; }
}
/* Плашки більше немає — розділяти шапку й перший блок кольором нічим,
   тож зменшуємо подвійний відступ між ними. */
.phead + .section, .phead + .dirs .dirs__in { padding-top: 34px; }
@media (max-width: 900px) {
  .phead + .section, .phead + .dirs .dirs__in { padding-top: 24px; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split__body p { color: var(--c-ink-soft); }
.split__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.split .ph { aspect-ratio: 4/3; border-radius: var(--r-lg); }
/* Контакти: карта тягнеться на висоту списку зліва */
.split--contacts { align-items: stretch; }
.split--contacts .ph {
  aspect-ratio: auto;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .split--contacts .ph { min-height: 280px; height: auto; aspect-ratio: 4/3; }
}

/* Вступ під обкладинкою сторінки (напрямки, «Про клініку») --------------
   Фото й кнопки вже є в обкладинці — тут лише текст: мітка з лінією,
   крупний лід-абзац зліва і пояснення справа. */
.dintro__label {
  display: flex; align-items: center; gap: 18px; margin: 0 0 28px;
  font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-accent);
}
.dintro__label::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.dintro__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 72px; align-items: start;
}
.dintro__lead {
  margin: 0; font-size: 22px; line-height: 1.52; font-weight: 500;
  letter-spacing: -.014em; color: var(--c-ink); text-wrap: pretty;
}
.dintro__text { padding: 4px 0 4px 36px; border-left: 1px solid var(--c-line); }
.dintro__text p { margin: 0 0 1em; font-size: 16px; line-height: 1.72; color: var(--c-ink-soft); text-wrap: pretty; }
.dintro__text p:last-child { margin-bottom: 0; }
@media (max-width: 1100px) {
  .dintro__grid { gap: 48px; }
  .dintro__lead { font-size: 20px; }
  .dintro__text { padding-left: 28px; }
}
@media (max-width: 900px) {
  .dintro__label { margin-bottom: 20px; }
  .dintro__grid { grid-template-columns: 1fr; gap: 14px; }
  .dintro__text { padding: 0; border-left: 0; }
  .dintro__lead { font-size: 19px; line-height: 1.5; }
}
@media (max-width: 620px) {
  .dintro__label { margin-bottom: 16px; font-size: 11.5px; gap: 14px; }
  .dintro__lead { font-size: 17.5px; line-height: 1.52; }
  .dintro__text p { font-size: 15px; line-height: 1.65; }
}

/* Таблиця цін ------------------------------------------------------------ */
.price-group { margin-bottom: 46px; }
.price-group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--c-accent); margin-bottom: 0; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; --price-x: 16px; }
.price-table td {
  position: relative;
  padding: 14px var(--price-x); border-bottom: 0; vertical-align: top; font-size: 15px;
  transition: background-color .22s ease, color .22s ease;
}
.price-table td:first-child { border-radius: 10px 0 0 10px; }
.price-table td:last-child {
  text-align: right; white-space: nowrap; font-weight: 600; padding-left: 24px;
  border-radius: 0 10px 10px 0;
}
.price-table td:first-child::after,
.price-table td:last-child::after {
  content: ''; position: absolute; bottom: 0; height: 1px;
  background: var(--c-line); pointer-events: none;
}
.price-table td:first-child::after { left: var(--price-x); right: 0; }
.price-table td:last-child::after { left: 0; right: var(--price-x); }
@media (hover: hover) {
  .price-table tr:hover td { background: rgba(237,161,80,.12); }
  .price-table tr:hover td:last-child { color: var(--c-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .price-table td { transition: none; }
}

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--c-line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-accent); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 12px 0 0; color: var(--c-ink-soft); }

/* Список з галочками — той самий маркер, що й .svcp__whom на «Усі послуги» */
.svcp__whom,
.checklist {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
}
.checklist,
.svcp__whom--wide { grid-template-columns: 1fr 1fr; column-gap: 44px; }
.checklist--one { grid-template-columns: 1fr; }
.svcp__whom li,
.checklist li {
  position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; text-wrap: pretty;
}
.svcp__whom li::before,
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--c-accent-pale);
}
.svcp__whom li::after,
.checklist li::after {
  content: ''; position: absolute; left: 4.5px; top: 8px; width: 7px; height: 4px;
  border: solid var(--c-accent-dark); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg);
}

/* Ритм сторінок напрямку — як картка .svcp: 56px секції, 48px між блоками */
.dir .section { padding: 56px 0; }
.dir .sec-head { margin-bottom: 24px; }
.dir-stack { display: flex; flex-direction: column; gap: 48px; }
.dir .price-group { margin-bottom: 28px; }

/* Підвал ----------------------------------------------------------------- */
.footer { background: var(--c-bg-soft); color: var(--c-ink-soft); font-size: 14.5px; padding: 54px 0 0; border-top: 1px solid var(--c-line); }
.footer a:hover { color: var(--c-accent); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 40px; padding-bottom: 44px; }
.footer__about { margin: 18px 0 0; max-width: 290px; font-size: 14px; }
.footer h5 { color: var(--c-ink); font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer__soc { display: flex; gap: 9px; margin-top: 18px; }
.footer__soc a { width: 36px; height: 36px; border: 1px solid var(--c-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; transition: .2s; }
.footer__soc a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer__soc svg { width: 15px; height: 15px; }
/* глиф telegram зміщений у viewBox вправо — компенсуємо */
.footer__soc a[aria-label="telegram"] svg { transform: translateX(-1.5px); }
.footer__bottom { border-top: 1px solid var(--c-line); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--c-ink-mute); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Попап форми запису ------------------------------------------------------ */
body.modal-lock { overflow: hidden; }
body.modal-lock .mfab { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.modal__overlay { position: absolute; inset: 0; background: rgba(58, 58, 58, .55); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: calc(100vh - 48px);
  overflow-y: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 46px 52px; transform: translateY(18px) scale(.98); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }
.modal__panel h2 { margin-bottom: 26px; padding-right: 34px; }
.modal__panel .form { grid-template-columns: 1fr 1fr; }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.modal__close:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.modal__close svg { width: 16px; height: 16px; }

.modal--thanks { z-index: 220; }
.modal__panel--thanks {
  max-width: 420px;
  text-align: center;
  padding: 48px 40px 40px;
}
.modal__panel--thanks h2 { margin: 0 0 10px; padding: 0; font-size: 26px; }
.thanks__mark {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--c-accent-pale);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(237, 161, 80, .18);
}
.thanks__mark svg { width: 32px; height: 32px; }
.modal.is-open .thanks__mark { animation: thanks-pop .45s ease; }
.thanks__text { margin: 0 0 28px; font-size: 15.5px; color: var(--c-ink-soft); line-height: 1.55; }
.modal__panel--thanks .btn { min-width: 160px; }
@keyframes thanks-pop {
  0% { transform: scale(.7); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

/* Плаваючі кнопки дзвінка й Telegram — праворуч знизу, на всіх екранах ---- */
.mfab {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 79;
}
.mfab__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: flex-end;
  height: 54px; min-width: 54px; padding: 0 15px; border-radius: 30px;
  overflow: hidden; text-decoration: none; flex: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: padding .32s ease, background .2s, transform .2s;
}
.mfab__btn--call { background: var(--c-accent); color: #fff; }
.mfab__btn--call:hover { background: var(--c-accent-dark); transform: translateY(-2px); }
.mfab__btn--msg { width: 54px; padding: 0; justify-content: center; background: var(--c-ink); color: #fff; }
.mfab__btn--msg:hover { background: #2c2c2c; transform: translateY(-2px); }

.mfab__ico { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.mfab__ico svg { width: 100%; height: 100%; }
/* глиф telegram у власному viewBox зміщений візуально вправо — компенсуємо контейнером */
.mfab__ico-inner { display: flex; transform: translateX(-3px); }

.mfab__label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font: 600 14px/1 var(--f-body);
  transition: max-width .32s ease, opacity .22s ease, margin .32s ease;
}
.mfab__btn--call.is-open { padding: 0 18px 0 20px; }
.mfab__btn--call.is-open .mfab__label { max-width: 160px; opacity: 1; margin-right: 12px; }

/* Адаптив --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--4, .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
}

@media (max-width: 900px) {
  :root { --pad-x: 18px; }
  .section { padding: 46px 0; }
  .section--ba { padding-bottom: 28px; }
  .topbar__in { min-height: 62px; }
  .topbar__phone small { display: none; }
  .header__in { gap: 12px; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed; inset: 60px 0 auto; background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    max-height: calc(100vh - 60px); overflow-y: auto; padding: 6px var(--pad-x) 22px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav__list > li { display: block; height: auto; }
  .nav__list > li > a { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 10px 12px; min-width: 0;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .about-card, .band__in, .split, .subscribe { grid-template-columns: 1fr; gap: 28px; }
  .about-card__body { padding: 34px 24px 0; }
  .about-card__media { min-height: 260px; }
  .band__media { margin: 0; }
  .subscribe, .book { padding: 30px 22px; }
  .rich ul { columns: 1; }
  .checklist, .svcp__whom--wide { grid-template-columns: 1fr; }
  .dir .section { padding: 40px 0; }
  .dir-stack { gap: 36px; }
}

@media (max-width: 620px) {
  .dir .section { padding: 36px 0; }
  .dir .sec-head { margin-bottom: 18px; }
  .cards, .cards--2, .cards--4, .ba-grid, .tiles, .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .price-table td { font-size: 14px; }
  .mfab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mfab__btn { height: 50px; min-width: 50px; }
  .mfab__btn--msg { width: 50px; }
}

/* Напрямки клініки (секція з табами) ------------------------------------- */
.dirs { background: var(--c-bg-soft); }
.dirs__in {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 28px;
  align-items: stretch;
  padding: 66px 0;
}
/* Йде відразу за таким же світлим блоком послуг — прибираємо подвійний відступ */
.section--soft + .dirs .dirs__in { padding-top: 24px; }
.dirs__aside { display: contents; }
.dirs__aside h2 { margin: 0; grid-column: 1; grid-row: 1; }

.dirs__tabs {
  display: flex; flex-direction: column; gap: 12px; margin-top: 0;
  grid-column: 1; grid-row: 2; min-width: 0;
}
.dirs__tab {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 12px 22px 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: #fff; color: var(--c-ink); font: 500 16px/1.3 var(--f-body);
  cursor: pointer; transition: .2s ease; text-align: left;
}
.dirs__tab:hover { border-color: var(--c-accent); }
.dirs__tab[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.dirs__tab i {
  width: 64px; height: 64px; flex: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}
.dirs__tab i img {
  width: 56px; height: 56px; object-fit: contain; display: block;
  opacity: 1; transition: filter .2s ease, opacity .2s ease;
}
.dirs__tab[aria-selected="true"] i img {
  filter: brightness(0) invert(1); opacity: 1;
}
.dirs__tab b { font-weight: 500; flex: 1; }
.dirs__tab s { text-decoration: none; font-size: 16px; opacity: .75; flex: none; }

.dirs__panels {
  background: #fff; border-radius: var(--r-lg); padding: 26px 32px;
  min-width: 0; min-height: 0; display: flex; flex-direction: column;
  grid-column: 2; grid-row: 2; align-self: stretch;
}
.dirs__panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
.dirs__panel.is-active { display: flex; }
.dirs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.dirs__head h3 { margin: 0; font-size: 24px; }
.dirs__price { font-size: 13px; color: var(--c-ink-mute); white-space: nowrap; }

.dirs__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; align-content: start; }
.dirs__list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.dirs__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }

.dirs__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-line); }
.dirs__note { font-size: 13.5px; color: var(--c-ink-mute); margin: 0; text-wrap: pretty; }
.dirs__btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .dirs__in { grid-template-columns: 1fr; grid-template-rows: none; gap: 30px; padding: 46px 0; align-items: start; }
  .dirs__aside { display: block; }
  .dirs__aside h2, .dirs__tabs, .dirs__panels { grid-column: auto; grid-row: auto; }
  .dirs__tabs { flex-direction: row; flex: none; justify-content: flex-start; gap: 10px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .dirs__tabs::-webkit-scrollbar { display: none; }
  .dirs__tab { width: auto; flex: none; white-space: nowrap; padding: 12px 16px; }
  .dirs__tab s { display: none; }
  .dirs__tab i { width: 48px; height: 48px; }
  .dirs__tab i img { width: 40px; height: 40px; }
  .dirs__panels { min-height: 0; }
}

@media (max-width: 620px) {
  .dirs__panels { padding: 28px 22px; }
  .dirs__list { grid-template-columns: 1fr; }
  .dirs__foot { margin-top: 26px; }
  .dirs__btns .btn { flex: 1; }
}

/* Десктоп: плавне перемикання карток і живі таби ------------------------- */
@media (min-width: 1001px) {
  .dirs__tab {
    transition: background .28s ease, border-color .28s ease, color .28s ease,
      transform .28s ease, box-shadow .28s ease;
  }
  .dirs__tab s {
    display: inline-block;
    transition: transform .28s ease, opacity .28s ease;
  }
  .dirs__tab:hover:not([aria-selected="true"]) {
    border-color: var(--c-accent);
    color: var(--c-accent-dark);
    transform: translateX(6px);
    box-shadow: 0 8px 22px rgba(237, 161, 80, .12);
  }
  .dirs__tab:hover:not([aria-selected="true"]) s {
    transform: translateX(5px);
    opacity: 1;
  }
  .dirs__tab[aria-selected="true"] {
    box-shadow: 0 10px 24px rgba(237, 161, 80, .26);
  }
  .dirs__tab[aria-selected="true"] s {
    transform: translateX(4px);
    opacity: 1;
  }

  .dirs__panels { display: grid; align-items: stretch; }
  .dirs__panel {
    display: flex;
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    z-index: 0;
  }
  .dirs--back .dirs__panel { transform: translateY(-14px); }
  .dirs__panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    z-index: 1;
  }
  .dirs.is-ready .dirs__panel {
    transition: opacity .32s ease, transform .4s ease, visibility 0s linear .32s;
  }
  .dirs.is-ready .dirs__panel.is-active {
    transition: opacity .42s ease .04s, transform .45s ease .04s, visibility 0s;
  }

  .dirs.is-ready .dirs__head,
  .dirs.is-ready .dirs__foot {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .32s ease, transform .36s ease;
  }
  .dirs.is-ready .dirs__panel.is-active .dirs__head {
    opacity: 1;
    transform: none;
    transition-delay: .06s;
  }
  .dirs.is-ready .dirs__panel.is-active .dirs__foot {
    opacity: 1;
    transform: none;
    transition-delay: .18s;
  }

  .dirs.is-ready .dirs__list li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .32s ease, transform .36s ease;
  }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li {
    opacity: 1;
    transform: none;
  }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(1) { transition-delay: .08s; }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(2) { transition-delay: .12s; }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(3) { transition-delay: .16s; }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(4) { transition-delay: .2s; }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(5) { transition-delay: .24s; }
  .dirs.is-ready .dirs__panel.is-active .dirs__list li:nth-child(6) { transition-delay: .28s; }
}

@media (min-width: 1001px) and (prefers-reduced-motion: reduce) {
  .dirs__tab,
  .dirs__tab s,
  .dirs.is-ready .dirs__panel,
  .dirs.is-ready .dirs__panel.is-active,
  .dirs.is-ready .dirs__head,
  .dirs.is-ready .dirs__foot,
  .dirs.is-ready .dirs__list li { transition: none; }
  .dirs__tab:hover:not([aria-selected="true"]) { transform: none; }
}

/* Секція «Про клініку»: таби ---------------------------------------------- */
.band__texts, .band__metas { display: grid; align-items: start; }
.band__panel, .band__meta {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.band__panel.is-active, .band__meta.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity .3s ease .22s, visibility 0s linear .22s;
}

.band__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.band__fact { border-top: 1px solid var(--c-line); padding-top: 12px; }
.band__fact b { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-mute); font-weight: 600; line-height: 1.4; }
.band__fact span { display: block; font-size: 15px; margin-top: 5px; line-height: 1.45; }

.band__stack { position: relative; }
.band__stack .band__media { display: none; opacity: 0; }
.band__stack .band__media.is-active {
  display: block; opacity: 1;
  animation: bandfade .35s ease;
}
@keyframes bandfade { from { opacity: 0; } to { opacity: 1; } }
.band__media { width: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .band__tabs.is-ready .band__thumb { transition: none; }
  .band__panel, .band__meta,
  .band__panel.is-active, .band__meta.is-active { transition: none; }
  .band__stack .band__media.is-active { animation: none; }
}

@media (max-width: 900px) {
  .band__facts { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
}


/* Послуги на головній — горизонтальні картки (варіант 1b) --------------- */
.cards--rows { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 22px; }
.card--row {
  display: grid; grid-template-columns: 180px 1fr; grid-template-rows: 1fr auto;
  background: #fff; border-radius: var(--r-md); overflow: hidden; min-height: 170px;
}
.card--row .card__thumb { grid-row: 1 / span 2; position: relative; overflow: hidden; background: var(--c-bg-soft); }
.card--row .card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--row .card__body { padding: 18px 22px 0; }
.card--row .card__body h3 { font-size: 19px; margin-bottom: 7px; }
.card--row .card__body p { font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.card--row .card__foot { margin: 0; padding: 12px 22px 18px; }
.card--row:hover { box-shadow: var(--shadow-md); }
.card--row:hover .card__body h3 { color: var(--c-accent); }


/* Жовтий круг під фото лікаря — як у hero ------------------------------- */
.about-card__media { overflow: hidden; }
.about-card__media::before {
  content: ''; position: absolute; z-index: 0;
  left: 50%; bottom: 9%; transform: translateX(-50%);
  width: 66%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, var(--c-accent-soft), var(--c-accent));
}
/* планшет (iPad Pro 1024 і подібні): колонка вужча за фото —
   рахуємо круг від висоти, інакше він виглядає дрібним */
@media (min-width: 901px) and (max-width: 1200px) {
  .about-card__media::before {
    width: auto;
    height: 76%;
    max-width: 86%;
    bottom: 14%;
  }
}
.about-card__media > .ph, .about-card__media > img { position: relative; z-index: 1; }
.about-card__media > img.ph { position: absolute; inset: 0; }
.about-card__media > img.ph--warm {
  background: none;
  object-fit: contain;
  object-position: center bottom;
}
/* десктоп: фото трохи нижче, щоб голова не впиралась у верх картки
   (низ фото все одно обрізається краєм блоку) */
@media (min-width: 901px) {
  .about-card__media > img.ph--warm { transform: translateY(6%); }
}

/* Напрямки клініки — об'єднаний акордеон (головна) ------------------------
   Замінює пару блоків «Наші послуги» + «Всі напрямки»: згорнутий рядок
   показує номер, назву і ціну, розкритий — фото, опис, перелік процедур
   і кнопки. Відкритий завжди рівно один напрямок. */
.svca__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.svca__head-t { min-width: 0; }
.svca__head .eyebrow { margin: 0 0 8px; }
.svca__head h2 { margin: 0; }
.svca__head .link-arrow { flex: none; white-space: nowrap; padding-bottom: 6px; }

.svca__box {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  padding: 0 30px;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .svca__box { background: rgba(255, 255, 255, .72); }
}
.svca__item + .svca__item { border-top: 1px solid var(--glass-line); }

.svca__row {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 22px 0; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 18px/1.3 var(--f-body); color: var(--c-ink);
  letter-spacing: -.015em;
}
.svca__num {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); background: transparent;
  border: 1.5px solid var(--c-accent-soft);
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.svca__num img {
  width: 26px; height: 26px; object-fit: contain; display: block;
  transition: filter .25s ease, opacity .25s ease;
}
.svca__item:nth-child(1) .svca__num img { transform: translateY(-0.5px); }
.svca__item:nth-child(3) .svca__num img { transform: translate(-0.5px, 0.5px); }
.svca__item:nth-child(4) .svca__num img { transform: translateX(-0.5px); }
.svca__item:nth-child(5) .svca__num img { transform: translate(-1.5px, 0.5px); }
.svca__name { flex: 1 1 auto; min-width: 0; transition: color .2s ease; }
.svca__price {
  flex: none; font-size: 14px; font-weight: 500;
  color: var(--c-ink-mute); white-space: nowrap; transition: color .2s ease;
}
.svca__chev {
  flex: none; width: 20px; height: 20px; color: var(--c-ink-mute);
  transition: transform .3s ease, color .2s ease;
}
.svca__chev svg { width: 20px; height: 20px; display: block; }

.svca__row:hover .svca__num { border-color: var(--c-accent); }
.svca__row:hover .svca__name { color: var(--c-accent-dark); }
.svca__row:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: var(--r-sm); }

.svca__item.is-open .svca__num { background: var(--c-accent); border-color: var(--c-accent); }
.svca__item.is-open .svca__num img { filter: brightness(0) invert(1); opacity: .95; }
.svca__item.is-open .svca__chev { transform: rotate(180deg); color: var(--c-accent); }
.svca__item.is-open .svca__price { color: var(--c-ink-soft); }

/* Розкриття: анімуємо grid-template-rows 0fr → 1fr, щоб не рахувати висоту */
.svca__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.svca__clip { overflow: hidden; min-height: 0; }
.svca__item.is-open .svca__body { grid-template-rows: 1fr; }

.svca__in {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px;
  align-items: start; padding: 4px 0 28px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease .05s, transform .3s ease .05s;
}
.svca__item.is-open .svca__in { opacity: 1; transform: none; }

.svca__media {
  border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--c-bg-soft);
}
/* На широких екранах — однаковий фіксований бокс у всіх шести карток,
   щоб фото не «стрибало» слідом за довжиною тексту */
@media (min-width: 901px) {
  .svca__media { aspect-ratio: auto; height: 220px; align-self: start; }
}
.svca__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.svca__text { min-width: 0; display: flex; flex-direction: column; }
.svca__desc {
  margin: 0 0 18px; max-width: 36rem; color: var(--c-ink-soft);
  font-size: 16px; line-height: 1.6; text-wrap: pretty;
}
/* Процедури напрямку — таблетки замість маркованого списку */
.svca__list {
  list-style: none; margin: 0 0 20px; padding: 0; max-width: 36rem;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.svca__list li {
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #ddd6cb; color: var(--c-ink);
  font-size: 14px; font-weight: 500; line-height: 1.35;
}

.svca__foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 20px; flex-wrap: wrap; padding-top: 6px;
}
.svca__btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .svca__box { padding: 0 22px; }
  .svca__in { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  .svca__media { aspect-ratio: 16 / 9; max-height: 240px; width: 100%; }
  .svca__row { font-size: 17px; padding: 20px 0; gap: 14px; }
}

@media (max-width: 620px) {
  .svca__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .svca__head .link-arrow { padding-bottom: 0; }
  .svca__box { padding: 0 16px; border-radius: var(--r-md); }
  .svca__row { gap: 12px; padding: 16px 0; font-size: 15.5px; }
  .svca__num { width: 40px; height: 40px; }
  .svca__num img { width: 23px; height: 23px; }
  .svca__price { font-size: 12.5px; }
  .svca__chev, .svca__chev svg { width: 17px; height: 17px; }
  .svca__media { aspect-ratio: 16 / 9; }
  .svca__desc { font-size: 14.5px; margin-bottom: 16px; }
  .svca__list { gap: 7px; margin-bottom: 18px; }
  .svca__list li { padding: 6px 12px; font-size: 13.5px; }
  .svca__foot { gap: 10px; }
  .svca__btns { flex: 1 1 100%; gap: 10px; }
  .svca__btns .btn { flex: 1 1 0; min-width: 0; }
  /* як у hero: outline товстіший, primary — тонкий pill зі стрілкою */
  .svca__btns .btn:not(.btn--arrow) { padding: 10px 14px; }
  .svca__btns .btn--arrow { padding-left: 14px; padding-right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .svca__body, .svca__in, .svca__num, .svca__chev { transition: none; }
}

/* Сторінка послуг: липка навігація + розгорнуті картки напрямків -----------
   Замінює пару блоків (сітка карток + таби), які дублювали одне одного.
   Усі шість напрямків розкриті: нічого не треба відкривати кліком. */
.svcp__in {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px; align-items: stretch;
}
.svcp { padding: 84px 0 96px; }
/* колонка тягнеться на всю висоту списку — інакше липка навігація
   «закінчується» разом з нею і зникає на середині сторінки */
.svcp__nav { min-width: 0; }

/* --- ліва колонка ------------------------------------------------------- */
.svcp__nav-in { position: sticky; top: 100px; }
.svcp__nav-title {
  margin: 0 0 18px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-mute);
}
.svcp__nav-list { display: flex; flex-direction: column; }
.svcp__nav-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px;
  padding: 14px 0 14px 16px; border-left: 2px solid var(--c-line);
  color: var(--c-ink-soft); transition: color .2s ease, border-color .2s ease;
}
.svcp__nav-item i {
  grid-row: 1 / span 2; align-self: start; font-style: normal;
  width: 36px; height: 36px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-1px);
}
.svcp__nav-item i img {
  width: 31px; height: 31px; object-fit: contain; display: block;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
  opacity: 1;
}
.svcp__nav-item[href="#dir-hardware"] i img { transform: translate(-0.5px, 0.5px); }
.svcp__nav-item[href="#dir-injection"] i img { transform: translateX(-0.5px); }
.svcp__nav-item[href="#dir-stationary"] i img { transform: translate(-1.5px, 0.5px); }
.svcp__nav-item[href="#dir-consultations"] i img { transform: translateY(-0.5px); }
.svcp__nav-item b { font-weight: 500; font-size: 14.5px; line-height: 1.3; text-wrap: pretty; }
.svcp__nav-item s { text-decoration: none; font-size: 12.5px; color: var(--c-ink-mute); margin-top: 3px; }
.svcp__nav-item:hover { color: var(--c-accent-dark); border-left-color: var(--c-accent-soft); }
.svcp__nav-item.is-active {
  color: var(--c-ink); border-left-color: var(--c-accent);
}

/* --- картка напрямку ---------------------------------------------------- */
.svcp__list { display: flex; flex-direction: column; gap: 88px; min-width: 0; }
.svcp__item { scroll-margin-top: 96px; min-width: 0; }
/* Межа між напрямками. Суцільна лінія на всю ширину губилася серед таких
   самих ліній над кроками «як проходить» — тому тут коротка акцентна
   позначка по центру: читається як пауза між розділами, а не як ще один
   рядок таблиці. */
.svcp__item + .svcp__item { padding-top: 88px; position: relative; }
.svcp__item + .svcp__item::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg,
    transparent, var(--c-accent-soft) 26%, var(--c-accent-soft) 74%, transparent);
}

.svcp__head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.svcp__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  overflow: hidden;
}
.svcp__num img {
  width: 22px; height: 22px; object-fit: contain; display: block;
}
.svcp__item#dir-hardware .svcp__num img { transform: translate(-0.5px, 0.5px); }
.svcp__item#dir-injection .svcp__num img { transform: translateX(-0.5px); }
.svcp__item#dir-stationary .svcp__num img { transform: translate(-1.5px, 0.5px); }
.svcp__item#dir-consultations .svcp__num img { transform: translateY(-0.5px); }
.svcp__head h2 { margin: 0; flex: 1; min-width: 0; font-size: clamp(22px, 2vw, 28px); }
.svcp__head h2 a { color: inherit; transition: color .2s ease; }
.svcp__head h2 a:hover { color: var(--c-accent-dark); }
.svcp__head h2 a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: var(--r-sm); }
.svcp__price { flex: none; font-size: 14px; font-weight: 500; color: var(--c-ink-soft); white-space: nowrap; }

.svcp__top { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 48px; }
.svcp__media { border-radius: var(--r-md); overflow: hidden; height: 240px; background: var(--c-bg-soft); }
.svcp__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.svcp__lead { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: var(--c-ink); text-wrap: pretty; }
.svcp__intro { margin: 0; font-size: 15px; line-height: 1.72; color: var(--c-ink-soft); text-wrap: pretty; }

.svcp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; margin-bottom: 48px; }
.svcp__col { min-width: 0; }
.svcp__sub {
  margin: 0 0 18px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent);
}

/* маркери списку — спільні з .checklist вище */

.svcp__prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.svcp__prices li {
  position: relative;
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 14px; border-radius: 10px;
  transition: background-color .22s ease;
}
.svcp__prices li:not(:last-child)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 1px; background: var(--c-line); pointer-events: none;
}
.svcp__prices span { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; text-wrap: pretty; }
.svcp__prices b { flex: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: color .22s ease; }
@media (hover: hover) {
  .svcp__prices li:hover { background: rgba(237,161,80,.12); }
  .svcp__prices li:hover b { color: var(--c-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .svcp__prices li, .svcp__prices b { transition: none; }
}
.svcp__more { display: inline-block; margin-top: 20px; font-size: 14px; }

.svcp__how { margin-bottom: 44px; }
.svcp__foot { display: flex; gap: 12px; flex-wrap: wrap; }
.svcp__foot .btn__arrow { border: none; }

/* --- планшет ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .svcp__in { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .svcp__top { grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
  .svcp__media { height: 200px; }
}

/* --- вузькі екрани: навігація стає рядом таблеток ------------------------ */
@media (max-width: 900px) {
  .svcp { padding: 56px 0 72px; }
  .svcp__in { grid-template-columns: 1fr; gap: 36px; }
  /* липкою робимо саму колонку — вона тягнеться на всю висоту списку,
     тож рядок таблеток тримається під шапкою до кінця блоку */
  .svcp__nav { position: sticky; top: 56px; z-index: 40; }
  .svcp__nav-in {
    position: static;
    margin: 0 calc(var(--pad-x) * -1); padding: 12px 0;
    background: var(--glass-bg-soft);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-line);
  }
  .svcp__nav-title { display: none; }
  /* відступи всередині скролера: перша й остання таблетка не липнуть
     до краю, а ті, що гортаються, обрізаються по краю екрана */
  .svcp__nav-list {
    flex-direction: row; gap: 8px; overflow-x: auto;
    padding: 0 var(--pad-x); scroll-padding: 0 var(--pad-x);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .svcp__nav-list::-webkit-scrollbar { display: none; }
  .svcp__nav-item {
    display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
    padding: 8px 16px 8px 10px; border-left: 0; border-radius: 999px;
    border: 1px solid var(--c-line); background: #fff; min-height: 44px;
  }
  .svcp__nav-item i {
    align-self: center;
    width: 28px; height: 28px;
    line-height: 1;
  }
  .svcp__nav-item i img { width: 25px; height: 25px; }
  .svcp__nav-item s { display: none; }
  .svcp__nav-item b { font-size: 14px; }
  .svcp__nav-item.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
  .svcp__nav-item.is-active i img { filter: brightness(0) invert(1); opacity: .92; }

  .svcp__list { gap: 64px; }
  .svcp__item { scroll-margin-top: 140px; }
  .svcp__item + .svcp__item { padding-top: 64px; }
  .svcp__top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .svcp__media { height: clamp(190px, 42vw, 230px); }
  .svcp__cols { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .svcp__how { margin-bottom: 36px; }
}

@media (max-width: 620px) {
  .svcp__head { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .svcp__num { width: 36px; height: 36px; }
  .svcp__num img { width: 18px; height: 18px; }
  .svcp__head h2 { flex: 1 1 auto; font-size: 21px; }
  .svcp__price { flex: 1 0 100%; padding-left: 44px; font-size: 13px; }
  .svcp__media { height: clamp(168px, 48vw, 200px); }
  .svcp__lead { font-size: 15.5px; }
  .svcp__intro { font-size: 14.5px; }
  .svcp__foot .btn { flex: 1 1 100%; }
}

/* Скло без підтримки backdrop-filter (старі движки) — щільніший фон */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .header::before, .svcp__nav-in { background: var(--glass-solid); }
}


/* Шапка сторінки: фото-обкладинка замість сірої плашки --------------------- */
.pcover { padding: 14px 0 0; }
.pcover__crumbs { font-size: 13px; color: #918b82; padding: 4px 0 16px; }
.pcover__crumbs span { margin: 0 7px; opacity: .6; }
.pcover__crumbs a:hover { color: #eda150; }
.pcover__card { position: relative; display: flex; align-items: flex-end; min-height: 470px;
  border-radius: 24px; overflow: hidden; background: #e6e1da; }
.pcover__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcover__shade { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(32,29,26,.88) 0%, rgba(32,29,26,.8) 45%, rgba(32,29,26,.3) 85%); }
.pcover__body { position: relative; padding: 56px 60px; max-width: 780px; }
.pcover__eyebrow { font: 600 11px/1 'Manrope', sans-serif; letter-spacing: .16em; color: #e0bb90; margin-bottom: 18px; }
.pcover__body h1 { font: 500 52px/1.14 'Manrope', sans-serif; letter-spacing: -.022em; margin: 0 0 16px; color: #fff; max-width: 100%; }
.pcover__lead { font-size: 17.5px; line-height: 1.55; color: #fff; max-width: 600px; margin: 0; }
.pcover__facts { list-style: none; display: flex; gap: 44px; margin: 26px 0 0; padding: 0; }
.pcover__facts b { display: block; font: 600 25px/1.1 'Manrope', sans-serif; color: #e0bb90; letter-spacing: -.01em; }
.pcover__facts span { display: block; font-size: 13.5px; line-height: 1.35; color: #fff; margin-top: 5px; }
.pcover__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pcover__cta, .pcover__ghost { display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; min-height: 46px; font: 500 15px/1.1 'Manrope', sans-serif; border-radius: 999px; cursor: pointer; }
.pcover__cta { background: #eda150; color: #fff; border: 1px solid transparent; }
.pcover__cta:hover { background: #c78743; color: #fff; }
.pcover__ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.pcover__ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.pcover + .section, .pcover + .dirs .dirs__in { padding-top: 44px; }
@media (max-width: 1100px) {
  .pcover__card { min-height: 420px; }
  .pcover__body { padding: 44px 40px; }
  .pcover__body h1 { font-size: 40px; }
  .pcover__facts { gap: 32px; }
}
@media (max-width: 760px) {
  .pcover { padding: 12px 0 0; }
  .pcover__crumbs { padding: 2px 0 12px; font-size: 12.5px; }
  .pcover__card { min-height: 0; height: auto; border-radius: 20px; }
  .pcover__card::before { content: ''; display: block; padding-top: 118%; }
  .pcover__card::before { flex: 0 0 0; width: 0; }
  .pcover__body { flex: 1 1 auto; min-width: 0; }
  .pcover__shade { background: linear-gradient(180deg, rgba(32,29,26,.3) 0%, rgba(32,29,26,.42) 34%, rgba(32,29,26,.9) 100%); }
  .pcover__body { padding: 24px 22px 26px; max-width: 100%; }
  .pcover__eyebrow { font-size: 10.5px; margin-bottom: 12px; }
  .pcover__body h1 { font-size: 29px; line-height: 1.18; margin-bottom: 10px; }
  .pcover__lead { font-size: 15px; }
  .pcover__facts { gap: 18px 22px; flex-wrap: wrap; margin-top: 20px; }
  .pcover__facts b { font-size: 20px; }
  .pcover__facts span { font-size: 12px; }
  .pcover__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .pcover__cta, .pcover__ghost { min-width: 0; padding-left: 14px; padding-right: 14px; }
  .pcover + .section, .pcover + .dirs .dirs__in { padding-top: 28px; }
}
@media (max-width: 400px) {
  .pcover__btns { grid-template-columns: 1fr; }
}
