:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0e7490;
  --primary-dark: #0c4a6e;
  --accent: #06b6d4;
  --accent-soft: #e0f2fe;
  --indigo: #4f46e5;
  --border: #cbd5e1;
  --danger: #b91c1c;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(14, 116, 144, 0.12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 56px 0; }
.section-title { margin: 0 0 22px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-lead { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.page-hero { padding-top: 28px; }

/* Хедер */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
}
.header-top .logo-link { margin-right: auto; }
.header-meta {
  flex: 1 1 200px;
  min-width: 0;
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-left: auto;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo { width: 44px; height: 44px; flex-shrink: 0; }
.header-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.88rem; }
.header-phone a { font-weight: 700; font-size: clamp(0.85rem, 2.5vw, 1.05rem); color: var(--text); white-space: nowrap; }
.header-messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-messengers a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  transition: transform 0.15s;
}
.header-messengers a:hover { transform: scale(1.08); }
.header-messengers img { width: 32px; height: 32px; display: block; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.burger span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; }
.nav {
  border-top: 1px solid var(--border);
  padding: 8px 0 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  overflow: visible;
}
.menu { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.menu > li { position: relative; }
.menu > li > a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.menu > li > a:hover,
.menu > li > a[aria-current="page"] { color: var(--primary); background: var(--accent-soft); }
.menu-item.has-children > a::after,
.submenu .has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.submenu .has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.submenu a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}
.submenu a:hover { background: var(--accent-soft); color: var(--primary); }
.menu > li > .submenu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 120;
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}
.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu,
.menu > li > .submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.submenu .has-children { position: relative; }
.submenu .has-children > .submenu {
  position: absolute;
  top: -6px;
  left: calc(100% - 10px);
  margin-left: 0;
  padding-left: 10px;
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.submenu .has-children > .submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  min-height: 44px;
}
.submenu .has-children:hover > .submenu,
.submenu .has-children:focus-within > .submenu,
.submenu .has-children > .submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14, 116, 144, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--accent-soft); color: var(--primary-dark); }

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.hero-card {
  background: linear-gradient(145deg, #ffffff 0%, #ecfeff 55%, #e0f2fe 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 4vw, 2.35rem); line-height: 1.15; }
.hero-card p { margin: 0 0 20px; color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-media {
  display: flex;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0;
  border: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Карточки и сетки */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Стили для преимуществ */
.advantage-card {
  text-align: center;
  padding: 24px 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.advantage-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.advantage-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.advantage-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.advantage-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Стили для текстовых блоков */
.rich-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.rich-text h1 { margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text p { margin: 0 0 1em; color: var(--muted); }
.rich-text ul, .rich-text ol { margin: 0 0 1em; padding-left: 1.4em; color: var(--muted); }
.rich-text li { margin-bottom: 0.4em; }
.rich-text img {
  margin: 20px auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: min(100%, 720px);
}
.article-page .article-lead {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 720px;
}
.article-page .article-body { margin-bottom: 24px; }
.article-verified {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ul { margin: 10px 0 0; padding-left: 18px; }
.toc a { color: var(--primary-dark); }

/* Стили для слайдеров */
.slider { position: relative; }
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.slider-item { scroll-snap-align: start; }
.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.slider-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
}
.slider-btn:hover { border-color: var(--accent); color: var(--primary); }

/* Стили для таблицы цен */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--accent-soft); color: var(--primary-dark); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: none; }

/* Стили для врачей */
.doctor-card img { border-radius: 12px; margin-bottom: 12px; aspect-ratio: 4/5; object-fit: cover; }
.doctor-card h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.doctor-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }

/* Стили для лицензий */
.license-card img { border-radius: 10px; border: 1px solid var(--border); }

/* Стили для FAQ */
.faq-list { max-width: 100%; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--surface);
}
.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  white-space: normal;
  line-height: 1.45;
}
.faq-question::after { content: "+"; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
  display: none;
  padding: 14px 18px 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }
.faq-item.open .faq-answer { display: block; }

/* Блоки на странице услуги */
.service-block {
  margin-top: 48px;
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.section-head .section-title { margin: 0; }
.section-head a {
  font-weight: 600;
  white-space: nowrap;
}
.service-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Swiper */
.swiper {
  position: relative;
  padding-bottom: 36px;
  overflow: hidden;
}
.swiper-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}
.swiper .swiper-button-prev:hover,
.swiper .swiper-button-next:hover {
  border-color: var(--accent);
  color: var(--primary);
}
.swiper .swiper-button-disabled {
  opacity: 0.35;
}
.swiper .swiper-pagination {
  position: static;
  margin-top: 10px;
}
.swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
}
.swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}
.doctors-swiper .doctor-card,
.reviews-swiper .review-card {
  height: auto;
  min-height: 100%;
}
.gallery-slide {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.licenses-grid .license-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.licenses-grid .license-card img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.licenses-grid .license-card figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
/* 2 лицензии: размер как в grid-4, по центру */
.licenses-grid--center {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.licenses-grid--center .license-card {
  grid-column: span 1;
  min-width: 0;
}
.licenses-grid--center .license-card:nth-child(1) {
  grid-column: 2;
}
.licenses-grid--center .license-card:nth-child(2) {
  grid-column: 3;
}

/* Стили для отзывов */
.review-card .review-content {
  max-height: 96px;
  overflow: hidden;
  position: relative;
  color: var(--muted);
  margin-bottom: 8px;
}
.review-card .review-content.expanded { max-height: none; }
.review-toggle {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.review-meta { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* Карта */
.map-wrap iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }

/* Футер */
.site-footer { margin-top: auto; flex-shrink: 0; background: #0b1220; color: #e2e8f0; }
.footer-main { padding: 36px 0 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px 20px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-main a { color: #7dd3fc; }
.footer-main a:hover { color: #bae6fd; }
.footer-brand p { margin: 0 0 10px; color: #cbd5e1; font-size: 0.92rem; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.footer-cta .btn { font-size: 0.88rem; padding: 10px 16px; box-shadow: none; }
.footer-cta .btn-outline { color: #fff; border-color: #7dd3fc; }
.footer-cta .btn-outline:hover { background: rgba(125, 211, 252, 0.15); color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.socials a { border: none; background: transparent; width: 40px; height: 40px; }
.socials img { width: 32px; height: 32px; opacity: 1; display: block; }
.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 0.88rem;
  color: #94a3b8;
}
.disclaimer {
  text-align: center;
  background: var(--danger);
  color: #fff;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-note { color: #94a3b8; font-size: 0.85rem; margin-top: 12px; line-height: 1.5; }

/* Версия для слабовидящих */
.vision-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-bottom: 3px solid #fff;
  font-weight: 700;
}
.vision-panel[hidden] { display: none !important; }
.vision-panel .btn {
  background: #fff;
  color: #000;
  box-shadow: none;
  padding: 8px 16px;
  font-size: 0.88rem;
}
body.vision-mode {
  padding-top: 52px;
  background: #fff !important;
  color: #000 !important;
}
body.vision-mode img,
body.vision-mode svg { filter: grayscale(100%); }
body.vision-mode .site-header,
body.vision-mode .nav,
body.vision-mode .card,
body.vision-mode .rich-text,
body.vision-mode .toc,
body.vision-mode .faq-item,
body.vision-mode .faq-question,
body.vision-mode .faq-answer,
body.vision-mode .table-wrap,
body.vision-mode .hero-card,
body.vision-mode .hero-media,
body.vision-mode .site-footer,
body.vision-mode .disclaimer,
body.vision-mode .submenu {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}
body.vision-mode a,
body.vision-mode .menu a,
body.vision-mode .footer-main a {
  color: #000 !important;
  text-decoration: underline !important;
}
body.vision-mode .btn {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  text-decoration: none !important;
}
body.vision-mode .btn-outline {
  background: #fff !important;
  color: #000 !important;
}
body.vision-mode th {
  background: #eee !important;
  color: #000 !important;
}
body.vision-mode .faq-question::after { color: #000 !important; }

/* Хлебные крошки */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }

/* Статьи список */
.article-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.article-card img { border-radius: 12px; height: 100%; object-fit: cover; min-height: 90px; }

/* Адаптив */
@media (max-width: 1100px) {
  .slider-track { grid-auto-columns: calc((100% - 28px) / 3); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-meta { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
  .nav { display: none; }
  .nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu > li > .submenu,
  .submenu .has-children > .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    margin-top: 4px;
    min-width: 0;
  }
  .menu-item.open > .submenu,
  .submenu .has-children.open > .submenu { display: block; }
  .menu-item.has-children > a::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media img { min-height: 220px; }
  .grid-3 { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .slider-track { grid-auto-columns: 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .licenses-grid--center {
    grid-template-columns: 1fr;
    max-width: min(100%, 280px);
  }
  .licenses-grid--center .license-card:nth-child(1),
  .licenses-grid--center .license-card:nth-child(2) {
    grid-column: 1;
  }
  .container { width: min(var(--container), calc(100% - 20px)); }
  .logo-link { font-size: 1rem; gap: 8px; }
  .logo { width: 36px; height: 36px; }
  .header-messengers a { width: 32px; height: 32px; }
  .header-phone a { white-space: normal; }
  .section { padding: 40px 0; }
}
@media (max-width: 380px) {
  .header-top { gap: 8px; }
  .header-actions { gap: 6px; }
  .logo-link span { font-size: 0.95rem; }
  .burger { width: 38px; height: 38px; }
}

/* FastHelp V9 — conversion, accessibility and mobile refinements */
.section-compact { padding-top: 12px; padding-bottom: 30px; }
.service-link-card { display: block; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-link-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 12px 28px rgba(15, 23, 42, .09); }
.service-link-card h3 { margin-top: 0; margin-bottom: 8px; }
.service-link-card p { color: var(--muted); }
.service-link-card span { color: var(--primary); font-weight: 700; }
.hero-note, .price-note, .legal-small { color: var(--muted); font-size: .92rem; }
.related-services { margin-top: 36px; margin-bottom: 24px; }
.toc-subitem { margin-left: 16px; }
.mobile-callbar { display: none; }
.service-page .breadcrumbs { margin-top: 20px; margin-bottom: 20px; }
.service-page .hero-card { align-content: center; }
.home-content { margin-top: 12px; }

@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .mobile-callbar {
    display: flex; position: fixed; z-index: 999; left: 12px; right: 12px; bottom: 10px;
    min-height: 48px; align-items: center; justify-content: center; border-radius: 14px;
    background: var(--primary); color: #fff; text-decoration: none; font-weight: 800;
    box-shadow: 0 10px 32px rgba(2, 132, 199, .28);
  }
  .service-page .breadcrumbs { overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
}

/* V9 callback form — rendered only when FASTHELP_LEAD_FORM_ENABLED=1 */
.lead-form-section{margin:36px 0}.lead-form-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,460px);gap:32px;align-items:start;padding:28px;border:1px solid rgba(25,62,83,.12);border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(25,62,83,.08)}.lead-form-card h2{margin-top:0}.fasthelp-lead-form{display:grid;gap:14px}.fasthelp-lead-form label{display:grid;gap:6px;font-weight:600}.fasthelp-lead-form input[type="text"],.fasthelp-lead-form input[type="tel"]{width:100%;min-height:48px;padding:10px 12px;border:1px solid rgba(25,62,83,.25);border-radius:10px;font:inherit;background:#fff}.fasthelp-lead-form input:focus{outline:2px solid rgba(25,92,123,.2);border-color:#195c7b}.consent-row{grid-template-columns:auto 1fr!important;align-items:start;font-weight:400!important;font-size:14px;line-height:1.35}.consent-row input{margin-top:3px}.optional,.form-note,.form-status{font-size:14px;color:#5f6b73}.form-status.is-error{color:#9a2b2b}.form-status.is-success{color:#216b3b}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.fasthelp-lead-form.is-loading button{opacity:.65;pointer-events:none}@media(max-width:760px){.lead-form-card{grid-template-columns:1fr;padding:20px;gap:18px}}


/* FastHelp V11 — list integrity, contacts, document UX and small-screen polish */
.article-list { display: grid; gap: 16px; }
.article-card h2 { margin-top: 0; }
.license-card { margin: 0; }
.license-card a { display: block; }
.section-lead { max-width: 760px; color: var(--muted); margin: -4px 0 20px; }
.contact-card p { margin: 0 0 10px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a[href^="tel:"] { white-space: nowrap; }
.contact-note { color: var(--muted); }
.rich-text h2, .rich-text h3 { scroll-margin-top: 150px; }
@media (max-width: 560px) {
  .hero-card { padding: 22px 18px; }
  .rich-text { padding: 20px 18px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; text-align: center; }
  .breadcrumbs { font-size: .82rem; }
  .map-wrap iframe { min-height: 300px; }
}


/* V12 — neutral editorial medical artwork; avoid synthetic documentary photography */
.hero-media img[src$=".svg"] { object-fit: cover; background: #f8fcff; }
.article-card img[src$=".svg"] { background: #f8fcff; }
@media (max-width: 900px) {
  .article-card img[src$=".svg"] { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
}


/* V12 — FAQ/price trust and content structure */
.table-wrap th:last-child, .table-wrap td:last-child { white-space: nowrap; }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: 10px 0 0 1.25rem; }
.section-note { margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
