/* ==========================================================================
   СклифЛаб — дизайн-система (по ТЗ от 08.10.2026)
   Единые шрифты и кнопки, основной текст от 16 px, контрастные цвета.
   Заголовки — Unbounded, текст — Manrope (шрифты лежат на сайте, /fonts).
   ========================================================================== */
@import url('/fonts/fonts.css');

:root {
  --red: #e42945;
  --red-d: #c81f38;
  --red-soft: #fdecef;
  --ink: #15171c;
  --text: #2a2d34;
  --muted: #5d626d;
  --line: #e7e8ec;
  --bg: #f5f6f8;
  --white: #fff;
  --green: #1f8a4c;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(21, 23, 28, .07);
  --shadow-h: 0 16px 40px rgba(21, 23, 28, .12);
  --wrap: 1240px;
  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Unbounded', 'Manrope', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Кнопки: одна система ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; border: 2px solid var(--red); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-ghost:hover { background: #ebecef; border-color: #ebecef; }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Верхняя строка ---------- */
.topbar { background: var(--ink); color: #d9dbe0; font-size: 15px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; flex-wrap: wrap; max-width: 1360px; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .ico { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 18px; height: 18px; flex: none; }
.topbar-phone { font-weight: 800; color: #fff; font-size: 16px; }
.msg-links { display: flex; gap: 8px; }
.msg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 14px; color: #fff; }
.msg:hover { background: rgba(255,255,255,.2); }
.msg svg { width: 16px; height: 16px; }
.a11y-btn { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; height: 30px; padding: 0 12px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.a11y-btn:hover { background: rgba(255,255,255,.12); }

/* ---------- Шапка (закреплена при прокрутке) ---------- */
.site-header { position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; max-width: 1360px; }
.logo { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-head); font-weight: 700; font-size: 25px; color: var(--ink); letter-spacing: -.02em; flex: none; }
.logo .flask { width: 26px; height: 30px; color: var(--red); margin: 0 2px; }
.logo .lab { color: var(--red); }
.main-nav { flex: 1; }
.main-nav ul { display: flex; list-style: none; gap: 2px; justify-content: center; flex-wrap: nowrap; }
.main-nav a { display: block; padding: 10px 10px; border-radius: 10px; font-weight: 600; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.main-nav a:hover { background: var(--bg); }
.main-nav a.active { color: var(--red); background: var(--red-soft); }
.header-actions { display: flex; gap: 10px; flex: none; }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ''; }
.burger span::before { position: absolute; top: -7px; } .burger span::after { position: absolute; top: 7px; }

/* ---------- Секции ---------- */
section { padding: 56px 24px; max-width: var(--wrap); margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
h2.section-title, .section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
h2.section-title { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 560px; }
.link-more { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { text-decoration: underline; }
.band { background: var(--bg); border-radius: 28px; }
.page-title { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; margin-bottom: 26px; }

/* ---------- Первый экран ---------- */
.hero { padding: 48px 24px 26px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.55vw, 64px); letter-spacing: -.03em; line-height: 1.04; text-transform: uppercase; }
.hero h1 .red { display: block; }
@media (min-width: 769px) { .hero h1 .l1 { white-space: nowrap; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 28px; font-size: 19px; font-weight: 600; color: var(--ink); }
.hero-facts span { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.quick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick-btn { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg); font-weight: 800; font-size: 18px; color: var(--ink); transition: .2s; }
.quick-btn svg { width: 30px; height: 30px; color: var(--red); }
.quick-btn:hover { background: var(--red); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-h); }
.quick-btn:hover svg { color: #fff; }

.search-box { margin-top: 26px; background: var(--ink); border-radius: 24px; padding: 26px; color: #fff; }
.search-box label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.search-line { display: flex; gap: 10px; background: #fff; border-radius: 999px; padding: 6px; }
.search-line input { flex: 1; border: 0; outline: 0; padding: 0 20px; font-size: 18px; min-width: 0; color: var(--ink); background: transparent; }
.search-line .btn { min-height: 54px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 15px; }
.chip:hover { background: var(--red); }
.chips-light .chip { background: var(--bg); color: var(--ink); }
.chips-light .chip:hover { background: var(--red); color: #fff; }
.adv-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.adv { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--red-soft); color: var(--ink); font-weight: 700; font-size: 16px; }
.adv svg { width: 18px; height: 18px; color: var(--red); }
.adv-strong { background: var(--red); color: #fff; } .adv-strong svg { color: #fff; }
.hero-help { margin-top: 16px; font-size: 17px; color: var(--muted); }
.hero-help a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Две зоны ---------- */
.zones { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; }
.zone { border-radius: 24px; padding: 30px; }
.zone-left { background: var(--bg); }
.zone-right { border: 1px solid var(--line); }
.zone h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 18px; }
.nav-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.nav-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 14px; font-weight: 700; color: var(--ink); transition: .2s; }
.nav-list a small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; margin-top: 2px; }
.nav-list a:hover { box-shadow: var(--shadow-h); color: var(--red); }
.nav-list .arr { color: var(--red); font-size: 22px; flex: none; }
.answers details { border-bottom: 1px solid var(--line); }
.answers details:last-child { border-bottom: 0; }
.answers summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: '+'; color: var(--red); font-size: 26px; line-height: 1; flex: none; }
.answers details[open] summary::after { content: '–'; }
.answers .ans { padding: 0 0 18px; color: var(--text); }
.answers .ans p + p { margin-top: 8px; }
.answers .ans a { color: var(--red); font-weight: 700; }

/* ---------- Два сценария ---------- */
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scenario { position: relative; overflow: hidden; border-radius: 28px; padding: 36px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; color: #fff; transition: .25s; }
.scenario:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.scenario-a { background: var(--red); }
.scenario-b { background: var(--ink); }
.scenario h3 { color: #fff; font-family: var(--font-head); font-size: 30px; }
.scenario ul { list-style: none; display: grid; gap: 6px; font-size: 17px; opacity: .92; }
.scenario ul li::before { content: '✓  '; font-weight: 800; }
.scenario .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.scenario .go span { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.scenario-b .go span { color: var(--ink); }
.scenario-photos { position: absolute; right: -10px; bottom: -10px; display: flex; }
.scenario-photos img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--ink); margin-left: -22px; background: #ddd; }

/* ---------- Карточки анализов с ценой ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: .2s; }
.price-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.price-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.price-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--muted); }
.price-total { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.price-total b { color: var(--ink); }
.price-total .sum { display: block; font-size: 24px; font-weight: 800; color: var(--red); margin-top: 2px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--muted); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-green { background: #e6f5ec; color: var(--green); }

/* ---------- Комплексы ---------- */
.complex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.complex-card { border-radius: 22px; background: var(--bg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.complex-card h3 { font-family: var(--font-head); font-size: 20px; }
.complex-card .for { color: var(--muted); font-size: 16px; }
.complex-card ul { padding-left: 18px; font-size: 15px; color: var(--text); display: grid; gap: 4px; }
.complex-card .price { font-size: 28px; font-weight: 800; color: var(--red); margin-top: auto; }
.complex-card .note { font-size: 14px; color: var(--muted); }

/* ---------- Врачи ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.doctor-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: .2s; }
.doctor-card:hover { box-shadow: var(--shadow-h); }
.doctor-card img { width: 100%; height: 270px; object-fit: cover; object-position: top center; background: var(--bg); }
.doctor-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doctor-body .name { font-weight: 800; font-size: 18px; color: var(--ink); line-height: 1.3; }
.doctor-body .pos { font-size: 15px; color: var(--red); font-weight: 600; line-height: 1.35; }
.doc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-price { font-size: 15px; color: var(--muted); }
.doc-price b { color: var(--ink); font-size: 18px; }
.doctor-body .btns { margin-top: auto; display: grid; gap: 8px; padding-top: 6px; }

/* ---------- Диагностика / выезд ---------- */
.diag { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.diag-main { background: var(--ink); color: #fff; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.diag-main h3 { color: #fff; font-family: var(--font-head); font-size: 28px; }
.diag-list { list-style: none; display: grid; gap: 10px; }
.diag-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 16px; }
.diag-list li b { white-space: nowrap; }
.diag-side { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.home-card { border-radius: 28px; padding: 30px; background: var(--red); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.home-card h3 { color: #fff; font-family: var(--font-head); font-size: 24px; }
.home-card ul { list-style: none; display: grid; gap: 6px; font-weight: 700; }
.home-card ul li::before { content: '✓  '; }
.ecg-card { border-radius: 28px; padding: 30px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.ecg-card h3 { font-family: var(--font-head); font-size: 22px; }

/* ---------- Выезд на дом (полоса) ---------- */
.visit-band { padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.visit-band .why-grid { grid-template-columns: 1fr 1fr; }
.visit-box { background: #fff; border-radius: 22px; padding: 26px; display: grid; gap: 12px; }
.band-pad { padding: 48px 36px; }

/* ---------- Почему мы / доверие ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why-6 { grid-template-columns: repeat(3, 1fr); }
.why-card { background: var(--bg); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.why-card .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 22px; margin: 0; }
.why-card .ic svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.why-card p { font-size: 15px; color: var(--muted); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--red); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }
.license-card { background: var(--bg); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.license-card h3 { font-family: var(--font-head); font-size: 22px; }

/* ---------- Шаги визита ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
.step { border-radius: var(--radius); background: var(--bg); padding: 24px; position: relative; }
.step::before { counter-increment: st; content: counter(st); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Адрес ---------- */
.address { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.address-info { background: var(--bg); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.address-info h3 { font-family: var(--font-head); font-size: 22px; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.schedule td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.map-wrap { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Акции (старые классы, обновлённый вид) ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.promo-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; transition: .2s; }
.promo-card:hover { box-shadow: var(--shadow-h); }
.promo-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-top { background: var(--red); color: #fff; font-weight: 800; font-size: 18px; padding: 22px; line-height: 1.3; }
.promo-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.promo-body h3 { font-size: 19px; font-weight: 800; }
.promo-desc { font-size: 15px; color: var(--muted); flex: 1; }
.promo-price { font-size: 26px; font-weight: 800; color: var(--red); }

/* ---------- Каталог и категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: .2s; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cat-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.cat-card .name { font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.3; }
.cat-card .count { color: var(--muted); font-size: 15px; }
.search-form { display: flex; gap: 10px; margin-bottom: 22px; max-width: 640px; background: var(--bg); padding: 6px; border-radius: 999px; }
.search-form input { flex: 1; padding: 0 18px; border: 0; background: transparent; font-size: 17px; outline: 0; min-width: 0; }
.analysis-list { display: flex; flex-direction: column; gap: 10px; }
.analysis-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: .15s; background: #fff; }
.analysis-card:hover { border-color: var(--red); }
.analysis-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.analysis-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 15px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.analysis-meta .price { color: var(--red); font-weight: 800; white-space: nowrap; font-size: 18px; }
.analysis-meta .full { font-size: 14px; color: var(--muted); white-space: nowrap; }
.analysis-details { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 16px; color: var(--text); }
.analysis-details p { margin-bottom: 8px; }
.analysis-details .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.crumb { padding: 18px 24px 0; font-size: 15px; color: var(--muted); max-width: var(--wrap); margin: 0 auto; }
.crumb a:hover { color: var(--red); }
.notice { background: var(--red-soft); border-radius: 14px; padding: 14px 18px; font-size: 16px; color: var(--text); margin-bottom: 20px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); }
.price-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td.num { text-align: right; white-space: nowrap; font-weight: 800; color: var(--ink); }
.price-table tr:hover td { background: #fafafb; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Страница врача / акции ---------- */
.detail-hero { display: flex; gap: 30px; flex-wrap: wrap; padding: 30px; background: var(--bg); border-radius: 24px; margin-bottom: 32px; }
.detail-hero img { width: 240px; height: 290px; object-fit: cover; object-position: top; border-radius: 18px; background: #e9e9ee; flex-shrink: 0; }
.detail-hero-body { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.detail-hero-body h1 { font-family: var(--font-head); font-size: 30px; }
.detail-hero-body .pos { color: var(--red); font-weight: 700; font-size: 18px; }
.detail-price-box { background: #fff; border-radius: 14px; padding: 14px 20px; display: inline-block; }
.detail-price-box .label { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.detail-price-box .value { font-size: 22px; font-weight: 800; color: var(--red); }
.detail-section { max-width: 860px; }
.detail-section h2 { font-size: 22px; margin: 28px 0 12px; font-family: var(--font-head); }
.detail-section ul { padding-left: 20px; margin-bottom: 8px; background: none !important; }
.detail-section li { margin-bottom: 6px; }
.detail-section span[style] { font-size: inherit !important; font-weight: 800; }
.placeholder-note { display: inline-block; background: #fff3cd; color: #6d5200; font-size: 14px; padding: 4px 10px; border-radius: 8px; margin-left: 8px; }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review-card { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.review-card .author { font-weight: 800; margin-top: 10px; }
.reviews-empty { border: 2px dashed var(--line); border-radius: 24px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.reviews-empty h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }

/* ---------- Подвал ---------- */
footer { background: var(--ink); color: #c7cad1; padding: 56px 24px 30px; font-size: 15px; margin-top: 40px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer .logo { color: #fff; }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { display: grid; gap: 10px; margin-top: 16px; }
.footer-contacts .big { color: #fff; font-size: 20px; font-weight: 800; }
.footer-bottom { max-width: var(--wrap); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9a9ea8; }
.footer-links { display: none; }

/* ---------- Мобильная нижняя панель ---------- */
.mobile-nav { display: none; }
.float-book-btn { display: none; }

/* ---------- Модальное окно записи ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,16,20,.55); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 24px; padding: 30px; max-width: 460px; width: 100%; position: relative; max-height: 92vh; overflow: auto; }
.modal-box h3 { margin-bottom: 14px; font-size: 24px; font-family: var(--font-head); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; color: var(--muted); background: var(--bg); border: none; }
.booking-form { display: flex; flex-direction: column; gap: 12px; }
.booking-form input, .booking-form select, .booking-form textarea { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; }
.booking-form input:focus, .booking-form select:focus { outline: 2px solid var(--red); border-color: transparent; }
.booking-form .btn { width: 100%; }
.booking-note { background: var(--red-soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--text); margin-bottom: 14px; line-height: 1.45; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--red); }
.consent-check a { color: var(--red); }
.form-fine { font-size: 13px; color: var(--muted); margin: 0; }
.form-fine a { color: var(--red); }

.diag-side > *, .zones > *, .diag > *, .trust > *, .address > *, .scenarios > *, .visit-band > * { min-width: 0; }

/* ---------- Мобильное меню ---------- */
.drawer { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 8px; font-size: 15px; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 1024px) {
  .main-nav, .header-actions { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .site-header .wrap { min-height: 66px; }
  .drawer.open { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(15,16,20,.5); }
  .drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 22px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
  .drawer-panel a.nav-a { display: block; padding: 14px 6px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .drawer-panel .btn { margin-top: 10px; }
  .drawer-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); font-size: 24px; cursor: pointer; }
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .zones, .diag, .trust, .address { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid, .complex-grid, .why-6 { grid-template-columns: repeat(2, 1fr); }
  .visit-band { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 70px; }
  .topbar .wrap { justify-content: center; gap: 10px; padding: 8px 16px; }
  .topbar-left .hide-m { display: none; }
  .topbar-right { gap: 10px; justify-content: center; }
  section, .hero { padding-left: 16px; padding-right: 16px; }
  section { padding-top: 40px; padding-bottom: 40px; }
  .wrap { padding: 0 16px; }
  h2.section-title, .section-head h2 { font-size: 26px; }
  .page-title { font-size: 30px; }
  .hero { padding-top: 30px; }
  .hero-facts { font-size: 16px; gap: 8px 16px; }
  .quick-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-btn { min-height: 96px; font-size: 17px; padding: 16px; }
  .search-box { padding: 18px; border-radius: 20px; }
  .search-line { flex-direction: column; border-radius: 18px; }
  .search-line input { padding: 14px 14px; }
  .search-line .btn { width: 100%; }
  .scenarios { grid-template-columns: 1fr; }
  .scenario { min-height: 0; padding: 26px; }
  .scenario h3 { font-size: 24px; }
  .scenario-photos { display: none; }
  .steps { grid-template-columns: 1fr; }
  .price-grid, .complex-grid, .why-6, .visit-band .why-grid { grid-template-columns: 1fr; }
  .visit-band, .band-pad { padding: 22px 16px; }
  .band { border-radius: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .diag-main, .home-card, .ecg-card, .zone, .address-info, .license-card { padding: 22px; }
  .diag-main h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 20px; }
  .detail-hero img { width: 100%; height: 300px; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { flex: 1; text-align: center; padding: 9px 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--red); }
  .mobile-nav a.book { color: #fff; background: var(--red); }
}

/* ==========================================================================
   Версия для слабовидящих: крупнее текст, максимальный контраст, без полупрозрачности
   ========================================================================== */
body.a11y { font-size: 21px; line-height: 1.6; letter-spacing: .01em; }
body.a11y, body.a11y .muted, body.a11y p, body.a11y .meta, body.a11y .doc-price, body.a11y .section-head p, body.a11y .lead, body.a11y .why-card p, body.a11y .step p, body.a11y .stat span, body.a11y .hero-help { color: #000 !important; }
body.a11y .quick-btn, body.a11y .why-card, body.a11y .step, body.a11y .zone-left, body.a11y .complex-card, body.a11y .address-info, body.a11y .license-card, body.a11y .ecg-card { background: #fff; border: 2px solid #000; }
body.a11y .btn { font-size: 19px; min-height: 58px; }
body.a11y .main-nav a, body.a11y .nav-list a, body.a11y .answers summary { font-size: 20px; }
body.a11y img:not(.keep) { filter: grayscale(1); }
body.a11y a:focus, body.a11y button:focus { outline: 3px solid #000; outline-offset: 2px; }
