/* Стоматология «Династия» — style.css
   «Чистая клиника»: холодный светлый фон, один гротеск, сериф только в H1 и цифрах,
   плитки вместо линеек, один зелёный акцент. Mobile-first. */

:root {
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #E8E2D4;
  --tint: #E4EFE9;
  --ink: #17221F;
  --ink-soft: #5B6763;
  --line: #E2DCCF;
  --warm: #C4693E;
  --green: #1B6B5C;
  --green-deep: #124A3F;
  --green-ink: #0E3A32;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Onest", "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --section: 72px;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], [id^="bykova"], .price-group { scroll-margin-top: 88px; }

body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums; padding-bottom: 88px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.04; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint, .section--surface { background: #EEE9DE; }
.muted { color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--green); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--secondary { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.logo__name { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; color: var(--green-ink); }
.logo__sub { font-size: 11px; color: var(--ink-soft); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__phone { display: none; font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header__book { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn--phone { background: var(--green); border-color: var(--green); color: var(--white); }
.icon-btn svg { width: 22px; height: 22px; }
.nav { display: none; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--pill); }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--tint); }

/* Мобильное меню */
.mobile-menu { display: none; position: fixed; inset: 64px 0 0 0; z-index: 40; background: var(--bg); padding: 16px var(--gutter) 40px; flex-direction: column; gap: 0; overflow-y: auto; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 18px 0; font-size: 24px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; font-size: 16px; border-bottom: 0; }
.mobile-menu [data-a11y-toggle] { font-size: 15px; font-weight: 500; border-bottom: 0; padding-top: 12px; }
body.menu-open { overflow: hidden; }

/* Плавающая панель */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: rgba(246, 243, 236, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mobile-bar .btn { flex: 1; min-height: 50px; }

/* Первый экран */
.hero { padding: 40px 0 48px; }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { font-size: 46px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { max-width: 560px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__hours { font-size: 14px; color: var(--ink-soft); display: inline-flex; gap: 10px; align-items: flex-start; }
.hero__hours::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 7px; }
.hero__visual { position: relative; }
.hero .photo { height: 320px; }
.stamp {
  position: absolute; right: -6px; bottom: -18px; width: 108px; height: 108px; border-radius: 50%;
  background: var(--warm); color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1; transform: rotate(-8deg); box-shadow: 0 10px 30px rgba(23, 34, 31, .15);
}
.stamp strong { font-family: var(--serif); font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums; }
.stamp span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* Заглушки под фото */
.photo { background: var(--surface-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 1.4; padding: 20px; }
.photo--map { background: var(--surface); }

/* Факты */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts > div { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 16px; }
.facts__num { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--green-ink); }
.facts__label { font-size: 12px; line-height: 1.35; color: var(--ink-soft); margin-top: 8px; }

/* Плитки */
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; }

/* Услуги — плитки */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.service__num { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--green); }
.service__title { font-size: 20px; font-weight: 600; line-height: 1.2; }
.service__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.service__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.service__price { font-weight: 600; font-size: 16px; white-space: nowrap; }
.service__link { font-size: 14px; font-weight: 600; color: var(--green); }
.service__link::after { content: " →"; }
.service__icon { display: none; }

/* Почему мы */
.why { display: grid; gap: 12px; }
.why__item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--white); border-radius: var(--radius); font-size: 16px; line-height: 1.5; }
.section--tint .why__item { border: 0; }
.why__item strong { font-weight: 600; display: block; margin-bottom: 2px; }
.check { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Чем работаем */
.materials { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.materials__list { margin: 0; display: grid; gap: 10px; }
.materials__list > div { background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px; }
.materials__list dt { font-weight: 600; font-size: 16px; }
.materials__list dd { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

/* Врачи */
.card { padding: 0; }
.doctor { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.doctor .photo { height: 300px; background: var(--surface-2); }
.doctor__name { font-size: 22px; font-weight: 600; line-height: 1.2; }
.doctor__role { font-size: 13px; font-weight: 600; color: var(--green); }
.doctor__text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.doctor dl { display: grid; grid-template-columns: 1fr; gap: 6px 24px; margin: 0; font-size: 16px; line-height: 1.55; }
.doctor dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 10px; }
.doctor dd { margin: 0; }
.doctor--page { background: transparent; border: 0; padding: 0; gap: 24px; }

/* О нас */
.about { max-width: 760px; }
.about p:first-of-type { font-size: 20px; line-height: 1.5; }
.quote { margin: 8px 0 0; padding: 24px 28px; border: 0; border-left: 4px solid var(--green); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; font-style: italic; color: var(--green-ink); }

/* Отзывы */
.review { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review__text { font-size: 16px; line-height: 1.55; color: var(--ink); }
.review__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.review__name { font-weight: 600; font-size: 15px; }
.review__date { font-size: 13px; color: var(--ink-soft); }
.badge { font-size: 12px; font-weight: 500; color: var(--green-ink); background: var(--tint); border-radius: var(--pill); padding: 5px 12px; white-space: nowrap; }

/* Форма */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .textarea { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9AA6A2; }
.input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--tint); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.form__hint { font-size: 14px; color: var(--ink-soft); }
.form__status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form__status.is-error { color: #B3261E; }
.form__status.is-ok { color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-alt { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-alt h3 { font-size: 18px; }
.contact-alt__phones { display: flex; flex-direction: column; gap: 10px; }
.contact-alt__phones a { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 17px; }
.contact-alt__phones svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messengers .btn { flex: 1; min-height: 46px; font-size: 15px; }

/* Контакты */
.contacts__grid { display: grid; gap: 28px; }
.contacts__block { display: flex; flex-direction: column; gap: 6px; }
.hours { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; font-size: 16px; line-height: 1.5; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); display: block; background: var(--surface); }

/* Подвал */
.footer { background: var(--green-ink); color: #A9C2BA; padding: 56px 0 32px; font-size: 14px; line-height: 1.55; }
.footer__grid { display: grid; gap: 28px; }
.footer a { color: var(--white); }
.footer a:hover { color: #DCEBE4; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__name { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--white); line-height: 1; margin-bottom: 6px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
html.a11y .footer { background: #000; color: #fff; }

/* Cookie-баннер */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 60; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(20, 32, 28, .14); padding: 16px; display: none; gap: 14px; flex-direction: column; font-size: 14px; line-height: 1.45; }
.cookie.is-visible { display: flex; }
.cookie .btn { min-height: 44px; }

/* Внутренние страницы */
.page-head { padding: 48px 0 32px; }
.page-head h1 { font-size: 46px; }
.page-head .lead { max-width: 640px; }

/* Прайс */
.price-nav { display: none; }
.price-group { margin-bottom: 40px; }
.price-group h2 { font-size: 24px; margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.price-table th, .price-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; background: var(--surface); }
.price-table th:first-child, .price-table td:first-child { padding-left: 14px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--surface); }
.price-table .code { color: var(--ink-soft); font-size: 12px; white-space: nowrap; display: none; }
.price-table .price { text-align: right; font-weight: 600; white-space: nowrap; padding-right: 14px; }
.price-note { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Пациентам */
.docs { display: flex; flex-direction: column; gap: 36px; max-width: 800px; }
.docs h2 { font-size: 26px; }
.docs ol, .docs ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.files { display: flex; flex-direction: column; gap: 10px; }
.files a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.files a:hover { background: var(--tint); color: var(--green-ink); }
.files svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.authorities { display: grid; gap: 18px; font-size: 14px; line-height: 1.5; }
.authorities b { display: block; font-weight: 600; margin-bottom: 2px; }
details { background: var(--surface); border-radius: var(--radius); padding: 0 22px; }
details summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 24px; color: var(--green); font-weight: 400; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 22px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__grid > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__grid > *:nth-child(2) { animation-delay: .1s; }

/* ---------- Планшет ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; --section: 96px; }
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  .hero h1 { font-size: 60px; }
  .hero__actions { flex-direction: row; }
  .hero .photo { height: 420px; }
  .grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .facts { gap: 16px; }
  .facts > div { padding: 26px 24px; }
  .facts__num { font-size: 46px; }
  .facts__label { font-size: 14px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .service { padding: 26px; gap: 10px; }
  .service__title { font-size: 21px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .why__item { padding: 24px; }
  .materials__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .map { height: 440px; }
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 440px; flex-direction: row; align-items: center; }
  .doctor dl { grid-template-columns: 180px minmax(0, 1fr); }
  .doctor dt { margin-top: 0; padding-top: 4px; }
  .price-table .code { display: table-cell; }
  .authorities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
  .stamp { width: 128px; height: 128px; right: -16px; bottom: -22px; }
  .stamp strong { font-size: 32px; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 1024px) {
  :root { --section: 112px; }
  body { padding-bottom: 0; }
  .header__inner { height: 76px; }
  .nav { display: flex; gap: 4px; }
  .header__phone { display: inline; }
  .header__book { display: inline-flex; min-height: 44px; padding: 0 22px; font-size: 15px; }
  .icon-btn { display: none; }
  .mobile-menu, .mobile-bar { display: none !important; }
  .hero { padding: 80px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: 72px; }
  .hero .photo { height: 520px; }
  .hero__actions { gap: 14px; }
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .service { padding: 28px 26px 24px; }
  .service__title { font-size: 20px; }
  .materials__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
  .split--form { align-items: start; }
  .doctor { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; }
  .doctor .photo { height: 260px; }
  .doctor--page { grid-template-columns: 5fr 7fr; gap: 64px; padding: 0; }
  .doctor--page .photo { height: 600px; }
  .doctor--page h2 { font-size: 40px; }
  .about p:first-of-type { font-size: 22px; }
  .quote { font-size: 30px; }
  .contacts__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .contacts__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .price-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .price-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; }
  .price-nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: var(--radius-sm); }
  .price-nav a:hover { color: var(--green-ink); background: var(--surface); }
  .price-note { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
  .page-head { padding: 80px 0 40px; }
  .page-head h1 { font-size: 68px; }
  .facts__num { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero__grid > * { animation: none; }
}

@media print {
  .header, .mobile-bar, .mobile-menu, .cookie, .footer__grid, .stamp { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* Карта до загрузки */
.map--lazy { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--surface-2); }
.map--lazy .map__note { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 360px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.map--lazy .map__note strong { color: var(--ink); font-size: 16px; }
.map--lazy .btn { margin-top: 6px; }
.map iframe { border: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }

/* ---------- Версия для слабовидящих (ГОСТ Р 52872-2012) ---------- */
html.a11y { --serif: var(--sans); }
html.a11y-size-1 { font-size: 112%; }
html.a11y-size-2 { font-size: 137%; }
html.a11y-size-3 { font-size: 162%; }
html.a11y body { line-height: 1.7; letter-spacing: .02em; }
html.a11y * { border-radius: 0 !important; box-shadow: none !important; transition: none !important; animation: none !important; text-shadow: none !important; }
html.a11y a { text-decoration: underline; }
html.a11y .stamp, html.a11y .hero .photo, html.a11y .cookie { display: none !important; }
html.a11y .btn { border: 2px solid currentColor; }
html.a11y-noimg img, html.a11y-noimg .photo, html.a11y-noimg iframe, html.a11y-noimg .map { display: none !important; }
/* Чёрным по белому */
html.a11y-scheme-bw { --bg: #fff; --surface: #fff; --surface-2: #fff; --tint: #fff; --ink: #000; --ink-soft: #000; --line: #000; --green: #000; --green-deep: #000; --green-ink: #000; --warm: #000; --white: #fff; }
html.a11y-scheme-bw .btn--primary, html.a11y-scheme-bw .icon-btn--phone { background: #000; color: #fff; }
html.a11y-scheme-bw .footer { background: #fff; color: #000; border-top: 2px solid #000; }
html.a11y-scheme-bw .footer a, html.a11y-scheme-bw .footer__name { color: #000; }
html.a11y-scheme-bw .card, html.a11y-scheme-bw .service, html.a11y-scheme-bw .doctor, html.a11y-scheme-bw .review, html.a11y-scheme-bw .why__item, html.a11y-scheme-bw .materials__list > div, html.a11y-scheme-bw .input, html.a11y-scheme-bw .textarea, html.a11y-scheme-bw details, html.a11y-scheme-bw .price-note, html.a11y-scheme-bw .contact-alt, html.a11y-scheme-bw .files a { border: 2px solid #000; }
/* Белым по чёрному */
html.a11y-scheme-wb { --bg: #000; --surface: #000; --surface-2: #000; --tint: #000; --ink: #fff; --ink-soft: #fff; --line: #fff; --green: #fff; --green-deep: #fff; --green-ink: #fff; --warm: #fff; --white: #000; }
html.a11y-scheme-wb body { background: #000; color: #fff; }
html.a11y-scheme-wb .btn--primary, html.a11y-scheme-wb .icon-btn--phone { background: #fff; color: #000; }
html.a11y-scheme-wb .btn--secondary { color: #fff; border-color: #fff; background: #000; }
html.a11y-scheme-wb .header, html.a11y-scheme-wb .mobile-bar, html.a11y-scheme-wb .mobile-menu, html.a11y-scheme-wb .section--tint, html.a11y-scheme-wb .section--surface, html.a11y-scheme-wb .a11y-panel { background: #000; }
html.a11y-scheme-wb .footer { background: #000; color: #fff; border-top: 2px solid #fff; }
html.a11y-scheme-wb .card, html.a11y-scheme-wb .service, html.a11y-scheme-wb .doctor, html.a11y-scheme-wb .review, html.a11y-scheme-wb .why__item, html.a11y-scheme-wb .materials__list > div, html.a11y-scheme-wb .input, html.a11y-scheme-wb .textarea, html.a11y-scheme-wb details, html.a11y-scheme-wb .price-note, html.a11y-scheme-wb .contact-alt, html.a11y-scheme-wb .files a { border: 2px solid #fff; background: #000; color: #fff; }
html.a11y-scheme-wb .price-table th { background: #000; color: #fff; }
/* Тёмно-синим по голубому */
html.a11y-scheme-bl { --bg: #9DD1FF; --surface: #9DD1FF; --surface-2: #9DD1FF; --tint: #9DD1FF; --ink: #063462; --ink-soft: #063462; --line: #063462; --green: #063462; --green-deep: #063462; --green-ink: #063462; --warm: #063462; --white: #9DD1FF; }
html.a11y-scheme-bl body { background: #9DD1FF; color: #063462; }
html.a11y-scheme-bl .btn--primary, html.a11y-scheme-bl .icon-btn--phone { background: #063462; color: #9DD1FF; }
html.a11y-scheme-bl .header, html.a11y-scheme-bl .mobile-bar, html.a11y-scheme-bl .mobile-menu, html.a11y-scheme-bl .section--tint, html.a11y-scheme-bl .section--surface, html.a11y-scheme-bl .a11y-panel { background: #9DD1FF; }
html.a11y-scheme-bl .footer { background: #9DD1FF; color: #063462; border-top: 2px solid #063462; }
html.a11y-scheme-bl .footer a, html.a11y-scheme-bl .footer__name { color: #063462; }
html.a11y-scheme-bl .card, html.a11y-scheme-bl .service, html.a11y-scheme-bl .doctor, html.a11y-scheme-bl .review, html.a11y-scheme-bl .why__item, html.a11y-scheme-bl .materials__list > div, html.a11y-scheme-bl .input, html.a11y-scheme-bl .textarea, html.a11y-scheme-bl details, html.a11y-scheme-bl .price-note, html.a11y-scheme-bl .contact-alt, html.a11y-scheme-bl .files a { border: 2px solid #063462; background: #9DD1FF; color: #063462; }
html.a11y-scheme-bl .price-table th { background: #9DD1FF; color: #063462; }

/* Панель доступности */
.a11y-panel { position: sticky; top: 64px; z-index: 49; background: var(--bg); border-bottom: 2px solid var(--ink); }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.a11y-panel__label { font-weight: 700; margin-right: 4px; }
.a11y-panel button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.a11y-panel [data-a11y-reset] { margin-left: auto; }
@media (min-width: 1024px) { .a11y-panel { top: 76px; } }

/* Сведения об организации */
.info { display: grid; grid-template-columns: 1fr; gap: 6px 24px; margin: 0; font-size: 16px; line-height: 1.55; }
.info dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 12px; }
.info dd { margin: 0; }
@media (min-width: 720px) { .info { grid-template-columns: 260px minmax(0, 1fr); } .info dt { margin-top: 0; padding-top: 3px; } }
.files a[aria-disabled="true"] { opacity: .6; cursor: default; }

/* Карта сайта */
.sitemap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.sitemap > li > a { font-weight: 600; font-size: 20px; }
.sitemap ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sitemap ul a { color: var(--ink); }
.sitemap ul a:hover { color: var(--green); }

/* Поиск */
.search { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.search .input { flex: 1; font-size: 18px; }
.search__results { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.search__results a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.search__results a:hover { border-color: var(--green); }
.search__page { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.search__snippet { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 720px) { .search { flex-direction: row; } }

/* Галерея документов (Пациентам) */
.docs-gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-gallery__item { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.docs-gallery__item img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.docs-gallery__item--qr { align-items: center; text-align: center; justify-content: center; }
.docs-gallery__item--qr img { width: 160px; border: 0; }
a.docs-gallery__item:hover { border-color: var(--green); color: var(--green-ink); }
@media (min-width: 720px) { .docs-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Без фотографий: первый экран одной колонкой, стикер в углу; карточки врачей — текстом */
.hero__grid { grid-template-columns: 1fr; position: relative; }
.hero .stamp { position: absolute; right: 8px; top: -8px; }
.doctor { grid-template-columns: 1fr; }
.doctor--page { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 719px) { .hero .stamp { position: static; transform: rotate(-6deg); margin: 8px 0 0 auto; width: 96px; height: 96px; } }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 760px); }
  .hero .stamp { right: 0; top: 0; }
  .doctor { grid-template-columns: 1fr; }
  .doctor--page { grid-template-columns: 1fr; }
}
