/* === Design tokens === */
:root {
  --primary: #1E5F8E;
  --primary-dark: #164A6F;
  --primary-light: #E8F2F9;
  --secondary: #0EA5A4;
  --secondary-dark: #0B8483;
  --secondary-text: #0A6361; /* тёмная бирюза для текста на светлом фоне (контраст AA) */
  --cta: #F97316;
  --cta-hover: #EA580C;
  --cta-active: #C2410C;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #5B6675;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;
  --success: #10B981;
  --error: #DC2626;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 4px 14px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

/* accessibility: keyboard focus ring + reduced motion */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-color: var(--cta-active); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Onest', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  background: #0F172A;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === Desktop shell (around phone) === */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top left, rgba(30,95,142,0.20), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(14,165,164,0.15), transparent 50%),
    #0B1220;
  color: #E2E8F0;
}
.shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 24px;
  flex-wrap: wrap;
}
.shell-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shell-brand .dot {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1E5F8E, #0EA5A4);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(30,95,142,0.35);
}
.shell-brand h1 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.shell-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(226,232,240,0.55);
  letter-spacing: 0.02em;
}

.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(226,232,240,0.7);
  background: transparent;
  border: 0;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.tab.active {
  background: #fff;
  color: #0B1220;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* viewport toggle (mobile / desktop) */
.viewport-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 3px;
}
.viewport-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: rgba(226,232,240,0.7);
  font: inherit;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.viewport-toggle button:hover { color: #fff; }
.viewport-toggle button.active {
  background: #fff;
  color: #0B1220;
  font-weight: 600;
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 32px 28px 64px;
  align-items: start;
}
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; }
  .stage-info { order: 2; }
}
.stage-info {
  position: sticky;
  top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226,232,240,0.75);
}
.stage-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.stage-info .meta {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(14,165,164,0.15);
  color: #5EEAD4;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
}
.stage-info .blocks {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stage-info .blocks li {
  list-style: none;
  padding: 5px 0;
  display: flex;
  gap: 8px;
  font-size: 12.5px;
}
.stage-info .blocks li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #5EEAD4;
  border-radius: 50%;
  margin-top: 8px;
  flex: none;
}
.stage-info ul { padding: 0; margin: 8px 0 0; }

.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* === Mobile page styles (inside phone) === */
.m {
  font-family: 'Onest', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100%;
  position: relative;
  /* extra bottom space so sticky panel doesn't cover content */
  padding-bottom: 90px;
  container-type: inline-size;
  container-name: page;
}

/* license ribbon above header */
.m-ribbon {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.01em;
}
.m-ribbon a { color: inherit; text-decoration: none; }
.m-ribbon-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
/* a11y toggle in ribbon */
.m-a11y-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 3px 8px;
  min-height: 30px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.m-a11y-toggle:hover { background: rgba(255,255,255,0.22); }
.m-a11y-toggle[aria-pressed="true"] {
  background: rgba(255,255,255,0.92);
  color: var(--primary-dark);
  border-color: #fff;
}
.m-a11y-toggle svg { flex: none; display: block; }
/* mobile: icon only, hide working-hours to keep ribbon on one line */
.m-ribbon-hours { display: none; }
.m-a11y-toggle-txt { display: none; }

/* sticky-style header — rendered in normal flow within scroll area */
.m-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
/* desktop-only header chrome — hidden on mobile */
.m-nav-desktop { display: none; }
.m-header-phone-block { display: none; }
.m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.m-logo .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
/* Логотип-картинка (КЛИНИКА ЗДОРОВЬЯ) */
.m-logo-img { height: 34px; width: auto; display: block; }
.m-logo-tag {
  font-weight: 600; font-size: 11px; color: var(--text-secondary);
  padding: 2px 7px; border-radius: 6px; background: var(--primary-light);
}
/* Hide logo subtitle on mobile to free room for visible phone number */
.m-logo small { display: none; font-weight: 500; color: var(--text-secondary); font-size: 11px; }
.m-logo { font-size: 14.5px; }
.m-logo .mark { width: 32px; height: 32px; }
.m-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-height: 44px;
}
.m-phone svg { color: var(--cta); width: 18px; height: 18px; }
.m-burger {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  flex: none;
}
.m-burger:active { background: var(--bg); }

/* === Off-canvas drawer (mobile only) === */
.m-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  z-index: 100;
  animation: m-fade-in 0.18s ease;
}
.m-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86%, 320px);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  animation: m-slide-in 0.22s ease;
}
@keyframes m-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-slide-in { from { transform: translateX(100%); } to { transform: none; } }
.m-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--border);
}
.m-drawer-head strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.m-drawer-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text);
}
.m-drawer-nav {
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.m-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.m-drawer-nav a:active { background: var(--primary-light); }
.m-drawer-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.m-drawer-foot .btn { height: 56px; }
.m-drawer-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* sticky bottom CTA */
.m-stickyfoot {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 16px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 9;
  transition: bottom .25s ease;
}
/* Пока виден cookie-баннер — поднимаем панель CTA над ним (высота баннера в --cookie-h) */
body.cookie-open .m-stickyfoot {
  bottom: var(--cookie-h, 132px);
}
.m-stickyfoot .btn-cta,
.m-stickyfoot .btn-max {
  flex: 1;
  height: 56px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
}
.m-stickyfoot .btn-cta { background: var(--cta); }
.m-stickyfoot .btn-cta:active { background: var(--cta-active); }
.m-stickyfoot .btn-max { background: linear-gradient(135deg, #09C6F9, #8B6EFF); font-size: 17px; }
.m-stickyfoot svg { width: 20px; height: 20px; flex: none; }

/* generic CTA button */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249,115,22,0.32);
  font-family: inherit;
  transition: transform 0.1s, background 0.15s;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn span { min-width: 0; text-align: center; }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(0.98); background: var(--cta-active); }
.btn-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* section block */
.sec { padding: 24px 16px; }
.sec-tight { padding: 16px; }
.sec h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px;
  text-wrap: pretty;
}
.sec .lead {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin: 0 0 18px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-text);
  margin-bottom: 6px;
}

/* Archive heading + utility */
.sec .archive-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 4px 0 6px;
  text-wrap: pretty;
}
.sec-blog-archive .lead { margin-bottom: 14px; }
.sec-blog-archive .search { margin-bottom: 14px; }
.archive-pager { margin-top: 18px; }
.archive-empty { color: var(--text-secondary); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* image placeholder (striped) */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(15,23,42,0.04) 0 6px, rgba(15,23,42,0.08) 6px 12px),
    #EEF2F7;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px;
  line-height: 1.35;
}

/* trust pills row */
.usp-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.usp {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
.usp .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  flex: none;
}

/* stars */
.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.stars .row { display: flex; gap: 1px; color: #F59E0B; }

/* faq */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  gap: 12px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q .chev {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] .faq-q .chev,
.faq-q[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.faq-a {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 0 0 16px;
}

/* pricing tabs */
.tabs-row {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 14px;
}
.tabs-row button {
  flex: 1;
  padding: 9px 8px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
}
.tabs-row button.active {
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

/* tariffs stack — column on mobile, side-by-side grid on desktop */
.tariffs-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tariff {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.05);
}
.tariff.recommended {
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px var(--primary),
    0 12px 32px rgba(30, 95, 142, 0.14);
}
.tariff .badge-top {
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.tariff h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.tariff .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.tariff .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.tariff .price .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tariff .price .unit { color: var(--text-muted); font-size: 13px; }
.tariff ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tariff li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.4;
}
.tariff li svg { color: var(--success); flex: none; margin-top: 2px; }
.tariff .tariff-summary { font-size: 15px; line-height: 1.55; color: var(--text); margin: 16px 0; }

/* doctor card horizontal scroll */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 4px 16px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* fade right edge — visual hint there's more */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.h-scroll::-webkit-scrollbar { display: none; }

/* scroll-position dots (paired with .h-scroll) */
.scroll-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
  height: 18px;
}
.scroll-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: width 0.2s, background 0.2s, border-radius 0.2s;
}
.scroll-dots span.active {
  background: var(--primary);
  width: 20px;
  border-radius: 99px;
}
.doc {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
}
.doc .photo { height: 180px; }
.doc .body { padding: 12px 14px 14px; }
.doc h3, .doc h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.doc .role { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 8px; }
.doc .stat {
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  align-items: center;
}

/* steps */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step .num {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.step h3, .step h4 { margin: 4px 0 4px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* reviews */
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.review .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review .head .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.review .head .name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.review .head .date { font-size: 11.5px; color: var(--text-muted); }
.review .src {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* footer */
/* === Dev credit === */
.dev-credit {
  background: #0a1a2a;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: background 0.2s;
}
.dev-credit:hover { background: #0d2035; color: rgba(255,255,255,0.55); }
.dev-credit img { height: 18px; width: auto; opacity: 0.6; transition: opacity 0.2s; }
.dev-credit:hover img { opacity: 1; }

.m-footer {
  background: #0F2236;
  color: rgba(255,255,255,0.78);
  padding: 28px 16px 24px;
  font-size: 13.5px;
  line-height: 1.5;
}
.m-footer h2 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
}
.m-footer a { color: rgba(255,255,255,0.85); text-decoration: none; display: block; padding: 4px 0; }
.m-footer .col { margin-bottom: 18px; }
.m-footer .disclaimer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* services grid (homepage) */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.svc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.svc .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.svc h3, .svc h4 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.svc .from {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* trust block */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.45;
}
.trust-item .icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  flex: none;
}

/* legal disclaimer */
.legal-callout {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #7C2D12;
}

/* form */
.form-group { margin-bottom: 12px; }
.form-input {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-family: inherit;
  outline: 0;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,95,142,0.15); }
.form-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.form-check input { margin-top: 2px; flex: none; }
.form-check a { color: var(--primary); }

/* blog card — селектор a.blog/div.blog, чтобы не конфликтовать с WP body.blog на /blog/ */
a.blog, div.blog {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog .img { height: 130px; }
.blog .body { padding: 12px 14px 14px; }
.blog h3, .blog h4, .blog h2.blog-title { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.blog .meta { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* featured (large) blog card variant */
.blog-featured { display: flex; flex-direction: column; margin-bottom: 12px; }
.blog-featured .img,
.blog-featured > img { height: 170px; width: 100%; object-fit: cover; }

/* mobile: list cards horizontal (image left, body right) */
.blog-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.blog-list .blog { flex-direction: row; }
.blog-list .blog > img,
.blog-list .blog .img {
  width: 96px;
  height: 88px;
  flex: none;
  object-fit: cover;
}
.blog-list .blog .body { flex: 1; min-width: 0; padding: 10px 12px; }

/* generic responsive card grid (used by doctor/district/service archives) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@container page (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* Doctor archive — horizontal cards (photo 92px left, body right) */
.sec-doctors-intro .team-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
}
.sec-doctors-list { padding-top: 0; }
.sec-doctors-list .filter-row { margin-bottom: 8px; }

.doctor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doctor-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.doctor-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.doctor-card-photo {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  flex: none;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.doctor-card-photo--placeholder {
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
}
.doctor-card-body { min-width: 0; flex: 1; }
.doctor-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.doctor-card-role {
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.doctor-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}
.doctor-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.chip.chip-xs { font-size: 10.5px; padding: 2px 8px; }

.trust-item-title { font-weight: 600; margin-bottom: 2px; }
.trust-item-desc { color: var(--text-secondary); font-size: 13.5px; }

@container page (min-width: 900px) {
  .sec-doctors-intro .team-photo { height: 320px; }
  .doctor-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .doctor-card { padding: 18px; }
  .doctor-card-photo { width: 110px; height: 110px; }
  .doctor-card-name { font-size: 17px; }
}

/* Service groups on archive-service */
.svc-group { padding-top: 28px; padding-bottom: 28px; }
.svc-group-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.svc-group-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.svc-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sec-services-intro { padding-top: 12px; padding-bottom: 8px; }
.sec-services-map .svc-group-title { margin-bottom: 12px; }
.sec-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Doctor hero photo */
.doctor-hero .pic .pic-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-hero .pic .pic-fallback {
  width: 100%; height: 100%;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}

/* Video iframe wrapper (16:9) */
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary-light);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cert thumbnail fill */
.cert { overflow: hidden; }
.cert .cert-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* trust-item title (used on doctor verification block) */
.trust-item .trust-title { display: block; font-weight: 600; margin-bottom: 4px; }
.trust-item .btn-ghost { margin-top: 4px; }

/* Service single hero */
.sec-service-hero { padding-top: 12px; }
.sec-service-hero .hero-h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 8px 0;
  text-wrap: balance;
}
.sec-service-hero .hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
.sec-service-hero .hero-photo {
  border-radius: 14px;
  margin-bottom: 14px;
  width: 100%;
  object-fit: cover;
  max-height: 320px;
  display: block;
}
.sec-service-hero .hero-photo-placeholder {
  height: 180px;
  background: var(--primary-light);
}

/* === .ph placeholder с лейблом (как в JSX <Ph label="..." />) === */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(15,23,42,0.04) 0 6px, rgba(15,23,42,0.08) 6px 12px),
    #EEF2F7;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
  line-height: 1.35;
  border-radius: 14px;
}
.hero-photo.ph { height: 180px; }
.post-cover-ph { height: 220px; margin: 0 16px; border-radius: 14px; }
.pic-ph { width: 100%; height: 100%; border-radius: 0; }

/* === Doctor single — additional sections === */
.sec-doctor-cta { padding-top: 8px; padding-bottom: 8px; }

/* External profile cards */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.profile-card:hover { border-color: var(--primary); }
.profile-name { flex: 1; font-weight: 600; font-size: 14.5px; }
.profile-arrow { color: var(--text-muted); }

/* Doctor articles links */
.doctor-articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor-article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.doctor-article-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.doctor-article-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* === Service single — extras === */
.mech-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 12px;
}
.trust-item .icon.icon-success {
  background: rgba(16,185,129,0.15);
  color: var(--success);
}
.svc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* === Single post (blog) — JSX-equivalent classes === */
.sec-post-head { padding-top: 14px; padding-bottom: 0; }
.post-cat-chip { margin-bottom: 10px; display: inline-flex; text-decoration: none; }
.post-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 10px 0;
}
.author-card--compact { padding: 12px 14px; }
.author-card--full { margin-top: 24px; }
.author-card__name a { color: inherit; text-decoration: none; }
.author-card-link {
  margin-top: 10px;
  display: inline-flex;
  font-size: 13px;
  padding: 6px 12px;
}
.post-cover { margin: 0 16px; }
.post-cover-img { width: 100%; border-radius: 14px; display: block; }
.sec-post-toc { padding-top: 18px; padding-bottom: 4px; }
.sec-post-body { padding-top: 12px; }
.sources-block { margin-top: 28px; }
.sources-block__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.sec-related { padding-top: 24px; }
.related-title { font-size: 18px; margin-bottom: 12px; }

/* === Blog post tables === */
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.blog-post-body table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
  border: 1px solid var(--primary);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.blog-post-body table tbody td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.blog-post-body table tbody tr:nth-child(even) td {
  background: #F0F7FF;
}
.blog-post-body table tbody tr:hover td {
  background: #E8F2FB;
}
@media (max-width: 600px) {
  .blog-post-body table,
  .blog-post-body table tbody,
  .blog-post-body table tr {
    display: block;
    width: 100%;
  }
  .blog-post-body table thead {
    display: none; /* заголовки показываем через data-label */
  }
  .blog-post-body table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .blog-post-body table tbody tr:nth-child(even) td {
    background: #fff; /* на мобильном зебра не нужна — карточки и так разделены */
  }
  .blog-post-body table td {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 9px 14px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .blog-post-body table td:last-child {
    border-bottom: none;
  }
  .blog-post-body table td::before {
    content: attr(data-label);
    flex: 0 0 90px;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
  }
}

/* === Blog services strip (internal linking) === */
.blog-services { border-top: 1px solid var(--border); padding-top: 24px; padding-bottom: 24px; }
.blog-services__title { font-size: 16px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.blog-services__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-services__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-services__item:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(30,95,142,0.10); }
.blog-services__name { font-size: 14px; font-weight: 500; color: var(--text); }
.blog-services__price { font-size: 12px; color: var(--text-muted); }

/* === District page === */
.sec-district-hero { padding-top: 12px; }
.sec-district-hero .district-chip { margin-bottom: 8px; }
.district-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 8px 0;
}
.district-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
.sec-district-hero .btn-sub { margin-top: 8px; }

.map-frame-district { height: 230px; }
.map-frame-district iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.district-streets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 13.5px;
}
.district-street {
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 8px;
}

.district-pricelist {
  display: flex;
  flex-direction: column;
}
.district-pricerow {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.district-pricerow:last-child { border-bottom: 0; }
.district-priceval { font-weight: 700; color: var(--primary); }

.sec-district-case {
  background: var(--primary-light);
}
.sec-district-case .case-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
}
.sec-district-case .case-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

.neighbor-row { overflow: visible; flex-wrap: wrap; }

/* === Contacts page === */
.sec-contacts-hero { padding-top: 12px; }
.contact-messengers {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.contact-messengers .btn-secondary { color: #fff; width: 100%; padding: 0 20px; }
.btn-max { background: linear-gradient(135deg, #09C6F9, #8B6EFF); font-size: 17px; }
.icon-max { width: 28px; height: 28px; vertical-align: middle; border-radius: 6px; flex: none; }

.contact-card { padding: 4px; }
.contact-card .contact-line { padding: 14px 16px; }

.card-requisites {
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.card-requisites strong { color: var(--text); }

.map-frame-contacts {
  height: 280px;
  border-radius: 14px;
  margin: 0 16px;
  overflow: hidden;
}
.map-frame-contacts iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === About page === */
.sec-about-hero { padding-top: 12px; }
.about-hero-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  display: block;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.about-stat {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 16px;
}
.about-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.about-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* === Reviews page === */
.sec-otzyvy-hero { padding-top: 12px; }
.reviews-summary-card {
  padding: 18px;
  margin-bottom: 14px;
}
.reviews-summary-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reviews-summary-score { text-align: center; }
.reviews-score-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.reviews-summary-score .stars { justify-content: center; margin-top: 4px; }
.reviews-score-count {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.reviews-widget {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.reviews-widget iframe { width: 100%; height: 600px; border: 0; display: block; }

.leave-review-block {
  background: var(--primary-light);
  border-radius: 18px;
  padding: 20px;
}
.leave-review-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.leave-review-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
}
.profile-star {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

/* === License page === */
.sec-license-hero { padding-top: 12px; }
.license-scan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .license-scan-grid { grid-template-columns: 1fr 1fr; } }
.license-scan-link { display: block; }
.license-scan-img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
}
.license-scan-placeholder { padding: 32px; }
.license-scan-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.sec-license-meta { padding-top: 8px; padding-bottom: 8px; }
.lic-modified { font-size: 13px; color: var(--text-muted); margin: 0; }
.check-registry {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.check-registry-body { flex: 1; min-width: 200px; }
.check-registry-title { display: block; margin-bottom: 4px; font-weight: 600; }
.check-registry-desc { font-size: 13px; color: var(--text-muted); display: block; }
.check-registry-btn { width: auto; min-width: 0; height: 44px; padding: 0 18px; font-size: 14px; }

/* license-block (front-page) */
.license-card {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.license-thumb-link { flex: none; display: block; }
.license-thumb {
  width: 110px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.license-thumb-ph {
  width: 110px;
  height: 120px;
  font-size: 11px;
  border-radius: 10px;
  padding: 8px;
}
.license-card-body { font-size: 14px; line-height: 1.5; flex: 1; }
.license-card-num { font-weight: 600; margin-bottom: 4px; }
.license-card-desc { color: var(--text-secondary); font-size: 13px; }
.license-card-link {
  margin-top: 8px;
  display: inline-flex;
}

/* === Legal page === */
.sec-legal {
  max-width: 780px;
  padding-top: 8px;
}
.legal-title { color: var(--primary); margin-bottom: 24px; }
.legal-meta-doc {
  margin-bottom: 24px;
  padding: 12px 14px;
}

/* === 404 === */
.sec-404-cta { padding-top: 0; }
.sec-404-popular .svc-grid { gap: 10px; }
.sec-404-home { padding-top: 12px; }

/* === Front page clinic gallery === */
.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.clinic-gallery-item {
  margin: 0;
  padding: 0;
}
.clinic-gallery-img {
  border-radius: 12px;
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.clinic-gallery-cap {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}
.clinic-gallery-ph {
  height: 130px;
  font-size: 11px;
  padding: 8px;
}

/* === Sitemap === */
.sitemap-group { margin-bottom: 28px; }
.sitemap-group h3 { font-size: 20px; margin: 0 0 12px; color: var(--primary); font-weight: 600; }
.sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 18px;
}
.sitemap-group li { padding: 4px 0; font-size: 14.5px; }
.sitemap-group a { color: var(--text); text-decoration: none; }
.sitemap-group a:hover { color: var(--primary); }
.sitemap-count { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

/* === Pricing groups === */
.price-group .svc-group-title { margin-bottom: 12px; }

/* Default page hero spacing */
.sec-page-default { padding-top: 14px; }

/* === Footer === */
.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1E5F8E, #0EA5A4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
.footer-brand-name { font-weight: 600; color: #fff; }
.footer-brand-img { height: 38px; width: auto; display: block; }
.footer-brand-desc { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-address { color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 4px; }

/* district / map */
.map-frame {
  height: 200px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, #E8F2F9 0 8px, #DDEAF3 8px 16px);
  position: relative;
  overflow: hidden;
}
.map-frame .pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  color: var(--cta);
  font-size: 32px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

/* anchor / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,165,164,0.10);
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

/* breadcrumbs */
.crumbs {
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 16px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs span { color: var(--text-muted); }

/* contraindications block */
.contra {
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  border-radius: 0 12px 12px 0;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #7F1D1D;
}
.contra h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #991B1B;
  font-weight: 700;
}

/* Direct landing hero — different vibe */
.direct-hero {
  background:
    linear-gradient(180deg, rgba(30,95,142,0.05), rgba(255,255,255,0)),
    #fff;
  padding-bottom: 8px;
}
.direct-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
.direct-hero .price-strip {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.direct-hero .price-strip .chip {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.direct-hero .price-strip .chip strong { color: var(--primary); }

/* === Sidebar nav (replaces top tabs) === */
.shell-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}
@media (max-width: 960px) {
  .shell-stage { grid-template-columns: 1fr; }
}
.sidebar {
  background: rgba(255,255,255,0.025);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 22px 16px 32px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  max-height: 100vh;
}
.sidebar-group { margin-bottom: 18px; }
.sidebar-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(226,232,240,0.45);
  margin: 0 8px 6px;
  font-weight: 600;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(226,232,240,0.78);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(30,95,142,0.45), rgba(14,165,164,0.30));
  color: #fff;
  font-weight: 600;
}
.sidebar-link .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(226,232,240,0.30);
  flex: none;
}
.sidebar-link.active .dot { background: #5EEAD4; }

.work {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 32px 28px 64px;
  align-items: start;
  min-width: 0;
}
.work > * { min-width: 0; }
.shell-stage > * { min-width: 0; }
.phone-wrap { max-width: 100%; }
.work-desktop {
  grid-template-columns: 1fr;
  gap: 20px;
}
.work-desktop .work-info {
  position: static;
  top: auto;
  max-width: 100%;
}
@media (max-width: 1280px) {
  .work { grid-template-columns: 1fr; }
}
.work-info { /* same as old .stage-info */
  position: sticky;
  top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226,232,240,0.75);
}
.work-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.work-info .url {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: rgba(94,234,212,0.85);
  background: rgba(14,165,164,0.10);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  word-break: break-all;
}
.work-info .meta {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(14,165,164,0.15);
  color: #5EEAD4;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
}
.work-info .blocks {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.work-info .blocks li {
  list-style: none;
  padding: 5px 0;
  display: flex;
  gap: 8px;
  font-size: 12.5px;
}
.work-info .blocks li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #5EEAD4;
  border-radius: 50%;
  margin-top: 8px;
  flex: none;
}
.work-info ul { padding: 0; margin: 8px 0 0; }

/* === Filter chips (lists/blog) === */
.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-chip .count { opacity: 0.6; font-size: 11.5px; }

/* === Blog article body === */
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-meta .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.article-meta strong { color: var(--text-secondary); font-weight: 600; }

.medreview {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #E0F2FE, #F0F9FF);
  border: 1px solid #BAE6FD;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
}
.medreview .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.medreview .body { font-size: 13px; line-height: 1.4; color: var(--text); }
.medreview .body strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 1px; }
.medreview .body span { color: var(--text-secondary); font-size: 12px; }

.toc {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
}
.toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 8px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
}
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }

.prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.prose > * + * { margin-top: 14px; }
.prose h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 28px !important;
  scroll-margin-top: 80px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px !important;
}
.prose p { margin: 0; }
.prose ul, .prose ol {
  margin: 0;
  padding-left: 22px;
}
.prose li { margin: 6px 0; }
.prose blockquote {
  margin: 0;
  padding: 14px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.prose .figure {
  margin: 14px 0;
}
.prose .figure .cap {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}
.prose .inline-cta {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 1px solid #FED7AA;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}
.prose .inline-cta h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #9A3412;
}
.prose .inline-cta p { font-size: 14px; color: #7C2D12; margin: 0 0 12px; }

.sources {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.sources ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sources a { color: var(--primary); text-decoration: none; word-break: break-word; }

/* === Doctor single === */
.doctor-hero {
  background: linear-gradient(180deg, var(--primary-light), #fff);
  padding: 22px 16px;
}
.doctor-hero .pic {
  width: 140px; height: 140px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}
.doctor-hero h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.doctor-hero .role {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.doctor-hero .badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-grid .card {
  padding: 14px 10px;
  text-align: center;
}
.stat-grid .num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-grid .label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
}

/* timeline */
.timeline {
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--primary-light);
}
.timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline-item .year {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.timeline-item .what { font-size: 15px; font-weight: 600; line-height: 1.3; }
.timeline-item .where { font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }

/* certs gallery */
.cert-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.cert-row::-webkit-scrollbar { display: none; }
.cert-row .cert {
  flex: 0 0 130px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  scroll-snap-align: start;
}

/* === Reviews page: rating breakdown === */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.rating-bar .num { font-weight: 700; color: var(--text); width: 18px; }
.rating-bar .bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.rating-bar .bar .fill {
  height: 100%;
  background: #F59E0B;
  border-radius: 99px;
}
.rating-bar .count { color: var(--text-muted); font-size: 12px; width: 32px; text-align: right; }

/* === Sitemap === */
.sitemap h3 {
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--primary);
  font-weight: 600;
}
.sitemap ul {
  list-style: none;
  padding-left: 12px;
  margin: 0;
  border-left: 2px solid var(--border);
}
.sitemap li { padding: 5px 0 5px 8px; font-size: 14px; }
.sitemap a { color: var(--text); text-decoration: none; }
.sitemap a:hover { color: var(--primary); }

/* === 404 === */
.notfound {
  text-align: center;
  padding: 40px 24px;
}
.notfound .big {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.notfound h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.notfound p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Legal document === */
.legal-meta {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-meta strong { color: var(--text); }

/* === Contacts === */
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.contact-line:last-child { border-bottom: 0; }
.contact-line .ic {
  width: 36px; height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
}
.contact-line .v strong { display: block; font-weight: 600; line-height: 1.3; }
.contact-line .v span { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }

/* === Method page diagram === */
.mech-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.mech-row .step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
}
.mech-row .arr {
  color: var(--primary);
  flex: none;
}

/* === Search input === */
.search {
  position: relative;
}
.search input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 0 14px 0 42px;
  font: inherit;
  font-size: 15px;
  font-family: inherit;
  outline: 0;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,95,142,0.15); }
.search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* === Pagination === */
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}
.pager .pg {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager .pg.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========================================================== */
/* === DESKTOP OVERRIDES via container queries (≥900px wide)  */
/* ========================================================== */
@container page (min-width: 900px) {
  .m {
    padding-bottom: 0;
    font-size: 16px;
  }

  /* hide mobile-only chrome */
  .m-stickyfoot { display: none; }
  .m-burger { display: none; }

  /* ribbon — slimmer */
  .m-ribbon {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12.5px;
  }
  .m-ribbon-hours { display: inline; }
  .m-a11y-toggle-txt { display: inline; }
  .m-a11y-toggle { font-size: 12.5px; }

  /* header — logo + nav + phone */
  .m-header {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 32px;
  }
  .m-logo {
    font-size: 17px;
  }
  .m-logo .mark { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
  .m-logo-img { height: 42px; }
  .m-logo small { display: block; font-size: 12px; }
  .m-drawer-scrim, .m-drawer { display: none !important; }
  .m-nav-desktop {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
  }
  .m-nav-desktop a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    padding: 4px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
  }
  .m-nav-desktop a:hover { color: var(--primary); }
  .m-nav-desktop a.has-menu::after {
    content: "›";
    display: inline-block;
    margin-left: 4px;
    transform: rotate(90deg);
    font-size: 13px;
    opacity: 0.5;
  }
  .m-header-phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
  }
  .m-header-phone-block a {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
  }
  .m-header-phone-block small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .m-phone { display: none; }

  /* sections — full-width bg, centered inner content via dynamic padding */
  .m-ribbon,
  .m-header,
  .crumbs,
  .sec,
  .sec-tight,
  .m-footer,
  .doctor-hero,
  .notfound,
  .post-cover {
    padding-left: max(40px, calc((100% - 1200px) / 2));
    padding-right: max(40px, calc((100% - 1200px) / 2));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .sec {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .sec-tight {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .crumbs {
    padding-top: 22px;
    padding-bottom: 0;
    font-size: 13px;
  }
  .m-footer {
    padding-top: 56px;
    padding-bottom: 32px;
  }
  .doctor-hero {
    padding-top: 50px;
    padding-bottom: 30px;
  }
  .notfound {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .sec h2 {
    font-size: 32px;
  }
  .sec .lead {
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 720px;
  }
  .eyebrow { font-size: 13px; }

  /* full-bleed sections (already handled by max-width: none) */
  .sec.sec-band {
    max-width: none;
    padding-left: max(40px, calc((100% - 1200px) / 2));
    padding-right: max(40px, calc((100% - 1200px) / 2));
  }
  .sec.sec-band > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* === Hero 2-col layout === */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px 56px;
    align-items: start;
    grid-template-areas:
      "chip  photo"
      "h1    photo"
      "lead  photo"
      "usp   photo"
      "cta   photo"
      "msg   photo"
      "stars photo";
  }
  .hero-grid > .hero-chip  { grid-area: chip; align-self: start; margin-bottom: 0 !important; }
  .hero-grid > .hero-h1    { grid-area: h1; font-size: 52px !important; line-height: 1.05 !important; margin: 0 0 4px !important; }
  .hero-grid > .hero-lead  { grid-area: lead; font-size: 19px !important; margin: 0 0 12px !important; }
  .hero-grid > .hero-photo { grid-area: photo; height: 100% !important; min-height: 460px; margin: 0 !important; }
  .hero-grid > .hero-usp   { grid-area: usp; }
  .hero-grid > .hero-cta   { grid-area: cta; margin-top: 4px !important; max-width: 480px; }
  .hero-grid > .hero-msg   { grid-area: msg; max-width: 480px; }
  .hero-grid > .hero-stars { grid-area: stars; max-width: 480px; }

  /* USP row — 3 cols, bigger */
  .usp-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .usp { padding: 14px 16px; font-size: 14.5px; }
  .usp .icon { width: 44px; height: 44px; }

  /* USP block on its own line on desktop */
  .usp-row.usp-row-3 { grid-template-columns: repeat(6, 1fr); }

  /* services grid — 4 cols */
  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .svc { padding: 20px 18px; }
  .svc h3, .svc h4 { font-size: 16px; }

  /* tariffs side-by-side */
  .tariffs-stack {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    flex-direction: row !important;
  }
  .tariff { padding: 26px 22px; }
  .tariff h3 { font-size: 22px; }
  .tariff .price .num { font-size: 32px; }

  /* steps in 2 cols */
  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
  .step h3, .step h4 { font-size: 17px; }

  /* trust list — 2 cols */
  .trust-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .trust-list .trust-item { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }

  /* doctors: switch from horizontal scroll to grid */
  .h-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
    padding: 4px 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .h-scroll > * { flex: none !important; width: auto !important; }
  .doc .photo { height: 240px; }
  .scroll-dots { display: none !important; }

  /* Clinic gallery — 4 cols, proper height on desktop */
  .clinic-gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .clinic-gallery-img { height: 220px; }
  .clinic-gallery-ph { height: 220px; }

  /* certs in grid */
  .cert-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 0;
    padding: 4px 0;
    overflow: visible;
  }
  .cert-row .cert { flex: none; width: auto; height: 220px; }

  /* filter row no scroll */
  .filter-row {
    margin: 0;
    padding: 0 0 18px;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  /* FAQ wider, two columns split */
  .faq-q { padding: 22px 0; font-size: 17px; }
  .faq-a { font-size: 15.5px; padding: 0 0 22px; }

  /* Reviews — 3 cols grid wrapper (when used in column flex) */
  .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Map block wide */
  .map-frame { height: 320px; }

  /* CTA button — auto width on desktop instead of full */
  .btn {
    width: fit-content;
    min-width: 280px;
    padding: 0 32px;
    font-size: 17px;
  }
  .btn span { white-space: nowrap; }
  .btn-sub { text-align: left; padding-left: 4px; }

  /* Footer — 4 columns */
  .m-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
    box-sizing: border-box;
  }
  .m-footer .col { margin-bottom: 0; }
  .m-footer .disclaimer { grid-column: 1 / -1; margin-top: 8px; padding-top: 28px; }

  /* Pricing groups — 2 cols */
  .price-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Sitemap multi-col */
  .sitemap { columns: 3; column-gap: 32px; }
  .sitemap > div { break-inside: avoid; margin-bottom: 18px; }

  /* Stat grid wider */
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid .num { font-size: 36px; }

  /* Doctor hero centered with wider photo */
  .doctor-hero {
    text-align: left;
  }
  .doctor-hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
  }
  .doctor-hero .pic { width: 200px; height: 200px; margin: 0; }
  .doctor-hero h1 { font-size: 36px; text-align: left; margin: 0 0 8px; }
  .doctor-hero .role { text-align: left; font-size: 17px; margin: 0 0 14px; }
  .doctor-hero .badges { justify-content: flex-start; }

  /* Blog post cover — cap height, prevent upscale blur */
  .post-cover-img {
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
  }

  /* Blog post body — narrow column */
  .blog-post-body {
    max-width: 760px;
    margin: 0 auto;
  }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  .prose h3 { font-size: 20px; }

  /* Article meta */
  .article-meta { font-size: 14px; }
  .article-meta .avatar { width: 36px; height: 36px; }

  /* 404 desktop */
  .notfound .big { font-size: 160px; }
  .notfound h1 { font-size: 32px; }

  /* legal meta inline grid */
  .legal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
    font-size: 14px;
  }

  /* Direct-hero changes */
  .direct-hero h1 { font-size: 42px; }
  .direct-hero .price-strip { margin-bottom: 24px; }
  .direct-hero .form-section { max-width: 540px; }

  /* Forms wider but capped */
  .form-input { font-size: 16px; height: 56px; }

  /* Rating page — sources of reviews row */
  .reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
  }

  /* Contact card grid */
  .contact-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .contact-line { padding: 18px 20px !important; }

  /* District streets in 4 cols */
  .district-streets {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Blog list 3-col grid */
  .blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .blog-list .blog { flex-direction: column !important; }
  .blog-list .blog .ph,
  .blog-list .blog > img,
  .blog-list .blog .img { width: 100% !important; height: 200px !important; }
  .blog-list .blog .body { padding: 14px 16px 16px !important; }

  /* Featured article — full-width card with tall hero image */
  .blog-featured { margin-bottom: 24px; }
  .blog-featured > img,
  .blog-featured .img { height: 280px !important; }
  .blog-featured h2,
  .blog-featured .blog-title { font-size: 22px !important; }

  /* About cifry — 4 cols */
  .about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .about-stat-num { font-size: 28px; line-height: 1; }

  /* Two-col content for license / contacts requisites */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  /* Section "carded" wider container */
  .sec.sec-narrow {
    max-width: 820px;
  }

  /* Final CTA — wider */
  .sec .final-cta { max-width: 820px; margin: 0 auto; padding: 32px 40px; }
  .sec .final-cta h3 { font-size: 26px; }

  /* Reviews list as grid */
  .reviews-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ══════════════════════════════════════════════════════
   Cookie-баннер (ФЗ-152)
══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 16px;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,.92);
}
.cookie-banner__btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
/* Кнопка «Отклонить» на тёмном баннере — читаемый контраст (AA) */
.cookie-banner #cookie-decline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__btns { width: 100%; }
  .cookie-banner__btns button { flex: 1; }
}

/* ══════════════════════════════════════════════════════
   TOC (оглавление статьи)
══════════════════════════════════════════════════════ */
.toc {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15px;
}
.toc__title {
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   Карточка автора в статье
══════════════════════════════════════════════════════ */
.author-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  align-items: flex-start;
}
.author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.author-card__name { font-weight: 700; font-size: 15px; color: var(--text); }
.author-card__role { font-size: 13px; color: var(--text-secondary); margin: 2px 0; }
.author-card__exp  { font-size: 13px; color: var(--text-muted); }

/* Блок проверки врачом */
.reviewed-by {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid var(--border);
}
.reviewed-by strong { color: var(--text-secondary); }

/* Источники */
.sources-list { font-size: 13px; color: var(--text-muted); padding-left: 20px; }
.sources-list li { margin: 4px 0; }
.sources-list a { color: var(--primary); }

/* Медицинский дисклеймер в статье */
.medical-disclaimer {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #92400E;
  margin: 24px 0;
}

/* ═══════════════════════════════════════════════════════════
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ — высокий контраст + крупный шрифт
   Включается классом .a11y на <html> (см. header.php + main.js)
═══════════════════════════════════════════════════════════ */
html.a11y {
  /* высокий контраст: чёрный текст / белый фон / чёрные границы */
  --text: #000000;
  --text-secondary: #000000;
  --text-muted: #1A1A1A;
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --primary: #00316B;
  --primary-dark: #00214A;
  --primary-light: #FFFFFF;
  --secondary: #00316B;
  --secondary-dark: #00214A;
  --border: #000000;
  --border-strong: #000000;
  --cta: #B8400E;       /* затемнён, чтобы белый текст на кнопке читался */
  --cta-hover: #97320B;
  --cta-active: #7A2808;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  background: #FFFFFF;  /* убираем тёмную «оболочку телефона» #0F172A */
}
html.a11y body { background: #FFFFFF; }
html.a11y .shell { background: #FFFFFF; }
/* реальное увеличение фикс-px вёрстки (шрифты заданы в px, не rem).
   zoom перемножается по дереву, поэтому ribbon тоже увеличивается — для
   режима слабовидящих это уместно (крупнее весь текст, включая дисклеймер). */
html.a11y .m { zoom: 1.15; }
/* подчёркиваем ссылки в контенте для различимости */
html.a11y .m a:not(.btn):not(.m-logo):not(.m-phone) { text-decoration: underline; }
/* усиливаем границы карточек/блоков */
html.a11y .card,
html.a11y .sec,
html.a11y .m-header { border-color: #000000; }
