@charset "UTF-8";

/* ═══════════════════════════════════════════════════════
   ЛДЦ «ДиЛУЧ» — главная. Фотоведомая витрина.
   Палитра «Аквамарин» из брендбука АО «ДиЛУЧ», 2022.
   Крупные скругления, мягкие тени, карточки внахлёст.
   ═══════════════════════════════════════════════════════ */

:root {
  /* Аквамарин */
  --teal: #008080;
  --teal-ink: #006265;
  --teal-deep: #016F6F;
  --mint: #9FCEBB;
  --mint-soft: #CFE7D1;
  --deep: #225274;
  --floor: #1B4560;

  /* Акценты брендбука */
  --terra: #B78980;
  --coral: #FF979D;
  --peach: #FEDBC7;
  --apricot: #FFD29F;

  /* Поверхности */
  --page: #FFFFFF;
  --tint: #F0F6F7;
  --card: #FFFFFF;

  /* Текст */
  --ink: #143140;
  --ink-2: #4A6472;
  --on-deep: #FFFFFF;
  --on-deep-2: #B9D2E2;

  --line: rgba(20, 49, 64, .11);
  --line-soft: rgba(20, 49, 64, .07);
  --line-deep: rgba(255, 255, 255, .20);

  /* Форма */
  --r-sm: .5rem;
  --r-md: .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 99px;

  --sh-1: 0 1px 2px rgba(20,49,64,.05), 0 6px 16px -8px rgba(20,49,64,.22);
  --sh-2: 0 2px 6px rgba(20,49,64,.06), 0 22px 50px -26px rgba(20,49,64,.40);
  --sh-teal: 0 2px 4px rgba(20,49,64,.12), 0 10px 24px -10px rgba(0,128,128,.50);

  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Onest", "Circe", Calibri, -apple-system, "Segoe UI", sans-serif;
}

/* ── База ─────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.024em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
em { font-style: normal; color: var(--teal); }

/* Поверхности браузера — тоже часть дизайна */
::selection { background: var(--mint-soft); color: var(--ink); }
:root { scrollbar-color: var(--mint) var(--tint); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--tint); }
::-webkit-scrollbar-thumb { background: var(--mint); border: 3px solid var(--tint); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
input, select, textarea { caret-color: var(--teal); }

:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 3px; }
.sect--dark :focus-visible, .cta :focus-visible, .foot :focus-visible,
.tile :focus-visible, .docs__all :focus-visible { outline-color: var(--apricot); }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--deep); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Единая иконочная система: обводка 1.75, скруглённые концы */
.ico {
  width: 1.25em; height: 1.25em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Шапка ────────────────────────────────────────────── */

.head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: clamp(.85rem, 1.5vw, 1.5rem);
}
.head__logo { display: flex; flex: 0 0 auto; align-items: center; }
.head__logo-full { width: clamp(104px, 9vw, 128px); height: auto; }
.head__logo-icon { display: none; width: 50px; height: auto; }

.head__nav { display: flex; gap: clamp(.6rem, 1vw, 1.1rem); margin-right: auto; flex: 0 0 auto; }
.head__nav a {
  color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 500;
  padding: .45rem 0; position: relative; white-space: nowrap;
}
.head__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px;
  border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.head__nav a:hover::after { transform: scaleX(1); }

.head__act { display: flex; align-items: center; gap: .85rem; flex: 0 0 auto; }
/* Индикатор стоит под телефоном и не занимает ширину шапки — виден на всех экранах */
.head__tel-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.head__status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap;
}
.head__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.head__status[data-open="false"] .head__dot { background: var(--terra); }

.head__tel {
  font-weight: 700; font-size: 1rem; color: var(--ink);
  text-decoration: none; white-space: nowrap; letter-spacing: -.015em;
}
.head__tel:hover { color: var(--teal-ink); }

/* ── Кнопки и ссылки ──────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .7rem 1.35rem;
  background: var(--teal); color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--sh-teal);
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 2px rgba(20,49,64,.18); }
.btn--sm { min-height: 2.4rem; padding: .45rem 1.05rem; font-size: .9375rem; }
.btn--lg { min-height: 3.25rem; padding: .9rem 1.9rem; font-size: 1.0625rem; }
.btn--wide { width: 100%; }
.btn--ghost {
  background: #fff; color: var(--ink);
  box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--tint); }

.lnk {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: 1rem; color: var(--teal-ink);
  text-decoration: none; white-space: nowrap;
}
.lnk .ico { transition: transform .25s var(--ease); }
.lnk:hover .ico { transform: translateX(4px); }
.lnk:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ── Секции ───────────────────────────────────────────── */

.sect { padding-block: clamp(3.5rem, 6.5vw, 6rem); background: var(--page); }
.sect--tint { background: var(--tint); }
.sect--dark { background: var(--floor); color: var(--on-deep); }

.sect__top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.sect__top > div { max-width: 46rem; }

.h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 700; max-width: 20ch; }
.h2--light { color: var(--on-deep); }
.h2--light em { color: var(--mint); }
.lead { margin-top: 1rem; max-width: 60ch; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.lead--light { color: var(--on-deep-2); }

.after { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.5rem; }
.after__upd { font-size: .875rem; color: var(--ink-2); }

.note {
  margin-top: 1.5rem; padding: .85rem 1.1rem;
  background: var(--apricot); color: #4A2C1C;
  border-radius: var(--r-md); font-size: .875rem; font-weight: 500;
  max-width: 62ch;
}

/* ── Первый экран ─────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(159,206,187,.34) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #F4FAFA 0%, var(--page) 72%);
}

/* Снимок на весь блок, растворяющийся к тексту и к карточке цифр.
   Маска по двум осям: влево — к колонке текста, вниз — к стыку секции. */
.hero__media {
  position: absolute; z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: min(64%, 68rem);
  pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 96% 34%; /* рисунок фасада: вывеска на крыше у правого края */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 42%),
    linear-gradient(to bottom, #000 0%, #000 58%, transparent 94%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 42%),
    linear-gradient(to bottom, #000 0%, #000 58%, transparent 94%);
          mask-composite: intersect;
}
/* Без поддержки маски снимок лёг бы жёстким прямоугольником под текст */
@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .hero__media { display: none; }
}
.hero__in {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: clamp(25rem, 40vw, 32rem);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
}
.hero__h1 {
  font-size: clamp(2.25rem, 4.9vw, 4rem);
  font-weight: 800; letter-spacing: -.04em; max-width: 18ch;
}
.hero__sub {
  margin-top: 1.4rem; max-width: 44ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--ink-2);
}
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__badge {
  position: absolute; left: 32%; top: 62%;
  z-index: 2; pointer-events: none; margin: 0; cursor: default;
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem .65rem;
  background: rgba(255,255,255,.94); border-radius: .25rem;
  box-shadow: none;
  font-size: .875rem;
}
.hero__badge .ico { color: var(--teal); width: 1.6rem; height: 1.6rem; }
.hero__badge span { display: flex; flex-direction: column; line-height: 1.25; color: var(--ink-2); }
.hero__badge b { color: var(--ink); font-size: .9375rem; }

/* Карточка цифр, наезжающая на границу секции */
.figures {
  position: relative; z-index: 2;
  margin: clamp(2.5rem, 5vw, 4rem) 0 calc(-1 * clamp(2rem, 4vw, 3.5rem));
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.figures > div {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border-right: 1px solid var(--line-soft);
}
.figures > div:last-child { border-right: 0; }
.figures dt { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.figures dd {
  margin: .3rem 0 0; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 800;
  letter-spacing: -.04em; color: var(--teal); line-height: 1;
}
.figures p { margin-top: .45rem; font-size: .8125rem; color: var(--ink-2); }

/* ── О центре ─────────────────────────────────────────── */

.about {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.about__pic { margin: 0; }
.about__pic img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--sh-1);
}
.feats {
  margin-top: 2rem;
  display: grid; gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feats li { display: grid; gap: .15rem; }
.feats__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: .5rem;
  border-radius: var(--r-md);
  background: var(--tint); color: var(--teal);
}
.feats b { font-size: 1.0625rem; }
.feats span:last-child { font-size: .875rem; color: var(--ink-2); }

/* ── Карточки услуг ───────────────────────────────────── */

.cards {
  display: grid; gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
  padding-bottom: 1.4rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card__pic { position: relative; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__ico {
  position: absolute; left: 1.25rem; bottom: -1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: #fff; color: var(--teal);
  box-shadow: var(--sh-1);
}
.card h3 { margin: 2.35rem 1.25rem 0; font-size: 1.1875rem; font-weight: 700; }
.card p { margin: .45rem 1.25rem 0; font-size: .9375rem; color: var(--ink-2); }
.card__price {
  margin-top: .8rem !important;
  font-weight: 700 !important; color: var(--teal-ink) !important; font-size: 1rem !important;
}

/* ── Строки жалоб ─────────────────────────────────────── */

.rows {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
}
.rows li + li { border-top: 1px solid var(--line-soft); }

/* Строка-раскрывашка на нативном <details>: без JS и с рабочей клавиатурой */
.rows summary {
  display: grid; align-items: baseline; gap: .25rem 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem) 9.5rem 1.5rem;
  padding: 1.15rem clamp(1rem, 2vw, 1.75rem);
  cursor: pointer; list-style: none;
  transition: background .2s var(--ease);
}
.rows summary::-webkit-details-marker { display: none; }
.rows summary:hover { background: var(--tint); }
.rows details[open] summary { background: var(--tint); }

.rows__what { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -.015em; }
.rows__go { color: var(--ink-2); font-size: .9375rem; }
.rows__num {
  font-weight: 700; font-size: 1.0625rem; white-space: nowrap; color: var(--teal-ink);
  display: flex; align-items: baseline; justify-content: flex-end; gap: .4rem;
}
.rows__num i { font-style: normal; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.rows__chev {
  width: 1.5rem; height: 1.5rem; align-self: center; justify-self: end;
  fill: none; stroke: var(--ink-2); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease), stroke .2s var(--ease);
}
.rows details[open] .rows__chev { transform: rotate(180deg); stroke: var(--teal); }

/* Шаги: приём → обследование → курс */
.steps {
  padding: .25rem clamp(1rem, 2vw, 1.75rem) 1.35rem;
  background: var(--tint);
}
.steps li {
  display: grid; align-items: center; gap: .35rem 1.25rem;
  grid-template-columns: minmax(0, 1fr) 11rem 9.5rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 0; }
.steps__t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.steps__t b { font-size: 1.0625rem; font-weight: 600; }
.steps__t i { font-style: normal; font-size: .875rem; color: var(--ink-2); }
.steps__p {
  display: flex; flex-direction: column; align-items: flex-end; gap: .1rem;
  font-weight: 700; font-size: 1.125rem; color: var(--ink); white-space: nowrap;
}
.steps__p i { font-style: normal; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.steps .btn { justify-self: end; }

/* Поле, заполненное кнопкой из шага, коротко подсвечивается */
.is-prefilled {
  border-color: var(--apricot) !important;
  box-shadow: 0 0 0 3px rgba(255, 210, 159, .35);
}

/* ── Таблицы цен ──────────────────────────────────────── */

.tbl-wrap {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.tbl {
  width: 100%; border-collapse: collapse; font-size: 1rem;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
}
.tbl caption {
  text-align: left; padding: 1.1rem 1.25rem .35rem;
  font-weight: 700; font-size: 1.0625rem;
}
.tbl thead th {
  text-align: left; padding: .5rem 1.25rem .6rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-2); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.tbl thead th + th, .tbl td { text-align: right; }
.tbl tbody th {
  text-align: left; font-weight: 500; padding: .75rem 1rem .75rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.tbl td {
  padding: .75rem 1.25rem .75rem 0; white-space: nowrap;
  font-feature-settings: "tnum"; border-bottom: 1px solid var(--line-soft);
}
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr td:first-of-type { font-weight: 700; }
.tbl tbody tr:hover th, .tbl tbody tr:hover td { background: var(--tint); }

/* ── Тёмная лента: курортная база ─────────────────────── */

.tiles {
  display: grid; gap: clamp(.85rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(3, 1fr);
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-deep);
}
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile__say { padding: 1rem 1.15rem 1.15rem; }
.tile__say h3 { font-size: 1.0625rem; font-weight: 700; }
.tile__say p { margin-top: .55rem; color: var(--on-deep-2); font-size: .9375rem; max-width: 44ch; }

.tile--wide { grid-column: span 2; display: flex; }
.tile--wide img { flex: 0 0 52%; width: 52%; aspect-ratio: 4 / 3; }
.tile--wide .tile__say { align-self: center; flex: 1 1 auto; min-width: 0; padding: 1.5rem; }
.tile--wide .tile__say h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.solo {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.15rem 1.35rem;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-md);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500;
  max-width: 62ch;
}

/* ── Программы ────────────────────────────────────────── */

.progs {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
}
.progs li, .progs__item {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.progs li:hover, .progs__item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.progs li.progs--mark { background: var(--mint-soft); }
/* Плашка объясняет, почему карточка выделена: цвет сам по себе ничего не сообщает */
.progs__flag {
  align-self: flex-start;
  margin: 0 0 .6rem !important;
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  background: var(--teal); color: #fff !important;
  font-size: .75rem !important; font-weight: 700;
  letter-spacing: .02em; flex: 0 0 auto !important;
}
.progs h3 { font-size: 1.1875rem; font-weight: 700; }
.progs li > p { margin-top: .5rem; color: var(--ink-2); font-size: .9375rem; flex: 1 1 auto; }
.progs__p {
  margin-top: 1.25rem !important; display: flex; align-items: baseline; gap: .4rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
  flex: 0 0 auto !important;
}
.progs__p b { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--teal-ink); }
.progs__p span { font-size: .875rem; color: var(--ink-2); }
.progs__c { margin-top: .25rem !important; font-size: .875rem; flex: 0 0 auto !important; }

.bonus {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--peach); border-radius: var(--r-lg);
}
.bonus h3 { font-size: 1.1875rem; font-weight: 700; color: #4A2C1C; }
.bonus ul {
  margin-top: 1rem; display: grid; gap: .7rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.bonus li { position: relative; padding-left: 1.5rem; color: #4A2C1C; font-size: 1rem; }
.bonus li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .625rem; height: 1px; background: var(--terra);
}

/* ── Врачи ────────────────────────────────────────────── */

.docs {
  display: grid; gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.docs li { display: flex; flex-direction: column; min-width: 0; }
.docs li > img, .docs__pic img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center;
  border-radius: var(--r-lg); background: var(--tint);
  box-shadow: var(--sh-1);
}
.docs h3 { margin-top: .95rem; font-size: 1.0625rem; font-weight: 700; }
.docs li > p { margin-top: .25rem; font-size: .9375rem; color: var(--ink); }
.docs__meta { font-size: .8125rem !important; color: var(--ink-2) !important; margin-top: .2rem !important; }

.docs__all a {
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; aspect-ratio: 3 / 4;
  padding: 1.35rem; border-radius: var(--r-lg);
  background: var(--deep); color: #fff; text-decoration: none;
  transition: background .2s var(--ease);
}
.docs__all a:hover { background: var(--floor); }
.docs__num { font-size: clamp(2.5rem, 3.8vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.docs__lbl { margin-top: .4rem; font-size: .9375rem; color: var(--on-deep-2); }
.docs__go {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9375rem; color: var(--apricot);
}

/* ── Статьи ───────────────────────────────────────────── */

.posts {
  display: grid; gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(4, 1fr);
}
.posts a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
  text-decoration: none; color: inherit;
  padding-bottom: 1.25rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.posts a:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.posts img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.posts__tag {
  align-self: flex-start; margin: 1rem 1.25rem 0;
  padding: .25rem .7rem; border-radius: var(--r-pill);
  background: var(--tint); color: var(--teal-ink);
  font-size: .75rem; font-weight: 600;
}
.posts h3 { margin: .7rem 1.25rem 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.posts__date { margin: .6rem 1.25rem 0; font-size: .8125rem; color: var(--ink-2); }

/* ── Нижний призыв ────────────────────────────────────── */

/* Базовый тёмный цвет держит контраст, даже если фото окажется светлым */
.cta {
  position: relative; padding-block: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--on-deep); overflow: hidden; background: var(--floor);
}
.cta__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(27,69,96,.96) 0%, rgba(27,69,96,.90) 55%, rgba(34,82,116,.74) 100%);
}
.cta__in {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  align-items: center;
}
.cta__tel { margin-top: 2rem; }
.cta__tel a {
  display: inline-flex; align-items: center; gap: .9rem;
  color: #fff; text-decoration: none;
}
.cta__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--teal); color: #fff; flex: 0 0 auto;
}
.cta__tel span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.cta__tel b { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.cta__tel i { font-style: normal; font-size: .875rem; color: var(--on-deep-2); margin-top: .2rem; }

.chan { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chan a {
  padding: .5rem 1.05rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-deep); color: #fff;
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chan a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.zform {
  background: var(--card); color: var(--ink);
  border-radius: var(--r-xl); padding: clamp(1.35rem, 2.4vw, 1.9rem);
  box-shadow: var(--sh-2);
}
.zform h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 1.15rem; }
.zform__note { margin-top: .85rem; font-size: .875rem; color: var(--ink-2); }

/* ── Поля ─────────────────────────────────────────────── */

.fld { display: block; margin-bottom: .9rem; }
.fld > label, .fld > span > label {
  display: block; margin-bottom: .3rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.fld :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%; min-height: 2.9rem;
  padding: .65rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.fld :is(input:not([type="checkbox"]), select, textarea):hover { border-color: var(--mint); }
.fld :is(input:not([type="checkbox"]), select, textarea):focus { background: #fff; border-color: var(--teal); }
.fld ::placeholder { color: #57717E; opacity: 1; }
.fld select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: right 1.15rem center, right .85rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.fld--row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fld--check { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1.15rem; }
.fld--check input { width: 1.375rem; height: 1.375rem; margin: .1rem 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.fld--check label { font-size: .875rem; color: var(--ink-2); font-weight: 400; margin: 0; }

/* ── Контакты ─────────────────────────────────────────── */

.contacts {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.contacts__adr { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.75rem; }
.hours th {
  text-align: left; font-weight: 500; font-size: .9375rem;
  color: var(--ink-2); padding: .65rem 1rem .65rem 0; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.hours td {
  text-align: right; font-size: .9375rem; white-space: nowrap; padding: .65rem 0;
  border-bottom: 1px solid var(--line-soft); font-feature-settings: "tnum";
}
.contacts__map {
  display: flex; align-items: center; justify-content: center;
  min-height: 22rem; padding: 2rem;
  border: 2px dashed var(--line); border-radius: var(--r-xl);
  background: var(--tint); color: var(--ink-2);
  font-size: .9375rem; text-align: center;
}

/* ── Подвал ───────────────────────────────────────────── */

.foot { background: var(--floor); color: var(--on-deep); padding-top: clamp(2.5rem, 5vw, 4rem); }
.foot__in {
  display: grid; gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.foot__brand img { width: 150px; opacity: .95; }
.foot__brand p { margin-top: 1rem; font-size: .9375rem; color: var(--on-deep-2); max-width: 30ch; }
.foot__nok { margin-top: 1.5rem; display: grid; gap: .6rem; justify-items: start; }
.foot__nok iframe { display: block; max-width: 100%; border: 0; border-radius: var(--r-sm); background: #fff; }
.foot__nok a { color: var(--on-deep-2); font-size: .8125rem; }
.foot__col { display: flex; flex-direction: column; gap: .55rem; }
.foot__col h2 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--on-deep-2); font-weight: 700; margin-bottom: .35rem;
}
.foot__col a { color: #fff; text-decoration: none; font-size: .9375rem; }
.foot__col a:hover { color: var(--apricot); text-decoration: underline; }

.foot__law {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.75rem 2.5rem;
  display: grid; gap: .75rem;
  font-size: .8125rem; color: var(--on-deep-2); line-height: 1.6;
}
.foot__law a { color: var(--on-deep-2); }
.foot__warn {
  color: #fff; font-weight: 600; font-size: .9375rem;
  padding: .8rem 1rem .7rem; border-radius: var(--r-sm);
  background:
    linear-gradient(to bottom, var(--coral) 0 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09));
  background-repeat: no-repeat;
}
.foot__age {
  display: inline-block; padding: .1rem .4rem; border-radius: .25rem;
  border: 1px solid var(--line-deep); font-weight: 700;
}

/* ── Единственный авторский момент ────────────────────── */

@keyframes rise {
  from { transform: translateY(1.5rem); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.hero__h1, .hero__sub, .hero__cta, .hero__media {
  animation: rise .85s var(--ease) backwards;
}
.hero__sub { animation-delay: .07s; }
.hero__cta { animation-delay: .13s; }
.hero__media { animation-delay: .18s; }

/* ── Адаптив ──────────────────────────────────────────── */

@media (max-width: 1240px) {
  .head__nav { gap: .55rem; }
  .head__nav a { font-size: .8125rem; }
}

@media (max-width: 1080px) {
  .head__nav { display: none; }
  .head__act { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 1.5rem; }
  .hero__media {
    position: relative; width: auto;
    margin: 0 var(--gutter); border-radius: var(--r-xl); overflow: hidden;
  }
  .hero__media img {
    height: auto; aspect-ratio: 21 / 9; object-position: 56% 26%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
  .hero__badge { left: calc(var(--gutter) + 1rem); top: auto; bottom: 1.5rem; }
  .about { grid-template-columns: 1fr; }
  .cards, .progs { grid-template-columns: repeat(2, 1fr); }
  .docs, .posts { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .cta__in, .contacts { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures > div:nth-child(2) { border-right: 0; }
  .figures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 4.5rem; }
  body { font-size: 1.0625rem; }
  .rows summary { grid-template-columns: 1fr auto 1.5rem; gap: .5rem 1rem; }
  .rows__what { grid-column: 1 / -1; }
  /* Сводку прячем: раскрывашка показывает ровно её содержимое */
  .rows__go { display: none; }
  .rows__num { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .rows__chev { grid-column: 3; grid-row: 2; }
  .steps li { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .steps__t { grid-column: 1 / -1; }
  .steps__p { grid-column: 1; grid-row: 2; align-items: flex-start; }
  .steps .btn { grid-column: 2; grid-row: 2; }
  .tile--wide { flex-direction: column; }
  .tile--wide img { width: 100%; flex: 0 0 auto; aspect-ratio: 3 / 2; }
  .feats { grid-template-columns: 1fr; }
  .tbl-wrap { grid-template-columns: 1fr; }
  .tbl { font-size: .9375rem; table-layout: fixed; }
  .tbl caption { padding-inline: 1rem; }
  .tbl thead th { padding-inline: 1rem; }
  .tbl thead th + th { width: 5.5rem; padding-inline: .25rem 1rem; }
  .tbl tbody th { padding: .7rem .5rem .7rem 1rem; hyphens: auto; }
  .tbl td { padding: .7rem 1rem .7rem 0; }
  .fld--row { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero__media img { aspect-ratio: 16 / 10; object-position: 56% 24%; }
  .cards, .progs, .tiles { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 480px) {
  .head__in { gap: .5rem; }
  .head__logo-full { display: none; }
  .head__logo-icon { display: block; }
  .btn--sm { padding: .45rem .75rem; font-size: .875rem; }
  .head__tel { font-size: .875rem; }
  .docs, .posts { grid-template-columns: 1fr; }
  .docs__all a { aspect-ratio: auto; min-height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .head__act, .skip, .cta__bg { display: none; }
  .sect, .cta, .foot { background: #fff !important; color: #000 !important; }
}

/* ── Внутренние страницы: общее ───────────────────────── */

.wrap--narrow { max-width: calc(52rem + 2 * var(--gutter)); }
.crumbs { font-size: .875rem; color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: inherit; }
.prose { margin-top: 1.5rem; max-width: 62ch; }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; margin-top: 1.6em; }
.prose h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose img { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose td, .prose th { padding: .5rem .6rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }

/* Акции: карточка на базе .progs; истёкшая приглушена */
.progs__lnk { color: inherit; text-decoration: none; }
.progs__lnk:hover { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.progs__act { margin-top: 1rem !important; flex: 0 0 auto !important; }
.progs__item.is-expired { opacity: .6; }

/* ── Внутренние страницы: шапка страницы, две колонки, боковая карточка ── */

.phead { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.phead .h2 { max-width: 24ch; }
.phead__compl { margin-top: 1rem; max-width: 62ch; color: var(--ink-2); font-size: 1rem; }
.phead__compl b { color: var(--ink); font-weight: 600; }
.sect--flush { padding-top: 0; }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; }
.h2--sm { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.mt { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.mb { margin-bottom: 1.25rem; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.two__main .prose { max-width: 68ch; }
.two__side { position: sticky; top: 5.5rem; display: grid; gap: 1.25rem; }

.side {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 1.35rem 1.4rem;
}
.side--plain { background: var(--tint); box-shadow: none; }
.side__h { font-size: 1.125rem; font-weight: 700; }
.side__p { margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.side .btn { margin-top: 1rem; }
.side__tel { display: block; margin-top: .9rem; font-size: 1.375rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.side__hours { margin-top: .35rem; font-size: .875rem; color: var(--ink-2); }
.side__docs { margin-top: .75rem; display: grid; gap: .6rem; }
.side__docs li { display: flex; flex-direction: column; font-size: .9375rem; }
.side__docs a { color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.side__docs a:hover { text-decoration: underline; }
.side__docs span { font-size: .8125rem; color: var(--ink-2); }
.side__prices { margin-top: .75rem; display: grid; gap: .4rem; }
.side__prices li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding-bottom: .4rem; }
.side__prices span { color: var(--ink-2); font-size: .9375rem; }
.side__prices b { font-size: 1.125rem; color: var(--teal-ink); }

/* Врач */
.doc { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.doc__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; border-radius: var(--r-lg); box-shadow: var(--sh-1); background: var(--tint); }
.doc__act { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.doc__sched { margin-top: 1rem; font-size: .9375rem; color: var(--ink-2); }
.doc__sched b { color: var(--ink); font-weight: 600; }
.doc__cert { margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-2); }
.pills { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--tint); color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.pill--teal { background: var(--mint-soft); color: var(--teal-ink); }
.docs__nopic { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-lg); background: var(--tint); }
.docs--all h3 a { color: inherit; text-decoration: none; }
.docs--all h3 a:hover { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.docs--all li[hidden] { display: none; }

.filter { display: flex; align-items: end; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.fld--inline { margin: 0; min-width: 18rem; }
.filter__empty { color: var(--ink-2); }

/* Программа */
.figs { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; }
.figs li { display: flex; flex-direction: column; }
.figs span { font-size: .8125rem; color: var(--ink-2); }
.figs b { font-size: 1.25rem; font-weight: 700; color: var(--teal-ink); }
.tick { display: grid; gap: .5rem; max-width: 68ch; margin-top: .75rem; }
.tick li { position: relative; padding-left: 1.6rem; }
.tick li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.tick--warn li::before { background: var(--apricot); box-shadow: inset 0 0 0 2px var(--terra); }
.course th, .course td { padding: .6rem .8rem; text-align: left; font-size: .9375rem; border-bottom: 1px solid var(--line-soft); }
.course th:not(:first-child), .course td:not(:first-child) { text-align: center; width: 5rem; }
.course thead th { background: var(--tint); font-weight: 600; }
.course tfoot td { font-weight: 700; color: var(--teal-ink); }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.5rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: .6rem; color: var(--ink-2); max-width: 62ch; }

/* Карточки-тексты (отделения, дочерние страницы) */
.cards--text { grid-template-columns: repeat(3, 1fr); }
.card--text { padding: 1.35rem 1.4rem 1.5rem; }
.card--text h3 { margin: 0; font-size: 1.125rem; }
.card--text h3 a { color: inherit; text-decoration: none; }
.card--text h3 a::after { content: ""; position: absolute; inset: 0; }
.card--text p { margin: .5rem 0 0; }
.card__compl { font-size: .9375rem !important; color: var(--ink-2) !important; }
.lead--tight { margin-top: -.5rem; margin-bottom: 1.25rem; }
.tiles--gal .tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Новости */
.posts--list { grid-template-columns: repeat(3, 1fr); }
.posts--list li { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 1.25rem 1.4rem 1.5rem; }
.posts--list h3 { font-size: 1.125rem; margin-top: .35rem; }
.posts--list h3 a { color: inherit; text-decoration: none; }
.posts--list h3 a:hover { color: var(--teal-ink); }
.posts--list p:last-child { margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.post__pic { border-radius: var(--r-lg); margin-top: 1.25rem; }
.phead .posts__date { margin-left: 0; margin-right: 0; }
.phead .posts__tag { display: inline-block; margin: 0 .5rem 0 0; }
/* Статья: «Записаться в ДиЛУЧ» — те же шаги, что на главной в «Жалобах» */
.recs { margin-top: 2.5rem; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.recs__h { padding: 1.35rem clamp(1rem, 2vw, 1.75rem) 0; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; }
.recs__lead { padding: .3rem clamp(1rem, 2vw, 1.75rem) 0; font-size: .9375rem; color: var(--ink-2); }
.recs .steps { padding-top: .5rem; }
.recs .steps__t a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; }
.recs .steps__t a:hover { color: var(--teal-ink); }
.pager { margin-top: 2rem; }
.pager .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .5rem .9rem; border-radius: var(--r-pill); background: var(--tint); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--teal); color: #fff; }

@media (max-width: 1080px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .two__side { position: static; }
  .cards--text, .posts--list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .doc { grid-template-columns: 1fr; }
  .doc__pic { max-width: 14rem; }
  .cards--text, .posts--list { grid-template-columns: 1fr; }
  .filter { flex-direction: column; align-items: stretch; }
  .fld--inline { min-width: 0; }
  .course th:not(:first-child), .course td:not(:first-child) { width: 3.2rem; padding-inline: .3rem; }
}

/* Прайс */
.filter--prices { align-items: end; }
.fld--grow { flex: 1 1 20rem; }
.prices th, .prices td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.prices thead th { font-size: .8125rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.prices__h th { background: var(--tint); font-weight: 700; padding-block: .6rem; }
.prices__p { white-space: nowrap; font-weight: 700; color: var(--teal-ink); width: 8rem; }
.prices__act { width: 8.5rem; text-align: right !important; }
.prices__note { color: var(--ink-2); font-size: .875rem; }
.prices tr[hidden] { display: none; }
@media (max-width: 560px) {
  .prices th, .prices td { padding: .55rem .5rem; font-size: .9375rem; }
  .prices__act { width: auto; }
  .prices__act .btn { padding-inline: .7rem; }
}

/* Отзывы */
.revs { display: grid; gap: 1.25rem; max-width: 68ch; }
.rev { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 1.35rem 1.5rem; }
.rev__text { font-size: 1.0625rem; }
.rev__text::before { content: "«"; } .rev__text::after { content: "»"; }
.rev__meta { margin-top: .75rem; font-size: .875rem; color: var(--ink-2); }
.rev__meta a { color: var(--teal-ink); }
.fld--hp { position: absolute; left: -9999px; }
.zform--side .fld { margin-top: .75rem; }
.zform--side .btn { margin-top: 1rem; }

/* Контакты, медработники */
.cinfo { display: grid; gap: 1rem; }
.cinfo li { display: flex; flex-direction: column; }
.cinfo span { font-size: .8125rem; color: var(--ink-2); }
.cinfo a { color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.cinfo a:hover { text-decoration: underline; }
.cinfo__big { font-size: 1.75rem !important; letter-spacing: .01em; color: var(--ink) !important; }
.req { display: grid; gap: .75rem; max-width: 62ch; }
.req li { display: flex; flex-direction: column; }
.req span { font-size: .8125rem; color: var(--ink-2); }
.contacts__map iframe { border-radius: var(--r-lg); display: block; }
.staff th, .staff td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .875rem; vertical-align: top; }
.staff thead th { background: var(--tint); font-weight: 600; }
.staff__spec { color: var(--ink-2); }
.staff__miss { color: var(--terra); font-style: italic; }
.staff__sched { white-space: nowrap; }
.staff td:nth-child(4) p { margin: 0; }

/* Форма в три шага */
.zsteps { display: flex; gap: .5rem; margin: 0 0 1.1rem; counter-reset: st; }
.zsteps li { flex: 1; font-size: .75rem; color: var(--ink-2); padding-top: .5rem; border-top: 3px solid var(--line); counter-increment: st; }
.zsteps li::before { content: counter(st) ". "; }
.zsteps li.is-on { border-top-color: var(--teal); color: var(--teal-ink); font-weight: 600; }
.zstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.zstep__nav { display: flex; gap: .75rem; margin-top: .5rem; }
.zstep__nav .btn { flex: 1 1 auto; }
.fld .is-bad { outline: 2px solid var(--coral); outline-offset: 1px; }

/* Таблицы внутренних страниц: свой контейнер, без nowrap из домашней таблицы цен */
.tbl-scroll { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll .tbl td, .tbl-scroll .tbl th { white-space: normal; text-align: left; padding: .7rem .9rem; }
.tbl-scroll .prices__p, .tbl-scroll .course td:not(:first-child), .tbl-scroll .course th:not(:first-child) { white-space: nowrap; }
.tbl-scroll .prices__act { text-align: right; }
.tbl-scroll .course td:not(:first-child), .tbl-scroll .course th:not(:first-child) { text-align: center; }
@media (max-width: 560px) {
  .prices, .prices tbody, .prices tr, .prices td { display: block; width: 100%; }
  .prices thead { display: none; }
  .prices tr { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
  .prices tr.prices__h { padding: .5rem .75rem; }
  .prices tr.prices__h th { display: block; padding: 0; background: none; }
  .tbl-scroll .prices td { border: 0; padding: .15rem .75rem; }
  .prices__p { display: inline-block !important; width: auto !important; }
  .prices__act { display: inline-block !important; width: auto !important; float: right; }
  .staff { min-width: 56rem; }
}
@media (max-width: 720px) { .fld--grow { flex: 0 0 auto; } }

/* Гармошка вопросов и отзывов на страницах программ — та же, что «найдите свою жалобу» */
.rows--qa { margin-top: 1rem; max-width: 68ch; }
.rows--qa summary { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: .35rem 1.25rem; padding: 1rem clamp(1rem, 2vw, 1.4rem); }
.rows--qa .rows__what { font-size: 1.0625rem; grid-column: 1; }
.rows--qa .rows__go { grid-column: 1; }
.rows--qa .rows__chev { grid-column: 2; grid-row: 1 / -1; }
.rows__body { padding: .25rem clamp(1rem, 2vw, 1.4rem) 1.2rem; background: var(--tint); }
.rows__body p { color: var(--ink-2); max-width: 62ch; }
.rows__body p + p { margin-top: .6rem; }
.rows__body .rev__meta { color: var(--ink); font-size: .9375rem; }
.rows--qa details[open] .rows__go { display: none; }   /* раскрыли — начало отзыва больше не нужно */

/* Ссылки в карточках главной: вся карточка кликабельна, заголовок подчёркивается */
.card__lnk, .tile__say h3 a, .progs__item h3 a { color: inherit; text-decoration: none; }
.card__lnk::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card { position: relative; }
.card:hover .card__lnk, .docs h3 a:hover { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.tile .card__lnk::after { z-index: 2; }
.tile__say h3 a { text-decoration: none; }
.tile:hover .tile__say h3 { color: var(--mint); }
.progs li h3 a.card__lnk { position: static; }
.progs li { position: relative; }
.docs h3 a { color: inherit; text-decoration: none; }
.docs__pic { display: block; }
/* только название программы, кнопка записи остаётся белой на бирюзовом */
.prices--progs td:first-child a { color: var(--ink); font-weight: 600; text-decoration: none; }
.prices--progs td:first-child a:hover { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.tbl .btn, .prices .btn { color: #fff; }

/* ── Окно записи ──────────────────────────────────────── */

.zmodal {
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(90vh, 48rem);
  padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(27, 69, 96, .28);
  overflow: visible;
}
.zmodal::backdrop { background: rgba(27, 69, 96, .55); backdrop-filter: blur(2px); }
.zmodal .zform { box-shadow: none; border-radius: var(--r-xl); max-height: min(90vh, 48rem); overflow-y: auto; }
.zmodal__x {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.zmodal__x svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zmodal__x:hover { background: var(--tint); color: var(--ink); }
.zmodal[open] { animation: zmodal-in .2s var(--ease); }
@keyframes zmodal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zmodal[open] { animation: none; } }
@media (max-width: 560px) {
  .zmodal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
  .zmodal .zform { border-radius: 0; max-height: 100vh; padding-top: 3.25rem; }
}

/* Прайс гармошкой: сводка в заголовке раздела, таблица внутри */
.rows--price { margin-top: 1rem; }
.rows--price summary { grid-template-columns: minmax(0, 1fr) 7rem 7rem 1.5rem; gap: .35rem 1.25rem; }
.rows--price .rows__go { color: var(--ink-2); font-size: .875rem; text-align: right; }
.rows--price .rows__num { font-size: 1rem; }
.rows__body--flush { padding: 0; }
.rows__body--flush .tbl { background: transparent; box-shadow: none; border-radius: 0; }
.rows__body--flush .prices td { border-bottom: 1px solid var(--line-soft); padding: .55rem clamp(1rem, 2vw, 1.4rem); }
.rows__body--flush .prices tr:last-child td { border-bottom: 0; }
.prices__code { color: var(--ink-2); font-size: .75rem; letter-spacing: .02em; white-space: nowrap; }
.pgroup { scroll-margin-top: 6rem; }
.rows--price li[hidden], .rows--price tr[hidden] { display: none !important; }
@media (max-width: 720px) {
  .rows--price summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .rows--price .rows__go, .rows--price .rows__num { grid-column: 1; text-align: left; }
  .rows--price .rows__num { font-weight: 700; }
  .rows--price .rows__go { display: block; }   /* число услуг в прайсе нужно и на телефоне */
}
/* раскрытый раздел прайса: отделяем от следующего, строки внутри — светлее */
.rows--price details[open] { border-bottom: 1px solid var(--line); }
.rows--price details[open] summary { border-bottom: 1px solid var(--line-soft); }
.rows__body--flush .prices tbody tr:nth-child(even) td { background: rgba(255,255,255,.55); }

/* Прайс: длинные названия услуг не должны выталкивать цену и кнопку.
   Колонки фиксированы, название переносится, цена и «Записаться» всегда видны. */
.rows__body--flush .prices { table-layout: fixed; width: 100%; }
.rows__body--flush .prices td:first-child {
  white-space: normal; overflow-wrap: anywhere; hyphens: auto;
  font-weight: 500; padding-right: 1rem; line-height: 1.4;
}
.rows__body--flush .prices .prices__p { width: 7rem; text-align: right; padding-right: .75rem; }
.rows__body--flush .prices .prices__act { width: 9.5rem; }
.rows__body--flush .prices td { vertical-align: top; padding-block: .7rem; }
.rows__body--flush .prices .prices__p, .rows__body--flush .prices .prices__act { padding-top: .75rem; }
.prices__code { display: inline-block; }
/* уточнение в скобках второй строкой (пробный вариант, раздел иммунологии) */
.prices__sub { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .8125rem; line-height: 1.4; }

@media (max-width: 760px) {
  /* на телефоне строка складывается: название, под ним цена и кнопка в ряд */
  .rows__body--flush .prices, .rows__body--flush .prices tbody,
  .rows__body--flush .prices tr, .rows__body--flush .prices td { display: block; width: auto; }
  .rows__body--flush .prices tr { padding: .8rem clamp(1rem, 2vw, 1.4rem); border-bottom: 1px solid var(--line-soft); }
  .rows__body--flush .prices tr:last-child { border-bottom: 0; }
  .rows__body--flush .prices td { border: 0; padding: 0; }
  .rows__body--flush .prices .prices__p,
  .rows__body--flush .prices .prices__act { display: inline-block; width: auto; text-align: left; }
  .rows__body--flush .prices .prices__p { margin-top: .45rem; margin-right: 1rem; font-size: 1.0625rem; }
  .rows__body--flush .prices .prices__act .btn { min-height: 2.2rem; padding: .35rem .9rem; }
  /* зебра на телефоне — по строке целиком, иначе ячейки дают белые прямоугольники */
  .rows__body--flush .prices tbody tr:nth-child(even) td { background: transparent; }
  .rows__body--flush .prices tbody tr:nth-child(even) { background: rgba(255,255,255,.55); }
}

/* ── Форма записи: развилка ───────────────────────────────
   Четыре крупные строки-кнопки: каждый выбирает свой путь сам.
   Радиокнопка спрятана визуально, но остаётся в порядке Tab и работает без JS. */
.zprog { margin: -.7rem 0 1rem; font-size: .8125rem; color: var(--ink-2); }
.zfork { display: grid; gap: .6rem; }
.zstep[hidden] { display: none; }   /* .zfork выше задаёт display — без этого скрытый шаг остаётся на экране */
.zfork__q { float: none; width: 100%; padding: 0; margin: 0 0 .35rem; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.zfork__opt {
  position: relative; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) .75rem; align-items: center; gap: .9rem;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.zfork__opt:hover { border-color: var(--mint); background: var(--tint); }
.zfork__opt:has(input:checked) { border-color: var(--teal); background: var(--tint); }
.zfork__opt:has(input:focus-visible) { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.zfork__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zfork__opt svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zfork__opt b { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.zfork__opt small { display: block; margin-top: .1rem; font-size: .875rem; color: var(--ink-2); }
.zfork__opt::after {
  content: ""; width: .5rem; height: .5rem; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal);
  transform: rotate(45deg); justify-self: center;
}

/* что уже выбрано — видно на каждом следующем шаге, с возможностью вернуться */
.zsum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem;
  margin: 0 0 1rem; padding: .6rem .85rem; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--tint); font-size: .9375rem; font-weight: 600; color: var(--ink);
}
.zsum[hidden] { display: none; }
.zsum__ch {
  border: 0; padding: 0; background: none; font: inherit; font-size: .875rem; font-weight: 500;
  color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.zsum__ch:hover { color: var(--teal); }
.zpanel[hidden], .zform [data-z-question][hidden], .zform [data-z-sdoc-wrap][hidden], .zstep__nav [hidden] { display: none; }
.zform textarea { min-height: 5.5rem; resize: vertical; }

@media (prefers-reduced-motion: reduce) { .zfork__opt { transition: none; } }

/* Поиск врача в форме: поле и список, который сужается по мере ввода */
.zform [hidden] { display: none !important; }   /* .fld и другие задают display — hidden должен побеждать */
.zdocs {
  list-style: none; margin: -.35rem 0 1rem; padding: 0;
  max-height: 18.5rem; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
}
.zdocs li + li { border-top: 1px solid var(--line-soft); }
.zdocs__b {
  display: block; width: 100%; padding: .65rem 2.6rem .65rem .95rem; position: relative;
  border: 0; background: none; font: inherit; font-size: 1rem; line-height: 1.35; text-align: left; color: var(--ink); cursor: pointer;
}
.zdocs__b b { font-weight: 700; }
.zdocs__b small { display: block; margin-top: .1rem; font-size: .8125rem; color: var(--ink-2); }
.zdocs__b:hover { background: var(--tint); }
.zdocs__b:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: -3px; border-radius: var(--r-md); }
.zdocs__b[aria-pressed="true"] { background: var(--tint); box-shadow: inset 4px 0 0 var(--teal); }
.zdocs__b[aria-pressed="true"]::after {   /* галочка у выбранного врача */
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: .4rem; height: .8rem; margin-top: -.5rem;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg);
}
.zdocs__none { margin: -.35rem 0 1rem; font-size: .9375rem; color: var(--ink-2); }
.zform input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 560px) { .zdocs { max-height: 45vh; } }

/* ── Текст страниц: единый формат ──────────────────────────────
   Всё внутри .prose (отделения, программы, врачи, чек-апы, страницы) выглядит
   так же, как разделы шаблона: заголовок раздела — как «Показания», список —
   кружками, как «Показания», таблица — как «Что входит в курс».
   Разметку текстов приводит к этим правилам migration/normalize.py. */
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.25; margin-top: 1.8em; }
.prose h3 { font-size: 1.1875rem; line-height: 1.3; margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }

.prose ul, .prose ol { list-style: none; padding-left: 0; display: grid; gap: .5rem; }
.prose li + li { margin-top: 0; }
.prose ul > li { position: relative; padding-left: 1.6rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--teal);
}
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 2.1rem; counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: .1em; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint-soft); color: var(--teal-ink); font-size: .8125rem; font-weight: 700;
}
.prose li > ul, .prose li > ol { margin-top: .5rem; }
.prose li ul > li::before { width: .45rem; height: .45rem; top: .65em; left: .25rem; background: var(--teal); box-shadow: none; }

/* таблица в тексте и таблица «Что входит в курс» — один вид */
.prose .tbl-scroll, .tbl-box { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.course { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.course tbody td:first-child { font-weight: 400; }
.course__grp th, .prose tbody th { background: var(--tint); font-weight: 600; text-align: left; }
.course tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.prose thead th { background: var(--tint); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td ul, .prose td ol { gap: .3rem; }
.prose td > * + * { margin-top: .4rem; }
/* плашка «Курортный метод» в шапке отделения — по ширине текста, как в карточках */
.phead .progs__flag { display: inline-block; width: auto; max-width: 100%; }
/* состав: колонка-текст («Детализация») — по левому краю и шире; списки в ячейках; «свободное посещение» */
.course--text td:not(:first-child), .course--text th:not(:first-child) { text-align: left !important; width: auto; white-space: normal !important; }
.course__ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.course__ul li { position: relative; padding-left: 1rem; }
.course__ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--teal); }
.course td.course__all { text-align: center; color: var(--ink-2); white-space: normal !important; }
.course td[rowspan] { vertical-align: middle; }
.course tfoot td:not(:first-child) { white-space: nowrap; }
/* цена в таблицах текста не рвётся посреди числа: «1 700 ₽» целиком */
.prose td { overflow-wrap: normal; }
/* состав курса на телефоне: три-четыре колонки дней помещаются без прокрутки */
@media (max-width: 560px) {
  .course, .prose table { font-size: .8125rem; }
  .course th, .course td, .prose th, .prose td { padding: .5rem .35rem; }
  .course th:first-child, .course td:first-child, .prose th:first-child, .prose td:first-child { padding-left: .7rem; }
  .course th:not(:first-child), .course td:not(:first-child) { width: auto; min-width: 2.6rem; }
  .course tfoot td { font-size: .75rem; }
  .course tfoot td:first-child { font-size: .8125rem; }
}
.rub-m { display: none; }
@media (max-width: 560px) { .course .rub { display: none; } .course .rub-m { display: inline; } .course thead th { font-size: .75rem; } }
@media (max-width: 560px) {
  .course td:first-child, .prose td:first-child { hyphens: auto; overflow-wrap: anywhere; }
  .course th:not(:first-child), .course td:not(:first-child) { min-width: 2.3rem; padding-inline: .25rem; }
}

/* Услуга или отделение на паузе: врача нет, записи нет */
.pause {
  display: inline-block; margin: .35rem 0 0; padding: .15rem .6rem;
  border-radius: var(--r-pill); background: var(--peach); color: #6A3B2A;
  font-size: .8125rem; font-weight: 600; font-style: normal; line-height: 1.5; white-space: nowrap;
}
.pause--block { display: block; white-space: normal; margin-top: 1rem; padding: .85rem 1.1rem; border-radius: var(--r-md); font-size: .9375rem; font-weight: 500; max-width: 62ch; }
.prose .pause { margin: 0 0 0 .25rem; vertical-align: .05em; }

/* ── Верхняя строка: версия для слабовидящих и поиск (приказ Минздрава № 118н) ── */
.head__util { background: var(--tint); border-bottom: 1px solid var(--line-soft); font-size: .8125rem; }
.head__util-in {
  max-width: var(--wrap); margin-inline: auto; padding: .3rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.head__vi {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .1rem;
  background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.head__vi .ico { width: 1.15rem; height: 1.15rem; }
.head__vi:hover { color: var(--teal-ink); }
.head__search { display: flex; align-items: center; width: min(19rem, 55vw); position: relative; }
.head__search input {
  width: 100%; min-height: 2rem; padding: .25rem 2.2rem .25rem .75rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font: inherit; color: var(--ink);
}
.head__search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.head__search button {
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
}
.head__search .ico { width: 1.05rem; height: 1.05rem; }
@media (max-width: 480px) { .head__vi span { font-size: .75rem; white-space: nowrap; } .head__util-in { gap: .5rem; } .head__search { width: min(11rem, 44vw); } }

.vi-panel { border-top: 1px solid var(--line); background: #fff; }
.vi-panel__in {
  max-width: var(--wrap); margin-inline: auto; padding: .6rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; font-size: 1rem;
}
.vi-panel__grp { display: flex; align-items: center; gap: .35rem; }
.vi-panel__grp > span { font-weight: 700; margin-right: .2rem; }
.vi-panel button {
  min-width: 2.6rem; min-height: 2.6rem; padding: .2rem .7rem; border: 2px solid #000; border-radius: 6px;
  background: #fff; color: #000; font: inherit; font-weight: 700; cursor: pointer;
}
.vi-panel button[aria-pressed="true"] { outline: 3px solid #0057B8; outline-offset: 2px; }
.vi-panel .vi-f-2 { font-size: 1.25rem; } .vi-panel .vi-f-3 { font-size: 1.5rem; }
.vi-panel .vi-c-1 { background: #fff !important; color: #000 !important; }
.vi-panel .vi-c-2 { background: #000 !important; color: #fff !important; }
.vi-panel .vi-c-3 { background: #9DD1FF !important; color: #063462 !important; }
.vi-panel__off { margin-left: auto; }

/* Режимы: размер, цвета, картинки, интервал */
html.vi-f2 { font-size: 125%; }
html.vi-f3 { font-size: 150%; }
html.vi-c1 { --vi-bg: #fff; --vi-fg: #000; }
html.vi-c2 { --vi-bg: #000; --vi-fg: #fff; }
html.vi-c3 { --vi-bg: #9DD1FF; --vi-fg: #063462; }
html.vi body, html.vi body *:not(svg):not(path):not(circle):not(rect):not(line):not(.vi-panel button) {
  background-color: var(--vi-bg) !important; color: var(--vi-fg) !important;
  border-color: var(--vi-fg) !important; box-shadow: none !important; text-shadow: none !important;
  background-image: none !important;
}
html.vi body *::before, html.vi body *::after { background-image: none !important; box-shadow: none !important; }
html.vi .cta::after, html.vi .hero::after, html.vi .hero::before { display: none !important; }
html.vi a { text-decoration: underline !important; }
html.vi .btn { border: 2px solid var(--vi-fg) !important; }
html.vi img { filter: grayscale(1); }
html.vi .ico, html.vi svg { color: var(--vi-fg) !important; stroke: currentColor; }
html.vi .cta__bg { display: none !important; }
html.vi-noimg img:not(.head__logo img), html.vi-noimg picture, html.vi-noimg video,
html.vi-noimg iframe, html.vi-noimg .tiles--gal, html.vi-noimg .post__pic { display: none !important; }
html.vi-sp body { letter-spacing: .05em; word-spacing: .15em; }
html.vi-sp p, html.vi-sp li, html.vi-sp td { line-height: 1.9 !important; }

/* ── Поиск ── */
.srch { display: flex; gap: .6rem; margin-top: 1.25rem; max-width: 40rem; }
.srch input {
  flex: 1; min-height: 3rem; padding: .5rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r-md); font: inherit; background: #fff; color: var(--ink);
}
.srch__res { display: grid; gap: 2rem; }
.srch__list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .55rem; max-width: 52rem; }
.srch__list li { display: flex; flex-direction: column; gap: .1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line-soft); }
.srch__list a { font-weight: 600; color: var(--ink); text-decoration-color: var(--line); text-underline-offset: .2em; }
.srch__list a:hover { color: var(--teal-ink); }
.srch__list span { font-size: .9375rem; color: var(--ink-2); }
.srch__p { font-size: .9375rem; color: var(--teal-ink); }

/* ── Карта сайта ── */
.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.smap__list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; font-size: 1rem; }
.smap__list a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: .2em; }
.smap__list a:hover { color: var(--teal-ink); }
@media (max-width: 860px) { .smap { grid-template-columns: 1fr; } }
html.vi .head { position: relative; backdrop-filter: none; }   /* шапка с панелью не закрывает полэкрана */
html.vi { scroll-padding-top: 1rem; }
html.vi-c2 .head__logo img { filter: invert(1) grayscale(1); }
html.vi :focus-visible { outline: 3px solid var(--vi-fg) !important; outline-offset: 2px; }

/* Плитки «Чего нет у частных клиник»: неполный последний ряд — последняя плитка на 2 ячейки */
@media (min-width: 1081px) { .tile--fill3 { grid-column: span 2; } .tile--fill3 img { aspect-ratio: 3 / 1; } }
@media (min-width: 561px) and (max-width: 1080px) { .tile--fill2 { grid-column: span 2; } .tile--fill2 img { aspect-ratio: 3 / 1; } }
/* Слабовидящие: крупный шрифт — меню отдельной строкой, шапка переносится, а не вылезает за экран */
html.vi .head__in { flex-wrap: wrap; row-gap: .6rem; }
html.vi .head__nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: .4rem 1.1rem; margin-right: 0; }
html.vi .head__act { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
/* Слабовидящие на телефоне: панель настроек — своего размера, не растёт вместе со шрифтом сайта */
.vi-panel__in { font-size: 16px; }
.vi-panel button { font-size: 16px; min-width: 42px; min-height: 42px; }
.vi-panel .vi-f-2 { font-size: 20px; } .vi-panel .vi-f-3 { font-size: 24px; }
.vi-panel__grp { flex-wrap: wrap; }
html.vi .head__util-in { flex-wrap: wrap; }
html.vi h1, html.vi h2, html.vi h3, html.vi .h2 { overflow-wrap: break-word; hyphens: auto; }
html.vi .prose, html.vi .prose a, html.vi td { overflow-wrap: anywhere; }
html.vi .srch { flex-wrap: wrap; }
@media (max-width: 720px) {
  html.vi .head__act { flex: 1 1 100%; justify-content: space-between; margin-left: 0; }
  html.vi .head__tel-wrap { align-items: flex-start; }
}
@media (max-width: 560px) { .hours td { white-space: normal; } }   /* «Контакты» на телефоне: часы не вылезают за экран */
@media (max-width: 720px) {
  html.vi .hero__h1 { font-size: 1.75rem; letter-spacing: -.02em; }
  html.vi .figures, html.vi .cards, html.vi .progs, html.vi .tiles, html.vi .posts { grid-template-columns: minmax(0, 1fr); }
  html.vi .figures > div { border-right: 0; }
  html.vi .tile--wide, html.vi .tile--fill2, html.vi .tile--fill3 { grid-column: auto; }
  html.vi .steps li { grid-template-columns: minmax(0, 1fr); }
  html.vi .steps__t, html.vi .steps__p, html.vi .steps .btn { grid-column: 1; grid-row: auto; justify-self: start; align-items: flex-start; }
}
html.vi .pause, html.vi .lnk, html.vi .hours td { white-space: normal; }
html.vi .btn, html.vi .rows__num, html.vi .steps__p { white-space: normal; }
html.vi .fld--inline { min-width: 0; }
html.vi .filter { flex-wrap: wrap; }
@media (max-width: 720px) {
  html.vi .hero__in { grid-template-columns: minmax(0, 1fr); }
  html.vi .rows summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  html.vi .rows__go, html.vi .rows__num { grid-column: 1; }
}
html.vi a[href^="tel:"], html.vi .cta__tel b, html.vi .head__tel { white-space: nowrap; }
@media (max-width: 720px) { html.vi .cta__tel b { font-size: 1.1rem; } html.vi .cta__ico { width: 2.4rem; height: 2.4rem; } html.vi .cta__tel a { gap: .5rem; } }

/* ── Меню на телефоне и планшете: кнопка-«бургер», разделы выпадают под шапкой ── */
.head__burger { display: none; }
.head__nav-extra { display: none; }
@media (max-width: 1080px) {
  .head__burger {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  }
  .head__burger-ico, .head__burger-ico::before, .head__burger-ico::after {
    display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .head__burger-ico { position: relative; }
  .head__burger-ico::before, .head__burger-ico::after { content: ""; position: absolute; left: 0; }
  .head__burger-ico::before { top: -6px; } .head__burger-ico::after { top: 6px; }
  .head.is-open .head__burger-ico { background: transparent; }
  .head.is-open .head__burger-ico::before { transform: translateY(6px) rotate(45deg); }
  .head.is-open .head__burger-ico::after { transform: translateY(-6px) rotate(-45deg); }

  .head.is-open .head__nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 7rem); overflow-y: auto;
    padding: .25rem var(--gutter) 1rem; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
  }
  .head.is-open .head__nav a { font-size: 1.0625rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); white-space: normal; }
  .head.is-open .head__nav a:last-child { border-bottom: 0; }
  .head.is-open .head__nav a::after { display: none; }
  .head.is-open .head__nav-extra { display: block; }
}
@media (max-width: 480px) { .head__burger { width: 2.5rem; height: 2.5rem; } }
html.vi .head__burger { border: 2px solid var(--vi-fg) !important; }
html.vi .head__burger-ico, html.vi .head__burger-ico::before, html.vi .head__burger-ico::after { background-color: var(--vi-fg) !important; }
html.vi .head.is-open .head__burger-ico { background-color: transparent !important; }
html.vi .head.is-open .head__nav { flex-wrap: nowrap; }   /* раскрытое меню — один столбец, без переноса вбок */

/* Заголовок короткого прайса внутри блока выбора обращения. */
.home-prices-title { margin-top: 3rem; margin-bottom: 1.25rem; }

/* Реальные портреты вместо отклонённого фото холла. */
.about__team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; align-self: start; }
.about__team figure { margin: 0; min-width: 0; }
.about__team figure > a { display: block; }
.about__team img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); }
.about__team figcaption { margin-top: .55rem; font-size: .9375rem; line-height: 1.35; font-weight: 600; }
.about__team figcaption a { text-decoration: none; }
.about__team figcaption a:hover { color: var(--teal-ink); }
@media (max-width: 480px) { .about__team { gap: 1rem .75rem; } .about__team figcaption { font-size: .8125rem; } }

/* 28.11.2026: временный вариант блока о центре без изображения. */
.about--text-only { grid-template-columns: minmax(0, 1fr); }
.about--text-only .about__say {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.about--text-only .feats { margin-top: 0; }
@media (max-width: 1080px) {
  .about--text-only .about__say { grid-template-columns: minmax(0, 1fr); }
}
