/* =========================================================
   Medion Clinic — base styles
   ========================================================= */

:root {
  --brand: #0f9d8c;
  --brand-dark: #0b7a6d;
  --brand-light: #e6f7f4;
  --accent: #1f6feb;
  --ink: #10232b;
  --ink-2: #33525d;
  --muted: #6b8794;
  --line: #e4ecef;
  --bg: #ffffff;
  --bg-soft: #f4f9fa;
  --warn: #d9534f;
  --ok: #1f9d55;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(16, 35, 43, .06);
  --shadow: 0 12px 30px rgba(16, 35, 43, .08);
  --shadow-lg: 0 24px 60px rgba(16, 35, 43, .14);

  --container: 1180px;
  --header-h: 74px;
  --gap: clamp(16px, 3vw, 28px);
  --section-y: clamp(48px, 7vw, 96px);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.45vw + 14.2px, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.6vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: clamp(16px, 1.6vw, 18px); }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--brand-light), #fff); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); box-shadow: 0 8px 20px rgba(15, 157, 140, .28); }
.btn--primary:hover { --btn-bg: var(--brand-dark); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: #fff; border-color: var(--brand); --btn-fg: var(--brand-dark); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-dark); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #cfe3e7;
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 40px;
}
.topbar a { color: #fff; }
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo__mark { width: 38px; height: 38px; flex: 0 0 38px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 22px);
  margin: 0; padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 10px 6px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--brand-dark); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* blocks shown only inside the slide-out mobile menu */
.nav__cta,
.nav__contacts { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.header__phone:hover { color: var(--brand-dark); text-decoration: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 35, 43, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(15, 157, 140, .14), transparent 70%),
    radial-gradient(50% 60% at 5% 90%, rgba(31, 111, 235, .10), transparent 70%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}
.hero h1 { margin-bottom: 18px; }
.hero__lead {
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0; padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }

.hero__visual { position: relative; }
.hero__card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand) 0%, #0d7f8f 60%, var(--accent) 130%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero__card h2 { color: #fff; font-size: clamp(19px, 2vw, 24px); }
.hero__card p { color: rgba(255, 255, 255, .88); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0; padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}
.hero__stats li {
  margin: 0;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .16);
  text-align: center;
}
.hero__stats b { display: block; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1; }
.hero__stats span { font-size: 12.5px; color: rgba(255, 255, 255, .9); }

.hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero__badge svg { flex: 0 0 auto; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(15, 157, 140, .4); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand-dark);
}
.icon-badge--accent { background: #e8f0fe; color: var(--accent); }

.card__link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* inside a card's flex column these elements must not stretch full width */
.card .price-tag,
.card .eyebrow,
.card .btn:not(.btn--wide) { align-self: flex-start; }

.price-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* checkmark list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .6em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a6d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

/* ---------- Doctors ---------- */
.doctor { text-align: left; overflow: hidden; }
.doctor__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: calc(-1 * clamp(20px, 2.4vw, 28px)) calc(-1 * clamp(20px, 2.4vw, 28px)) 18px;
  background: linear-gradient(150deg, var(--brand-light), #dfeaf9);
  color: var(--brand-dark);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: .02em;
}
.doctor__role {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}
.doctor__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.doctor__meta li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

/* ---------- Filters / chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.chip {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Prices ---------- */
.price-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-group + .price-group { margin-top: 14px; }
.price-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(16px, 2.4vw, 24px);
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.price-group > summary::-webkit-details-marker { display: none; }
.price-group > summary::after {
  content: "";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310232b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.price-group[open] > summary { border-bottom: 1px solid var(--line); }
.price-group[open] > summary::after { transform: rotate(180deg); }

.price-list { margin: 0; padding: 6px clamp(16px, 2.4vw, 24px) 10px; list-style: none; }
.price-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .price-list__name { flex: 1 1 220px; color: var(--ink-2); }
.price-list .price-list__value { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.review { scroll-snap-align: start; }
.review__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.review__text { color: var(--ink-2); font-style: italic; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}
.review__author b { display: block; color: var(--ink); }
.review__author span { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq__item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
}
.faq__item[open] > summary::after { content: "–"; }
.faq__item p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, #14424c 55%, var(--brand-dark) 100%);
  color: #d9e9ec;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink-2);
}
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents zooming on iOS */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 157, 140, .14);
  outline: none;
}
.field .error {
  min-height: 18px;
  font-size: 13px;
  color: var(--warn);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--warn); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.checkbox input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; margin-top: 2px; }

.form-note { font-size: 13px; color: var(--muted); }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f7ee;
  border: 1px solid #bfe6cf;
  color: #14663c;
  font-weight: 600;
}
.form-status.is-visible { display: block; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 35, 43, .55); }
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
  -webkit-overflow-scrolling: touch;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Page heading ---------- */
.page-head {
  padding-block: clamp(28px, 5vw, 60px);
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(15, 157, 140, .14), transparent 70%),
    var(--bg-soft);
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { max-width: 68ch; color: var(--ink-2); margin-bottom: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ---------- Contacts ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.map-frame iframe { display: block; width: 100%; height: clamp(280px, 42vw, 420px); border: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { display: block; color: var(--ink); }
.contact-list .icon-badge { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(36px, 5vw, 64px) 24px;
  background: var(--ink);
  color: #a9c4cb;
  font-size: 15px;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer a { color: #d5e6e9; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(22px, 4vw, 44px);
}
.site-footer .logo { color: #fff; }
.site-footer .logo__text small { color: var(--brand); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55em; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.socials a:hover { background: var(--brand); }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 65;
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(16, 35, 43, .08);
}
.mobile-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.mobile-bar a,
.mobile-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-bar a:hover, .mobile-bar button:hover { text-decoration: none; color: var(--brand-dark); }
.mobile-bar__cta { color: var(--brand-dark) !important; }

/* ---------- Reveal animation ----------
   Blocks are hidden only when JS is enabled; without it the content shows immediately. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive layout
   ========================================================= */
@media (max-width: 1100px) {
  .nav__list { gap: 4px; }
  .nav__link { font-size: 14.5px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__badge { max-width: none; }
  .cta__grid { grid-template-columns: 1fr; }
}

/* tablets and phones: burger menu */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .header__phone span { display: none; }
  .header__phone {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 80;
    width: min(340px, 86vw);
    height: 100%;
    margin: 0;
    padding: 22px 22px calc(28px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16.5px;
  }
  .nav__link[aria-current="page"] { background: var(--brand-light); border-bottom-color: var(--line); }
  .nav__cta { display: block; margin-top: 18px; }
  .nav__contacts {
    display: block;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 15px;
  }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__list { justify-content: center; }
}

@media (max-width: 760px) {
  body { padding-bottom: 62px; } /* room for the bottom bar */
  .mobile-bar { display: block; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
  .reviews { grid-auto-columns: minmax(min(84vw, 340px), 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: center; text-align: center; }
  .doctor__photo { aspect-ratio: 16 / 9; }
  .topbar { font-size: 13px; }
  .topbar .topbar__hide-sm { display: none; }
}

@media (max-width: 420px) {
  /* on narrow screens booking is available from the bottom bar */
  .header__book { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats li { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 10px 14px; }
  .logo { font-size: 17px; }
  .logo__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .btn { padding: 12px 18px; }
  .filters { gap: 8px; }
  .chip { font-size: 14px; padding: 8px 14px; }
}

@media (hover: none) {
  .btn:hover, .card--link:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .mobile-bar, .modal, .overlay, .cta { display: none !important; }
  body { padding-bottom: 0; color: #000; }
}
