/* =========================================================
   Стоматология на Игримской — design system
   Warm clinical: porcelain, deep green, clay
   ========================================================= */

:root {
  --a11y-scale: 1;
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --ink: #14201F;
  --muted: #5B6663;
  --line: #E3DCD0;
  --accent: #2E6B5E;
  --accent-dark: #245448;
  --accent-soft: #DCE8E2;
  --clay: #C97C5D;
  --clay-soft: #F3E2D9;
  --dark: #14201F;
  --gold: #C9A46A;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 28px 60px -24px rgba(16, 24, 40, .26);
  --container: 1280px;
  --gutter: 24px;
  --header: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: calc(17px * var(--a11y-scale, 1));
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  body.has-mobile-bar { padding-bottom: 84px; }
}

img, svg { display: block; max-width: 100%; }
picture { display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: #5B6663; opacity: 1; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(calc(42px * var(--a11y-scale, 1)), calc(6vw * var(--a11y-scale, 1)), calc(78px * var(--a11y-scale, 1))); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(calc(30px * var(--a11y-scale, 1)), calc(4vw * var(--a11y-scale, 1)), calc(48px * var(--a11y-scale, 1))); letter-spacing: -.03em; }
h3 { font-size: clamp(calc(20px * var(--a11y-scale, 1)), calc(2vw * var(--a11y-scale, 1)), calc(24px * var(--a11y-scale, 1))); letter-spacing: -.015em; }
h4 { font-size: calc(18px * var(--a11y-scale, 1)); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--surface); }
.section--services { padding-top: 88px; }
.section--process { background: var(--surface); }
.section--prices { background: var(--surface); }
.section--doctors { background: rgba(255, 255, 255, .42); }
.section--reviews { background: var(--dark); color: #F7F3EC; }
.section--reviews h2 { color: #F7F3EC; }
.section--contacts { padding-bottom: 72px; }

.eyebrow {
  display: inline-block;
  font-family: 'Golos Text', sans-serif;
  font-size: calc(11px * var(--a11y-scale, 1));
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--light { color: #A9C3B4; }

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head__text {
  color: var(--muted);
  font-size: calc(17px * var(--a11y-scale, 1));
  max-width: 640px;
}
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .section-head__text { margin-inline: auto; }

.page-lead {
  font-size: calc(19px * var(--a11y-scale, 1));
  color: var(--muted);
  max-width: 760px;
  margin-top: 20px;
}

.small-note { font-size: calc(12.5px * var(--a11y-scale, 1)); line-height: 1.5; color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: calc(15px * var(--a11y-scale, 1));
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 12px 24px -12px rgba(46, 107, 94, .55); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: calc(13px * var(--a11y-scale, 1)); }
.btn--block { width: 100%; }

.icon { flex: 0 0 auto; }
.icon--xs { width: 14px; height: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(14px * var(--a11y-scale, 1));
  font-weight: 600;
  color: var(--accent);
  transition: gap .25s var(--ease), color .25s;
}
.link-arrow:hover { gap: 12px; color: var(--accent-dark); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 243, 236, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(247, 243, 236, .97);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(20, 32, 31, .02);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--accent);
}
.logo-mark { display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(18px * var(--a11y-scale, 1));
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo-text span {
  font-size: calc(10px * var(--a11y-scale, 1));
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  position: relative;
}
.nav-link {
  font-size: calc(14px * var(--a11y-scale, 1));
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.nav-link--drop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-services {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.dropdown a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: calc(13.5px * var(--a11y-scale, 1));
  transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-services:hover .dropdown,
.nav-services:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .65); border-color: var(--line); color: var(--accent); }
.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin: 0 8px 0 4px;
}
.header-phone__label { font-size: calc(10px * var(--a11y-scale, 1)); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.header-phone__number { font-size: calc(14px * var(--a11y-scale, 1)); font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone:hover .header-phone__number { color: var(--accent); }
.header-cta { margin-left: 4px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.header-status {
  border-top: 1px solid rgba(227, 220, 208, .7);
  font-size: calc(11.5px * var(--a11y-scale, 1));
  color: var(--muted);
}
.header-status__inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 107, 94, .12);
}
.header-status__sep { opacity: .5; }
.site-header .header-status__inner > span:last-child { margin-left: 2px; }

/* mobile menu
   ВАЖНО: разметка меню лежит вне <header>. У .site-header задан backdrop-filter,
   а такой элемент становится containing block для position: fixed потомков —
   внутри шапки меню схлопывалось в нулевую высоту и не открывалось. */
.mobile-menu {
  position: fixed;
  top: var(--header);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 160; /* выше .mobile-bar (120) и .cookie (150), ниже .search-overlay (200) */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  padding: 24px var(--gutter) 120px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav > a {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(28px * var(--a11y-scale, 1));
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-sub {
  display: grid;
  gap: 2px;
  padding: 8px 0 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-sub a { font-size: calc(15px * var(--a11y-scale, 1)); color: var(--muted); padding: 5px 0; }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: calc(13px * var(--a11y-scale, 1));
}
.mobile-phone {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: calc(26px * var(--a11y-scale, 1));
  color: var(--ink);
  margin-bottom: 12px;
}
.mobile-social { display: flex; gap: 16px; margin-top: 16px; }
.mobile-social a { display: inline-flex; align-items: center; gap: 6px; font-size: calc(13px * var(--a11y-scale, 1)); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header) + 62px) 0 74px;
  overflow: hidden;
}
.hero-art { display: none; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-copy h1 { margin: 4px 0 24px; }
.hero-lead {
  font-size: calc(19px * var(--a11y-scale, 1));
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; gap: 10px; align-items: flex-start; }
.hero-trust .icon { color: var(--accent); margin-top: 2px; }
.hero-trust span { font-size: calc(11.5px * var(--a11y-scale, 1)); color: var(--muted); line-height: 1.5; }
.hero-trust strong { font-size: calc(12.5px * var(--a11y-scale, 1)); font-weight: 600; color: var(--ink); }
.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}
.hero-photo picture, .hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 32, 31, .8) 100%);
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: calc(11.5px * var(--a11y-scale, 1));
  letter-spacing: .02em;
}
.hero-photo figcaption span:last-child { text-align: right; opacity: 1; }
.hero-rating {
  position: absolute;
  left: -26px;
  bottom: -24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  min-width: 230px;
}
.hero-rating__value {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(30px * var(--a11y-scale, 1));
  line-height: 1;
  color: var(--ink);
}
.hero-rating__stars { display: flex; gap: 2px; color: var(--gold); }
.hero-rating__stars .icon:last-child { opacity: .35; }
.hero-rating__text { font-size: calc(10.5px * var(--a11y-scale, 1)); color: var(--muted); }

/* Единый блок отзывов: hero, тёмная секция */
.rating-summary { display: grid; gap: 4px; min-width: 0; }
.rating-summary__label,
.rating-summary__line { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.rating-summary__label {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(22px * var(--a11y-scale, 1));
  line-height: 1.05;
  letter-spacing: -.03em;
  color: inherit;
}
.rating-summary--sm .rating-summary__label { font-size: calc(20px * var(--a11y-scale, 1)); }
.rating-summary--lg .rating-summary__label { font-size: calc(52px * var(--a11y-scale, 1)); color: #F7F3EC; }
.rating-summary__line { font-size: calc(11px * var(--a11y-scale, 1)); line-height: 1.5; color: var(--muted); }
.rating-summary--lg .rating-summary__line { font-size: calc(12px * var(--a11y-scale, 1)); color: rgba(247, 243, 236, .65); }
.rating-summary__line a { text-decoration: underline; text-underline-offset: 2px; }
.rating-summary__line a:hover { color: var(--accent); }
.rating-summary--lg .rating-summary__line a:hover { color: #fff; }

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .38);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 24px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(24px * var(--a11y-scale, 1));
  font-weight: 600;
  letter-spacing: -.02em;
}
.trust-item span { font-size: calc(12px * var(--a11y-scale, 1)); line-height: 1.5; color: var(--muted); }
.trust-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.trust-item a:hover { color: var(--accent-dark); }

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.service-card {
  --service-card-pad: 26px;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-card--lg { --service-card-pad: 32px; grid-column: span 6; min-height: 270px; padding: 32px; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.service-card h3 { margin-bottom: 10px; font-size: calc(22px * var(--a11y-scale, 1)); }
.service-card--lg h3 { font-size: calc(30px * var(--a11y-scale, 1)); }
.service-card h3 a { transition: color .2s; }
.service-card h3 a:hover { color: var(--accent); }
.service-card p {
  font-size: calc(14px * var(--a11y-scale, 1));
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 42ch;
}
.service-card__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-price { font-size: calc(13px * var(--a11y-scale, 1)); font-weight: 600; color: var(--accent); }
.service-link {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.service-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.section-foot { margin-top: 32px; display: flex; justify-content: flex-end; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; min-height: 520px; }
.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.about-photo--main {
  width: 82%;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.about-photo--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
.about-photo img, .about-photo picture { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  left: 0;
  bottom: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: grid;
  line-height: 1.1;
  box-shadow: var(--shadow);
}
.about-badge strong { font-family: 'Lora', Georgia, serif; font-size: calc(30px * var(--a11y-scale, 1)); font-weight: 600; }
.about-badge span { font-size: calc(10.5px * var(--a11y-scale, 1)); opacity: .8; margin-top: 3px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: calc(16px * var(--a11y-scale, 1)); }
.check-list { display: grid; gap: 10px; margin: 24px 0 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: calc(14.5px * var(--a11y-scale, 1)); }
.check-list .icon { color: var(--accent); margin-top: 3px; flex: 0 0 auto; }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.about-grid--page { align-items: start; }
.about-grid--page .about-media { min-height: 560px; }

/* ---------- doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.doctor-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(46, 107, 94, .35); }
.doctor-card__media { background: var(--accent-soft); min-height: 240px; }
.doctor-visual { width: 100%; height: 100%; min-height: 240px; }
.doctor-visual svg { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.doctor-card__body .eyebrow { margin-bottom: 8px; }
.doctor-card h3 { font-size: calc(24px * var(--a11y-scale, 1)); margin-bottom: 4px; }
.doctor-card h3 a:hover { color: var(--accent); }
.doctor-role { font-size: calc(13.5px * var(--a11y-scale, 1)); color: var(--accent); margin-bottom: 12px; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.doctor-meta {
  font-size: calc(10.5px * var(--a11y-scale, 1));
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.doctor-card .link-arrow { margin-top: auto; }
.doctors-grid--small .doctor-card { grid-template-columns: 170px 1fr; }
.doctors-grid--small .doctor-card__media, .doctors-grid--small .doctor-visual { min-height: 220px; }

/* doctor page */
.doctor-hero { padding: calc(var(--header) + 56px) 0 56px; border-bottom: 1px solid var(--line); }
.doctor-hero__grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.doctor-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 6 / 7;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}
.doctor-hero__media .doctor-visual { height: 100%; }
.doctor-hero__role { font-size: calc(14px * var(--a11y-scale, 1)); color: var(--accent); margin-top: 8px; }
.doctor-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.doctor-facts div { display: flex; flex-direction: column; gap: 3px; }
.doctor-facts span { font-size: calc(10.5px * var(--a11y-scale, 1)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doctor-facts strong { font-family: 'Lora', Georgia, serif; font-size: calc(20px * var(--a11y-scale, 1)); font-weight: 600; }
.doctor-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.process li { border-top: 1px solid var(--line); padding-top: 22px; }
.process-num {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: calc(34px * var(--a11y-scale, 1));
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
}
.process h3 { font-size: calc(18px * var(--a11y-scale, 1)); margin-bottom: 8px; }
.process p { font-size: calc(13.5px * var(--a11y-scale, 1)); color: var(--muted); line-height: 1.55; margin: 0; }

/* stages */
.stages { display: grid; gap: 0; max-width: 900px; }
.stages li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.stages li:last-child { border-bottom: 1px solid var(--line); }
.stage-num { font-family: 'Lora', Georgia, serif; font-size: calc(26px * var(--a11y-scale, 1)); color: var(--accent); line-height: 1; }
.stages h3 { font-size: calc(19px * var(--a11y-scale, 1)); margin-bottom: 5px; }
.stages p { font-size: calc(14.5px * var(--a11y-scale, 1)); color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- prices ---------- */
.prices-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.prices-copy h2 { margin-bottom: 16px; }
.prices-copy p { color: var(--muted); font-size: calc(16px * var(--a11y-scale, 1)); }
.prices-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 16px; }
/* рамка живёт на обёртке, а боковые отступы — в ячейках: так разделители
   строк доходят до краёв карточки, а не обрываются внутри неё */
.prices-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-family: 'Golos Text', sans-serif;
  font-size: calc(10.5px * var(--a11y-scale, 1));
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--line);
}
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: calc(15px * var(--a11y-scale, 1));
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-value { font-weight: 600; white-space: nowrap; }
/* минимальный зазор между названием услуги и ценой в простых таблицах;
   в карточке отступ задают сами ячейки */
.price-table .price-value { padding-left: 18px; }
.prices-table .price-table th,
.prices-table .price-table td { padding-left: 26px; padding-right: 26px; }
.prices-table .price-table th { padding-top: 20px; }

/* страница «Цены»: три колонки, подписи в шапке выровнены так же, как значения */
.prices-page .price-table { font-variant-numeric: tabular-nums; }
.prices-page .price-table th:nth-child(2),
.prices-page .price-table td:nth-child(2) { width: 190px; text-align: right; }
.prices-page .price-table th:nth-child(3),
.prices-page .price-table td:nth-child(3) { width: 230px; }
.prices-page .price-table th:last-child,
.prices-page .price-table td:last-child { text-align: left; }
.prices-page .price-table td:last-child { font-size: calc(12px * var(--a11y-scale, 1)); color: var(--muted); white-space: nowrap; }

/* на узких экранах прайс превращается в список: услуга и цена в одной строке,
   направление — подписью под ними */
@media (max-width: 680px) {
  .prices-table .price-table th,
  .prices-table .price-table td { padding-left: 18px; padding-right: 18px; }
  .prices-page .price-table thead { display: none; }
  .prices-page .price-table,
  .prices-page .price-table tbody,
  .prices-page .price-table tr,
  .prices-page .price-table td { display: block; width: auto; }
  .prices-page .price-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
  }
  .prices-page .price-table tr:first-child { border-top: 0; }
  .prices-page .price-table td { padding: 0; border-bottom: 0; }
  .prices-page .price-table td:nth-child(2) {
    width: auto;
    padding-left: 0;
    justify-self: end;
  }
  .prices-page .price-table td:nth-child(3) {
    grid-column: 1 / -1;
    width: auto;
    margin-top: 3px;
    white-space: normal;
  }
}

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.rating-big {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(106px * var(--a11y-scale, 1));
  line-height: .9;
  letter-spacing: -.05em;
  margin: 10px 0 14px;
}
.rating-stars { display: flex; gap: 4px; color: var(--gold); }
.rating-stars .icon:last-child { opacity: .35; }
.reviews-rating p { font-size: calc(12px * var(--a11y-scale, 1)); color: rgba(247, 243, 236, .65); margin-top: 10px; }
.reviews-copy h2 { margin-bottom: 16px; }
.reviews-copy p { color: rgba(247, 243, 236, .72); font-size: calc(16px * var(--a11y-scale, 1)); max-width: 54ch; }
.reviews-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.reviews-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.reviews-sources { display: grid; gap: 14px; }
.rating-source {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.rating-source--alt { background: var(--accent-soft); }
.rating-source__label {
  font-family: 'Lora', Georgia, serif;
  font-size: calc(30px * var(--a11y-scale, 1));
  line-height: 1.1;
  letter-spacing: -.03em;
  padding: 4px 0 2px;
}
.rating-source p { font-size: calc(12px * var(--a11y-scale, 1)); color: var(--muted); margin: 0; }
.rating-source .btn { justify-self: start; margin-top: 8px; }
.reviews-more { font-size: calc(11px * var(--a11y-scale, 1)); color: rgba(247, 243, 236, .55); margin-top: 14px; }
.reviews-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.reviews-card .rating-big { font-size: calc(80px * var(--a11y-scale, 1)); }
.reviews-card p { font-size: calc(12.5px * var(--a11y-scale, 1)); color: var(--muted); }
.reviews-card .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.faq-intro h2 { margin-bottom: 14px; }
.faq-intro p { color: var(--muted); font-size: calc(16px * var(--a11y-scale, 1)); max-width: 40ch; margin-bottom: 22px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: 'Golos Text', sans-serif;
  font-size: calc(16px * var(--a11y-scale, 1));
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform .3s var(--ease), background .2s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq-answer { overflow: hidden; }
.faq-answer__inner { padding: 0 48px 20px 0; color: var(--muted); font-size: calc(14.5px * var(--a11y-scale, 1)); }
.faq-answer__inner p { margin: 0; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 24px; align-items: stretch; }
.contact-map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--accent-soft); }
.contact-map picture, .contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* Ленивая карта: постер + кнопка, Яндекс.Карты только по клику */
.map-embed {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}
.map-embed > picture { position: absolute; inset: 0; }
.map-embed > picture img { width: 100%; height: 100%; object-fit: cover; }
.map-embed__open {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: calc(12.5px * var(--a11y-scale, 1));
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .2s;
}
.map-embed__open:hover { background: var(--accent); color: #fff; transform: translate(-50%, -50%) translateY(-2px); }
.map-embed__route {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: calc(12px * var(--a11y-scale, 1));
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.map-embed__route:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.map-embed__canvas { position: absolute; inset: 0; z-index: 2; display: none; }
.map-embed.is-loading .map-embed__canvas { display: block; }
.map-embed.is-loaded .map-embed__canvas { display: block; }
.map-embed.is-loaded > picture,
.map-embed.is-loaded > .map-embed__open,
.map-embed.is-loaded > .map-embed__route { display: none; }
.map-embed.is-loading .map-embed__open { opacity: .75; pointer-events: none; }
.map-embed.is-error .map-embed__open { background: #fff; color: #8E2F26; border-color: #E2B8B2; }
.contact-map__pin {
  position: absolute;
  left: 20px; bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: calc(12.5px * var(--a11y-scale, 1));
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.contact-map__pin:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.contact-card h3, .contact-card h2 { font-size: calc(24px * var(--a11y-scale, 1)); margin-bottom: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; font-size: calc(13.5px * var(--a11y-scale, 1)); color: var(--muted); }
.contact-list .icon { color: var(--accent); margin-top: 2px; flex: 0 0 auto; }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.contact-page__map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); }
.contact-page__map img { width: 100%; height: 340px; object-fit: cover; }
.contact-page__map .btn { position: absolute; left: 20px; bottom: 20px; }
.contact-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.contact-how h2 { margin-bottom: 14px; }
.contact-how p { color: var(--muted); font-size: calc(15px * var(--a11y-scale, 1)); }
.supervision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.supervision-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.supervision-card h3 { font-family: 'Golos Text', sans-serif; font-size: calc(13px * var(--a11y-scale, 1)); font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.supervision-card p { font-size: calc(12px * var(--a11y-scale, 1)); color: var(--muted); line-height: 1.5; }
.supervision-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- cta ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: calc(15px * var(--a11y-scale, 1)); max-width: 54ch; margin: 0; }
.cta-band .eyebrow--light { color: #F7F3EC; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #CFD6D2; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr .8fr .8fr 1.1fr; gap: 48px; }
.footer-brand .logo-text strong { color: #F7F3EC; }
.footer-brand .logo-text span { color: #9AA39F; }
.footer-brand p { font-size: calc(13px * var(--a11y-scale, 1)); line-height: 1.6; color: #9AA39F; max-width: 34ch; margin-top: 16px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #E9E4DA;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h3 {
  font-family: 'Golos Text', sans-serif;
  font-size: calc(11px * var(--a11y-scale, 1));
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8D9A94;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: calc(12.5px * var(--a11y-scale, 1)); color: #B9C2BD; }
.footer-col a:hover { color: #fff; }
.footer-col--contacts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.footer-col--contacts .icon { color: #8FB3A5; flex: 0 0 auto; margin-top: 1px; }
.footer-legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: calc(12px * var(--a11y-scale, 1));
  line-height: 1.55;
  color: #8D9A94;
}
.footer-legal p { margin-bottom: 4px; }
.footer-legal strong { color: #CFD6D2; font-weight: 600; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.footer-legal-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: #fff; }

/* ---------- mobile bar / cookie / panels ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 243, 236, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 48px; }
.mobile-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-bar .btn { min-width: 0; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: auto;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 24px;
  box-shadow: 0 -12px 32px -24px rgba(16, 24, 40, .28);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-height: 40vh;
  max-height: 40dvh;
  overflow-y: auto;
}
.cookie[hidden] { display: none; }
.cookie__body { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
.cookie__body strong { display: block; font-size: calc(13px * var(--a11y-scale, 1)); margin: 0; white-space: nowrap; }
.cookie__body p { font-size: calc(11.5px * var(--a11y-scale, 1)); color: var(--muted); line-height: 1.5; margin: 0; max-width: 900px; }
.cookie__body a { text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* A compact notice replaces the mobile bar until it is acknowledged. */
body { padding-bottom: var(--cookie-height, 0px); }
@media (max-width: 900px) {
  body.cookie-open .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: max(var(--mobile-bar-height, 84px), var(--cookie-height, 0px)); }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 32, 31, .56);
  backdrop-filter: blur(6px);
  padding: 110px 16px 32px;
  display: grid;
  align-items: start;
  justify-items: center;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(760px, 100%);
  background: var(--bg);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.search-panel__head { display: flex; align-items: center; gap: 10px; }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  height: 54px;
}
.search-field .icon { color: var(--muted); }
.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: calc(17px * var(--a11y-scale, 1));
}
.search-results { max-height: 56vh; overflow-y: auto; margin-top: 12px; }
.search-hint { font-size: calc(13px * var(--a11y-scale, 1)); color: var(--muted); padding: 12px 8px; }
.search-result {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: var(--surface); }
.search-result strong { display: block; font-size: calc(14px * var(--a11y-scale, 1)); margin-bottom: 2px; }
.search-result span { font-size: calc(11.5px * var(--a11y-scale, 1)); color: var(--muted); }

.a11y-panel {
  position: fixed;
  right: 20px;
  top: 110px;
  z-index: 210;
  width: 320px;
  max-width: calc(100% - 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.a11y-panel__head strong { font-size: calc(13px * var(--a11y-scale, 1)); }
.a11y-group { margin-bottom: 14px; }
.a11y-group > span { display: block; font-size: calc(10.5px * var(--a11y-scale, 1)); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.a11y-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: calc(11.5px * var(--a11y-scale, 1));
  color: var(--ink);
}
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* accessibility modes */
.a11y-contrast { --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --muted: #333333; --line: #9A9A9A; --accent: #0B4F43; --accent-dark: #063B32; --accent-soft: #E6F0ED; }
.a11y-contrast body { background: #fff; }
.a11y-contrast .hero-art { display: none; }
.a11y-no-images img { visibility: hidden; }
.a11y-no-images .doctor-visual svg { opacity: .15; }

/* ---------- page hero / breadcrumbs ---------- */
.page-hero {
  padding: calc(var(--header) + 62px) 0 52px;
  border-bottom: 1px solid var(--line);
}
.page-hero--compact { padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(calc(40px * var(--a11y-scale, 1)), calc(5.2vw * var(--a11y-scale, 1)), calc(66px * var(--a11y-scale, 1))); }
.page-hero .page-lead { margin-top: 18px; }
.breadcrumbs { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; padding-top: calc(var(--header) + 16px); font-size: calc(11.5px * var(--a11y-scale, 1)); color: var(--muted); }
.breadcrumbs + .page-hero,
.breadcrumbs + .service-hero,
.breadcrumbs + .doctor-hero { padding-top: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; color: #B9B0A2; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* ---------- service page ---------- */
.service-hero { padding: calc(var(--header) + 48px) 0 56px; border-bottom: 1px solid var(--line); }
.service-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.service-hero__copy h1 { font-size: clamp(calc(36px * var(--a11y-scale, 1)), calc(4.6vw * var(--a11y-scale, 1)), calc(58px * var(--a11y-scale, 1))); }
.service-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.service-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 120px;
}
.service-aside__price { font-family: 'Lora', Georgia, serif; font-size: calc(38px * var(--a11y-scale, 1)); line-height: 1; margin-bottom: 10px; }
.service-aside p { font-size: calc(12.5px * var(--a11y-scale, 1)); color: var(--muted); }
.service-aside hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.service-aside .btn { margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col--wide { grid-template-columns: .9fr 1.1fr; }
.two-col h2 { font-size: calc(28px * var(--a11y-scale, 1)); margin-bottom: 18px; }
.arrow-list { display: grid; gap: 9px; }
.arrow-list li { position: relative; padding-left: 18px; font-size: calc(14.5px * var(--a11y-scale, 1)); color: var(--muted); }
.arrow-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.contra-box { background: var(--clay-soft); border-radius: var(--radius); padding: 28px; }
.contra-box h2 { font-size: calc(26px * var(--a11y-scale, 1)); }
.contra-box .arrow-list li::before { background: var(--clay); }
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}
.notice .icon { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.notice p { font-size: calc(13px * var(--a11y-scale, 1)); color: var(--ink); margin: 0; }
.notice--warn { background: #FBF0EE; border-left-color: var(--clay); }
.notice--warn .icon { color: var(--clay); }
.related-title { font-size: calc(24px * var(--a11y-scale, 1)); margin: 30px 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: calc(14px * var(--a11y-scale, 1));
  background: var(--surface);
  transition: border-color .2s, color .2s;
}
.related-card:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: calc(11px * var(--a11y-scale, 1)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 0 14px;
  font-size: calc(14px * var(--a11y-scale, 1));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.booking-aside a[href^="tel:"], .booking-aside a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 32px; padding-block: 4px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 107, 94, .12);
  background: #fff;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B4453A; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: calc(12px * var(--a11y-scale, 1)); color: var(--muted); margin: 12px 0; line-height: 1.5; }
.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn { margin-top: 8px; }
.form-note { font-size: calc(10.5px * var(--a11y-scale, 1)); color: var(--muted); text-align: center; margin-top: 10px; }
.form-message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: calc(12.5px * var(--a11y-scale, 1)); }
.form-message.is-success { display: block; background: #E6F2EC; color: #1D5A45; }
.form-message.is-error { display: block; background: #FBE9E7; color: #8E2F26; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.booking-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.booking-aside { display: grid; gap: 16px; position: sticky; top: 120px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h2, .info-card h3 { font-size: calc(22px * var(--a11y-scale, 1)); margin-bottom: 12px; }
.info-card p { font-size: calc(13.5px * var(--a11y-scale, 1)); color: var(--muted); }
.info-card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.steps-list { counter-reset: step; display: grid; gap: 12px; margin: 0 0 14px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 34px; font-size: calc(13.5px * var(--a11y-scale, 1)); color: var(--muted); }
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: calc(11px * var(--a11y-scale, 1));
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- legal ---------- */
.legal-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.license-card {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 120px;
}
.license-card h2 { font-size: clamp(calc(24px * var(--a11y-scale, 1)), calc(2.4vw * var(--a11y-scale, 1)), calc(32px * var(--a11y-scale, 1))); margin-bottom: 20px; word-break: break-word; }
.license-card dl { display: grid; gap: 12px; margin: 0 0 20px; }
.license-card dl div { display: grid; gap: 2px; }
.license-card dt { font-size: calc(10px * var(--a11y-scale, 1)); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.license-card dd { margin: 0; font-size: calc(13.5px * var(--a11y-scale, 1)); }
.license-card .btn { width: 100%; }
.prose { max-width: 840px; }
.prose h2 { font-size: clamp(calc(24px * var(--a11y-scale, 1)), calc(2.6vw * var(--a11y-scale, 1)), calc(32px * var(--a11y-scale, 1))); margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: calc(19px * var(--a11y-scale, 1)); margin: 24px 0 8px; }
.prose p, .prose li { font-size: calc(15px * var(--a11y-scale, 1)); color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-dark); }
.prose ul, .prose ol { display: grid; gap: 6px; margin: 0 0 16px; padding-left: 20px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: calc(13px * var(--a11y-scale, 1)); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); font-weight: 600; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.prose .table-scroll table { margin: 0; }
.table-scroll:focus-visible { outline-offset: 4px; }
.prose--legal { max-width: 900px; }
.prose--legal h2 { font-size: calc(26px * var(--a11y-scale, 1)); }
.data-list { display: grid; gap: 12px; margin: 0 0 20px; }
.data-list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.data-list dt { font-size: calc(10.5px * var(--a11y-scale, 1)); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-top: 2px; }
.data-list dd { margin: 0; font-size: calc(13.5px * var(--a11y-scale, 1)); }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: calc(13px * var(--a11y-scale, 1));
  transition: border-color .2s, color .2s, transform .2s;
}
.doc-card .icon:first-child { color: var(--accent); width: 24px; height: 24px; flex: 0 0 24px; }
.doc-card > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-card { font-size: calc(14px * var(--a11y-scale, 1)); }
.doc-grid { margin-bottom: 32px; }
.doc-card .icon:last-child { margin-left: auto; color: var(--muted); }
.doc-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.doc-list { display: grid; gap: 8px; }
.doc-list a { font-size: calc(14px * var(--a11y-scale, 1)); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- utilities / misc ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.sitemap-grid h2 { font-size: calc(20px * var(--a11y-scale, 1)); margin-bottom: 14px; }
.not-found { padding: calc(var(--header) + 100px) 0 120px; min-height: 72vh; }
.not-found h1 { font-size: clamp(calc(48px * var(--a11y-scale, 1)), calc(8vw * var(--a11y-scale, 1)), calc(96px * var(--a11y-scale, 1))); margin-bottom: 18px; }
.not-found p { color: var(--muted); max-width: 50ch; font-size: calc(17px * var(--a11y-scale, 1)); }
.not-found__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* reveal only when JS is available */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav { gap: 16px; }
  .hero-grid { gap: 40px; }
  .about-grid { gap: 48px; }
  .process { gap: 16px; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 32px; }
}

@media (max-width: 1020px) {
  .service-card, .service-card--lg { grid-column: span 6; }
  .doctor-card { grid-template-columns: 160px 1fr; }
  .doctor-card__media, .doctor-visual { min-height: 220px; }
  .about-grid, .prices-grid, .reviews-grid, .faq-grid, .legal-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { min-height: 480px; max-width: 560px; }
  .service-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .service-aside { position: static; }
  .booking-aside, .license-card { position: static; }
  .reviews-page { grid-template-columns: 1fr; }
  .contact-page__grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  :root { --header: 68px; }
  .nav, .header-cta, .header-status { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .mobile-bar { display: grid; }
  .hero { padding-top: calc(var(--header) + 44px); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 620px; }
  .hero-rating { left: auto; right: 16px; bottom: -18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .service-card, .service-card--lg { grid-column: span 6; min-height: auto; }
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-hero__grid { grid-template-columns: 240px 1fr; gap: 32px; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 60px 1fr; gap: 12px; }
  .process li h3, .process li p { grid-column: 2; }
  .process-num { grid-row: span 2; margin: 0; }
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 32px; }
  .related-grid, .doc-grid { grid-template-columns: 1fr 1fr; }
  .supervision-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cookie { bottom: 0; left: 0; right: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); flex-direction: row; align-items: center; gap: 12px; border-radius: 14px 14px 0 0; }
  .cookie__body { display: block; }
  .cookie__body strong { margin-bottom: 4px; white-space: normal; }
  .cookie__actions { grid-template-columns: 1fr 1fr; }
  .cookie__actions .btn { font-size: calc(12px * var(--a11y-scale, 1)); padding: 0 8px; white-space: normal; line-height: 1.5; min-height: 42px; }
  .a11y-panel { top: auto; bottom: 90px; right: 12px; }
  .rating-big { font-size: calc(80px * var(--a11y-scale, 1)); }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  body { font-size: calc(16px * var(--a11y-scale, 1)); }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding-top: calc(var(--header) + 28px); padding-bottom: 48px; }
  .hero h1 { font-size: clamp(calc(38px * var(--a11y-scale, 1)), calc(11vw * var(--a11y-scale, 1)), calc(54px * var(--a11y-scale, 1))); }
  .hero-lead { font-size: calc(16.5px * var(--a11y-scale, 1)); }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 16px; }
  .hero-trust li { flex: 1 1 100%; }
  .hero-rating { right: 10px; padding: 10px 12px; min-width: 146px; }
  .hero-rating__value { font-size: calc(24px * var(--a11y-scale, 1)); }
  .service-card, .service-card--lg { --service-card-pad: 22px; grid-column: span 12; padding: 22px; }
  .service-card--lg h3 { font-size: calc(24px * var(--a11y-scale, 1)); }
  .about-media { min-height: 380px; }
  .about-photo--main { width: 88%; }
  .about-photo--small { width: 56%; border-width: 6px; }
  .about-badge { padding: 10px 14px; }
  .about-badge strong { font-size: calc(24px * var(--a11y-scale, 1)); }
  .doctor-card, .doctors-grid--small .doctor-card { grid-template-columns: 1fr; }
  .doctor-card__media, .doctor-visual { min-height: 260px; max-height: 320px; }
  .doctor-hero { padding-top: calc(var(--header) + 32px); }
  .doctor-hero__grid { grid-template-columns: 1fr; }
  .doctor-hero__media { max-width: 280px; }
  .doctor-facts { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
  .map-embed { min-height: 280px; }
  .contact-page__map img { height: 240px; }
  .contact-page__map .btn { left: 12px; bottom: 12px; }
  .cta-band { padding: 48px 0; }
  .cta-band__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { font-size: calc(12px * var(--a11y-scale, 1)); }
  .footer-legal-links { gap: 6px 12px; }
  .related-grid, .doc-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .data-list div { grid-template-columns: 1fr; gap: 2px; }
  .license-card { padding: 22px; }
  .not-found { padding-top: calc(var(--header) + 64px); }
  .search-overlay { padding-top: 80px; }
  .a11y-panel { width: calc(100% - 24px); }
  .cookie__actions { grid-template-columns: 1fr 1fr; }
  .cookie__actions .btn { width: 100%; }
  .hero-art { width: 420px; height: 420px; right: -40%; }
}

@media (max-width: 380px) {
  .logo-text strong { font-size: calc(16px * var(--a11y-scale, 1)); }
  .logo-text span { font-size: calc(9px * var(--a11y-scale, 1)); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* очень узкие экраны (<=360px): шапка с кнопкой меню не должна уезжать за край */
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .menu-toggle { width: 40px; height: 40px; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Accessibility: 150–200% text, reflow, line-height
   ========================================================= */
body { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: normal; hyphens: manual; }
.hero-copy, .hero-media { min-width: 0; }
:is(.about-grid, .prices-grid, .reviews-grid, .faq-grid, .legal-grid, .booking-grid, .contact-grid, .contact-page__grid, .doctor-hero__grid, .two-col, .footer-grid, .doc-grid, .sitemap-grid, .doctor-facts) > * { min-width: 0; }
:is(.supervision-grid, .process, .trust-grid, .arrow-list, .contact-list) > *, .process li > *, .notice > p { min-width: 0; }
.contact-list li > *, .supervision-card a, .trust-item a { min-width: 0; overflow-wrap: anywhere; }
.notice > .icon { flex-shrink: 0; }
.doc-card > span { min-width: 0; }
.doc-card > .icon, .header-actions > button { flex-shrink: 0; }
html[data-a11y-font="150"] h1, html[data-a11y-font="150"] h2, html[data-a11y-font="150"] h3,
html[data-a11y-font="175"] h1, html[data-a11y-font="175"] h2, html[data-a11y-font="175"] h3,
html[data-a11y-font="200"] h1, html[data-a11y-font="200"] h2, html[data-a11y-font="200"] h3 { overflow-wrap: anywhere; word-break: break-word; }
html[data-a11y-font="150"] .section-head,
html[data-a11y-font="175"] .section-head,
html[data-a11y-font="200"] .section-head { max-width: 100%; min-width: 0; }
.a11y-panel { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; }

html[data-a11y-font="150"] .header-status,
html[data-a11y-font="175"] .header-status,
html[data-a11y-font="200"] .header-status,
html[data-a11y-font="150"] .header-phone,
html[data-a11y-font="175"] .header-phone,
html[data-a11y-font="200"] .header-phone { display: none; }

html[data-a11y-font="150"] .nav { gap: 12px; }
html[data-a11y-font="175"] .nav,
html[data-a11y-font="200"] .nav { display: none; }
html[data-a11y-font="175"] .menu-toggle,
html[data-a11y-font="200"] .menu-toggle { display: inline-flex; }
html[data-a11y-font="175"] .header-inner,
html[data-a11y-font="200"] .header-inner { gap: 12px; }

/* Крупный текст: не сжимаем колонки, а перестраиваем их */
html[data-a11y-font="150"] .hero-grid,
html[data-a11y-font="175"] .hero-grid,
html[data-a11y-font="200"] .hero-grid,
html[data-a11y-font="150"] .about-grid,
html[data-a11y-font="175"] .about-grid,
html[data-a11y-font="200"] .about-grid,
html[data-a11y-font="150"] .prices-grid,
html[data-a11y-font="175"] .prices-grid,
html[data-a11y-font="200"] .prices-grid,
html[data-a11y-font="150"] .reviews-grid,
html[data-a11y-font="175"] .reviews-grid,
html[data-a11y-font="200"] .reviews-grid,
html[data-a11y-font="150"] .reviews-page,
html[data-a11y-font="175"] .reviews-page,
html[data-a11y-font="200"] .reviews-page,
html[data-a11y-font="150"] .faq-grid,
html[data-a11y-font="175"] .faq-grid,
html[data-a11y-font="200"] .faq-grid,
html[data-a11y-font="150"] .contact-grid,
html[data-a11y-font="175"] .contact-grid,
html[data-a11y-font="200"] .contact-grid,
html[data-a11y-font="150"] .contact-page__grid,
html[data-a11y-font="175"] .contact-page__grid,
html[data-a11y-font="200"] .contact-page__grid,
html[data-a11y-font="150"] .service-hero__grid,
html[data-a11y-font="175"] .service-hero__grid,
html[data-a11y-font="200"] .service-hero__grid,
html[data-a11y-font="150"] .doctor-hero__grid,
html[data-a11y-font="175"] .doctor-hero__grid,
html[data-a11y-font="200"] .doctor-hero__grid,
html[data-a11y-font="150"] .legal-grid,
html[data-a11y-font="175"] .legal-grid,
html[data-a11y-font="200"] .legal-grid,
html[data-a11y-font="150"] .booking-grid,
html[data-a11y-font="175"] .booking-grid,
html[data-a11y-font="200"] .booking-grid,
html[data-a11y-font="150"] .two-col,
html[data-a11y-font="175"] .two-col,
html[data-a11y-font="200"] .two-col,
html[data-a11y-font="150"] .two-col--wide,
html[data-a11y-font="175"] .two-col--wide,
html[data-a11y-font="200"] .two-col--wide { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .cta-band__inner,
html[data-a11y-font="175"] .cta-band__inner,
html[data-a11y-font="200"] .cta-band__inner { flex-direction: column; align-items: flex-start; }

/* Не даём грид-элементам распирать страницу длинными словами */
html[data-a11y-font="150"] .reviews-grid > *,
html[data-a11y-font="175"] .reviews-grid > *,
html[data-a11y-font="200"] .reviews-grid > *,
html[data-a11y-font="150"] .prices-grid > *,
html[data-a11y-font="175"] .prices-grid > *,
html[data-a11y-font="200"] .prices-grid > *,
html[data-a11y-font="150"] .contact-grid > *,
html[data-a11y-font="175"] .contact-grid > *,
html[data-a11y-font="200"] .contact-grid > *,
html[data-a11y-font="150"] .faq-grid > *,
html[data-a11y-font="175"] .faq-grid > *,
html[data-a11y-font="200"] .faq-grid > *,
html[data-a11y-font="150"] .reviews-page > *,
html[data-a11y-font="175"] .reviews-page > *,
html[data-a11y-font="200"] .reviews-page > *,
html[data-a11y-font="150"] .contact-page__grid > *,
html[data-a11y-font="175"] .contact-page__grid > *,
html[data-a11y-font="200"] .contact-page__grid > *,
html[data-a11y-font="150"] .service-hero__grid > *,
html[data-a11y-font="175"] .service-hero__grid > *,
html[data-a11y-font="200"] .service-hero__grid > *,
html[data-a11y-font="150"] .booking-grid > *,
html[data-a11y-font="175"] .booking-grid > *,
html[data-a11y-font="200"] .booking-grid > *,
html[data-a11y-font="150"] .legal-grid > *,
html[data-a11y-font="175"] .legal-grid > *,
html[data-a11y-font="200"] .legal-grid > * { min-width: 0; }

/* Прайс-таблица — локальный горизонтальный скролл, а не скролл всей страницы */
html[data-a11y-font="150"] .prices-table,
html[data-a11y-font="175"] .prices-table,
html[data-a11y-font="200"] .prices-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[data-a11y-font="150"] .prices-table .price-table,
html[data-a11y-font="175"] .prices-table .price-table,
html[data-a11y-font="200"] .prices-table .price-table { min-width: 520px; }

html[data-a11y-font="150"] .trust-grid,
html[data-a11y-font="175"] .trust-grid { grid-template-columns: 1fr 1fr; }
html[data-a11y-font="200"] .trust-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .footer-grid,
html[data-a11y-font="175"] .footer-grid { grid-template-columns: 1fr 1fr; }
html[data-a11y-font="200"] .footer-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .doctors-grid,
html[data-a11y-font="175"] .doctors-grid,
html[data-a11y-font="200"] .doctors-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .process,
html[data-a11y-font="175"] .process,
html[data-a11y-font="200"] .process { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .supervision-grid,
html[data-a11y-font="175"] .supervision-grid,
html[data-a11y-font="200"] .supervision-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .sitemap-grid,
html[data-a11y-font="175"] .sitemap-grid { grid-template-columns: 1fr 1fr; }
html[data-a11y-font="200"] .sitemap-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .related-grid,
html[data-a11y-font="175"] .related-grid,
html[data-a11y-font="150"] .doc-grid,
html[data-a11y-font="175"] .doc-grid { grid-template-columns: 1fr 1fr; }
html[data-a11y-font="200"] .related-grid,
html[data-a11y-font="200"] .doc-grid { grid-template-columns: 1fr; }
html[data-a11y-font="150"] .data-list div,
html[data-a11y-font="175"] .data-list div,
html[data-a11y-font="200"] .data-list div,
html[data-a11y-font="150"] .form-row,
html[data-a11y-font="175"] .form-row,
html[data-a11y-font="200"] .form-row { grid-template-columns: 1fr; }
html[data-a11y-font="200"] .cookie__actions { grid-template-columns: 1fr; }
html:is([data-a11y-font="150"], [data-a11y-font="175"], [data-a11y-font="200"]) .btn { white-space: normal; height: auto; padding-block: 12px; text-align: center; }
html:is([data-a11y-font="150"], [data-a11y-font="175"], [data-a11y-font="200"]) .cookie { flex-direction: column; align-items: stretch; }

@media (max-width: 620px) {
  html:not([data-a11y-font="100"]) .site-header .logo-text { display: none; }
  html:is([data-a11y-font="150"], [data-a11y-font="175"], [data-a11y-font="200"]) .trust-grid,
  html:is([data-a11y-font="150"], [data-a11y-font="175"], [data-a11y-font="200"]) .mobile-bar { grid-template-columns: minmax(0, 1fr); }
  html[data-a11y-font="150"] .logo-text span { display: none; }
  html[data-a11y-font="175"] .logo-text,
  html[data-a11y-font="200"] .logo-text { display: none; }
  html[data-a11y-font="200"] .header-actions .icon-btn { width: 38px; height: 38px; }
  html[data-a11y-font="200"] .mobile-bar { height: auto; min-height: 64px; padding: 8px 6px; }
  html[data-a11y-font="200"] body.has-mobile-bar { padding-bottom: max(var(--mobile-bar-height, 110px), var(--cookie-height, 0px)); }
}


/* Предметные изображения услуг: размеры заданы заранее, чтобы не сдвигать текст. */
.service-card__image {
  display: block;
  flex: none;
  width: calc(100% + 2 * var(--service-card-pad));
  max-width: none;
  aspect-ratio: 1.6;
  margin: calc(-1 * var(--service-card-pad)) calc(-1 * var(--service-card-pad)) 24px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #e9e1d4;
}
.service-card--lg .service-card__image { aspect-ratio: 2.1; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.service-detail-image {
  aspect-ratio: 1.7;
  overflow: hidden;
  margin: -26px -26px 26px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #e9e1d4;
}
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.a11y-no-images .service-card__image,
.a11y-no-images .service-detail-image { display: none; }
@media (max-width: 620px) {
  .service-card--lg .service-card__image { aspect-ratio: 1.6; }
  html:not([data-a11y-font="100"]) .stages li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
