/* =========================================================
   Базальная имплантация — лендинг
   Система: белый лист, одна акцентная краска (фиолетовый из иконки),
   плотная типографика, много воздуха, минимум графики.
   ========================================================= */

:root {
  /* Цвета */
  --ink: #15141F;
  --text: #2B2A36;
  --muted: #6B6980;
  --faint: #9B99AC;
  --bg: #FFFFFF;
  --paper: #F7F6FB;
  --fog: #EDEBF5;
  --line: #E6E4EE;
  --brand: #4D3292;
  --brand-700: #3D2778;
  --brand-soft: #EFEAFB;
  --star: #F2B705;

  /* Форма */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 12px;
  --radius-pill: 999px;

  /* Шрифты */
  --font-display: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Сетка */
  --container: 1200px;
  --gutter: 24px;
  --section: 104px;
  --header-h: 76px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.section__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section__num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section__num--light { color: rgba(255,255,255,0.85); }
.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  height: 48px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; white-space: normal; height: auto; min-height: 56px; padding-top: 14px; padding-bottom: 14px; line-height: 1.2; text-align: center; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-soft); }
.btn__text-short { display: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.header__info {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.header__info li { display: inline-flex; align-items: center; gap: 8px; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .18s ease;
}
.header__phone:hover { color: var(--brand); }

/* ---------- Главный экран ---------- */
.hero { padding: 56px 0 var(--section); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.nowrap { white-space: nowrap; }
.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__accent { color: var(--brand); }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.hero__facts li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.hero__facts li > span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero__call { display: none; }

.hero__media { position: relative; }
/* Сцена: мягкая лавандовая плашка, на ней вырезанная женщина,
   нижний край растворяется в плашку; маленький кружок-схема без акцента */
.hero__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  isolation: isolate;
}
.hero__scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  bottom: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--fog) 0%, #E3DCF6 100%);
  z-index: -1;
}
.hero__woman {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-44%);
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.hero__jaw {
  position: absolute;
  left: -10%;
  bottom: 12%;
  width: 36%;
  max-width: 196px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(21,20,31,0.14);
  z-index: 1;
}

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__head--center .section__num { justify-content: center; }
.section__head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.section__head--row > div { max-width: 760px; }

/* ---------- Квиз ---------- */
.quiz__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
/* Полоса «первый этап бесплатно» над вопросами: тёмная, в три столбца */
.quiz__offer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2.1fr);
  gap: 24px 40px;
  align-items: center;
  padding: 28px 36px;
  background: var(--brand);
  color: #fff;
}
.quiz__offer-head { display: flex; align-items: center; gap: 16px; }
.quiz__offer-img {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
}
.quiz__offer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quiz__offer-title em { font-style: normal; color: #E3DAFF; text-transform: uppercase; letter-spacing: 0.02em; }
.quiz__offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.quiz__offer-list li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.22); }
.quiz__offer-list strong { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.quiz__offer-list li > span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.7); }
.quiz__price { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.quiz__price b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.quiz__price s { font-size: 13px; color: rgba(255,255,255,0.6); }
.quiz__main { padding: 32px 44px 44px; min-height: 340px; display: flex; flex-direction: column; }
.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
}
.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease;
}
.quiz__back svg { width: 16px; height: 16px; }
.quiz__back:hover { color: var(--brand); }
.quiz__step {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.quiz__progress {
  height: 3px;
  margin: 18px 0 32px;
  background: var(--fog);
  border-radius: 2px;
  overflow: hidden;
}
.quiz__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 2px;
  transition: width .35s ease;
}
.quiz__question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quiz__hint { margin-top: 10px; font-size: 15px; color: var(--muted); }
.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease;
}
.quiz__option::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quiz__option:hover { border-color: var(--brand); }
.quiz__option.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.quiz__option.is-selected::before {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4.5px var(--brand);
}
.quiz__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.quiz__channel {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.quiz__channel:hover { border-color: var(--brand); }
.quiz__channel.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.quiz__final { margin-top: 24px; max-width: 520px; }
.quiz__note {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
}
.quiz__error { margin-top: 8px; font-size: 13px; color: #C0392B; }
.quiz__success {
  margin: auto 0;
  padding: 24px 0;
  text-align: center;
}
.quiz__success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.quiz__success-mark svg { width: 26px; height: 26px; }
.quiz__success p { margin-top: 10px; color: var(--muted); }

/* ---------- Поля формы ---------- */
.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77,50,146,0.14); }
.field input.is-invalid { border-color: #C0392B; }
.consent { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-document-link { display: block; white-space: normal; overflow-wrap: anywhere; }
.consent .legal-document-link { display: inline; }
.field + .btn, .consent + .btn { margin-top: 16px; }

/* ---------- Кому подходит ---------- */
.who__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}
.who__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.who__card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--fog);
}
.who__idx {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.who__card h3 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.who__card p { margin-top: auto; padding-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.who__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--fog);
  aspect-ratio: 4 / 5;
}
.who__media img { width: 100%; height: 100%; object-fit: cover; }
.who__media figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.who__media figcaption span { display: block; }
.who__media figcaption span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.who__media figcaption span:last-child { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- Немедленная нагрузка ---------- */
.fast__panel {
  padding: 56px 56px 48px;
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: #fff;
}
.fast__head { max-width: 760px; margin: 0 auto; text-align: center; }
.fast__head .section__num { justify-content: center; }
.fast .h2 { color: #fff; }
.fast__card {
  position: relative;
  margin-top: 48px;
  padding: 44px 36px 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
}
.fast__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  border: 2px solid #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fast__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.fast__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.fast__text strong { color: var(--brand); white-space: nowrap; }
.fast__img { width: 100%; max-width: 320px; margin: 0 auto; }
.fast__facts { display: grid; gap: 12px; }
.fast__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}
.check {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fast__cta { margin-top: 32px; text-align: center; }

/* ---------- Сравнение ---------- */
.compare__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.compare__lead { max-width: 460px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.compare__table { display: grid; gap: 12px; margin-top: 48px; }
.compare__row {
  display: grid;
  grid-template-columns: 200px repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  counter-reset: cell;
}
.compare__cells { display: contents; }
.compare__label {
  display: flex;
  align-items: center;
  padding: 28px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.compare__cells li {
  counter-increment: cell;
  padding: 24px 20px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.compare__cells li::before {
  content: counter(cell);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--fog);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.compare__row--classic { background: #fff; }
.compare__row--classic .compare__label { background: var(--paper); color: var(--ink); }
.compare__row--basal { background: var(--brand-soft); border-color: rgba(77,50,146,0.18); }
.compare__row--basal .compare__label { background: var(--brand); color: #fff; }
.compare__row--basal .compare__cells li { border-left-color: rgba(77,50,146,0.14); color: var(--ink); }
.compare__row--basal .compare__cells li::before { background: var(--brand); color: #fff; }

/* ---------- Пациенты ---------- */
.slider__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.slider__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color .18s ease, color .18s ease, opacity .18s ease;
}
.slider__btn svg { width: 18px; height: 18px; }
.slider__btn:hover { border-color: var(--ink); }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn:disabled:hover { border-color: var(--line); }
.slider {
  --gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * 2) / 3);
  gap: var(--gap);
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider::-webkit-scrollbar { display: none; }
.case { display: flex; flex-direction: column; scroll-snap-align: start; }
.case__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--fog);
  aspect-ratio: 3 / 4;
}
.case__photo img { width: 100%; height: 100%; object-fit: cover; }
.case h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case p { margin-top: auto; padding-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.rating__summary { display: flex; align-items: center; gap: 20px; }
.rating__score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; fill: var(--star); }
.rating__summary p { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--muted); max-width: 200px; }
.rating__platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rating__platforms li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  display: grid;
  gap: 10px;
}
.rating__meta { font-size: 13px; color: var(--muted); }
.rating__logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.rating__logo--2gis { color: #1C9E3F; }
.rating__logo--yandex { color: #E52E1C; }
.rating__logo--prodoc { color: #1D6FD1; }
.rating__val { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head p { margin-top: 20px; max-width: 360px; color: var(--muted); }
.faq__phone {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .18s ease;
}
.faq__phone:hover { color: var(--brand); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .18s ease;
}
.faq__item summary:hover { color: var(--brand); }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand); border-color: var(--brand); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 56px 26px 0; }
.faq__answer p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- Форма записи ---------- */
.contact { background: var(--brand); color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  align-items: center;
}
.contact .h2 { color: #fff; }
.contact__lead { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.78); max-width: 460px; }
.contact__points { margin-top: 36px; display: grid; gap: 12px; }
.contact__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.contact__points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  flex: 0 0 auto;
}
.contact__form {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--text);
}
.contact__form .btn { margin-top: 20px; }
.form__success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: #fff;
}
.form__success strong { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.form__success p { margin-top: 10px; color: var(--muted); max-width: 320px; }
.form__success[hidden] { display: none; }
.form__message { margin-top: 12px; font-size: 14px; line-height: 1.45; }
.form__message[data-state="error"] { color: #C0392B; }
.form__message[data-state="success"] { color: var(--brand); }
.form__message[hidden] { display: none; }

/* ---------- Подвал ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__about { margin-top: 20px; max-width: 300px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.footer__col h4 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer__col li { font-size: 15px; line-height: 1.4; }
.footer__col li + li { margin-top: 10px; }
.footer__col li a { color: var(--text); transition: color .18s ease; }
.footer__col li a:hover { color: var(--brand); }
.footer-links { display: grid; grid-template-columns: 1fr; }
.footer-links .legal-document-link { display: block; }
.footer__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer__col p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.footer__col .btn { margin-top: 18px; }
.footer__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.footer__legal p + p { margin-top: 8px; }
.footer__warning {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
}

/* ---------- Появление (одна тихая анимация, только CSS) ----------
   Блок в покое всегда виден; лёгкое проявление идёт от прокрутки
   и только в браузерах с поддержкой scroll-driven animations. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .header__info { display: none; }
}

@media (max-width: 960px) {
  :root { --section: 80px; }
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__scene { aspect-ratio: 4 / 3; max-width: 520px; margin: 0 auto; }
  .hero__title { margin-top: 18px; }
  .fast__panel { padding: 44px 28px 36px; }
  .fast__card { padding: 40px 24px 28px; }
  .fast__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .fast__facts { grid-template-columns: 1fr 1fr; text-align: left; }
  .compare__head { grid-template-columns: 1fr; align-items: start; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__label { padding: 20px 24px; }
  .compare__cells li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .compare__cells li::before { margin: 0; flex: 0 0 auto; }
  .compare__row--basal .compare__cells li { border-top-color: rgba(77,50,146,0.14); }
  .hero__facts { margin-top: 32px; }
  .quiz__offer { order: 2; grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .quiz__offer-list { grid-template-columns: 1fr; gap: 0; }
  .quiz__offer-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .quiz__offer-list strong { grid-column: 1; margin-top: 0; }
  .quiz__offer-list li > span { grid-column: 1; }
  .quiz__offer-list .quiz__price { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 4px; }
  .quiz__main { padding: 28px 24px 32px; min-height: 0; }
  .who__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .who__media { position: static; aspect-ratio: 16 / 11; }
  .slider { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  .rating { grid-template-columns: 1fr; gap: 28px; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq__head { position: static; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section: 64px; --gutter: 16px; --header-h: 64px; }
  .logo { gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: 11px; line-height: 1.15; }
  .header__inner { gap: 10px; }
  .header__actions { margin-left: auto; gap: 8px; }
  .header__phone span { display: none; }
  .header__phone {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .header__phone .ico { width: 18px; height: 18px; }
  .btn--sm { height: 40px; padding: 0 14px; }
  .btn__text-full { display: none; }
  .btn__text-short { display: inline; }
  .hero__scene { aspect-ratio: 4 / 3; }
  .hero__jaw { left: -3%; bottom: 8%; width: 30%; max-width: 112px; border-width: 4px; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__facts li { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; }
  .hero__facts strong { font-size: 22px; min-width: 96px; }
  .hero__facts li > span { margin-top: 0; }
  .fast__facts { grid-template-columns: 1fr; }
  .fast__tag { font-size: 11px; padding: 8px 14px; }
  .fast__cta .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__call { display: inline-flex; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .quiz__options { grid-template-columns: 1fr; }
  .who__cards { grid-template-columns: 1fr; }
  .who__card h3 { margin-top: 24px; }
  .slider { --gap: 14px; grid-auto-columns: 82%; margin-top: 32px; }
  .rating__platforms { grid-template-columns: 1fr; }
  .rating__platforms li { grid-template-columns: 1fr auto; align-items: center; }
  .rating__platforms li .rating__meta { grid-column: 1 / -1; }
  .rating__score { font-size: 52px; }
  .faq__item summary { font-size: 16px; padding: 20px 0; }
  .faq__answer { padding-right: 0; }
  .contact__form { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 48px; }
}

@media (max-width: 360px) {
  .header__phone { display: none; }
}
