/* ============================================================
   ДентаПро - имплантация под ключ
   Визуальная система: refs/DESIGN.md («клиническое спокойствие»)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-tint: #F2F7F7;
  --ink: #16302B;
  --ink-soft: #4E6963;
  --teal: #0FA3A3;
  --teal-deep: #0B7D7D;
  --teal-fill: rgba(15, 163, 163, 0.08);
  --gold: #C9A96A;
  --gold-deep: #8A6A1F;
  --border: #DFEAE9;

  /* Тёмные полосы: hero, цифры, финальный CTA */
  --ink-deep: #0B211D;
  --teal-night: #06403F;
  --on-dark: #EAF6F4;
  --on-dark-soft: rgba(234, 246, 244, 0.72);
  --on-dark-line: rgba(234, 246, 244, 0.16);
  --gold-light: #E4C98F;

  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 8px 30px rgba(22, 48, 43, 0.06);
  --shadow-lift: 0 12px 40px rgba(22, 48, 43, 0.09);
  --shadow-deep: 0 26px 70px rgba(6, 32, 28, 0.28);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --section-pad: clamp(72px, 10vw, 150px);
  --header-h: 85px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(15, 163, 163, 0.22);
  color: var(--ink);
}

body {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 163, 163, 0.45) var(--bg-tint);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-tint); }
::-webkit-scrollbar-thumb {
  background: rgba(15, 163, 163, 0.45);
  border-radius: 8px;
  border: 2px solid var(--bg-tint);
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-decoration-color: rgba(15, 163, 163, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

input { caret-color: var(--teal-deep); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow { width: min(860px, 100% - 48px); }

.section { padding-block: var(--section-pad); }
.section-tint { background: var(--bg-tint); }

.section-title {
  font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.6rem);
  max-width: 21em;
  margin-inline: auto;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 44em;
  margin: 0 auto 0;
  font-size: 1.06rem;
}

.section-title + .section-sub { margin-top: -0.4em; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: #FFFFFF;
  box-shadow: 0 8px 30px rgba(15, 163, 163, 0.25);
}
.btn-primary:hover {
  background: #0A6C6C;
  box-shadow: 0 10px 34px rgba(15, 163, 163, 0.32);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg { min-height: 60px; padding: 17px 36px; font-size: 1.08rem; }
.btn-wide { width: 100%; }

/* ============ Хедер ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container { width: min(1380px, 100% - 48px); }

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding-block: 18px;
  transition: padding 0.3s ease;
}

.page-landing .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-landing .site-header:not(.scrolled) .logo,
.page-landing .site-header:not(.scrolled) .main-nav a,
.page-landing .site-header:not(.scrolled) .header-phone { color: var(--on-dark); }
.page-landing .site-header:not(.scrolled) .logo-sub,
.page-landing .site-header:not(.scrolled) .header-hours { color: var(--on-dark-soft); }
.page-landing .site-header:not(.scrolled) .burger {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}

.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-soft); }
.site-header.scrolled .header-inner { min-height: 64px; padding-block: 10px; }
.site-header.scrolled .logo-sub { opacity: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  transition: opacity 0.3s ease;
  overflow: hidden;
  height: 1.2em;
}

.main-nav { flex: 1; min-width: 0; }
.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--teal-deep); border-bottom-color: var(--teal); }

.nav-contacts { display: none; }

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  flex-shrink: 0;
}
.header-phone {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--teal-deep); }
.header-hours { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }

.header-cta { flex-shrink: 0; font-size: 0.85rem; min-height: 44px; padding: 10px 16px; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger svg line { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
.burger[aria-expanded="true"] .burger-l1 { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-l2 { opacity: 0; }
.burger[aria-expanded="true"] .burger-l3 { transform: translateY(-5px) rotate(-45deg); }

/* ============ Тёмные полосы ============ */

.section-dark {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(760px 520px at 82% -10%, rgba(15, 163, 163, 0.26), transparent 62%),
    radial-gradient(620px 420px at 4% 108%, rgba(201, 169, 106, 0.16), transparent 60%),
    linear-gradient(168deg, var(--teal-night) 0%, var(--ink-deep) 62%);
}

.section-dark h2,
.section-dark h3 { color: var(--on-dark); }

.section-dark .section-sub,
.section-dark p { color: var(--on-dark-soft); }

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(234, 246, 244, 0.07) 1px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* ============ Hero ============ */

.hero {
  padding-block: clamp(52px, 7vw, 104px) clamp(64px, 8vw, 120px);
  overflow: hidden;
}

.page-landing .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 80px));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.5) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, var(--ink-deep) 6%, rgba(6, 64, 63, 0.82) 48%, rgba(6, 64, 63, 0.42) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--on-dark-line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 1.1rem + 3.7vw, 3.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.42em;
  color: var(--on-dark);
}

.hero-sub {
  font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.22rem);
  color: var(--on-dark-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.99rem;
  font-weight: 500;
  color: var(--on-dark);
}

.hero-bullets .icon {
  color: var(--teal);
  flex-shrink: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--on-dark-line);
  border-radius: 12px;
  background: rgba(15, 163, 163, 0.12);
}

.hero-cta { display: flex; flex-direction: column; align-items: flex-start; }

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  max-width: 34em;
}

/* Ценовая плашка */

.hero-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: 32px 32px 28px;
  backdrop-filter: blur(6px);
}
.hero-price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--gold) 0%, rgba(201, 169, 106, 0.25) 42%, rgba(15, 163, 163, 0.65) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-price-main {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-price-value {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 2rem + 2.8vw, 4.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.hero-price-label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.hero-strikes {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--on-dark-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-strikes li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
}

.hero-strikes s {
  color: var(--on-dark-soft);
  text-decoration-color: rgba(234, 246, 244, 0.5);
  text-decoration-thickness: 1.5px;
}

.strike-zero {
  font-weight: 700;
  color: #4FD8D2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ============ Боль: 4 карточки ============ */

.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pain-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.icon-wrap {
  display: grid;
  place-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-fill);
  margin-bottom: 18px;
}

.pain-card .icon-accent { color: var(--teal-deep); display: block; }

.pain-card h3 {
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.pain-card p { color: var(--ink-soft); font-size: 0.99rem; }

/* ============ Сравнительная таблица ============ */

.compare-table-wrap { margin-top: 56px; }

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
}

.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding-block: 22px;
  background: var(--bg);
}

.compare-table tbody th[scope="row"] { font-weight: 500; color: var(--ink); }

.compare-table td { color: var(--ink-soft); }

.compare-table .col-ours { background: var(--teal-fill); }
.compare-table thead .col-ours { color: var(--teal-deep); }

.included {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  font-weight: 600;
}
.icon-check { flex-shrink: 0; }

.price-bar {
  display: block;
  max-width: 220px;
  height: 5px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--bg-tint);
  overflow: hidden;
}
.price-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #B08E4F);
}

.compare-cta { text-align: center; margin-top: 32px; }

/* ============ Квиз ============ */

.quiz-layout { margin-top: 56px; }

.quiz-form {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.quiz-questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.quiz-q {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 24px 28px 20px;
  margin: 0;
  box-shadow: var(--shadow-soft);
}

.quiz-q legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0;
  margin-bottom: 6px;
  float: left;
  width: 100%;
}

.quiz-q legend + .quiz-option { clear: both; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  clear: both;
}
.quiz-option:hover { background: var(--bg-tint); }

.quiz-option input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: border-color 0.2s ease;
  background: var(--bg);
  cursor: pointer;
}
.quiz-option input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-deep);
  transform: scale(0);
  transition: transform 0.18s ease;
}
.quiz-option input:checked { border-color: var(--teal-deep); }
.quiz-option input:checked::before { transform: scale(1); }
.quiz-option input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.quiz-option:has(input:checked) { background: var(--teal-fill); }
.quiz-option span { font-size: 0.98rem; }

.quiz-result {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--bg);
  border: 1px solid rgba(15, 163, 163, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 32px 32px 28px;
}

.quiz-result-title {
  font-size: 1.35rem;
  color: var(--teal-deep);
  margin-bottom: 18px;
}

.quiz-calc { margin: 0 0 14px; }

.quiz-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.quiz-calc-row dt { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.quiz-calc-row dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.quiz-calc-row:first-child dd { font-size: 1.2rem; color: var(--ink); }

.quiz-branch {
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.quiz-extra {
  font-size: 0.9rem;
  color: var(--teal-deep);
  background: var(--teal-fill);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.quiz-result-text {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 20px;
}
.quiz-result-text p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.8em; }

/* ============ Формы ============ */

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.form-field label { font-size: 0.9rem; font-weight: 500; }

.form-field input {
  min-height: 52px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder { color: #7E938E; }
.form-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 163, 163, 0.15);
}
.form-field input[aria-invalid="true"] { border-color: var(--gold-deep); }

.field-error {
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin: 0;
}

.form-consent { margin-bottom: 18px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 4px 0;
}
.consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.consent input::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: #fff;
  clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 2%, 39% 70%);
}
.consent input:checked { background: var(--teal-deep); border-color: var(--teal-deep); }
.consent input:checked::before { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ============ Врачи ============ */

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
  max-width: 980px;
  margin-inline: auto;
}

.doctor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 40px 36px;
  text-align: center;
}

.doctor-card h3 { font-size: 1.35rem; margin-bottom: 0.25em; }

.doctor-role {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.doctor-card p:last-child { color: var(--ink-soft); font-size: 0.97rem; }

/* ============ Отзывы ============ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.reviews-note {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 0.9rem;
}

.review-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.review-card blockquote { margin: 0; position: relative; padding-top: 30px; }
.review-card blockquote::before {
  content: "\00AB";
  position: absolute;
  top: -14px;
  left: -4px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
}
.review-card blockquote p { font-size: 0.96rem; color: var(--ink); }

.review-card figcaption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* ============ FAQ ============ */

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: rgba(15, 163, 163, 0.4); }

.faq-q { margin: 0; font-size: 1rem; }

.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 18px 24px;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q button:hover { color: var(--teal-deep); }

.faq-chevron { flex-shrink: 0; color: var(--teal-deep); transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0.35s;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a-inner { visibility: visible; }

.faq-a-inner p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============ Финальный CTA ============ */

.cta-card {
  background: var(--bg);
  border: 1px solid rgba(15, 163, 163, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.cta-text {
  max-width: 46em;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}

.cta-form { max-width: 640px; margin-inline: auto; text-align: left; }

.cta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============ Футер ============ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 56px 36px;
  font-size: 0.92rem;
}

.site-footer a { color: #7FD4D4; text-decoration-color: rgba(127, 212, 212, 0.4); }
.site-footer a:hover { color: #A8E4E4; }

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand { font-size: 1.05rem; color: #fff; }

.footer-col p { margin-bottom: 0.5em; }

.footer-legal { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

.footer-links { margin-top: 1em; }

.footer-disclaimer {
  margin: 28px 0 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ============ Появление секций ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-illustration .draw { stroke-dashoffset: 0; animation: none; }
}

/* ============ Общие детали для фото ============ */

.figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.figure-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tint);
  box-shadow: var(--shadow-soft);
}

.figure-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure figcaption {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.figure figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ============ Полоса «Клиника» ============ */

.clinic-strip {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.clinic-grid .figure-media { aspect-ratio: 4 / 3; }

.clinic-grid .figure:nth-child(odd) .figure-media img { filter: saturate(0.92); }

.clinic-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 28px;
}
.clinic-lead h2 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  margin: 0;
}
.clinic-lead p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ============ Инфографика: столбики сумм ============ */

.money-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  padding: 32px clamp(20px, 3vw, 36px);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.money-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.money-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.money-name { font-weight: 600; font-size: 0.95rem; }
.money-total {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.money-col--ours .money-total { color: var(--teal-deep); }
.money-col--theirs .money-total { color: var(--gold-deep); }

.money-bar {
  display: flex;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(22, 48, 43, 0.06);
}
.money-bar span {
  display: block;
  height: 100%;
  flex: 0 0 auto;
  transform-origin: left center;
}
.money-col--ours .money-bar span { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
.money-bar .seg-base { background: linear-gradient(180deg, #D8BE8B, #C9A96A); }
.money-bar .seg-extra { background: rgba(201, 169, 106, 0.42); border-left: 1px solid var(--bg-tint); }

.money-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.money-legend li { display: flex; align-items: center; gap: 7px; }
.money-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}
.money-legend .sw-base { background: #C9A96A; }
.money-legend .sw-extra { background: rgba(201, 169, 106, 0.42); }
.money-legend .sw-ours { background: var(--teal); }

.money-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ После таблицы: договор + примечание ============ */

.compare-after {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  margin-top: 40px;
}

.contract-figure .figure-media { aspect-ratio: 3 / 2; }

.compare-note {
  margin: 0;
  max-width: 44em;
  text-align: left;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 22px;
  border-left: 3px solid var(--gold);
}

/* ============ Инфографика: рассрочка ============ */

.installments {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 28px clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.installments-sum {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.installments-sum small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 6px;
}

.installments-months {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.installments-months li {
  display: grid;
  place-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--teal-fill);
  border: 1px solid rgba(15, 163, 163, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}
.installments-caption {
  grid-column: 2;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ Инфографика: дорожка сроков ============ */

.duration-track {
  margin-top: 44px;
  padding: 26px clamp(18px, 3vw, 32px) 22px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.duration-bar {
  display: flex;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.duration-bar span {
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.duration-bar .d-chair {
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  color: #fff;
}
.duration-bar .d-prep { background: rgba(201, 169, 106, 0.35); color: var(--gold-deep); }
.duration-bar .d-heal { background: repeating-linear-gradient(135deg, rgba(15, 163, 163, 0.14) 0 8px, rgba(15, 163, 163, 0.07) 8px 16px); color: var(--teal-deep); }
.duration-bar .d-crown { background: rgba(15, 163, 163, 0.3); color: var(--ink); }

.duration-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.duration-legend li { display: flex; align-items: center; gap: 8px; }
.duration-legend b { color: var(--ink); font-weight: 600; }
.duration-legend i {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.duration-legend .sw-chair { background: var(--teal-deep); }
.duration-legend .sw-prep { background: rgba(201, 169, 106, 0.6); }
.duration-legend .sw-heal { background: rgba(15, 163, 163, 0.2); border: 1px solid rgba(15, 163, 163, 0.4); }
.duration-legend .sw-crown { background: rgba(15, 163, 163, 0.45); }

/* ============ Этапы с фотографиями ============ */

.steps-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.step-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.step-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-num {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(6, 32, 28, 0.28);
}

.step-body { padding: 22px 26px 26px; }

.step-card h3 {
  font-size: 1.14rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.5em;
}
.step-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

.step-term {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
}

/* ============ Что вам ставят ============ */

.steps { padding-bottom: clamp(56px, 7vw, 96px); }

.implant-title {
  margin: clamp(56px, 7vw, 84px) 0 0;
  text-align: center;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
}

.implant-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 44px;
}

.implant-scheme {
  width: 100%;
  max-width: 300px;
  height: auto;
  justify-self: center;
}

.implant-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.implant-figures .figure-media { aspect-ratio: 3 / 2; }

/* ============ Врачи: фото ============ */

.doctor-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  text-align: left;
  padding: 26px;
}

.doctor-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-tint);
  box-shadow: var(--shadow-soft);
}
.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info h3 { font-size: 1.3rem; margin-bottom: 0.2em; }
.doctor-info p:last-child { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ Цифры на тёмной полосе ============ */

.numbers .section-title { color: var(--on-dark); }

.numbers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: 56px auto 0;
  max-width: 1080px;
}

.dots-figure {
  margin: 0;
  padding: 26px 28px 22px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}
.dots-figure svg { display: block; width: 100%; height: auto; }

.dots-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--on-dark-line);
  font-size: 0.86rem;
  color: var(--on-dark-soft);
}
.dots-caption strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dots-caption .dots-key { display: flex; align-items: center; gap: 7px; }
.dots-caption .dots-key i { width: 10px; height: 10px; border-radius: 50%; }
.dots-caption .key-on { background: #4FD8D2; }
.dots-caption .key-off { background: #2F4A47; }

.numbers-side { display: grid; gap: 18px; }

.number-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.number-item dt {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.number-item dt .unit { font-size: 0.5em; color: var(--gold-light); }

.number-item dd {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
  max-width: 20em;
}

/* ============ Отзывы: аватары ============ */

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.review-card figcaption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
  padding-top: 0;
  border-top: 0;
}
.review-card figcaption span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============ Финальный CTA на тёмном ============ */

.cta { position: relative; overflow: hidden; }

.cta .container { position: relative; }

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.cta-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-deep);
}
.cta-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cta-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(28px, 4vw, 44px);
  text-align: left;
  backdrop-filter: blur(6px);
}
.cta-card .section-title { text-align: left; margin-inline: 0; color: var(--on-dark); }
.cta-text { max-width: none; margin: 0 0 26px; color: var(--on-dark-soft); }
.cta-form { max-width: none; }

.cta .form-field label { color: var(--on-dark); }
.cta .form-field input {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}
.cta .form-field input::placeholder { color: rgba(234, 246, 244, 0.45); }
.cta .form-field input:focus { border-color: #4FD8D2; background: rgba(255, 255, 255, 0.11); }
.cta .consent { color: var(--on-dark-soft); }
.cta .consent a { color: #7FD4D4; }
.cta .consent input { border-color: rgba(234, 246, 244, 0.4); background: rgba(255, 255, 255, 0.08); }
.cta .form-note { color: var(--on-dark-soft); }

/* ============================================================
   Адаптив
   ============================================================ */

/* --- ≤1380: убираем кнопку из шапки, ужимаем меню --- */
@media (max-width: 1380px) {
  .header-cta { display: none; }
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.88rem; }
}

/* --- ≤1024: бургер-меню --- */
@media (max-width: 1024px) {
  .pains-grid { grid-template-columns: repeat(2, 1fr); }

  .header-inner { gap: 14px; justify-content: space-between; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    padding: 12px 24px 28px;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a {
    display: block;
    padding: 15px 4px;
    font-size: 1.05rem;
    border-bottom: 0;
  }

  .nav-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
  }
  .nav-phone { font-weight: 600; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
  .nav-hours, .nav-address { font-size: 0.85rem; color: var(--ink-soft); }

  .header-contacts .header-hours { display: none; }
  .burger { display: inline-flex; }

  /* Выпадающее меню - белая панель, ссылки в ней остаются тёмными */
  .page-landing .site-header:not(.scrolled) .main-nav a { color: var(--ink); }
  .page-landing .site-header:not(.scrolled) .main-nav a:hover { color: var(--teal-deep); }

  .quiz-form { grid-template-columns: 1fr; }
  .quiz-result { position: static; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-price-card { max-width: 520px; }

  .clinic-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .implant-layout { grid-template-columns: 1fr; }
  .implant-scheme { max-width: 240px; }

  .numbers-layout { grid-template-columns: 1fr; }

  .cta-layout { grid-template-columns: 1fr; }
  .cta-photo { aspect-ratio: 16 / 9; max-width: 560px; margin-inline: auto; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}

/* --- ≤768 --- */
@media (max-width: 768px) {
  .pains-grid { grid-template-columns: 1fr; gap: 18px; }
  .doctors-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-fields { grid-template-columns: 1fr; gap: 0; }

  .money-chart { grid-template-columns: 1fr; }

  .compare-after { grid-template-columns: 1fr; }
  .contract-figure { max-width: 420px; }

  .installments { grid-template-columns: 1fr; }
  .installments-caption { grid-column: 1; }
  .installments-months { grid-template-columns: repeat(6, 1fr); }

  .implant-figures { grid-template-columns: 1fr; gap: 16px; }
  .implant-figures .figure {
    display: grid;
    grid-template-columns: clamp(130px, 24%, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .duration-bar { height: 34px; }
  .duration-bar span { font-size: 0.66rem; }
}

/* --- ≤640: таблица превращается в карточки --- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .compare-table, .compare-table thead, .compare-table tbody,
  .compare-table tr, .compare-table th, .compare-table td { display: block; }

  .compare-table { background: none; border: 0; box-shadow: none; overflow: visible; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }

  .compare-table tbody tr {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
    overflow: hidden;
  }
  .compare-table tbody tr:last-child { margin-bottom: 0; }

  .compare-table tbody th[scope="row"] {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 12px;
  }

  .compare-table tbody td {
    border-bottom: 0;
    padding: 10px 20px;
  }
  .compare-table tbody td:last-child { padding-bottom: 16px; }

  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 2px;
  }
  .compare-table tbody td.col-ours::before { color: var(--teal-deep); }

  .hero-price-card { padding: 28px 22px; width: 100%; }
  .hero-strikes li { font-size: 0.85rem; }

  .hero-bullets { flex-direction: column; align-items: flex-start; }

  .btn-lg { width: 100%; }
  .hero-cta { width: 100%; }

  .quiz-q { padding: 20px 18px 14px; }
  .quiz-result { padding: 26px 20px 22px; }

  .pain-card { padding: 26px 22px; }

  .hero-price-card { padding: 26px 22px 24px; }
  .hero-kicker { font-size: 0.74rem; }
  .hero-bullets li { font-size: 0.94rem; align-items: flex-start; }
  .hero-cta { width: 100%; }

  .clinic-grid { grid-template-columns: 1fr; gap: 16px; }
  .clinic-grid .figure {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .steps-grid { grid-template-columns: 1fr; gap: 18px; }

  .doctor-card { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 20px; }

  .money-chart { padding: 24px 18px; }
  .money-head { flex-direction: column; align-items: flex-start; gap: 2px; }

  .duration-bar span { font-size: 0; }
  .duration-bar .d-heal { font-size: 0.66rem; }

  .number-item { flex-direction: column; gap: 6px; align-items: flex-start; }

  .dots-figure { padding: 20px 18px 18px; }
  .dots-caption strong { font-size: 1.6rem; }

  .cta-card { padding: 26px 22px; }
}

/* --- ≤560: шапка без телефона, он остаётся в бургер-меню --- */
@media (max-width: 560px) {
  .header-contacts { display: none; }
}

/* --- ≤375 --- */
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 1.7rem; }
}

.footer-demo { margin-top: 18px; font-size: 0.78rem; line-height: 1.6; color: rgba(255, 255, 255, 0.45); }
.footer-demo a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer-attribution { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.quiz-privacy-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted, #5c7370); }
