/* ============================================================
   Центр экспертной имплантации · Екатеринбург
   Лендинг «Имплантация по протоколу ускоренного заживления»
   ============================================================ */

:root {
  --page: #f3f6f9;
  --surface: #ffffff;
  --soft: #e9f5f7;
  --ink: #17252b;
  --muted: #5f6e75;
  --teal: #0b7189;
  --teal-dark: #075263;
  --teal-bright: #2ba8b8;
  --teal-soft: #d7eef2;
  --teal-glow: #8ee0e8;
  --cta: #1f9254;
  --cta-dark: #19783f;
  --cta-soft: #dff3e6;
  --line: rgba(11, 113, 137, 0.22);
  --line-soft: rgba(11, 113, 137, 0.12);
  --shadow: 0 28px 70px rgba(24, 57, 68, 0.10);
  --shadow-sm: 0 10px 26px rgba(24, 57, 68, 0.08);
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; text-wrap: pretty; }
::selection { background: var(--teal-soft); color: var(--teal-dark); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* ---------- Типографика ---------- */
.section-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h1 .hl {
  color: var(--teal-dark);
  background: linear-gradient(120deg, #bfe8ee, #d6f0f4) no-repeat 0 70% / 100% 46%;
  padding: 0 0.04em;
  margin: 0 -0.04em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.note { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Кнопки ---------- */
.button {
  min-height: 58px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.button-primary { color: #fff; background: var(--cta); box-shadow: 0 16px 36px rgba(31, 146, 84, 0.28); }
.button-primary:hover { transform: translateY(-2px); background: var(--cta-dark); box-shadow: 0 20px 42px rgba(31, 146, 84, 0.34); }
.button-secondary { color: var(--teal-dark); border: 1px solid var(--line); background: #fff; }
.button-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button-light { color: var(--teal-dark); background: #fff; }
.button-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.button:focus-visible, a:focus-visible, summary:focus-visible, .quiz-back:focus-visible, .text-button:focus-visible, .cert-thumb:focus-visible {
  outline: 3px solid rgba(43, 168, 184, 0.5);
  outline-offset: 4px;
}

/* Галочка в круге */
.check {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: inline-grid; place-items: center;
  padding: 4px; border-radius: 50%;
  background: var(--teal); color: #fff;
}
.check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 246, 249, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line-soft); box-shadow: 0 10px 30px rgba(24, 57, 68, 0.06); }
.header-grid {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto auto minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); text-decoration: none; min-width: 0; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px; background: var(--teal); color: #fff;
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { display: grid; }
.brand-text b { max-width: 180px; font-size: 14px; line-height: 1.1; letter-spacing: -0.01em; text-transform: uppercase; font-weight: 800; }
.brand-text small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.header-proof {
  padding: 9px 14px;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 14px; color: #fff; background: var(--teal); white-space: nowrap;
}
.header-proof strong { font-size: 17px; line-height: 1; letter-spacing: -0.01em; }
.header-proof span { margin-top: 5px; font-size: 12px; line-height: 1.15; opacity: 0.85; }
.header-addresses { min-width: 0; }
.header-addresses span { display: block; margin-bottom: 3px; font-weight: 800; font-size: 13px; color: var(--teal); letter-spacing: 0.04em; text-transform: uppercase; }
.header-addresses p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.header-phone {
  display: flex; flex-direction: column; align-items: flex-end;
  color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em;
}
.header-phone span { margin-bottom: 3px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.header-button { min-height: 48px; padding: 0 20px; font-size: 15px; border-radius: 14px; box-shadow: none; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 36px 0 60px;
  background:
    radial-gradient(circle at 82% 22%, rgba(43, 168, 184, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, var(--page) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11, 113, 137, 0.16) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 25% 30%, #000 10%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line-soft);
  color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(43, 168, 184, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 168, 184, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(43, 168, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 168, 184, 0); }
}
.hero-lead { max-width: 600px; margin: 24px 0 0; color: #415158; font-size: 18px; line-height: 1.55; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }

/* Три плашки в один ряд */
.hero-pills { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills li {
  padding: 12px 16px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: #fff;
  color: #34454c; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.hero-pills b { color: var(--teal); font-weight: 800; }

.hero-visual { position: relative; aspect-ratio: 4 / 3; }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* ---------- Квиз ---------- */
.quiz-section { padding: 76px 0; background: var(--soft); scroll-margin-top: var(--header-h); }
.quiz {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.quiz-intro {
  position: relative;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(122, 225, 236, 0.22), transparent 34%), var(--teal-dark);
}
.quiz-intro::after {
  content: ""; position: absolute; right: -90px; bottom: -110px;
  width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(43, 168, 184, 0.38), transparent 68%);
}
.quiz-intro > * { position: relative; z-index: 1; }
.quiz-intro .section-kicker { color: var(--teal-glow); }
.quiz-intro h2 { margin-bottom: 12px; font-size: clamp(26px, 2.5vw, 34px); }
.quiz-intro > p:not(.section-kicker) { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.55; }

/* Зубик на платформах */
.tooth-run { margin-top: 22px; padding: 12px 12px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.tooth-run svg { display: block; width: 100%; height: auto; max-height: 240px; margin-inline: auto; overflow: visible; }
.tooth-run-caption { margin-top: 8px; min-height: 20px; color: var(--teal-glow); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.tooth-clouds { fill: rgba(255, 255, 255, 0.07); }
.trail-seg { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; stroke-dasharray: 2 5; transition: stroke 0.3s; }
.trail-seg.is-done { stroke: rgba(142, 224, 232, 0.75); }
.platform rect { fill: rgba(255, 255, 255, 0.16); transition: fill 0.3s; }
.platform line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; transition: stroke 0.3s; }
.platform text { fill: rgba(255, 255, 255, 0.6); font-size: 10px; font-weight: 800; text-anchor: middle; transition: fill 0.3s; }
.platform.is-done rect { fill: var(--teal-bright); }
.platform.is-done line { stroke: #5fd3cd; }
.platform.is-active rect { fill: var(--teal-glow); }
.platform.is-active line { stroke: #d9f6f9; }
.platform.is-active text { fill: #fff; }
.flag-pole { stroke: #fff; stroke-width: 2.5; }
.flag { transform-box: fill-box; transform-origin: 0 50%; }
.flag path { fill: var(--teal-bright); }
.flag .flag-check { fill: none; stroke: #fff; stroke-width: 2.4; }
.spark { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.tooth { transform: translate(var(--tx), var(--ty)); transition: transform 0.62s cubic-bezier(0.5, 0, 0.5, 1); }
.tooth-hop { transform-box: fill-box; transform-origin: 50% 100%; }
.tooth-shadow { fill: rgba(0, 0, 0, 0.3); transform-box: fill-box; transform-origin: 50% 50%; }
.tooth-body { fill: #fff; stroke: var(--teal-dark); stroke-width: 0.8; }
.tooth-eye { fill: var(--teal-dark); }
.tooth-cheek { fill: #f4a09a; opacity: 0.75; }
.tooth-smile { fill: none; stroke: var(--teal-dark); stroke-width: 1.4; }
.tooth.is-hopping .tooth-hop { animation: tooth-hop 0.62s cubic-bezier(0.4, 0, 0.6, 1) both; }
.tooth.is-hopping .tooth-shadow { animation: shadow-hop 0.62s ease-in-out both; }
.is-finished .tooth:not(.is-hopping) .tooth-hop { animation: tooth-cheer 0.9s ease-in-out infinite; }
.is-finished .flag { animation: flag-wave 0.6s ease-in-out infinite alternate; }
.is-finished .spark { animation: spark-pop 1.2s ease-out infinite; }
.is-finished .spark:nth-child(2) { animation-delay: 0.3s; }
.is-finished .spark:nth-child(3) { animation-delay: 0.6s; }
.is-finished .spark:nth-child(4) { animation-delay: 0.9s; }
@keyframes tooth-hop { 0% { transform: translateY(0) scale(1); } 12% { transform: translateY(3px) scale(1.1, 0.88); } 50% { transform: translateY(-46px) scale(0.95, 1.08); } 88% { transform: translateY(0) scale(1.08, 0.9); } 100% { transform: translateY(0) scale(1); } }
@keyframes shadow-hop { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.55); opacity: 0.35; } }
@keyframes tooth-cheer { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-10px) scale(0.96, 1.05); } 60% { transform: translateY(0) scale(1.05, 0.95); } }
@keyframes flag-wave { from { transform: skewY(-5deg); } to { transform: skewY(5deg); } }
@keyframes spark-pop { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(0.6) translateY(-10px); } }

.pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d8f3f0; font-size: 13px; font-weight: 700; white-space: nowrap;
}

.quiz-card {
  min-width: 0; min-height: 520px; padding: 34px;
  display: flex; flex-direction: column;
  background: #fff;
}
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.quiz-progress[hidden] { display: none; }
.quiz-progress > span { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.quiz-track { width: 55%; height: 6px; border-radius: 999px; background: #e3ecef; overflow: hidden; }
.quiz-track i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.quiz-form { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.quiz-form[hidden] { display: none; }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; animation: step-in 0.3s ease both; }
.quiz-step[hidden] { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quiz-step legend {
  max-width: 620px; margin-bottom: 26px; padding: 0;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em;
}
.quiz-step legend:focus { outline: 0; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-options label {
  position: relative; min-height: 66px; padding: 14px 44px 14px 16px;
  display: flex; align-items: center; cursor: pointer;
  border: 1px solid #d9e3e6; border-radius: 16px; background: #fbfcfc;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.quiz-options label::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 18px; height: 18px; border: 2px solid #b7c6ca; border-radius: 50%; background: #fff;
  transform: translateY(-50%); transition: 0.16s;
}
.quiz-options label:hover { border-color: var(--teal); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quiz-options input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.quiz-options label.is-selected { border-color: var(--teal); background: #ecf8fa; color: var(--teal-dark); }
.quiz-options label.is-selected::after { border: 5px solid var(--teal); }
.quiz-options input:focus-visible + span { outline: 3px solid rgba(43, 168, 184, 0.4); outline-offset: 12px; border-radius: 10px; }

.quiz-actions { margin-top: 8px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.quiz-back {
  padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: color 0.2s;
}
.quiz-back:hover { color: var(--teal-dark); }
.quiz-back[hidden] { display: none; }
.quiz-hint { margin-left: auto; color: var(--muted); font-size: 13px; }
.quiz-hint[hidden] { display: none; }

.quiz-result-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.quiz-result-icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; background: var(--soft); color: var(--teal-dark);
}
.quiz-result-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-result-head h3 { margin-bottom: 6px; font-size: 23px; }
.quiz-result-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.quiz-result-head p + p { margin-top: 8px; color: var(--ink); font-weight: 600; }

.quiz-success { flex: 1; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.quiz-success[hidden] { display: none; }
.quiz-success > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; }
.quiz-success > span svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-success h3 { margin: 22px 0 10px; font-size: 30px; }
.quiz-success p { max-width: 440px; margin: 0 0 22px; color: var(--muted); line-height: 1.55; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.field span { color: #4f6067; font-size: 13px; font-weight: 700; }
.field input {
  width: 100%; height: 56px; padding: 0 18px;
  color: var(--ink); font: inherit; font-size: 16px;
  border: 1px solid #d8e2e5; border-radius: 14px; background: #fbfcfc; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #9aabb0; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(43, 168, 184, 0.16); }
.field input[aria-invalid="true"] { border-color: #c9614d; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--teal); }
.consent-row a { color: var(--teal-dark); text-underline-offset: 2px; }
.form-submit { width: 100%; margin-top: 6px; }
.form-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b4432f; }
.form-status.is-success { color: var(--teal-dark); font-weight: 700; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Подход к лечению (тёмный блок) ---------- */
.method-section {
  padding: 76px 0; color: #fff;
  scroll-margin-top: var(--header-h);
  background: radial-gradient(circle at 90% 0%, rgba(122, 225, 236, 0.18), transparent 32%), var(--teal-dark);
}
.method-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 24px 80px; align-items: end; }
.method-heading .section-kicker { color: var(--teal-glow); }
.method-heading h2 { margin: 0; max-width: 720px; }
.method-heading > p { margin: 0 0 8px; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.55; }
.advantage-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.advantage-card {
  min-height: 290px; padding: 28px; position: relative;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.3s, background 0.3s;
}
.advantage-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.11); }
.advantage-card > svg {
  width: 50px; height: 50px;
  fill: none; stroke: #85dce5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.advantage-number { position: absolute; right: 24px; top: 22px; color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 800; letter-spacing: 0.09em; }
.advantage-card h3 { margin: 30px 0 10px; font-size: 24px; }
.advantage-card p { margin: auto 0 0; padding-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.5; }

/* ---------- Факты ---------- */
.trust-section { padding: 10px 0; background: #fff; border-bottom: 1px solid var(--line-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item {
  min-height: 86px; padding: 12px 26px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line-soft);
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { color: var(--teal); font-size: 27px; line-height: 1; letter-spacing: -0.03em; }
.trust-item span { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }

/* ---------- Логика метода ---------- */
.process-section { padding: 76px 0; background: #fff; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 24px 80px; align-items: end; }
.split-heading h2 { margin: 0; }
.split-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.process-layout { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; }
.process-list { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); list-style: none; overflow: hidden; }
.process-list li {
  min-height: 128px; padding: 28px 32px;
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start;
  border-bottom: 1px solid var(--line-soft);
}
.process-list li:last-child { border-bottom: 0; }
.process-list li > span {
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--teal); font-size: 14px; font-weight: 800;
  border: 1px solid var(--line); border-radius: 50%; background: var(--soft);
}
.process-list h3 { margin: 4px 0 8px; font-size: 22px; }
.process-list p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.time-card {
  min-height: 100%; padding: 36px;
  display: flex; flex-direction: column; color: #fff;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at 84% 16%, rgba(122, 225, 236, 0.25), transparent 31%), var(--teal-dark);
  box-shadow: var(--shadow);
}
.time-label { margin: 0; color: var(--teal-glow); font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.time-card > strong { margin: auto 0 12px; font-size: 128px; line-height: 0.8; letter-spacing: -0.06em; }
.time-card > strong span { display: block; margin: 18px 0 0 4px; color: var(--teal-glow); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.time-card .button { width: 100%; margin-top: 32px; }
.time-card > p:not(.time-label) { margin: 28px 0 22px; color: rgba(255, 255, 255, 0.76); font-size: 15px; line-height: 1.55; }
.text-button {
  padding: 16px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #fff; font-weight: 800; text-align: left;
  border: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); background: transparent; cursor: pointer;
}
.text-button svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.text-button:hover svg { transform: translateX(4px); }

/* ---------- Стоимость ---------- */
.finance-section { padding: 76px 0; background: #fff; }
.finance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr); gap: 48px 72px; align-items: center; }
.finance-copy h2 strong { color: var(--teal); }
.finance-copy > p:not(.section-kicker) { max-width: 520px; margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.offer-box { padding: 28px; border-radius: 28px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.offer-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.offer-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.offer-list { margin: 14px 0 0; padding: 0; list-style: none; }
.offer-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.offer-list .name { font-size: 16px; font-weight: 800; line-height: 1.2; }
.offer-list .name small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.offer-price { text-align: right; flex: none; }
.offer-price b { display: block; font-size: 24px; line-height: 1; color: var(--teal); font-weight: 800; letter-spacing: -0.02em; }
.offer-price s { display: block; margin-top: 4px; color: #9aabb0; font-size: 13px; }
.finance-extra { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finance-extra div { padding: 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-soft); }
.finance-extra b { display: block; font-size: 22px; line-height: 1; color: var(--teal-dark); letter-spacing: -0.02em; }
.finance-extra span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* ---------- Врач ---------- */
.doctor-section { padding: 76px 0; background: var(--page); }
.doctor-layout { display: grid; grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr); gap: 48px 72px; align-items: center; }
.doctor-photo-card {
  height: 640px; position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 220px 220px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #fff, #dff2f5);
  box-shadow: var(--shadow);
}
.doctor-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform: scale(0.88);
}
.photo-caption {
  position: absolute; z-index: 2; right: 24px; bottom: 24px; padding: 10px 13px;
  color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px);
}
.doctor-content h2 { max-width: 640px; }
.doctor-intro { max-width: 620px; margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.doctor-role { margin: 0; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.doctor-name { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.doctor-facts { margin: 20px 0 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doctor-facts div { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); }
.doctor-facts b { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.doctor-facts span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.credential-heading { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.certs { margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cert-thumb {
  padding: 0; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  background: #fff; cursor: zoom-in; aspect-ratio: 4 / 5;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cert-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cert-thumb:hover img { transform: scale(1.04); }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(7, 82, 99, 0.86); backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 640px); text-align: center; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.lightbox figcaption { margin-top: 14px; color: #fff; font-size: 15px; font-weight: 700; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 30px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Вопросы ---------- */
.faq-section { padding: 76px 0; background: var(--soft); scroll-margin-top: var(--header-h); }
.faq-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr); gap: 64px; align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-heading h2 { font-size: clamp(34px, 3.6vw, 52px); }
.faq-heading > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.faq-heading .button { margin-top: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  min-height: 84px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1.3; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  width: 30px; height: 30px; position: relative; flex: 0 0 30px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: background 0.2s;
}
.faq-list summary i::before, .faq-list summary i::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 1.5px;
  background: var(--teal); transition: transform 0.2s;
}
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details[open] summary i { background: var(--teal-soft); }
.faq-list details > p { margin: -4px 54px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- Финальный призыв ---------- */
.final-cta { padding: 0 0 76px; background: var(--soft); }
.final-card {
  position: relative; min-height: 300px; padding: 56px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 40px; align-items: center;
  color: #fff; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(circle at 82% 18%, rgba(114, 222, 233, 0.26), transparent 30%), var(--teal-dark);
}
.final-card .section-kicker { color: var(--teal-glow); }
.final-card h2 { margin: 0; max-width: 600px; font-size: clamp(30px, 3.2vw, 44px); }
.final-action { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.final-action > span { color: rgba(255, 255, 255, 0.72); font-size: 13px; line-height: 1.45; }

/* ---------- Подвал ---------- */
.site-footer { color: #dfe7e9; background: #12272d; }
.footer-main { padding: 56px 0 44px; display: grid; grid-template-columns: 280px 1fr 300px; gap: 48px; align-items: start; }
.brand--footer { color: #fff; }
.brand--footer .brand-text small { color: rgba(255, 255, 255, 0.6); }
.footer-contacts a { color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.footer-contacts p { max-width: 460px; margin: 10px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 14px; line-height: 1.55; }
.footer-links { display: grid; grid-template-columns: 1fr; justify-self: end; gap: 12px; }
.footer-links a { display: block; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.4; text-underline-offset: 4px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.legal-document-link { white-space: normal; overflow-wrap: anywhere; }
.legal-row { padding: 26px 0; display: grid; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.legal-row p { margin: 0; color: rgba(255, 255, 255, 0.56); font-size: 13px; line-height: 1.55; }
.medical-warning {
  padding: 20px 24px; color: rgba(255, 255, 255, 0.76);
  font-size: 13px; letter-spacing: 0.07em; text-align: center; text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Мобильная панель ---------- */
.mobile-cta { display: none; }

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1100px) {
  .header-grid { grid-template-columns: auto auto 1fr auto auto; gap: 20px; }
  .header-addresses { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr); gap: 32px; }
  .quiz { grid-template-columns: 1fr; }
  .quiz-intro { padding: 30px; }
  .tooth-run svg { max-height: 200px; }
  .faq-layout { gap: 36px; }
  .process-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .doctor-layout { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
  .finance-grid { gap: 40px; }
  .footer-main { grid-template-columns: 220px 1fr 260px; gap: 32px; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .container { width: min(100% - 32px, 680px); }
  .header-grid { grid-template-columns: 1fr auto; gap: 14px; }
  .header-proof, .header-button { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text b { font-size: 13px; max-width: 175px; }
  .brand-text small { display: none; }
  .header-phone { font-size: 16px; }
  .header-phone span { display: none; }

  .hero { padding: 28px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(34px, 8.6vw, 46px); }
  h2 { font-size: clamp(30px, 7.5vw, 40px); }
  .hero-lead { font-size: 17px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { width: 100%; }
  .faq-heading .button { width: 100%; }
  .hero-pills { gap: 8px; }
  .hero-pills li { flex: 1 1 100%; padding: 11px 14px; white-space: normal; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }

  .quiz-section, .method-section, .process-section, .doctor-section, .finance-section, .faq-section { padding: 52px 0; }
  .faq-layout, .finance-grid, .doctor-layout, .process-layout, .split-heading, .method-heading { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .quiz-intro { padding: 22px 18px 20px; }
  .quiz-intro h2 { font-size: 24px; margin-bottom: 8px; }
  .quiz-intro > p:not(.section-kicker) { font-size: 14px; line-height: 1.5; }
  .tooth-run { margin-top: 14px; padding: 8px 8px 6px; }
  .tooth-run svg { max-height: 160px; }
  .tooth-run-caption { margin-top: 4px; font-size: 12px; }
  .pills { gap: 6px; margin-top: 14px; }
  .pill { padding: 7px 10px; font-size: 12px; }
  .quiz-card { min-height: 0; padding: 22px 18px; }
  .quiz-progress { margin-bottom: 18px; }
  .quiz-step legend { margin-bottom: 18px; font-size: 22px; }
  .quiz-options { gap: 8px; }
  .quiz-options label { min-height: 56px; padding: 12px 38px 12px 14px; font-size: 14px; }
  .quiz-options label::after { right: 12px; width: 16px; height: 16px; }
  .quiz-actions { padding-top: 18px; min-height: 48px; }

  .advantage-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .advantage-card { min-height: 220px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
  .trust-item:first-child { padding-left: 20px; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
  .trust-item strong { font-size: 22px; }

  .process-layout { margin-top: 36px; }
  .process-list li { padding: 22px 20px; grid-template-columns: 40px 1fr; gap: 14px; min-height: 0; }
  .process-list li > span { width: 40px; height: 40px; font-size: 12px; }
  .process-list h3 { font-size: 19px; }
  .time-card { min-height: 0; padding: 28px; }
  .time-card > strong { margin-top: 36px; font-size: 96px; }

  .offer-box { padding: 20px 18px; }
  .offer-title { font-size: 19px; }
  .offer-list .name { font-size: 15px; }
  .offer-price b { font-size: 22px; }
  .finance-extra { gap: 8px; }
  .finance-extra div { padding: 12px 10px; }
  .finance-extra b { font-size: 18px; }
  .finance-extra span { font-size: 12px; }

  .doctor-photo-card { width: min(100%, 520px); height: 520px; margin: 0 auto; }
  .doctor-name { font-size: 23px; }
  .doctor-facts { grid-template-columns: 1fr; gap: 8px; }
  .certs { gap: 8px; }

  .faq-list summary { min-height: 0; padding: 16px 0; font-size: 16px; }
  .faq-list details > p { margin-right: 0; }

  .final-cta { padding-bottom: 52px; }
  .final-card { padding: 36px 24px; grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .final-action .button { width: 100%; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .footer-links { justify-self: start; }
  .medical-warning { padding-bottom: 28px; }

  body { padding-bottom: 68px; }
  .mobile-cta {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 68px; padding: 10px 12px;
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px;
    background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--line-soft);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .mobile-cta a, .mobile-cta button {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; font-weight: 800; font-size: 15px; text-decoration: none;
  }
  .mobile-cta a { color: var(--teal-dark); border: 1px solid var(--line); background: #fff; }
  .mobile-cta button { color: #fff; border: 0; background: var(--cta); }
}

@media (max-width: 380px) {
  .quiz-options { grid-template-columns: 1fr; }
}

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