/* ============================================================
   Алые Паруса — стоматология, Челябинск
   Реализация макета из design_handoff_alye_parusa (v2)
   Палитра снята пипеткой с логотипа клиники
   ============================================================ */

:root {
  /* Снято с логотипа. Роли перевёрнуты относительно прежней палитры:
     парус (бордовый) даёт 7.25:1 с белым и стал цветом действия,
     синий из контура зуба слишком светлый для заливки — он структура. */
  --blue:        #2A6D9C;   /* вторичный текст, ссылки — 5.58:1 на белом */
  --blue-dark:   #1B4B6B;   /* заголовки и основной текст — 9.27:1 */
  --blue-light:  #8CBEDE;   /* декоративные линии, штриховая графика */
  --blue-bright: #8CBEDE;
  --scarlet:     #A81E33;   /* действие: белый текст 7.25:1 */
  --scarlet-dark:#921627;   /* наведение */
  --surface-1:   #EAF2F8;
  --surface-2:   #D6E6F2;
  --white:       #FFFFFF;

  --on-dark:   rgba(255,255,255,.88);
  --on-dark-2: rgba(255,255,255,.82);
  --div-dark:  rgba(255,255,255,.22);

  --sans:  'Golos Text', 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;

  --r:      8px;
  --r-pill: 999px;

  /* «Парусная» форма — единственный подписной жест. Токены, а не хардкод */
  --sail-xl: 300px;
  --sail-lg: 200px;
  --sail-md: 180px;
  --sail-sm: 160px;
  --sail-xs: 140px;

  --pad: clamp(20px, 4vw, 56px);
  --sec: clamp(34px, 4.6vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

/* Плавный скролл по якорям меню (гайдлайн: anchor links должны скроллить плавно).
   Для пользователей с reduced-motion отключается ниже. */
html { scroll-behavior: smooth; }

/* Резервирует место под вертикальный скроллбар с обеих сторон, даже когда он
   фактически только справа — без этого центрированный .wrap на Windows
   (где скроллбар занимает layout-пространство, в отличие от оверлейного
   на macOS) съезжает на ~14px влево от идеального центра. Не поддерживается
   в Safari — там просто не действует, ничего не ломает. */
html { scrollbar-gutter: stable both-edges; }

body {
  margin: 0;
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--sans);
  font-size: 17px; font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* убирает 300ms задержку двойного тапа и серую вспышку на iOS */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(168, 30, 51, .12);
}

/* Липкая шапка перекрывает якорь при переходе по меню */
[id] { scroll-margin-top: 96px; }

/* Ссылка «к содержимому» для клавиатуры и скринридеров */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: var(--white); padding: 12px 20px;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

::selection { background: var(--scarlet); color: var(--white); }
:root { caret-color: var(--scarlet); scrollbar-color: var(--blue) var(--surface-1); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.wrap { max-width: 1440px; margin: 0 auto; }
.sec-pad { padding: var(--sec) var(--pad); }
/* секции с заливкой требуют чуть больше воздуха, иначе фон читается как сжатый */
.sec--fill { padding-block: calc(var(--sec) * 1.15); }
/* Секция целиком должна помещаться на ноутбучный экран, поэтому
   отступы здесь скромнее, чем у обычных секций с заливкой */
.clinics__dark { padding-block: clamp(36px, 4.5vw, 68px); }

/* ---------------- Типографика ---------------- */

.h1 { font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.serif-it { font-family: var(--serif); font-style: italic; color: var(--blue); }

.lead { font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.5; color: var(--blue); }
.note { font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--blue); }
.small { font-size: 14px; font-weight: 300; color: var(--blue); max-width: 72ch; }

/* Метка-надзаголовок: алая черта + капс */
.label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* ---------------- Кнопки ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: var(--r-pill);
  background: var(--scarlet); color: var(--white);
  font-size: 15px; font-weight: 600; padding: 13px 26px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--scarlet-dark); }
/* отклик при нажатии — лёгкий «провал», чтобы кнопка ощущалась физической */
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg:active { transform: translateY(0) scale(.99); }
.btn--lg { font-size: 17px; padding: 19px 40px; }
.btn--lg:hover { transform: translateY(-2px); }
/* Алая точка внутри кнопки — единственное алое пятно на синем */
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); opacity: .55; flex: none; }

.btn--out { background: transparent; color: var(--scarlet); border: 1px solid var(--scarlet); }
.btn--out:hover { background: var(--scarlet); color: var(--white); }

.btn--light { background: var(--white); color: var(--scarlet); }
/* без своего :hover светлая кнопка наследует бордовый фон от .btn и текст пропадает */
.btn--light:hover { background: var(--surface-1); color: var(--scarlet-dark); }
/* точка того же цвета, что и фон .btn — на светлой кнопке была белой на белом, невидима */
.btn--light .btn__dot { background: var(--scarlet); opacity: .5; }

/* Текстовая ссылка с алым подчёркиванием */
.ulink { border-bottom: 1px solid var(--scarlet); padding-bottom: 2px; font-size: 17px; color: var(--blue-dark); }
.ulink:hover { color: var(--blue); }

/* ---------------- Шапка ---------------- */

.hdr { background: var(--white); border-bottom: 1px solid var(--surface-2);
  position: sticky; top: 0; z-index: 40; }
.hdr__in { display: flex; align-items: center; gap: 32px; padding: 20px var(--pad); }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo__mark { width: 42px; height: auto; flex: none; }
.logo__name { font-family: var(--serif); font-size: 24px; color: var(--blue); line-height: 1.1; }
/* Только в шапке: под названием — что это за «паруса», иначе непонятно */
.logo__stack { display: flex; flex-direction: column; gap: 2px; }
.logo__tag { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }

.menu { display: flex; gap: 32px; margin: 0 auto; }
.menu a { font-size: 15px; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color .2s; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--scarlet); }
/* Телефон в раскрытом мобильном меню — крупный, скрыт до открытия бургера */
.menu__tel { display: none; font-size: 20px; font-weight: 600; padding: 8px 0 8px; border-bottom: 0 !important; }
.menu__addr { display: none; font-size: 14px; font-weight: 300; color: var(--blue); padding: 0 0 14px;
  border-bottom: 1px solid var(--surface-2) !important; margin-bottom: 14px; }
.menu[data-open] .menu__addr { display: block; }
.menu[data-open] .menu__tel { display: block; }

.hdr__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hdr__tel { font-size: 17px; font-weight: 600; white-space: nowrap; }
/* Часы работы уехали в подвал, в шапке под телефоном — адреса обеих клиник */
.hdr__addr { font-size: 12px; font-weight: 300; color: var(--blue); white-space: nowrap;
  border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.hdr__addr span { color: var(--scarlet); padding: 0 2px; }
.hdr__addr:hover { color: var(--blue-dark); border-bottom-color: var(--scarlet); }
.burger { display: none; width: 44px; height: 44px; flex: none; background: none; border: 0; cursor: pointer;
  padding: 12px 10px; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--blue-dark); border-radius: 2px; }
.burger span + span { margin-top: 6px; background: var(--scarlet); }

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

.hero { display: grid; grid-template-columns: 1fr 620px; gap: 56px; align-items: center;
  padding: var(--sec) var(--pad) clamp(32px, 3.4vw, 48px); }
.hero .h1 { margin: 0; max-width: 620px; }
.hero .lead { max-width: 470px; margin-top: 24px; }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

.stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 64px; }
.stat { display: flex; gap: 10px; }
.stat::before { content: "/"; font-family: var(--serif); font-size: 15px; color: var(--scarlet); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px;
  line-height: 1; color: var(--blue-dark); }
.stat span { display: block; font-size: 14px; font-weight: 300; color: var(--blue); margin-top: 6px; }

.hero__media { position: relative; }
/* «Парусный» радиус — крупное скругление одного угла */
.sail { border-radius: var(--sail-xl) 8px 8px 8px; }
/* Слайд-шоу первого экрана. Кадры сменяются проявлением — то же «тихое»
   движение, что у текстовых блоков, без каруселей и рывков */
.hero__slider { position: relative; height: 700px; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; height: 100%; border-radius: inherit;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms var(--ease-out), visibility 900ms; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.hero__dots { position: absolute; left: 22px; bottom: 22px; z-index: 2;
  display: flex; gap: 8px; padding: 8px 10px; border-radius: var(--r-pill);
  background: rgba(27, 75, 107, .42); backdrop-filter: blur(6px); }
.hero__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.5); transition: background .25s var(--ease), transform .25s var(--ease); }
.hero__dot:hover { background: rgba(255,255,255,.8); }
.hero__dot[aria-selected="true"] { background: var(--white); transform: scale(1.25); }
.hero__dot:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Плейсхолдер фото — заодно бриф на съёмку */
/* flex, а не grid: у grid авто-строки растягиваются и разносят иконку с подписью по краям */
.ph { background: var(--surface-2); border: 1px dashed #c3cfe6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; color: var(--blue-dark); font-size: 13px; font-weight: 300; }
.ph::before { content: "◻"; font-size: 22px; opacity: .5; margin-bottom: 8px; }

/* Иконки — нарисованные, одной толщины штриха, а не юникод-глифы */
.ico { width: 16px; height: 16px; flex: none; color: currentColor; }
.ba__knob .ico { width: 24px; height: 16px; }
.star { width: 15px; height: 15px; flex: none; color: var(--scarlet); }
.rate__stars { display: inline-flex; gap: 3px; align-items: center; }

/* ---------------- Направления ---------------- */

/* Секция сразу за первым экраном: полный отступ читался как провал */
#svc { padding-top: clamp(24px, 3vw, 44px); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* «Флот» — направления как паруса разного размера, а не строки прайса.
   Размер плитки = масштаб решения для пациента: имплантация и ортодонтия
   ведут, гигиена замыкает. Цена живёт внутри плитки подписью, не колонкой. */
.fleet { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.fleet__tile {
  grid-column: span 4; display: flex; flex-direction: column; min-height: 260px;
  padding: 32px; background: var(--surface-1); color: var(--blue-dark);
  border-radius: 8px 8px 8px var(--sail-xs);
  transition: background .3s var(--ease), color .3s var(--ease), border-radius 700ms var(--ease-out);
}
/* У ведущих плиток дуга крупная — контент уходит вниз, чтобы парус
   оставался чистым, а не срезал заголовок */
.fleet__tile--lead { grid-column: span 7; min-height: 360px; justify-content: flex-end;
  background: var(--blue-dark); color: var(--white);
  border-radius: var(--sail-lg) 8px 8px 8px; }
.fleet__tile--tall { grid-column: span 5; min-height: 360px; justify-content: flex-end;
  border-radius: 8px var(--sail-md) 8px 8px; }
.fleet__tile--lead .fleet__foot,
.fleet__tile--tall .fleet__foot { margin-top: 0; }
/* Второй ряд — три плитки по span 4 (значение уже задано базовым .fleet__tile),
   отличаются только радиусом угла, чтобы не выглядеть одинаковыми. */
.fleet__tile:nth-child(3) { border-radius: 8px var(--sail-xs) 8px 8px; }
.fleet__tile:last-child { border-radius: 8px 8px 8px var(--sail-sm); }

/* Иконка направления — единственная графика в плитке, пока нет фотографий.
   Светло-синий отведён палитрой под штриховой декор, но на плитке он
   растворяется, поэтому берётся рабочий синий. */
.fleet__ico { display: block; width: 46px; height: 46px; margin-bottom: 20px; color: var(--blue); }
.fleet__ico svg { width: 100%; height: 100%; display: block; }
.fleet__tile--lead .fleet__ico { color: var(--blue-light); }
.fleet__tile--lead .fleet__ico,
.fleet__tile--tall .fleet__ico { width: 54px; height: 54px; }

.fleet__name { font-family: var(--serif); font-weight: 400; line-height: 1.1;
  letter-spacing: -.01em; font-size: clamp(22px, 2.1vw, 30px); }
.fleet__tile--lead .fleet__name { font-size: clamp(30px, 3.2vw, 46px); }
.fleet__note { font-size: 15px; font-weight: 300; line-height: 1.55;
  color: var(--blue); margin-top: 12px; max-width: 42ch; }
.fleet__tile--lead .fleet__note { color: var(--on-dark-2); font-size: 17px; max-width: 34ch; }

.fleet__foot { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-top: auto; padding-top: 28px; }
.fleet__money { display: flex; flex-direction: column; gap: 2px; }
.fleet__price { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fleet__unit { font-size: 14px; font-weight: 300; color: var(--blue); white-space: nowrap; }
.fleet__tile--lead .fleet__unit { color: var(--on-dark-2); }
/* алый на тёмно-синем даёт 1.9:1 — на ведущей плитке знак рубля светло-синий */
.fleet__tile--lead .rub { color: var(--blue-light); }

.fleet__arrow { width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--surface-2); border-radius: 50%; color: var(--blue-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease); }
.fleet__tile--lead .fleet__arrow { border-color: var(--div-dark); color: var(--white); }

/* Наведение разворачивает парус шире и выводит стрелку вперёд —
   то же движение, что у reveal, только по воле пользователя. */
/* Наведение переносит парус по ДИАГОНАЛИ в противоположный угол:
   свой угол схлопывается до 8px, дальний раскрывается. Порядок значений —
   top-left / top-right / bottom-right / bottom-left */
.fleet__tile:hover            { border-radius: 8px var(--sail-lg) 8px 8px; } /* BL → TR */
.fleet__tile--lead:hover      { border-radius: 8px 8px var(--sail-xl) 8px; } /* TL → BR */
.fleet__tile--tall:hover      { border-radius: 8px 8px 8px var(--sail-xl); } /* TR → BL */
.fleet__tile--wide:hover      { border-radius: var(--sail-lg) 8px 8px 8px; } /* BR → TL */
.fleet__tile:last-child:hover { border-radius: 8px var(--sail-lg) 8px 8px; } /* BL → TR */
.fleet__tile:hover .fleet__arrow { background: var(--scarlet); border-color: var(--scarlet);
  color: var(--white); transform: translateX(5px); }
.fleet__tile:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 4px; }
/* .fleet больше не карусель (вернули список друг под другом) — tabindex
   с неё снят, .rates/.quotes остались горизонтальной лентой */
.rates:focus-visible, .quotes:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 6px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.tiles .ph { height: 300px; }
img.tiles__img { width: 100%; height: 300px; object-fit: cover; display: block; }
.tiles > :nth-child(1) { border-radius: 8px var(--sail-sm) 8px 8px; }
.tiles > :nth-child(2) { border-radius: 8px; }
.tiles > :nth-child(3) { border-radius: 8px 8px 8px var(--sail-sm); }

/* ---------------- Как проходит визит ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--scarlet); padding-top: 22px; }
.step h3 { font-size: 22px; font-weight: 600; font-family: var(--sans);
  margin: 0 0 10px; display: flex; align-items: baseline; gap: 12px; }
.step__n { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--scarlet); }

/* ---------------- До и после ---------------- */

.ba { position: relative; height: clamp(300px, 44vw, 640px); border-radius: var(--r);
  overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer .ph { height: 100%; border-radius: 0; }
.ba__top { clip-path: inset(0 50% 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--scarlet);
  pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--scarlet-dark); color: var(--blue-dark); font-size: 13px;
  display: grid; place-items: center; pointer-events: none; }
.ba__tag { position: absolute; bottom: 20px; background: var(--white); border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none; }
.ba__tag--l { left: 20px; } .ba__tag--r { right: 20px; }
.ba:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------------- Врачи ---------------- */

.doc__spec { display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--blue); }
.doc__spec::before { content: ""; width: 16px; height: 1px; background: var(--scarlet); flex: none; }

/* Главврач — единственная с подтверждённым образованием и стажем,
   поэтому она несёт разворот, а не равную ячейку сетки. */
.lead-doc { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.lead-doc__photo { height: 520px; border-radius: var(--sail-lg) 8px 8px 8px; }
img.lead-doc__photo, img.team__photo { width: 100%; object-fit: cover; object-position: center top; display: block; }
.lead-doc__name { font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.lead-doc__role { font-size: 17px; color: var(--blue); margin: 14px 0 0; }

.lead-doc__facts { display: grid; gap: 0; margin: 32px 0 0; }
.lead-doc__facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--surface-2); }
.lead-doc__facts > div:last-child { border-bottom: 1px solid var(--surface-2); }
.lead-doc__facts dt { font-size: 14px; font-weight: 300; color: var(--blue); }
.lead-doc__facts dd { margin: 0; font-size: 16px; }
.lead-doc__facts dd b { font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1; margin-right: 4px; }

/* Остальные — лента, которую листают, а не сетка портретов в рамках */
.team { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 20px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px;
  scrollbar-width: thin; overscroll-behavior-x: contain; }
.team__card { scroll-snap-align: start; }
.team__photo { height: 268px; margin-bottom: 16px; }
.team__card:nth-child(odd) .team__photo { border-radius: var(--sail-xs) 8px 8px 8px; }
.team__card:nth-child(even) .team__photo { border-radius: 8px var(--sail-xs) 8px 8px; }
.team__name { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin: 0; }
.team__spec { font-size: 14px; color: var(--blue); margin: 8px 0 0; }
.team__edu { margin: 14px 0 0; font-size: 13px; line-height: 1.4; }
.team__edu > div { padding: 8px 0; border-top: 1px solid var(--surface-2); }
.team__edu dt { font-size: 12px; color: var(--blue); }
.team__edu dd { margin: 2px 0 0; }
.team:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 6px; }

/* ---------------- Отзывы ---------------- */

.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.rate { background: var(--white); border: 1px solid var(--surface-2); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.rate__src { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.rate__val { display: flex; align-items: baseline; gap: 12px; }
.rate__num { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--blue-dark); }
/* Звёзды — алым: мелкий глиф, тот же вес, что точка-акцент */
.rate__stars { color: var(--scarlet); font-size: 16px; letter-spacing: .1em; }
.rate__link { margin-top: auto; padding-top: 12px; font-size: 15px; color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px; }
.rate__link:hover { color: var(--blue-bright); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--white); border: 1px solid var(--surface-2); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; }
/* Единственная хроматическая граница в секции */
.quote--mark { border-left: 1px solid var(--scarlet); }
.quote__text { font-size: 17px; line-height: 1.55; }
.quote__text::before { content: "«"; color: var(--scarlet); }
.quote__text::after { content: "»"; color: var(--scarlet); }
.quote__foot { margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 300; color: var(--blue); }
.quote__foot b { font-weight: 600; color: var(--blue-dark); }
.quote__foot::before { content: ""; width: 16px; height: 1px; background: var(--scarlet); flex: none; }

/* ---------------- Две клиники ---------------- */

.clinics { display: grid; grid-template-columns: 560px 1fr; }
.clinics__dark { background:
    radial-gradient(140% 180% at 110% 110%, rgba(140,190,222,.18) 0%, rgba(140,190,222,0) 50%),
    var(--blue-dark);
  color: var(--white);
  padding-inline: max(var(--pad), env(safe-area-inset-left)); }
.clinics__dark .h2 { color: var(--white); font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 4px; }
.clinic-pick { display: grid; gap: 0; margin-top: 8px; }

/* Карточка клиники — переключатель карты, поэтому кнопка, а не текст */
/* Обёртка несёт подсветку, потому что телефон-ссылка лежит вне кнопки */
.clinic-item { position: relative; border-top: 1px solid var(--div-dark);
  padding: 0 18px 14px 0;
  transition: background .3s var(--ease); }
/* Сдвиг содержимого — transform на отдельной обёртке, а не padding-left
   на самой карточке: анимировать layout-свойство (padding) means дёргать
   раскладку на каждый кадр, transform уходит на compositor и её не трогает */
.clinic-item__body { transition: transform .3s var(--ease); }
.clinic-item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px;
  background: var(--scarlet); transform: scaleY(0); transform-origin: top center;
  transition: transform .35s var(--ease); }
.clinic-item.is-active { background: rgba(255,255,255,.05); }
.clinic-item.is-active .clinic-item__body { transform: translateX(18px); }
.clinic-item.is-active::before { transform: scaleY(1); }
.clinic-item:hover:not(.is-active) { background: rgba(255,255,255,.03); }

.clinic { display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: transparent; appearance: none;
  border: 0; padding: 16px 0 0; margin: 0; }
.clinic:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

.clinic__tel { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  font-size: 18px; font-weight: 600; transition: color .2s var(--ease); }
.clinic__tel:hover { color: var(--blue-light); }
/* Алый текст на тёмно-синем даёт 1.28:1 и нечитаем, поэтому красное здесь —
   заливка бейджа под белой иконкой (7.25:1), а номер остаётся белым */
.clinic__tel-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--scarlet); color: var(--white);
  transition: background .2s var(--ease), transform .2s var(--ease); }
.clinic__tel:hover .clinic__tel-ic { background: var(--scarlet-dark); transform: scale(1.06); }

.clinics__extra { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 20px 0 0;
  padding-top: 18px; border-top: 1px solid var(--div-dark); }
.clinics__extra a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px;
  transition: color .2s var(--ease); }
.clinics__extra a:hover { color: var(--blue-light); }
.clinics__extra .clinic__tel-ic { width: 28px; height: 28px; }

.clinic__tag { display: flex; align-items: center; gap: 10px; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.clinic__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--scarlet); flex: none; transition: transform .3s var(--ease); }
.clinic[aria-pressed="true"] .clinic__tag::before { transform: scale(1.6); }
.clinic__addr { display: block; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; margin: 8px 0 6px; }
.clinic__meta { display: block; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--on-dark-2); }

.clinic__meta a { transition: color .2s var(--ease); }

/* Карта: iframe подменяется при выборе клиники, до прокрутки — заглушка */
.clinics__map { position: relative; min-height: 560px; }
.clinics__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.clinics__ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.clinic__meta a:hover { color: var(--scarlet); }
.clinics .ph { min-height: 560px; height: 100%; border-radius: 0; }

/* ---------------- Популярные цены ---------------- */

.price__row { display: grid; grid-template-columns: 1fr 150px 160px; gap: 20px; align-items: baseline;
  padding: 13px 4px; border-top: 1px solid var(--surface-2); }
.price__name { font-size: 17px; line-height: 1.35; }
.price__unit { font-size: 14px; font-weight: 300; color: var(--blue); }
.price__val { font-family: var(--serif); font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }

/* На широком экране прайс идёт в две колонки — иначе 87 позиций
   превращаются в бесконечную ленту прокрутки */
@media (min-width: 1180px) {
  /* В две колонки идут только группы от четырёх позиций: у коротких
     балансировка колонок оставляла заметные провалы */
  .price-group:has(.price__row:nth-child(4)) { columns: 2; column-gap: clamp(36px, 4vw, 64px); }
  /* короткая группа занимает ширину одной колонки — иначе цена уезжает
     на другой край экрана и теряет связь с названием */
  .price-group:not(:has(.price__row:nth-child(4))) { max-width: calc(50% - clamp(18px, 2vw, 32px)); }
  .price__row { break-inside: avoid; grid-template-columns: 1fr 86px 132px; gap: 12px; }
  .price__name { font-size: 16px; }
  .price__val { font-size: 18px; }
  .price__unit { font-size: 13px; }
}
/* диапазоны вроде «16 000–22 000 ₽» не должны ломаться на две строки */
.price__val { white-space: nowrap; }
.rub { color: var(--scarlet); }

/* ---------------- Оглавление прайса ---------------- */

/* Оглавление прайса: полоса была прижата к верху секции и пустовала снизу,
   а ссылки шли простым текстом — теперь это ряд наборных «пилюль» */
.toc-sec { padding: clamp(18px, 2vw, 26px) var(--pad); }
/* Заголовок слева, пояснения справа — иначе вся шапка жмётся к левому краю */
.price-head { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1fr;
  gap: clamp(24px, 4vw, 72px); align-items: center; }
.price-head .h1 { text-align: center; }
.price-head__meta { display: grid; gap: 14px; }
.price-head .lead { max-width: 52ch; }
.price-head .small { max-width: 62ch; }

/* Чипы делят ширину поровну — ряд перестаёт липнуть к левому краю */
.toc { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.toc a { flex: 1 1 auto; justify-content: center;
  display: inline-flex; align-items: center; font-size: 14px; line-height: 1;
  color: var(--blue-dark); background: var(--white);
  border: 1px solid var(--surface-2); border-radius: var(--r-pill);
  padding: 10px 18px; white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.toc a:hover { border-color: var(--scarlet); color: var(--scarlet); }
.toc a:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 2px; }

/* ---------------- Кнопка «наверх» ---------------- */

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--scarlet); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.to-top:hover { background: var(--scarlet-dark); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ico { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s linear; }
}

/* ---------------- Форма ---------------- */

.form-sec { display: grid; grid-template-columns: 1fr 640px; gap: 72px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--r); padding: clamp(24px, 3vw, 44px);
  display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.field input, .field select {
  border: 0; border-bottom: 1px solid var(--surface-2); background: transparent;
  font-size: 19px; color: var(--blue-dark); padding: 10px 0; width: 100%; border-radius: 0;
}
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-bottom-color: var(--scarlet); }
.field input:focus, .field select:focus { border-bottom-color: var(--scarlet); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; font-weight: 300; color: var(--blue); }
.consent input { accent-color: var(--blue); margin-top: 1px; flex: none;
  width: 24px; height: 24px; }
.consent a { border-bottom: 1px solid var(--scarlet); }

/* Inline-ошибка валидации формы. Скрыта, пока поле не ошибочно.
   Текст + цвет (не только цвет — для доступности). */
.field__err { display: none; font-size: 13px; font-weight: 400; color: var(--scarlet); margin-top: 4px; }
.field__err.is-err { display: block; }
.field__err.is-err::before { content: "! "; font-weight: 600; }
.consent .field__err { flex-basis: 100%; }
.tels { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tels a { display: inline-flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 600; color: var(--blue-dark); }
.tels a:hover { color: var(--scarlet); }
.tels__ic { display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--blue); }
.tels a:hover .tels__ic { background: var(--scarlet); color: var(--white); }
.tels__ic .ico { width: 17px; height: 17px; }

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

.foot { border-top: 1px solid var(--surface-2);
  padding: 72px var(--pad) max(52px, env(safe-area-inset-bottom)); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__col h3 { margin: 0 0 16px; font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.foot__col li + li { margin-top: 2px; }
.foot__col a:hover { color: var(--blue); }
/* иконка перед номером/соцссылкой — иначе не читается как ссылка среди обычного текста */
/* padding-block вместо голого текста — тап-зона ссылок в подвале была
   ~26px высотой (меньше рекомендованных 44px), особенно тесно на телефоне */
.foot__ic { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 9px; margin-inline: -2px; padding-inline: 2px; }
.foot__ic .ico { color: var(--blue-light); }
/* значок ВКонтакте — растровый (скачан клиентом), через mask, чтобы красился currentColor как остальные */
.ico--vk { background-color: currentColor;
  -webkit-mask: url('../img/vk-icon.png') center / contain no-repeat;
  mask: url('../img/vk-icon.png') center / contain no-repeat; }
/* капс из трёх латинских букв визуально крупнее кириллических соседей — слегка уменьшаем */
.foot__max { font-size: .9em; letter-spacing: .02em; }
.foot__hours { font-size: 13px; font-weight: 300; color: var(--blue); margin-top: 16px; }
.foot__legal { font-size: 13px; font-weight: 300; color: var(--blue); line-height: 1.7; margin-top: 14px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--surface-2);
  font-size: 13px; font-weight: 300; color: var(--blue); }

/* ---------------- CTA-плашка ---------------- */

.cta { background:
    radial-gradient(120% 160% at 85% 0%, rgba(140,190,222,.22) 0%, rgba(140,190,222,0) 46%),
    var(--blue-dark);
  border-radius: var(--r); color: var(--white);
  padding: 40px 44px; display: flex; justify-content: flex-start; align-items: center;
  gap: 32px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); }
.cta p { color: rgba(255,255,255,.84); font-weight: 300; margin-top: 8px; }
.cta .btn { margin-left: auto; }

/* ---------------- Заглушки ---------------- */

.stub { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  border: 1px dashed var(--scarlet); color: var(--scarlet); border-radius: var(--r-pill);
  padding: 2px 10px; font-size: 11px; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; }
.stub-note { border: 1px dashed var(--scarlet); border-radius: var(--r);
  padding: 14px 18px; font-size: 14px; font-weight: 300; color: var(--blue-dark);
  margin-bottom: 28px; background: var(--white); }
.stub-note b { font-weight: 600; }

/* ---------------- Движение ----------------
   Один авторский момент — разворачивающийся парус — и три служебных
   семейства. Никакого одинакового входа на каждой секции.
   Скрытие ставится из JS: без JS страница видна целиком.       */

:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Семейство 1 — ПАРУС. Фотографии входят прямоугольником и разворачиваются
   в фирменную форму. Это единственный подписной жест страницы. */
[data-reveal="sail"] {
  transition: border-radius 900ms var(--ease-out), opacity 600ms var(--ease-out);
}
[data-reveal="sail"].is-hidden { border-radius: var(--r); opacity: .3; }

/* Семейство 2 — СТРОКА. Было — жёсткая протяжка по горизонтали (клипом),
   смотрелась как строка, грубо уезжающая вбок. Заменено на мягкое
   всплытие с лёгким увеличением — строки услуг проявляются на месте. */
[data-reveal="row"] {
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal="row"].is-hidden { opacity: 0; transform: translateY(20px) scale(.985); }

/* Служебное — тихое проявление без сдвига, для текстовых блоков */
[data-reveal="quiet"] { transition: opacity 700ms var(--ease-out); }
[data-reveal="quiet"].is-hidden { opacity: 0; }

/* Алая нить вдоль флота — паруса держатся на ней */
.fleet { position: relative; }
.fleet::before {
  content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 1px;
  background: var(--scarlet); transform-origin: top center;
  transition: transform 1100ms var(--ease-out);
}
.fleet.is-hidden::before { transform: scaleY(0); }

/* Заголовок первого экрана — по словам */
.w { display: inline-block; }

/* Draw-on подчёркивание заголовков секций.
   Алая линия вычерчивается слева направо при появлении блока. */
.sec-head .h2 { position: relative; display: inline-block; }
.h2-line { display: block; height: 2px; width: 100%; margin-top: 10px;
  background: var(--scarlet); transform: scaleX(0); transform-origin: left center;
  transition: transform 800ms var(--ease-out); }
.sec-head .h2.drawn .h2-line { transform: scaleX(1); }
.js .w { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
.js .fade { opacity: 0; animation: fade .9s var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  /* Убираем перемещение и смену формы, оставляем проявление:
     обратная связь должна оставаться читаемой */
  .js .w, .js .fade { animation: none; opacity: 1; transform: none; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
  [data-reveal="sail"].is-hidden { border-radius: inherit; }
  .fleet::before { transition: none; }
  .fleet.is-hidden::before { transform: none; }
  .h2-line { transition: none; transform: scaleX(1); }
  * { scroll-behavior: auto !important; }
}

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

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: 2; }
  .fleet__tile { grid-column: span 6; }
  .fleet__tile--lead, .fleet__tile--tall { grid-column: span 6; min-height: 320px; }
  .fleet__tile--wide { grid-column: span 6; }
  .lead-doc { grid-template-columns: 320px 1fr; }
  .lead-doc__photo { height: 420px; }
  .clinics { grid-template-columns: 1fr; }
  .clinics .ph { min-height: 280px; }
  .clinics__map { min-height: 420px; }
  .price-head { grid-template-columns: 1fr; align-items: start; }
  .form-sec { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rates, .quotes { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

/* Шапка перестаёт помещаться раньше остального макета:
   логотип + 5 пунктов + телефон/график + кнопка требуют ~1000px */
/* Адреса шире телефона: ниже этой ширины шапка от них переносится
   в две строки и страница получает горизонтальный скролл */
@media (max-width: 1320px) {
  .hdr__addr { display: none; }
}

/* Логотип + 6 пунктов + телефон + кнопка требуют ~1145px плюс поля.
   Ниже — шапка переносилась в две строки и давала горизонтальный скролл */
@media (max-width: 1260px) {
  .menu, .hdr__contact { display: none; }
  .burger { display: block; }
}

@media (max-width: 700px) {
  .hdr__in { gap: 12px; }
  .logo__name { white-space: nowrap; font-size: 20px; }
  .logo__mark { width: 34px; height: 34px; }
  .burger { flex: none; margin-left: auto; }
  /* Логотип + кнопка + бургер в 390px не помещаются: подпись под названием
     уходит, а название и кнопка ужимаются — иначе «Алые Паруса» обрезается */
  .logo__tag { display: none; }
  .logo { flex: 0 0 auto; }
  .logo__name { font-size: 18px; }
  /* Кнопка записи в шапке рядом с логотипом и бургером смотрелась
     громоздко — она дублирует hero-кнопку «Записаться на приём» и форму
     внизу страницы, на телефоне её достаточно убрать отсюда */
  .hdr .btn { display: none; }
  .hero .h1 { font-size: 42px; }
  .hero__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__cta .btn { width: 100%; height: 54px; }
  .hero__slider { height: 420px; border-radius: var(--sail-md) 8px 8px 8px; }
  .stats { flex-direction: column; gap: 0; margin-top: 40px; }
  .stat { border-top: 1px solid var(--surface-2); padding: 18px 0; }
  .stat b { font-size: 28px; }
  /* Три фото-заглушки под лентой направлений на телефоне не показываем —
     это повтор того же самого слайд-шоу, что уже было в hero */
  .tiles { display: none; }

  /* Как проходит визит: 2×2 вместо длинной колонки — текст короткий,
     заголовок в один ряд с ним поместится и парой */
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .step h3 { font-size: 19px; }

  /* «Направления» на телефоне — снова список друг под другом (лента
     со свайпом пряталась карточки за край экрана, список нагляднее).
     Цена и единица расчёта обязаны остаться видны — п. 17 ПП 659. */
  .fleet__tile,
  .fleet__tile--lead,
  .fleet__tile--tall,
  .fleet__tile--wide,
  .fleet__tile:nth-last-child(2),
  .fleet__tile:last-child { grid-column: 1 / -1; min-height: 288px; padding: 26px 22px;
    justify-content: flex-end; border-radius: var(--sail-xs) 8px 8px 8px; }
  .fleet__tile:hover,
  .fleet__tile--tall:hover,
  .fleet__tile--wide:hover { border-radius: var(--sail-xs) 8px 8px 8px; }
  /* margin-top:auto прижал бы подвал к низу и съел свободное место,
     из-за чего заголовок остался бы вверху под дугой */
  .fleet__foot { margin-top: 0; padding-top: 22px; }

  /* Отзывы и цитаты — горизонтальная лента со snap, тот же приём, что и
     у списка врачей: шесть карточек подряд не стоят друг под другом. */
  .rates, .quotes {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity;
    gap: 14px; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 6px;
    scrollbar-width: none;
  }
  .rates::-webkit-scrollbar, .quotes::-webkit-scrollbar { display: none; }
  .rate, .quote { flex: 0 0 78%; scroll-snap-align: start; }
  .rate__num { font-size: 40px; }

  .lead-doc { grid-template-columns: 1fr; gap: 24px; }
  .lead-doc__photo { height: 340px; border-radius: var(--sail-xs) 8px 8px 8px; }
  .lead-doc__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .team { grid-auto-columns: 200px; gap: 16px; }
  .team__photo { height: 232px; }
  /* Название сверху на всю ширину, единица расчёта и цена — на одной
     строке под ним. Раньше цена была растянута на всю высоту строки
     между двумя разреженными строками текста и «плавала» сбоку. */
  .price__row { grid-template-columns: 1fr auto; row-gap: 4px; column-gap: 12px; }
  .price__name { grid-column: 1 / -1; }
  .price__unit { grid-column: 1; grid-row: 2; align-self: center; }
  .price__val { grid-column: 2; grid-row: 2; align-self: center; }

  /* Тизер цен на главной — одна карточка-«чек», а не голый список строк */
  .price-teaser { background: var(--surface-1); border-radius: var(--r); padding: 2px 18px; }
  .price-teaser .price__row:first-child { border-top: 0; }

  .field-row { grid-template-columns: 1fr; }

  /* Подвал: адресный блок во всю ширину, «Клиника»/«Пациентам» —
     парой, «Контакты» снова во всю ширину. Раньше все четыре колонки
     стояли одна под другой */
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot__col:nth-child(1), .foot__col:nth-child(4) { grid-column: 1 / -1; }

  /* Отзывы убраны с телефона по просьбе Ивана — вместе с блоком прячем
     ссылки на него, чтобы пункт меню и подвала никуда не вёл в пустоту */
  #reviews,
  .menu a[href="#reviews"],
  .foot__col li:has(> a[href="#reviews"]) { display: none; }
}

/* iPhone SE и прочие 360px: название клиники уступает место кнопке */
@media (max-width: 380px) {
  .logo__name { font-size: 17px; }
  .hdr__in { gap: 8px; padding-inline: 14px; }
  .hdr .btn { padding: 10px 12px; font-size: 13px; }
}

/* ---------------- Сведения об организации ----------------
   Разделительная линия каждой строки идёт на всю ширину .wrap, как на
   остальном сайте — именно так строки читаются как единый список, а не
   изолированная узкая колонка. Текст в dd ограничен по длине строки
   отдельно (ниже), сама сетка строк — нет. */
.info { margin: 0; display: grid; }
.info > div { display: grid; grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 8px clamp(20px, 3vw, 48px); padding: 18px 0; border-top: 1px solid var(--surface-2); }
.info > div:last-child { border-bottom: 1px solid var(--surface-2); }
.info dt { font-size: 15px; color: var(--blue); }
.info dd { margin: 0; font-size: 16px; line-height: 1.5; max-width: 90ch; }
.info a { color: var(--scarlet); text-underline-offset: 3px; }
.info__need { display: block; margin-top: 6px; font-size: 14px; font-weight: 300; color: var(--blue); }
.info dd > .stub + .info__need { display: inline; margin: 0 0 0 8px; }
@media (max-width: 700px) {
  .info > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------------- Версия для слабовидящих (приказ Минздрава № 118н, прил. 2, п. 2) ----------------
   Сайт набран явными px-размерами по классам, а не в rem от <body>, поэтому
   простого «увеличить у body» недостаточно — почти весь текст перекрывает
   базовый размер своим собственным. Пришлось перечислить классы-носители
   текста и поднять каждый на 2px (мелкие подписи — на 2px, они и так малы). */
html.a11y { --blue: var(--blue-dark); }
html.a11y a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y, html.a11y * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

html.a11y body { line-height: 1.65; }
html.a11y p,
html.a11y li,
html.a11y .price__name, html.a11y .quote__text, html.a11y .lead-doc__role,
html.a11y .clinics__extra a, html.a11y .tels a, html.a11y .field input, html.a11y .field select,
html.a11y .search-ov__input, html.a11y .sitemap-list a, html.a11y .lead-doc__facts dd,
html.a11y .fleet__tile--lead .fleet__note { font-size: 19px; }

html.a11y .note, html.a11y .fleet__note,
html.a11y .info dd, html.a11y .price__val { font-size: 17px; }

html.a11y .small, html.a11y .label, html.a11y .menu__addr, html.a11y .lead-doc__facts dt,
html.a11y .team__spec, html.a11y .rate__src, html.a11y .clinic__tag, html.a11y .clinic__meta,
html.a11y .price__unit, html.a11y .field > span, html.a11y .consent, html.a11y .field__err,
html.a11y .foot__col h3, html.a11y .foot__hours, html.a11y .foot__legal, html.a11y .stub-note,
html.a11y .info dt, html.a11y .info__need, html.a11y .search-ov__list .hint,
html.a11y .search-ov__empty, html.a11y .sitemap-list .hint, html.a11y .hdr__addr,
html.a11y .team__edu, html.a11y .doc__spec { font-size: 16px; }

html.a11y .team__edu dt { font-size: 14px; }
html.a11y .menu a, html.a11y .hdr__tel { font-size: 17px; }

.a11y-toggle {
  position: fixed; left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30; height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  background: var(--blue-dark); color: var(--white); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.a11y-toggle:hover { background: #0f3854; }
html.a11y .a11y-toggle { background: var(--scarlet); }
html.a11y .a11y-toggle:hover { background: var(--scarlet-dark); }
@media (max-width: 700px) {
  .a11y-toggle { font-size: 0; width: 48px; padding: 0; }
  .a11y-toggle::before { content: "A+"; font-size: 15px; font-weight: 700; }
}

/* ---------------- Поиск по сайту ---------------- */
.search-ov {
  position: fixed; inset: 0; z-index: 60; background: rgba(27,75,107,.5);
  display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px;
}
.search-ov[hidden] { display: none; }
.search-ov__box {
  background: var(--white); border-radius: var(--r); width: 100%; max-width: 560px;
  max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.search-ov__head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--surface-2); }
.search-ov__input { flex: 1; border: 0; font-size: 18px; color: var(--blue-dark); font-family: inherit; }
.search-ov__input:focus-visible { outline: none; }
.search-ov__close { border: 0; background: transparent; color: var(--blue); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.search-ov__close:hover { color: var(--scarlet); }
.search-ov__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-ov__list li { margin: 0; }
.search-ov__list a { display: block; padding: 12px 10px; border-radius: 6px; }
.search-ov__list a:hover, .search-ov__list a:focus-visible { background: var(--surface-1); }
.search-ov__list .hint { display: block; font-size: 13px; color: var(--blue); margin-top: 2px; }
.search-ov__empty { padding: 18px 10px; color: var(--blue); font-size: 14px; }

/* ---------------- Карта сайта ---------------- */
.sitemap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sitemap-list li { border-top: 1px solid var(--surface-2); }
.sitemap-list li:last-child { border-bottom: 1px solid var(--surface-2); }
.sitemap-list a { display: block; padding: 16px 0; font-size: 18px; }
.sitemap-list a:hover { color: var(--scarlet); }
.sitemap-list .hint { display: block; font-size: 14px; font-weight: 300; color: var(--blue); margin-top: 2px; }

/* Образец договора и политика ПДн оформлены как обычные строки .info —
   так же, как остальная страница, без отдельного «документного» вида,
   который выглядел прижатым влево. */

/* ---------------- Заглушки — спрятаны после публичного запуска ----------------
   Сайт теперь живой, реальные пациенты не должны видеть служебные пометки
   «ЗАГЛУШКА» и связанные с ними to-do-заметки. Класс остаётся в разметке —
   чтобы снова увидеть все незакрытые вопросы разом, временно закомментировать
   это правило (или открыть исходник страницы и поискать class="stub"). */
.stub, .stub-note, .info__need { display: none !important; }
