/* ==========================================================================
   Гармонія — медичний центр (Мукачево)
   Токени й секції відповідають design/Гармонія - Головна.dc.html
   ========================================================================== */

:root {
  /* Аква */
  --aqua: #7ED8DD;
  --aqua-light: #8FDCDF;
  --aqua-hover: #63CCD3;
  --aqua-icon-bg: #A3E4E6;
  --aqua-accent: #31B0BC;

  /* Бірюза (текст на аквах, лінки, ціни) */
  --teal: #137F8C;
  --teal-hover: #0E6B77;
  --ink-on-aqua: #0B4E57;

  /* Текст */
  --heading: #20353E;
  --text-secondary: #5A6B75;
  --text-muted: #6B7B85;
  --text-muted-2: #5F7078;
  --text-body: #3C4C56;
  --text-body-2: #33424B;

  /* Фони */
  --bg-white: #FFFFFF;
  --bg-mint-50: #F5FCFC;
  --bg-mint-100: #EDFAFB;
  --bg-mint-200: #E4F7F9;
  --bg-footer: #E9F8F9;
  --bg-sand: #FBF6EF;

  /* Рамки */
  --border-sand: #F0E5D8;
  --border-mint-1: #E2F2F4;
  --border-mint-2: #CFEBEF;
  --border-mint-3: #EEF4F5;
  --border-mint-4: #E6EFF0;
  --border-mint-5: #CBEBED;

  --star-filled: #E39B2E;
  --star-empty: #DDE4E7;

  --viber: #7360F2;
  --facebook: #1877F2;
  --instagram: linear-gradient(135deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);

  --font-heading: "Nunito", sans-serif;
  --font-body: "Manrope", sans-serif;

  --container: 1240px;
  --radius-card: 20px;

  --shadow-header-btn: 0 6px 18px rgba(49, 176, 188, 0.32);
  --shadow-hero-btn: 0 10px 26px rgba(49, 176, 188, 0.34);
  --shadow-photo-card: 0 16px 40px rgba(24, 72, 80, 0.14);
  --shadow-form: 0 20px 50px rgba(23, 127, 140, 0.16);
  --shadow-fab: 0 10px 24px rgba(24, 72, 80, 0.28);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- Scroll reveal ---------------------------------------------------------
   Gated behind .js (set by an inline script in <head>, see index.html/staff.html)
   so content stays fully visible if JavaScript never runs — the class only
   hides things when main.js is actually there to reveal them again. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Top bar --------------------------------------------------------------- */
.topbar {
  background: var(--aqua);
  color: var(--ink-on-aqua);
  font-family: var(--font-body);
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar__left { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar__right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar__phone--primary { font-weight: 700; }
.topbar__phone--secondary { font-weight: 600; color: #134E56; }

/* --- Header ------------------------------------------------------------- */
/* backdrop-filter lives on a decorative ::before, not on .site-header itself —
   filter/backdrop-filter on an element creates a containing block for its
   position:fixed descendants, which breaks the fixed mobile nav overlay. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-mint-4);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo img {
  height: 84px;
  width: auto;
  mix-blend-mode: multiply;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #3C4C56;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--aqua);
  color: var(--ink-on-aqua);
  box-shadow: var(--shadow-header-btn);
}
.btn--primary:hover { background: var(--teal-hover); color: #fff; }
.btn--secondary {
  background: #fff;
  color: var(--teal);
  border: 1px solid var(--border-mint-2);
}
.btn--secondary:hover { border-color: var(--teal); }

.header-cta {
  font-size: 15px;
  padding: 13px 24px;
}
.header-cta--mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #F4FAFB 0%, #FBF6EF 100%);
  padding: 36px 0 56px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border-mint-2);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 16px;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__actions .btn { font-size: 17px; padding: 17px 32px; }
.hero__actions .btn--primary { box-shadow: var(--shadow-hero-btn); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--teal);
}
.hero__stat-label {
  font-size: 14px;
  color: var(--text-muted);
}
.hero__media { position: relative; }
.hero__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 0% 60%;
  border-radius: 24px 180px 24px 24px;
  border: 1px solid var(--border-mint-2);
}
.hero__floating-card {
  position: absolute;
  left: -26px;
  bottom: 44px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-photo-card);
  padding: 18px 22px;
  max-width: 260px;
  font-size: 14px;
  color: var(--heading);
  font-weight: 600;
}
.hero__floating-card span { display: block; font-weight: 400; color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* --- Advantages ------------------------------------------------------------ */
.advantages {
  border-bottom: 1px solid var(--border-mint-3);
  padding: 52px 0;
}
.advantages .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.advantage {
  position: relative;
  padding: 0 26px;
  transition: transform 0.2s ease;
}
.advantage:first-child { padding-left: 0; }
.advantage:not(:first-child) { border-left: 1px solid var(--border-mint-3); }
.advantage:hover { transform: translateY(-2px); }
.advantage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.advantage__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--aqua-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advantage__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-on-aqua);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.advantage__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 4px;
}
.advantage__desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* --- Section heading pattern ------------------------------------------------ */
.section { padding: 84px 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 10px;
}
.section__head h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  color: var(--heading);
}
.section__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  border-bottom: 1px solid var(--border-mint-2);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section__link:hover { color: var(--aqua-accent); }

/* --- Services ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-mint-50);
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { background: #fff; border-color: var(--teal); }
.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--aqua-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; stroke: var(--ink-on-aqua); stroke-width: 1.6; fill: none; }
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--heading);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-bottom: 16px; }
.service-card__link { font-size: 14px; font-weight: 700; color: var(--teal); }

.service-card--all {
  background: var(--aqua);
  border: 1px solid var(--aqua-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card--all h3 { color: var(--ink-on-aqua); }
.service-card--all p { color: #1A5B64; }
.service-card--all .service-card__link { color: var(--ink-on-aqua); }

/* --- Doctors ---------------------------------------------------------------- */
.doctors { background: var(--bg-mint-50); }
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.doctor-card:hover { border-color: var(--teal); }
.doctors-cta { display: flex; justify-content: center; margin-top: 40px; }
.doctors-cta__btn { font-size: 16px; }
.doctor-card__photo {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 12%;
  background: repeating-linear-gradient(135deg, var(--bg-mint-100), var(--bg-mint-100) 14px, var(--bg-mint-200) 14px, var(--bg-mint-200) 28px);
}
/* Per-photo crop tweak: source has more headroom above the face than most,
   so the default 12% still leaves too much window/ceiling visible. */
.doctor-card__photo--shift-down {
  object-position: center 30%;
}
/* Per-photo crop tweak: needs only a small nudge down, not the full 30%. */
.doctor-card__photo--shift-down-sm {
  object-position: center 20%;
}
/* Per-photo crop tweak: even 30% still leaves noticeable headroom — push further. */
.doctor-card__photo--shift-down-lg {
  object-position: center 40%;
}
/* Per-photo crop tweak: face sits close to the top edge of the source,
   default 12% crops too tight — back off toward the top for more headroom. */
.doctor-card__photo--shift-up {
  object-position: center 2%;
}
.doctor-card__body { padding: 20px 22px 24px; }
.doctor-card__spec {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.doctor-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--heading);
  margin-bottom: 4px;
}
.doctor-card__note { font-size: 14px; color: var(--text-muted); }

/* --- About ------------------------------------------------------------------ */
.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.about__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about__collage img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-mint-2);
  object-fit: cover;
}
.about__collage-main { grid-column: span 2; height: 230px; }
.about__collage-small { height: 180px; }

.about__collage-more {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border-mint-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: none;
  font: inherit;
}
.about__collage-more img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}
.about__collage-more__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(180deg, rgba(11, 78, 87, 0.2) 0%, rgba(11, 78, 87, 0.68) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  transition: background-color 0.15s ease;
}
.about__collage-more__overlay small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
}
.about__collage-more:hover .about__collage-more__overlay {
  background: linear-gradient(180deg, rgba(11, 78, 87, 0.3) 0%, rgba(11, 78, 87, 0.78) 100%);
}

/* --- Photo gallery lightbox -------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 33, 37, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__image {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.34); }
.lightbox__nav:active { transform: translateY(-50%) scale(0.92); }
.lightbox__close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox__nav svg { width: 32px; height: 32px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox__nav { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.22); }
  .lightbox__nav svg { width: 26px; height: 26px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
  .about__collage-more__overlay { font-size: 15px; }
}

.about h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  color: var(--heading);
  margin-bottom: 20px;
}
.about__lead { font-size: 18px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; }
.about__badges { display: grid; gap: 12px; margin-bottom: 28px; }
.about__badge {
  background: var(--bg-mint-50);
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--heading);
  font-size: 15px;
}
.about__video-note { margin-top: 14px; font-size: 14px; color: var(--text-muted); }

/* --- Articles ----------------------------------------------------------------- */
.articles { background: var(--bg-sand); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.article-card__meta { font-size: 13px; color: #8A9AA2; margin-bottom: 14px; }
.article-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--heading);
  margin-bottom: 10px;
}
.article-card p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-bottom: 20px; }
.article-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #F1EAE0;
  margin-top: auto;
}
.article-card__avatar {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #E4F7F9;
  flex-shrink: 0;
}
.article-card__author span { font-size: 14px; font-weight: 600; color: var(--heading); }
.articles-grid__status { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 14px; }

/* --- Article detail (Prismic rich text) ---------------------------------------- */
.page-content { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.page-content figure, .page-content p.block-img { margin: 40px 0; }
.page-content figure:first-child, .page-content p.block-img:first-child { margin-top: 0; }
.page-content figure img, .page-content p.block-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.page-content p { font-size: 16.5px; line-height: 1.85; color: var(--text-body); }
.page-content p + p { margin-top: 20px; }
.page-content h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--heading); margin-top: 52px; margin-bottom: 20px; line-height: 1.2; }
.page-content h1:first-child { margin-top: 0; }
.page-content h2 { font-family: var(--font-heading); font-size: 27px; font-weight: 800; color: var(--heading); margin-top: 52px; margin-bottom: 18px; padding-top: 28px; border-top: 1px solid var(--border-mint-3); line-height: 1.25; }
.page-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-content h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--teal); margin-top: 32px; margin-bottom: 12px; }
.page-content h4, .page-content h5, .page-content h6 { font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-top: 30px; margin-bottom: 10px; }
.page-content strong { color: var(--heading); font-weight: 700; }
.page-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--teal-hover); }
.page-content ul, .page-content ol { margin: 20px 0 0; padding-left: 24px; }
.page-content li { font-size: 15.5px; line-height: 1.7; color: var(--text-body); }
.page-content li + li { margin-top: 10px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li::marker { color: var(--teal); font-weight: 700; }
.page-content blockquote { margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--aqua-accent); background: var(--bg-mint-100); border-radius: 0 var(--radius-card) var(--radius-card) 0; font-size: 16px; line-height: 1.7; color: var(--text-body); }
.page-content pre { margin: 28px 0; padding: 18px 22px; background: var(--heading); color: var(--bg-mint-100); border-radius: var(--radius-card); overflow-x: auto; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.page-content div[data-oembed] { margin: 32px 0; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-card); }
.page-content div[data-oembed] iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.article-post__author { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.article-post__author[hidden] { display: none; }
.article-post__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-mint-200); flex-shrink: 0; }
.article-post__author span { font-size: 14.5px; font-weight: 700; color: var(--heading); }
@media (max-width: 640px) {
  .page-content { padding: 44px 20px 70px; }
}

/* --- Prices ------------------------------------------------------------------- */
.prices .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}
.prices h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  color: var(--heading);
  margin-bottom: 16px;
}
.prices__lead { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 26px; }
.price-table {
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.price-table__head {
  display: flex;
  justify-content: space-between;
  background: var(--bg-mint-50);
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 26px;
  border-top: 1px solid var(--border-mint-3);
  font-size: 16px;
  color: var(--text-body-2);
}
.price-row__value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
}

/* --- Reviews ------------------------------------------------------------------ */
.reviews { background: var(--bg-mint-50); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.review-card--compact { min-height: 230px; }
.review-card__stars { display: flex; gap: 4px; margin-bottom: 18px; }
.review-card__stars svg { width: 18px; height: 18px; }
.review-card p { font-size: 16px; line-height: 1.65; color: var(--text-body); margin-bottom: 22px; }
.review-card__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-mint-3);
  margin-top: auto;
}
.review-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--heading); }
.review-card__dept { font-size: 14px; color: var(--text-muted-2); }

/* --- Booking ------------------------------------------------------------------- */
.booking {
  background: linear-gradient(180deg, #E4F7F9 0%, #F6FDFD 100%);
  padding: 80px 0;
}
.booking .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.booking--noform .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.booking--noform .booking__contacts { justify-content: center; }
.booking__contact-photo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: var(--shadow-photo-card);
  margin: 0 auto 26px;
}
.booking--noform .booking__contacts .btn {
  padding: 19px 32px;
  font-size: 17px;
}
.booking--noform .booking__contacts .btn--contact svg {
  width: 28px;
  height: 28px;
}
.booking h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  color: #173F47;
  margin-bottom: 18px;
}
.booking__lead { font-size: 18px; color: #4E6A72; margin-bottom: 30px; }
.booking__contacts { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--contact {
  background: #fff;
  border: 1px solid var(--border-mint-2);
  color: var(--teal);
  padding: 14px 22px;
  font-size: 15px;
}
.btn--contact svg { width: 20px; height: 20px; }
.btn--phone-lg { background: var(--aqua); color: var(--ink-on-aqua); padding: 14px 24px; font-size: 15px; }

.booking-form {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border-mint-1);
  box-shadow: var(--shadow-form);
  padding: 32px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.form-field input {
  width: 100%;
  font-size: 16px;
  font-family: var(--font-body);
  padding: 14px 16px;
  border: 1px solid #DCE8EA;
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
}
.form-field input:focus {
  outline: none;
  border-color: var(--aqua-accent);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border-mint-2);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--aqua-accent); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--bg-mint-100);
  border-color: var(--border-mint-2);
  color: var(--teal);
}
.booking-form__submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 6px;
}
.booking-form__note { font-size: 13px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.booking-form__status { font-size: 14px; margin-top: 12px; display: none; }
.booking-form__status.is-success { display: block; color: var(--teal); }
.booking-form__status.is-error { display: block; color: #C0453A; }

/* Honeypot — прихована пастка для ботів */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Compact booking CTA row, used on inner pages (e.g. staff.html) instead of the full form */
.booking--compact { padding: 56px 0; }
.booking__cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.booking__cta-row h2 { font-size: 32px; margin-bottom: 8px; }
.booking__cta-row .booking__lead { margin-bottom: 0; }

/* --- Breadcrumbs (inner pages) ----------------------------------------------------- */
.breadcrumbs {
  background: #fff;
  border-bottom: 1px solid var(--border-mint-4);
}
.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 13px;
}
.breadcrumbs a { color: var(--text-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs__sep { color: var(--border-mint-2); }
.breadcrumbs [aria-current="page"] { color: var(--heading); font-weight: 700; }

/* --- Page hero (inner pages) ------------------------------------------------------ */
.page-hero {
  background: linear-gradient(180deg, #F4FAFB 0%, #FBF6EF 100%);
  padding: 56px 0;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  color: var(--heading);
  margin: 10px 0 0;
}
.page-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 16px 0 0;
}
.page-hero--split .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.page-hero__photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-mint-2);
}
@media (max-width: 900px) {
  .page-hero--split .container { grid-template-columns: 1fr; }
  .page-hero__photo { order: -1; height: 220px; }
}

/* --- Services page: expandable direction cards -------------------------------------- */
.services-detail-section { padding-top: 24px; }
.service-detail-list { display: grid; gap: 16px; }
.service-detail {
  background: #fff;
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.service-detail[open] { border-color: var(--teal); }
.service-detail__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
}
.service-detail__summary::-webkit-details-marker { display: none; }
.service-detail__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--aqua-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-detail__icon svg { width: 24px; height: 24px; stroke: var(--ink-on-aqua); stroke-width: 1.6; fill: none; }
.service-detail__title-group { flex: 1; min-width: 0; }
.service-detail__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--heading);
}
.service-detail__subtitle {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 3px;
}
.service-detail__chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-mint-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.service-detail__chevron svg { width: 18px; height: 18px; stroke: var(--teal); stroke-width: 2; fill: none; }
.service-detail[open] .service-detail__chevron { transform: rotate(180deg); background: var(--bg-mint-100); }
.service-detail__body {
  padding: 0 26px 28px 90px;
}
.service-detail__desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.service-detail__prices {
  border: 1px solid var(--border-mint-1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.service-detail__price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-body-2);
  background: var(--bg-mint-50);
}
.service-detail__price-row:nth-child(even) { background: #fff; }
.service-detail__price-row span:last-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.service-detail__doctors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.service-detail__doctors-label { color: var(--text-muted); }
.service-detail__doctors a {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 1px solid var(--border-mint-2);
}
.service-detail__doctors a:hover { color: var(--aqua-accent); }

.services-detail-cta {
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-mint-50);
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services-detail-cta p { font-size: 15px; color: var(--text-muted); max-width: 460px; margin: 0; }

.services-photo-break {
  margin: 4px 0;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-mint-2);
}
.services-photo-break img { width: 100%; height: 260px; object-fit: cover; display: block; }
.services-photo-break figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(11, 78, 87, 0.72) 0%, rgba(11, 78, 87, 0) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}
@media (max-width: 640px) {
  .services-photo-break img { height: 180px; }
  .services-photo-break figcaption { font-size: 13px; padding: 14px 16px; }
}

@media (max-width: 640px) {
  .service-detail__summary { padding: 18px; gap: 14px; }
  .service-detail__body { padding: 0 18px 22px 18px; }
  .service-detail__title { font-size: 17px; }
  .services-detail-cta { flex-direction: column; align-items: flex-start; }
}

/* --- Staff page: grouped doctor sections ------------------------------------------- */
.staff-section { padding: 56px 0; border-bottom: 1px solid var(--border-mint-3); }
.staff-section:last-of-type { border-bottom: none; }
.staff-section--alt { background: var(--bg-mint-50); }
.staff-section__head { margin-bottom: 28px; }
.staff-section__head h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--heading);
  margin-top: 8px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.staff-card {
  background: #fff;
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.staff-card:hover { border-color: var(--teal); }
.staff-card__body { padding: 22px 24px 26px; }
.staff-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.staff-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--teal);
  background: var(--bg-mint-100);
  border: 1px solid var(--border-mint-2);
  padding: 5px 10px;
  border-radius: 999px;
}
.staff-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--heading);
  margin: 0 0 4px;
}
.staff-card__role { font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 12px; }
.staff-card__bio { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 1080px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .staff-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
  .booking__cta-row { flex-direction: column; align-items: flex-start; }
}

/* --- Footer ---------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-mint-5);
  padding: 70px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--ink-on-aqua); margin-bottom: 12px; }
.footer-address { font-size: 15px; color: #1A5B64; margin-bottom: 18px; line-height: 1.5; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  border: 1px solid #B9E2E5;
  color: #0F5A64;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.footer-social:hover { background: #fff; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2C7A85;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a,
.footer-col li { font-size: 15px; color: #1A5B64; }
.footer-map {
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #D3EEF0, #D3EEF0 14px, #E4F7F8 14px, #E4F7F8 28px);
  margin-bottom: 12px;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.footer-map-link { font-size: 14px; font-weight: 700; color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border-mint-5);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #5A757D;
}

/* --- Floating action buttons ------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  color: #fff;
}
.fab svg { width: 26px; height: 26px; }
.fab--viber { background: var(--viber); }
.fab--instagram { background: var(--instagram); }
.fab--facebook { background: var(--facebook); }
.fab--call {
  border-radius: 999px;
  width: auto;
  height: auto;
  padding: 13px 22px;
  background: var(--aqua);
  color: var(--ink-on-aqua);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  animation: callPulse 2.2s ease-out infinite;
}
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 127, 140, 0.34); }
  100% { box-shadow: 0 0 0 16px rgba(19, 127, 140, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fab--call { animation: none; }
}
.fab-phone { position: relative; }
.phone-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-fab);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
}
.phone-popover[hidden] { display: none; }
.phone-popover a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
}
.phone-popover a:hover { background: var(--bg-mint-100); }
.phone-popover a small { display: block; font-weight: 500; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.viber-fallback {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 33, 37, 0.55);
  padding: 24px;
}
.viber-fallback[hidden] { display: none; }
.viber-fallback__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-fab);
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.viber-fallback__card p { font-size: 17px; line-height: 1.6; color: var(--text-body); margin: 0 0 22px; }
.viber-fallback__card .btn { width: 100%; }
.viber-fallback__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 50%;
}
.viber-fallback__close:hover { background: var(--bg-mint-100); }

/* --- Responsive: tablet ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid,
  .doctors-grid,
  .articles-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .advantage { border-left: none; padding: 0 20px; }
  .advantage:nth-child(odd) { padding-left: 0; }
  .advantage:nth-child(n+3) { border-top: 1px solid var(--border-mint-3); padding-top: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 900px) {
  .hero .container,
  .about .container,
  .prices .container,
  .booking .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__photo { height: 320px; }
  .about__collage { order: -1; }
}

/* --- Responsive: phone ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topbar { font-size: 12px; }
  .site-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: #fff;
    flex-direction: column;
    padding: 24px 20px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border-mint-3); min-height: 44px; display: flex; align-items: center; }
  .header-cta--desktop { display: none; }
  .header-cta--mobile { display: inline-flex; margin-top: 12px; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 17px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__photo { height: 240px; border-radius: 20px; }
  .hero__floating-card { left: 16px; bottom: -20px; max-width: 220px; padding: 14px 18px; font-size: 13px; }

  .advantages .container { grid-template-columns: 1fr; row-gap: 20px; }
  .advantage { padding: 0; border-left: none !important; }
  .advantage:not(:first-child) { border-top: 1px solid var(--border-mint-3); padding-top: 20px; }

  .section { padding: 56px 0; }
  .section__head h2 { font-size: 30px; }
  .services-grid,
  .doctors-grid,
  .articles-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .about__collage { grid-template-columns: 1fr; }
  .about__collage-main { grid-column: span 1; height: 200px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .fab-stack { right: 16px; bottom: 16px; }

  .contact-cards { grid-template-columns: 1fr; }
  .contacts-map iframe { height: 320px; }
}

/* --- Contacts page ------------------------------------------------------------------ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--border-mint-1);
  border-radius: var(--radius-card);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--aqua-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.contact-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-on-aqua);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  margin-bottom: 8px;
}
.contact-card__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.contact-card__value a { color: var(--text-muted); }
.contact-card__value a:hover { color: var(--teal); }
.contact-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}
.contact-card__link:hover { color: var(--aqua-accent); }
.contact-card__messengers {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.contact-card__messengers .btn--contact {
  padding: 8px 16px;
  border-radius: 10px;
}

.contacts-map-section { padding-top: 0; }
.contacts-map {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-mint-2);
  line-height: 0;
}
.contacts-map iframe { width: 100%; height: 460px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
