
:root {
  --teal: #2D6A6A;
  --teal-light: #3D8A8A;
  --teal-pale: #EAF4F4;
  --teal-mid: #C5E0E0;
  --amber: #C4773A;
  --amber-light: #F0E0CC;
  --amber-pale: #FBF4EC;
  --ink: #1E2A2A;
  --ink-mid: #3D4F4F;
  --muted: #7A8F8F;
  --cream: #F8F5F0;
  --white: #FDFCFA;
  --border: #E2ECEC;
  --green: #3D7A55;
  --green-pale: #EBF5EF;
  --red: #A03030;
  --red-pale: #FAF0F0;
  --blue: #2A5A7A;
  --blue-pale: #EAF2F8;
  --purple: #6A3A9A;
  --purple-pale: #F3EEFA;
  --orange: #B06010;
  --orange-pale: #FFF3E8;
  --sidebar-w: 280px;
  --shadow-sm: 0 1px 4px rgba(30,42,42,0.08);
  --shadow-md: 0 4px 16px rgba(30,42,42,0.12);
  --r: 10px;
  --r-sm: 6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; color-scheme: light; }
html { scroll-behavior: smooth; color-scheme: light; }
body { font-family: 'Nunito', sans-serif; background: #F8F5F0; color: #1E2A2A; font-size: 15px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
[data-theme="dark"] body { background: #0F1A1A; color: #E8F0F0; }

/* LAYOUT */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* TOPBAR */
.topbar { grid-column: 1 / -1; background: var(--teal); color: white; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-logo { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: white; }
.topbar-sub { font-size: 11px; opacity: 0.7; font-weight: 300; display: none; }
.menu-btn { display: none; width: 40px; height: 40px; background: none; border: none; color: white; cursor: pointer; padding: 0; border-radius: 8px; flex-shrink: 0; }
.menu-btn:hover { background: rgba(255,255,255,0.1); }
.topbar-pills { display: flex; gap: 6px; }
.topbar-pill { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: white; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; cursor: pointer; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
.topbar-pill:hover { background: rgba(255,255,255,0.25); }

/* SIDEBAR */
.sidebar { background: var(--white); border-right: 1px solid var(--border); height: calc(100vh - 56px); position: sticky; top: 56px; overflow-y: auto; padding: 16px 0 40px; scrollbar-width: thin; scrollbar-color: var(--teal-mid) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 2px; }
.sidebar-section { padding: 0 14px; margin-bottom: 4px; }
.sidebar-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; min-height: 44px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; color: var(--ink-mid); font-size: 12.5px; font-weight: 500; transition: all 0.15s; border: none; background: none; width: 100%; text-align: left; box-sizing: border-box; }
.nav-item:hover { background: var(--teal-pale); color: var(--teal); }
.nav-item.active { background: var(--teal-pale); color: var(--teal); font-weight: 700; }
.nav-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { background: var(--teal-mid); }
.part-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: white; background: var(--teal); border-radius: 4px; padding: 3px 8px; margin: 12px 14px 4px; display: block; }

/* MAIN */
.main { min-width: 0; padding: 32px 40px 80px; max-width: 780px; }

@media (min-width: 1400px) {
  :root { --sidebar-w: 300px; }
  .main { max-width: 900px; padding: 40px 56px 80px; }
}
@media (min-width: 1800px) {
  :root { --sidebar-w: 320px; }
  .main { max-width: 1100px; padding: 48px 72px 80px; }
  body { font-size: 16px; }
}

/* HERO */
.hero { margin-bottom: 40px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 46px; line-height: 1.1; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.hero-sub { color: var(--muted); font-size: 14px; font-weight: 300; max-width: 580px; line-height: 1.6; }
.hero-stats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.stat-pill { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; color: var(--ink-mid); }
.stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* QUICK ACCESS */
.quick-access { background: var(--teal); border-radius: 14px; padding: 22px 26px; margin-bottom: 40px; color: white; }
.qa-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; margin-bottom: 14px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.qa-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 11px 13px; color: white; font-family: 'Nunito', sans-serif; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: background 0.15s; line-height: 1.3; }
.qa-btn:hover { background: rgba(255,255,255,0.2); }
.qa-arrow { margin-left: auto; opacity: 0.6; flex-shrink: 0; font-size: 12px; }

/* SECTIONS */
section { margin-bottom: 52px; scroll-margin-top: 72px; }
.section-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.section-number { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
section > h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--teal-pale); padding-bottom: 12px; margin-bottom: 18px; line-height: 1.2; }
h3 { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: var(--ink); margin: 26px 0 11px; }
p { margin-bottom: 12px; font-size: 14.5px; }

/* TLDR */
.tldr { background: var(--teal-pale); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 13px 17px; margin-bottom: 20px; }
.tldr-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.tldr p { font-size: 13.5px; color: var(--ink-mid); margin: 0; line-height: 1.55; }

/* INFOBOX */
.info-box, .infobox { border-radius: 10px; padding: 15px 19px; margin: 14px 0; font-size: 14px; }
.info-title, .infobox-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 7px; }
.info-box.tip, .infobox.tip { background: var(--blue-pale); border: 1px solid #C5D8E8; }
.info-box.tip .info-title, .infobox.tip .infobox-title { color: var(--blue); }
.info-box.warning, .infobox.warn { background: var(--red-pale); border: 1px solid #E0C5C5; }
.info-box.warning .info-title, .infobox.warn .infobox-title { color: var(--red); }
.info-box.success, .infobox.success { background: var(--green-pale); border: 1px solid #C5D8CC; }
.info-box.success .info-title, .infobox.success .infobox-title { color: var(--green); }
.info-box.neutral, .infobox.note { background: var(--amber-pale); border: 1px solid var(--amber-light); }
.info-box.neutral .info-title, .infobox.note .infobox-title { color: var(--amber); }
.infobox.purple { background: var(--purple-pale); border: 1px solid #D0C0E8; }
.infobox.purple .infobox-title { color: var(--purple); }

/* QUOTE */
.quote-block, .quote { background: var(--amber-pale); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 11px 15px; margin: 11px 0; }
.quote-block p, .quote p { font-size: 13.5px; font-style: italic; color: #5A4030; margin: 0 0 4px; line-height: 1.5; }
.quote-author, .quote-src { font-size: 11px; color: var(--muted); font-style: normal; }

/* CLINIC CARDS */
.clinic-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.clinic-card.top, .clinic-card.featured { border: 2px solid var(--teal); }
.clinic-head, .clinic-header { padding: 18px 22px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.clinic-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.clinic-addr { font-size: 12px; color: var(--muted); }
.clinic-body { padding: 14px 22px; }
.clinic-meta, .clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; margin-bottom: 14px; }
.meta-row, .clinic-row { display: flex; flex-direction: column; gap: 1px; }
.meta-label, .clinic-label { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.meta-val, .clinic-value { font-size: 13px; font-weight: 600; color: var(--ink); }
.meta-val.price { color: var(--teal); }

/* VERDICT / PLUS-MINUS */
.verdict, .plus-minus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.verd-block, .plus-block, .minus-block { border-radius: 8px; padding: 11px 13px; }
.verd-yes, .plus-block { background: var(--green-pale); }
.verd-no, .minus-block { background: var(--red-pale); }
.verd-title, .pm-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.verd-yes .verd-title, .plus-block .pm-title { color: var(--green); }
.verd-no .verd-title, .minus-block .pm-title { color: var(--red); }
.verd-list, .pm-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.verd-list li, .pm-list li { font-size: 12.5px; color: var(--ink-mid); display: flex; gap: 5px; line-height: 1.4; }
.verd-list li::before, .pm-list li::before { flex-shrink: 0; font-size: 11px; margin-top: 1px; }
.verd-yes .verd-list li::before, .plus-block .pm-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
.verd-no .verd-list li::before, .minus-block .pm-list li::before { content: "✗"; color: var(--red); font-weight: 700; }

/* BADGES */
.badge-row, .clinic-badges { display: flex; gap: 5px; flex-wrap: wrap; flex-shrink: 0; }
.badge, .lang-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.3px; display: inline-block; }
.b-teal, .badge-price { background: var(--teal-pale); color: var(--teal); }
.b-amber, .badge-warn { background: var(--amber-pale); color: var(--amber); }
.b-green, .badge-state { background: var(--green-pale); color: var(--green); }
.b-red { background: var(--red-pale); color: var(--red); }
.b-blue, .badge-en { background: var(--blue-pale); color: var(--blue); }
.b-purple, .badge-ru { background: #F0E8F5; color: #7B4FA0; }
.b-orange, .badge-nicu { background: var(--orange-pale); color: var(--orange); }
.lang-ru { background: #F0E8F5; color: #7B4FA0; }
.lang-en { background: var(--blue-pale); color: var(--blue); }

/* TABLES */
.doctor-table, .compare-table, .cmp, .price-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.doctor-table th, .compare-table th, .cmp th, .price-table th { text-align: left; padding: 9px 12px; background: var(--ink); color: white; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.doctor-table th:first-child, .cmp th:first-child, .price-table th:first-child { border-radius: 8px 0 0 0; }
.doctor-table th:last-child, .cmp th:last-child, .price-table th:last-child { border-radius: 0 8px 0 0; }
.doctor-table td, .compare-table td, .cmp td, .price-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doctor-table tr:nth-child(even) td, .compare-table tr:nth-child(even) td, .cmp tr:nth-child(even) td, .price-table tr:nth-child(even) td { background: var(--white); }
.doctor-table tr:last-child td, .cmp tr:last-child td, .price-table tr:last-child td { border-bottom: none; }
.doctor-name, .doc-name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.check, .ck { color: var(--green); font-weight: 700; }
.cross, .cx { color: var(--red); font-weight: 700; }
.partial, .cp { color: var(--amber); font-weight: 700; }

/* STEPS — базовые размеры .step-body; сама сетка .steps/.step-num переопределена ниже (см. "STEPS" у строки ~300) */
.step-body { font-size: 14px; padding-top: 4px; flex: 1; }

/* CHECKLIST */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.checklist li::before { content: "☐"; font-size: 16px; color: var(--teal); flex-shrink: 0; margin-top: -1px; }

/* PACK GRID */
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 14px 0; }
.pack-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.pack-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.pack-card-icon { font-size: 22px; }
.pack-card-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.pack-card-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* PRICE TAG */
.price-block, .price-tag { display: inline-block; background: var(--teal-pale); border: 1px solid var(--teal-mid); color: var(--teal); font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }

/* TAGS */
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-right: 4px; }
.tag-teal { background: var(--teal-pale); color: var(--teal); }
.tag-amber { background: var(--amber-pale); color: var(--amber); }
.tag-green { background: var(--green-pale); color: var(--green); }
.tag-red { background: var(--red-pale); color: var(--red); }
.tag-blue { background: var(--blue-pale); color: var(--blue); }

/* DIVIDER */
hr, .divider { border: none; border-top: 1px solid var(--border); margin: 38px 0; }

/* FOOTNOTE */
.footnote { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 6px; }

/* FOOTER */
.footer { border-top: 2px solid var(--teal-pale); padding-top: 22px; margin-top: 44px; color: var(--muted); font-size: 12px; line-height: 1.6; border: none; }

/* OVERLAY */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 149; }

/* BOTTOM NAV */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 6px 0 env(safe-area-inset-bottom, 8px); z-index: 90; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bottom-nav::-webkit-scrollbar { display: none; }
.bn-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--muted); cursor: pointer; padding: 6px 10px; min-height: 52px; min-width: 64px; flex: 0 0 auto; white-space: nowrap; border: none; background: none; text-decoration: none; font-family: 'Nunito', sans-serif; font-weight: 600; }
.bn-btn.active { color: var(--teal); }
.bn-icon { font-size: 20px; line-height: 1; }

/* CASE GRID (documents.html) */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }

/* RESPONSIVE */
@media (max-width: 960px) { .topbar-pills { display: none; } .topbar-sub { display: block; } }
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; top: 56px; left: 0; width: 85vw; max-width: 300px; height: calc(100vh - 56px); z-index: 150; background: var(--white); box-shadow: 4px 0 20px rgba(0,0,0,0.2); overflow-y: auto; }
  .sidebar.open { display: block; }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.25s; visibility: hidden; }
  .sidebar-overlay.open { opacity: 1; pointer-events: all; visibility: visible; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .main { padding: 20px 16px 96px; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .qa-grid { grid-template-columns: 1fr; }
  .clinic-meta { grid-template-columns: 1fr; }
  .verdict, .plus-minus { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .doctor-table, .compare-table, .cmp, .price-table, .doc-table, .vax-table, .garden-table { display: block; overflow-x: auto; }
  .bottom-nav { display: flex; }
  .clinic-row { grid-template-columns: 1fr; gap: 8px; }
  .atbl { display: block; overflow-x: auto; }
}

  abbr {
    text-decoration: underline dotted var(--teal);
    cursor: help;
    text-underline-offset: 2px;
  }
.benefit-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.benefit-head { padding: 20px 24px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.benefit-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--ink); }
.benefit-full { font-size: 13px; color: var(--muted); margin-top: 2px; }
.benefit-body { padding: 0 24px 20px; }
.benefit-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 14px 0; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv-label { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.kv-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.kv-val.big { font-size: 18px; color: var(--teal); font-family: 'Cormorant Garamond', serif; }
.benefit-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tag-teal { background: var(--teal-pale); color: var(--teal); }
.tag-green { background: var(--green-pale); color: var(--green); }
.tag-amber { background: var(--amber-pale); color: var(--amber); }
.tag-red { background: var(--red-pale); color: var(--red); }
.tag-blue { background: var(--blue-pale); color: var(--blue); }

/* TIMELINE */
.timeline { position: relative; padding-left: 24px; margin: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--teal-mid); }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-dot { position: absolute; left: -20px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--teal); }
.tl-period { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.tl-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.tl-body { font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; }
.tl-amount { display: inline-block; background: var(--teal-pale); border: 1px solid var(--teal-mid); color: var(--teal); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-top: 6px; }

/* COMPARISON TABLE */
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.cmp th { padding: 10px 12px; background: var(--ink); color: white; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cmp th:first-child { border-radius: 8px 0 0 0; }
.cmp th:last-child { border-radius: 0 8px 0 0; }
.cmp td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.cmp tr:nth-child(even) td { background: var(--white); }
.cmp tr:last-child td { border-bottom: none; }

/* STEPS */
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 30px; height: 30px; background: var(--teal); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.step-body strong { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.step-body p { font-size: 13.5px; color: var(--ink-mid); margin: 0; }

/* LIST */
ul.list { padding-left: 0; list-style: none; margin-bottom: 14px; }
ul.list li { padding: 4px 0 4px 20px; position: relative; font-size: 14px; }
ul.list li::before { content: "—"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

hr { border: none; border-top: 1px solid var(--border); margin: 38px 0; }

/* ABBR TOOLTIP */
abbr { text-decoration: underline dotted var(--teal); cursor: help; text-underline-offset: 2px; position: relative; }
.abbr-tooltip {
  position: fixed;
  background: #1E2A2A;
  color: white;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  max-width: 240px;
  line-height: 1.4;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s;
}
.abbr-tooltip.visible { opacity: 1; }

.price-tag { display: inline-block; background: var(--teal-pale); border: 1px solid var(--teal-mid); color: var(--teal); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }

.footer-note { border-top: 2px solid var(--teal-pale); padding-top: 22px; margin-top: 44px; color: var(--muted); font-size: 12px; line-height: 1.6; }


/* FORCE LIGHT ON KEY ELEMENTS — prevents iOS Safari auto-dark */
.main, .sidebar, .info-box, .infobox, .clinic-card, .benefit-card, .pack-card,
.doctor-table, .compare-table, .cmp, .price-table, .atbl,
.clinic-row, .stat-pill, .tldr { color-scheme: light; }

/* DARK THEME */
[data-theme="dark"] {
  --teal: #4AA8A8;
  --teal-pale: #1A3535;
  --teal-mid: #2D5555;
  --amber: #D4914A;
  --amber-pale: #2A1F0F;
  --amber-light: #3A2A15;
  --ink: #E8F0F0;
  --ink-mid: #B0C8C8;
  --muted: #6A8888;
  --cream: #0F1A1A;
  --white: #162020;
  --border: #1E3030;
  --green: #5AAA75;
  --green-pale: #0F2018;
  --red: #CC6060;
  --red-pale: #1F0F0F;
  --blue: #5090B8;
  --blue-pale: #0F1E28;
  --purple: #9060C8;
  --purple-pale: #1A0F28;
  --orange: #C88040;
  --orange-pale: #201508;
}
[data-theme="dark"] body { background: #0F1A1A; color: #E8F0F0; }
[data-theme="dark"] .main { background: #0F1A1A; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #E8F0F0; }
[data-theme="dark"] .hero h1 { color: #E8F0F0; }
[data-theme="dark"] .hero-eyebrow { color: #4AA8A8; }
[data-theme="dark"] .hero-sub { color: #6A8888; }
[data-theme="dark"] .stat-pill { background: #162020; border-color: #1E3030; color: #B0C8C8; }
[data-theme="dark"] .topbar { background: #0D1A1A; }
[data-theme="dark"] .sidebar { background: #122020; border-color: #1E3030; }
[data-theme="dark"] .nav-item { color: #B0C8C8; }
[data-theme="dark"] .part-label { background: #1E3535; }
[data-theme="dark"] .clinic-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .pack-card { background: #162020; border-color: #1E3030; }
[data-theme="dark"] .cmp th,
[data-theme="dark"] .price-table th,
[data-theme="dark"] .doctor-table th { background: #1E3535; }
[data-theme="dark"] .cmp td,
[data-theme="dark"] .price-table td,
[data-theme="dark"] .doctor-table td { border-color: #1E3030; }
[data-theme="dark"] hr { border-color: #1E3030; }
[data-theme="dark"] abbr { text-decoration-color: #4AA8A8; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.22); }

.tl-dot.amber { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.tl-dot.blue { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.tl-period.amber { color: var(--amber); }
.tl-period.blue { color: var(--blue); }
.tl-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-right: 4px; margin-top: 6px; }
.clinic-grid { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.clinic-row { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.clinic-row:hover { border-color: var(--teal-mid); }
.cr-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.cr-sub { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.cr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.badge-teal { background: var(--teal-pale); color: var(--teal); }
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-amber { background: var(--amber-pale); color: var(--amber); }
.cr-body { font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; }
.cr-price { font-size: 12px; font-weight: 700; color: var(--teal); margin-top: 6px; }
.atbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.atbl th { padding: 9px 12px; background: var(--ink); color: white; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.atbl th:first-child { border-radius: 8px 0 0 0; }
.atbl th:last-child { border-radius: 0 8px 0 0; }
.atbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.atbl tr:nth-child(even) td { background: var(--white); }
.atbl tr:last-child td { border-bottom: none; }
.req-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.req-yes { background: var(--teal-pale); color: var(--teal); }
.req-opt { background: var(--amber-pale); color: var(--amber); }
[data-theme="dark"] .clinic-row { background: #162020; border-color: #1E3030; }
[data-theme="dark"] .atbl th { background: #1E3535; }
[data-theme="dark"] .atbl td { border-color: #1E3030; }

/* PEDIATRIC — дополнительные стили */
.badge-free { background: var(--green-pale); color: var(--green); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.badge-paid { background: var(--amber-pale); color: var(--amber); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.doc-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700; }
.doc-sub { font-size: 11px; color: var(--muted); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.doc-table th { padding: 9px 12px; background: var(--ink); color: white; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:nth-child(even) td { background: var(--cream); }
.vax-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.vax-table th { padding: 8px 10px; background: var(--ink); color: white; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.vax-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.vax-table tr:nth-child(even) td { background: var(--cream); }
.vax-table tr:last-child td { border-bottom: none; }
.emergency { background: var(--red-pale); border: 2px solid var(--red); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.emergency-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.emergency-phone { font-size: 28px; font-weight: 800; color: var(--red); font-family: 'Cormorant Garamond', serif; }

/* DUTY SCHEDULE WIDGET — дежурные больницы по дням (Скорая и неотложка) */
.duty-widget { margin: 16px 0 24px; }
.duty-q { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.duty-row { display: grid; gap: 7px; margin-bottom: 16px; }
.duty-row-7 { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.duty-row-2 { grid-template-columns: 1fr 1fr; }
.duty-row button { font: inherit; cursor: pointer; color: var(--ink); background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; min-height: 46px; padding: 8px 4px; font-size: 13.5px; font-weight: 600; }
.duty-row-2 button { font-size: 14px; min-height: 50px; }
.duty-row button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; }
.duty-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.duty-card-lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.duty-card-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.duty-card-addr { font-size: 14px; color: var(--ink-mid); white-space: pre-line; margin-bottom: 14px; }
.duty-act { display: block; text-align: center; text-decoration: none; border: 1.5px solid var(--teal); color: var(--teal); border-radius: 10px; padding: 12px; font-size: 14.5px; font-weight: 700; margin-top: 8px; }
.duty-act-fill { background: var(--teal); color: white; border-color: var(--teal); }
.duty-note { background: var(--amber-pale); color: var(--amber); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }
.duty-live { display: block; text-align: center; text-decoration: none; background: var(--teal-pale); color: var(--teal); border-radius: 12px; padding: 15px; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.duty-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 8px; }
.duty-pharm { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 15px; margin-bottom: 8px; }
.duty-pharm-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.duty-pharm-addr { font-size: 13px; color: var(--muted); }
.duty-pharm-tel { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }
.med-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.med-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.med-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.med-what { font-size: 12px; color: var(--muted); }
.med-note { font-size: 12.5px; color: var(--ink-mid); margin-top: 5px; }
ul.standard-list { padding-left: 0; list-style: none; }
ul.standard-list li { padding: 3px 0 3px 18px; position: relative; font-size: 13.5px; color: var(--ink-mid); }
ul.standard-list li::before { content: "·"; position: absolute; left: 0; color: var(--teal); font-weight: 900; font-size: 16px; line-height: 1.5; }
@media (max-width: 600px) { .med-grid { grid-template-columns: 1fr; } }
[data-theme="dark"] .doc-table tr:nth-child(even) td,
[data-theme="dark"] .vax-table tr:nth-child(even) td,
[data-theme="dark"] .med-card { background: #162020; }
[data-theme="dark"] .doc-table th,
[data-theme="dark"] .vax-table th { background: #1E3535; }

/* ===== PREMIUM GATE ===== */
.premium-wrap { position: relative; }
.premium-wrap.locked .premium-content { max-height: 360px; overflow: hidden; filter: blur(4px); user-select: none; pointer-events: none; }
.premium-overlay { display: none; }
.premium-wrap.locked .premium-overlay { display: flex; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(to bottom, transparent 0%, rgba(248,245,240,0.82) 28%, rgba(248,245,240,0.97) 52%); z-index: 5; padding: 24px; text-align: center; }
[data-theme="dark"] .premium-wrap.locked .premium-overlay { background: linear-gradient(to bottom, transparent 0%, rgba(15,26,26,0.82) 28%, rgba(15,26,26,0.97) 52%); }
.prem-lock { font-size: 26px; margin-bottom: 8px; }
.prem-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.prem-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; max-width: 300px; }
.prem-price { font-size: 15px; font-weight: 800; color: var(--teal); margin-bottom: 18px; }
.prem-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.prem-tg { display: inline-block; background: var(--teal); color: white; border: none; border-radius: 8px; padding: 10px 22px; font-size: 14px; font-family: 'Nunito', sans-serif; font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.prem-tg:hover { background: var(--teal-light); color: white; }
.prem-pw-link { font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; background: none; border: none; font-family: 'Nunito', sans-serif; }
.prem-pw-form { display: none; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.prem-pw-form.open { display: flex; }
.prem-pw-form input { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; width: 220px; font-family: 'Nunito', sans-serif; outline: none; background: var(--white); color: var(--ink); }
.prem-pw-form button { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-family: 'Nunito', sans-serif; font-weight: 600; cursor: pointer; }
.prem-err { color: var(--red); font-size: 12px; display: none; }

/* SADIKI — классы, которых не было в общем style.css (перенесены из локального <style> sadiki.html) */
.info-box.alert, .infobox.alert { background: var(--red-pale); border: 1px solid #E0C5C5; }
.info-box.alert .info-title, .infobox.alert .infobox-title { color: var(--red); }
.garden-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
.garden-table th { background: var(--teal-pale); color: var(--teal); font-weight: 700; text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--teal-mid); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.garden-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.garden-table tr:last-child td { border-bottom: none; }
.garden-table tr:hover td { background: var(--teal-pale); }
.tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin: 1px; }
.tag-ru { background: #FFF0E0; color: #B05020; }
.tag-en { background: #E0F0FF; color: #205080; }
.tag-bi { background: var(--teal-pale); color: var(--teal); }
.tag-mt { background: var(--green-pale); color: var(--green); }
.step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-title { font-weight: 700; margin-bottom: 4px; }
[data-theme="dark"] .garden-table th { background: #1E3535; }
[data-theme="dark"] .garden-table td { border-color: #1E3030; }
[data-theme="dark"] .garden-table tr:hover td { background: #1E3535; }

/* DRAFT BANNER — ставится ботом наверх страницы после авто-обновления по чату, убирается вручную после вычитки */
.draft-banner { display: flex; align-items: center; gap: 8px; background: var(--amber-pale); border: 1px solid var(--amber-light); border-radius: 10px; padding: 10px 16px; margin-bottom: 24px; font-size: 13px; color: var(--amber); font-weight: 600; }
.draft-banner-icon { font-size: 16px; flex-shrink: 0; }
[data-theme="dark"] .draft-banner { background: #2A1F0F; border-color: #3A2A15; }

