/* MIRA — палитра Brick Ember / Yale Blue / Bright Sky / Ghost White / Ink Black */
:root {
  --brick: #b80c09;
  --blue-900: #040f16;
  --blue-700: #0b4f6c;
  --blue-600: #01baef;
  --blue-400: #55d3f4;
  --blue-200: #b7eaf8;
  --blue-100: #e6f9fe;
  --blue-50: #f4fdff;
  --ink: #040f16;
  --ink-2: #315b6e;
  --line: #d5eaf1;
  --white: #fbfbff;
  --ok: #0b4f6c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(4, 15, 22, .08), 0 8px 24px rgba(4, 15, 22, .10);
  --wrap: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(23px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--white); color: var(--blue-700); padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: var(--white); color: var(--blue-700); border-color: var(--blue-200); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* ---------- шапка ---------- */
.topline {
  background: var(--brick); color: var(--white);
  font-size: 14px; padding: 8px 0;
}
.topline .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.topline .wrap > span + span { border-left: 1px solid rgba(251, 251, 255, .42); padding-left: 22px; }
.topline a { color: var(--white); }
.topline .grow { margin-left: auto; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 251, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--blue-900); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 18px; letter-spacing: -.02em; }
.logo-text span { font-size: 12px; font-weight: 500; color: var(--ink-2); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; font-size: 18px; color: var(--blue-900); white-space: nowrap; }
.header-phone:hover { text-decoration: none; color: var(--blue-600); }
.header-phone small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }

/* ---------- навигация ---------- */
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--blue-900); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle-icon { display: block; width: 24px; height: 24px; overflow: visible; }
.nav-toggle-line {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center;
  transition: transform .18s ease, opacity .12s ease;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-line-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-line-middle { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-line-bottom { transform: translateY(-5px) rotate(-45deg); }

.nav { border-bottom: 1px solid var(--line); background: var(--white); }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 13px 15px; font-size: 15.5px; font-weight: 550; color: var(--ink);
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { color: var(--blue-600); text-decoration: none; }
.nav-list > li.has-sub > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 288px; z-index: 30;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.nav-list > li:hover .submenu,
.nav-list > li:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink);
}
.submenu a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.submenu li.is-hub a { font-weight: 600; color: var(--blue-700); }
.submenu li.is-hub { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }

/* ---------- hero ---------- */
.hero {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 46px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 44ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.fact b { display: block; font-size: 24px; color: var(--blue-700); letter-spacing: -.02em; }
.fact span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- секции ---------- */
.section { padding: 52px 0; }
.section.alt { background: var(--blue-50); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 26px; max-width: 62ch; }
.section-head p { color: var(--ink-2); margin: 10px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.card h3 { color: var(--blue-900); }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; counter-increment: s;
}
.step::before {
  content: counter(s) '.'; display: block; margin-bottom: 10px;
  color: var(--blue-700); font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 5px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }

.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 22px; color: var(--ink); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 12px; height: 0; border-top: 1px solid var(--blue-400);
}

/* ---------- контент-страница ---------- */
.page-head { background: var(--blue-50); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; color: var(--blue-400); margin-right: 8px; }
.page-head .lead { font-size: 18.5px; color: var(--ink-2); max-width: 66ch; margin: 14px 0 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 44px 60px; }
.content > *:first-child { margin-top: 0; }
.content h2 { margin: 36px 0 14px; }
.content h3 { margin: 24px 0 8px; }
.content > p { max-width: 72ch; }

.price-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 16px; }
.price-table caption {
  text-align: left; font-weight: 650; font-size: 19px; color: var(--blue-900);
  padding: 0 0 12px;
}
.price-table th, .price-table td {
  text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line);
}
.price-table th { font-weight: 550; }
.price-table td { text-align: right; white-space: nowrap; font-weight: 650; color: var(--blue-700); }
.price-table tbody tr:hover { background: var(--blue-50); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; text-align: left; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 0 18px;
}
.faq details[open] { border-color: var(--blue-200); background: var(--blue-50); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; gap: 12px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; margin-left: auto; margin-top: .35em;
  width: 8px; height: 8px; border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600); transform: rotate(45deg);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 16px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
}

/* ---------- сайдбар ---------- */
.sidebar { display: grid; gap: 16px; align-content: start; position: sticky; top: 92px; }
.side-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white);
}
.side-card h3 { font-size: 17px; margin-bottom: 12px; }
.side-card.accent { background: var(--blue-900); color: var(--white); border-color: var(--blue-900); }
.side-card.accent h3 { color: var(--white); }
.side-card.accent p { color: var(--blue-200); font-size: 15px; }
.side-card.accent .btn { width: 100%; background: var(--white); color: var(--blue-700); }
.side-card.accent .btn:hover { background: var(--blue-100); }
.side-phone { display: block; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.side-phone:hover { text-decoration: none; }
.side-nav { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.side-nav li + li { border-top: 1px solid var(--line); }
.side-nav a { display: block; padding: 9px 0; color: var(--ink); }
.side-nav a:hover { color: var(--blue-600); text-decoration: none; }
.side-nav .is-current a { color: var(--blue-700); font-weight: 650; }

/* ---------- врачи / отзывы / статьи ---------- */
.doctors, .reviews, .articles { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.doctor, .review, .article {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white);
}
.doctor .role { color: var(--blue-700); font-weight: 600; font-size: 15px; }
.doctor .exp { color: var(--ink-2); font-size: 14.5px; }
.doctor p { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue-100);
  color: var(--blue-700); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.review blockquote { margin: 0; font-size: 16px; }
.review footer { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.review footer b { color: var(--ink); }
.article h3 { margin-bottom: 6px; }
.article p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white);
}
.contact-card dt { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-size: 18px; font-weight: 600; }
.contact-card dd a { display: inline-block; padding: 5px 0; }
.map-stub {
  border: 1px dashed var(--blue-400); border-radius: var(--radius); background: var(--blue-50);
  min-height: 260px; display: grid; place-items: center; color: var(--blue-700); font-weight: 600;
  text-align: center; padding: 20px;
}

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: var(--blue-900); color: var(--white);
  border-radius: var(--radius); padding: 34px; display: grid;
  grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--blue-200); margin: 8px 0 0; max-width: 52ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-700); }
.cta-band .btn-primary:hover { background: var(--blue-100); }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- подвал ---------- */
.footer {
  background: var(--blue-900); color: var(--blue-200); padding: 44px 0 26px;
  margin-top: 60px; font-size: 15px;
}
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer .brand-line {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-weight: 700; font-size: 19px; margin-bottom: 12px;
}
.footer .brand-line img { flex: none; border-radius: 50%; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 18px;
  font-size: 13.5px; color: rgba(183, 234, 248, .86);
}
.footer-note p { margin: 0 0 8px; }

/* ---------- логотип в меню ---------- */
.nav-in { display: flex; align-items: center; gap: 16px; }
.nav-list { flex: 1 1 auto; }
.nav-logo { flex: none; margin-left: auto; line-height: 0; }
.nav-logo img { width: 44px; height: 44px; border-radius: 50%; }

/* ---------- фото ---------- */
.hero-media, .page-head-grid figure { margin: 0; }
.hero-media img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); object-fit: cover;
}
.page-head-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 32px; align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}

/* ---------- форма заявки ---------- */
.lead-block { background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 20px; }
.lead-block h4 { margin-bottom: 14px; }
.lead-form .field { margin-bottom: 12px; }
.lead-form label { display: block; font-size: 13.5px; margin-bottom: 5px; color: inherit; }
.lead-form input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.lead-form input::placeholder { color: #527284; }
.lead-form input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; }
.lead-form input[aria-invalid='true'] { border-color: #c0392b; }
.lead-form .btn { width: 100%; }
.btn-label-mobile { display: none; }
.lead-horizontal { padding: 24px 28px; }
.lead-horizontal h4 { margin: 0 0 16px; font-size: 24px; }
.lead-horizontal .lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.lead-horizontal .field { margin: 0; }
.lead-horizontal .lead-note { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 14px; }
.lead-horizontal .btn { width: auto; min-width: 150px; }
.lead-note { font-size: 13px; margin: 10px 0 0; color: rgba(183, 234, 248, .9); }
.lead-msg { font-size: 14px; margin: 10px 0 0; }
.lead-msg.err { color: #ffb4a8; }
.section .lead-block { background: var(--blue-50); border: 1px solid var(--line); }
.section .lead-note { color: var(--ink-2); }

/* ---------- адаптив ---------- */
/* Смотрите также */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 4px; }
.related a {
  display: block; padding: 15px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.related a:hover, .related a:focus-visible {
  border-color: var(--blue-400); box-shadow: var(--shadow); transform: translateY(-1px);
}
.related b { display: block; color: var(--blue-700); font-size: 16px; margin-bottom: 4px; }
.related span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .cards, .cards-2, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-media img { max-height: 380px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 8px 0 14px; }
  .nav-list > li > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-list > li.has-sub > a::after { float: right; margin-top: 8px; }
  .submenu {
    position: static; opacity: 0; visibility: hidden; transform: none; max-height: 0; overflow: hidden;
    box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 10px 12px;
    min-width: 0;
  }
  .nav-list > li:focus-within .submenu,
  .nav-list > li.is-expanded .submenu { opacity: 1; visibility: visible; max-height: 900px; }
  .submenu li.is-hub { border-color: var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: 26px; }
  .contact-grid, .doctors, .reviews, .articles, .related { grid-template-columns: 1fr; }
  .topline { display: none; }
  .nav-logo { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer li { margin-bottom: 0; }
  .footer li a { display: inline-block; padding: 8px 0; }
  .crumbs a { display: inline-block; padding: 7px 0; }
  .crumbs ol { gap: 6px 8px; }
  .price-note a, .content li a { padding: 2px 0; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .header-in { min-height: 64px; gap: 12px; }
  .hero-grid, .page-head-grid { gap: 24px; }
  .hero .facts { margin-top: 24px; }
  .hero-actions { gap: 10px; }
  .section { padding: 42px 0; }
  .layout { padding-block: 30px 44px; }
  .card, .step, .fact { padding: 18px; }
  .cards, .cards-2, .steps, .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 30px; }
  .section { padding: 38px 0; }
  .price-table th, .price-table td { padding: 11px 8px; font-size: 15px; }
  .topline .wrap > span + span { border-left: 0; padding-left: 0; }
  .lead-block { padding: 16px; }
  .lead-horizontal .lead-form { grid-template-columns: 1fr; }
  .lead-horizontal .lead-note { grid-column: auto; }
  .lead-horizontal .btn { width: 100%; }
  .btn-label-wide { display: none; }
  .btn-label-mobile { display: inline; }
}

.page-head-cta { margin-top: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 15, 22, .68); }
.lead-modal-dialog { position: relative; width: min(100%, 560px); max-height: calc(100vh - 36px); overflow: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(4, 15, 22, .3); }
.lead-modal-form { padding: 28px; background: var(--white); }
.lead-modal-form h4 { font-size: 26px; color: var(--blue-900); }
.lead-modal-form .lead-note { color: var(--ink-2); }
.lead-modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue-100); cursor: pointer; }
.lead-modal-close::before, .lead-modal-close::after { content: ''; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px; background: var(--blue-900); transform: rotate(45deg); }
.lead-modal-close::after { transform: rotate(-45deg); }
body.modal-open { overflow: hidden; }

/* ---------- цены детокса ---------- */
.relief-prices { border-bottom: 1px solid var(--line); }
.relief-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.relief-price-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.relief-price-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.relief-price-top h3 { max-width: 22ch; font-size: 18px; }
.relief-price-top strong { flex: none; color: var(--blue-700); font-size: 22px; }
.relief-price-label { margin: 8px 0 14px; color: var(--blue-700); font-size: 14px; font-weight: 650; }
.relief-price-card ul { flex: 1; margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.relief-price-card li + li { margin-top: 7px; }
.relief-price-card .btn { align-self: start; }
.relief-price-note { margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- отзывы пациентов ---------- */
.reviews-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.reviews-heading h2 { margin: 0 0 6px; }
.reviews-heading p { margin: 0; color: var(--ink-2); }
.reviews-controls { display: flex; gap: 8px; }
.review-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--blue-700); cursor: pointer; }
.review-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-arrow:hover, .review-arrow:focus-visible { border-color: var(--blue-400); background: var(--blue-100); }
.review-arrow:disabled { opacity: .38; cursor: default; background: var(--white); border-color: var(--line); }
.patient-review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--blue-400) var(--blue-100); scrollbar-width: thin; padding: 2px 1px 12px; }
.patient-review-track::-webkit-scrollbar { height: 6px; }
.patient-review-track::-webkit-scrollbar-track { background: var(--blue-100); border-radius: 999px; }
.patient-review-track::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 999px; }
.patient-review { min-height: 245px; display: flex; flex-direction: column; scroll-snap-align: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.patient-review-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.review-source { color: #1e6cc7; font-size: 13px; font-weight: 700; }
.review-source:hover { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.review-stars { color: #e7a21a; letter-spacing: 0; }
.patient-review blockquote { flex: 1; margin: 18px 0; color: var(--ink); font-size: 15.5px; }
.patient-review footer { display: flex; gap: 11px; align-items: center; }
.review-avatar { width: 38px; height: 38px; display: grid; flex: none; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 700; }
.patient-review footer b, .patient-review footer small { display: block; }
.patient-review footer b { font-size: 14px; }
.patient-review footer small { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; }
.review-source-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.review-source-links > span { font-weight: 600; }
.review-source-links a { font-weight: 650; text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 4px; }
.review-source-links a:hover { text-decoration-color: currentColor; }

@media (max-width: 860px) {
  .relief-price-grid { grid-template-columns: 1fr; }
  .patient-review-track { grid-auto-columns: minmax(280px, 82vw); }
}
@media (max-width: 560px) {
  .relief-price-top { display: block; }
  .relief-price-top strong { display: block; margin-top: 8px; }
  .relief-price-card .btn { width: 100%; }
  .reviews-heading { align-items: center; }
  .reviews-heading p { font-size: 14px; }
  .patient-review-track { grid-auto-columns: minmax(260px, 86vw); }
  .review-source-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .lead-modal-form { padding: 24px 18px 20px; }
  .lead-modal-form h4 { padding-right: 38px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .header, .nav, .topline, .sidebar, .cta-band, .nav-toggle { display: none !important; }
  .layout { grid-template-columns: minmax(0, 1fr); }
}
