/* 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: 'Montserrat', -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; }

.floating-consult {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
}
.floating-consult-desktop {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px; border: 0; border-radius: 999px; background: var(--brick); color: var(--white);
  box-shadow: 0 8px 22px rgba(4, 15, 22, .2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.floating-consult-desktop:hover {
  background: #920a08; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(4, 15, 22, .25);
}
.floating-consult-mobile { display: none; }

/* ---------- шапка ---------- */
.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,
.nav-list > li > .nav-parent {
  display: block; padding: 13px 15px; font: inherit; font-size: 15.5px; font-weight: 550; line-height: inherit; color: var(--ink);
}
.nav-list > li > .nav-parent {
  width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(1, 186, 239, .14);
}
.nav-list > li > a:hover,
.nav-list > li.is-active > a,
.nav-list > li.is-active > .nav-parent { color: var(--blue-600); text-decoration: none; }
.nav-list > li.has-sub > .nav-parent::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); transition: transform .14s ease;
}
.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.is-expanded .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-list > li > .nav-parent:hover { color: var(--blue-600); }
  .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; }
.nav-contact { display: none; }

/* ---------- 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); }
.service-facts-section { padding-block: 36px; }

/* ---------- секции ---------- */
.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); }
.price-code-note { margin: -2px 0 24px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.price-table-wrap { max-width: 100%; margin-bottom: 14px; overflow-x: auto; }
.price-table-detailed { min-width: 720px; margin-bottom: 0; }
.price-table-detailed thead th {
  color: var(--ink-2); font-size: 13px; font-weight: 650; letter-spacing: .02em;
}
.price-table-detailed .price-code {
  text-align: left; color: var(--ink-2); font-size: 14px; font-weight: 650; white-space: nowrap;
}
.price-table-detailed .price-value { text-align: right; color: var(--blue-700); white-space: nowrap; }
.price-table-detailed .price-action { text-align: right; }
.price-details { color: var(--blue-700); font-size: 14px; font-weight: 700; white-space: nowrap; }
.price-details:hover { color: var(--blue-600); }

.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;
}

/* ---------- страница благодарности ---------- */
.thanks-page { padding: 64px 0; }
.thanks-card {
  max-width: 900px; margin: 0 auto; padding: 38px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: center;
}
.thanks-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: 28px; font-weight: 700;
}
.thanks-lead { max-width: 62ch; margin: 14px auto 24px; color: var(--ink-2); }
.thanks-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.thanks-note { margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }
.thanks-location { max-width: 760px; margin: 34px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.thanks-location p { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.thanks-location span { color: var(--ink-2); }
.thanks-map { display: block; width: 100%; border: 0; border-radius: var(--radius-sm); }

/* ---------- 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; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a, .footer-social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
}
.footer-socials a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.footer-socials img { width: 24px; height: 24px; object-fit: contain; }

/* ---------- строка меню ---------- */
.nav-in { display: flex; align-items: center; gap: 16px; }
.nav-list { flex: 1 1 auto; }

/* ---------- фото ---------- */
.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 .captcha-container { display: none; width: 100%; min-width: 0; margin: 0; }
.lead-form .captcha-container.is-visible { display: block; margin-top: 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 .lead-form.is-captcha-active { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(280px, 300px); }
.lead-horizontal .captcha-container { grid-column: auto; }
.lead-horizontal .captcha-container.is-visible { margin-top: 0; }
body.captcha-open .floating-consult { visibility: hidden; opacity: 0; pointer-events: none; }
.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); }

/* ---------- главная: доверие, процесс и показатели ---------- */
.trust-section { border-top: 1px solid var(--line); background: var(--blue-50); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-item {
  min-height: 210px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: 0 1px 0 rgba(4, 15, 22, .03);
}
.trust-item > span { display: block; margin-bottom: 30px; color: var(--blue-600); font-size: 13px; font-weight: 700; }
.trust-item h3 { margin-bottom: 8px; font-size: 17px; }
.trust-item p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.work-section { overflow: hidden; }
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 14px; }
.work-step {
  min-height: 260px; display: flex; flex-direction: column; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.work-step-label {
  display: block; color: var(--blue-600); font-size: clamp(44px, 4.5vw, 62px);
  margin-bottom: 38px; font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: .88; letter-spacing: -.065em;
}
.work-step h3 { min-height: 44px; margin: 0 0 8px; font-size: 18px; }
.work-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.metrics-section { background: var(--white); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { min-height: 160px; padding: 25px; background: var(--white); }
.metric strong { display: block; margin-bottom: 22px; color: var(--blue-700); font-size: clamp(29px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; }
.metric p { max-width: 30ch; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- срочная форма ---------- */
.urgent-help { padding-top: 20px; }
.urgent-help-panel {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; padding: 36px;
  border-radius: var(--radius); background: var(--blue-900); color: var(--white);
}
.urgent-help-copy > p { max-width: 56ch; margin: 12px 0 22px; color: var(--blue-200); }
.urgent-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
.urgent-benefits li { position: relative; margin: 0; padding-left: 22px; color: var(--white); font-size: 14.5px; }
.urgent-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-400); font-weight: 700; }
.urgent-help .urgent-lead-form { align-self: start; padding: 24px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.urgent-help .urgent-lead-form h4 { color: var(--white); }
.urgent-help .urgent-lead-form .lead-note { color: var(--blue-200); }

/* ---------- команда ---------- */
.team-section { border-block: 1px solid var(--line); background: var(--blue-50); }
.team-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 16px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.team-card img { width: 100%; aspect-ratio: 4 / 4.1; object-fit: cover; object-position: top center; }
.team-card-body { padding: 20px; }
.team-card h3 { margin-bottom: 7px; }
.team-role { margin: 0 0 4px; color: var(--blue-700); font-size: 15px; font-weight: 650; }
.team-exp { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.team-more { display: inline-block; margin-top: 16px; color: var(--blue-700); font-size: 14.5px; font-weight: 650; }

.faq-home-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.faq-home-head .section-head { margin-bottom: 0; }
.faq-home-head .btn { flex: none; }

/* ---------- тест для близких ---------- */
.help-test-section { background: var(--blue-900); color: var(--white); }
.help-test-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.help-test-intro { position: sticky; top: 110px; }
.help-test-intro h2 { margin: 20px 0 12px; color: var(--white); font-size: clamp(28px, 4vw, 42px); }
.help-test-intro > p { max-width: 43ch; color: var(--blue-200); }
.quiz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-tags span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-sm); font-size: 12.5px; }
.help-quiz { min-height: 480px; padding: 26px; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.quiz-progress { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.quiz-progress progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: var(--blue-100); }
.quiz-progress progress::-webkit-progress-bar { background: var(--blue-100); }
.quiz-progress progress::-webkit-progress-value { background: var(--blue-600); }
.quiz-progress progress::-moz-progress-bar { background: var(--blue-600); }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step legend { width: 100%; margin-bottom: 18px; font-size: clamp(21px, 3vw, 28px); font-weight: 650; line-height: 1.25; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-option { position: relative; display: block; cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option span {
  display: flex; align-items: center; min-height: 74px; padding: 14px 16px 14px 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: 14.5px; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-option span::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; border: 1.5px solid var(--blue-400); border-radius: 50%; transform: translateY(-50%);
}
.quiz-option input:checked + span { border-color: var(--blue-600); background: var(--blue-50); }
.quiz-option input:checked + span::before { border: 5px solid var(--blue-600); }
.quiz-option input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-nav [hidden] { display: none; }
.quiz-nav [data-quiz-next] { margin-left: auto; }
.quiz-result { padding-top: 8px; }
.quiz-result-label { margin: 0 0 12px; color: var(--blue-700); font-size: 13px; font-weight: 700; }
.quiz-result h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 32px); }
.quiz-result > p { color: var(--ink-2); }
.quiz-disclaimer { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- лицензия ---------- */
.license-section { background: var(--blue-50); border-top: 1px solid var(--line); }
.license-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.license-card {
  display: block; overflow: hidden; padding: 8px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 rgba(4, 15, 22, .04);
}
.license-card img { width: 100%; height: auto; aspect-ratio: auto 7 / 10; object-fit: contain; }

/* ---------- карточки консультаций ---------- */
.service-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-package { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-package h3 { margin: 0 0 12px; font-size: 18px; }
.service-package > strong { color: var(--blue-700); font-size: 24px; }
.service-package-label { margin: 3px 0 12px; color: var(--blue-700); font-size: 13.5px; font-weight: 650; }
.service-package ul { flex: 1; margin: 16px 0 20px; padding-left: 19px; color: var(--ink-2); font-size: 14.5px; }
.service-package .btn { align-self: start; }

/* ---------- адаптив ---------- */
/* Смотрите также */
.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; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .work-step { scroll-snap-align: start; }
  .urgent-help-panel { grid-template-columns: 1fr; }
  .help-test-layout { grid-template-columns: 1fr; }
  .help-test-intro { position: static; }
}
@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; position: fixed; left: 0; right: 0; top: 72px; z-index: 35;
    max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; box-shadow: 0 12px 24px rgba(4, 15, 22, .12);
  }
  .nav-list { flex-direction: column; padding: 8px 0 14px; }
  .nav-list > li > a, .nav-list > li > .nav-parent { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-list > li.has-sub > .nav-parent::after { float: right; margin-top: 8px; }
  .nav-list > li.is-expanded > .nav-parent::after { transform: rotate(225deg) translate(-1px, -1px); }
  .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; transition: none;
  }
  .nav-list > li.is-expanded .submenu { opacity: 1; visibility: visible; max-height: 900px; }
  .submenu li.is-hub { border-color: var(--line); }
  .nav-contact {
    display: grid; gap: 4px; padding: 15px 0 18px; border-top: 1px solid var(--line);
    color: var(--ink-2); font-size: 14px; line-height: 1.45;
  }
  .nav-contact a { width: fit-content; color: var(--blue-700); font-size: 17px; font-weight: 700; }
  .cta-band { grid-template-columns: 1fr; padding: 26px; }
  .contact-grid, .doctors, .reviews, .articles, .related { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-packages { grid-template-columns: 1fr; }
  .topline { 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; }
  .floating-consult { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .floating-consult-desktop { display: none; }
  .floating-consult-mobile {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--brick); color: var(--white); box-shadow: 0 8px 22px rgba(4, 15, 22, .22);
  }
  .floating-consult-mobile svg {
    width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .header-in { min-height: 64px; gap: 12px; }
  .nav.is-open { top: 64px; max-height: calc(100dvh - 64px); }
  .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; }
  .trust-grid, .metrics-grid, .team-grid, .quiz-options { 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; }
  .price-table-wrap { overflow: visible; }
  .price-table-detailed { width: 100%; min-width: 0; table-layout: fixed; }
  .price-table-detailed thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .price-table-detailed tbody { display: block; }
  .price-table-detailed tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
    padding: 14px 8px; border-bottom: 1px solid var(--line);
  }
  .price-table-detailed tbody th,
  .price-table-detailed tbody td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .price-table-detailed tbody th { grid-column: 1 / -1; }
  .price-table-detailed .price-code { grid-column: 1 / -1; }
  .price-table-detailed .price-code:empty { display: none; }
  .price-table-detailed .price-value { grid-column: 1; margin-top: 6px; white-space: nowrap; }
  .price-table-detailed .price-action { grid-column: 2; margin-top: 6px; }
  .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-form.is-captcha-active { grid-template-columns: 1fr; }
  .lead-horizontal .lead-note { grid-column: auto; }
  .lead-horizontal .btn { width: 100%; }
  .urgent-help-panel { padding: 24px 18px; }
  .urgent-benefits { grid-template-columns: 1fr; }
  .faq-home-head { display: block; }
  .faq-home-head .btn { width: 100%; margin-top: 18px; }
  .help-quiz { min-height: 0; padding: 20px 16px; }
  .quiz-nav .btn, .quiz-result-actions .btn { flex: 1 1 100%; }
  .license-track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 82vw);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  }
  .license-card { scroll-snap-align: start; }
  .service-package .btn { width: 100%; }
  .btn-label-wide { display: none; }
  .btn-label-mobile { display: inline; }
  .thanks-page { padding: 38px 0; }
  .thanks-card { padding: 26px 18px; }
  .thanks-actions { flex-direction: column; gap: 12px; }
  .thanks-actions .btn { width: 100%; }
  .thanks-location { margin-top: 28px; padding-top: 24px; }
  .thanks-map { height: 300px; }
}

.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); }
}
