/* Dental Hall — имплантация. Фирменные цвета с dentalhallstr.ru: navy + sky, Manrope. */
:root {
  --ink: #161D45;
  --brand: #2B3A96;
  --brand-d: #1F2B78;
  --sky: #75A0FB;
  --sky-soft: #E9F0FF;
  --paper: #F5F6F9;
  --white: #FFFFFF;
  --line: #DCE1EC;
  --muted: #59617C;
  --todo: #FFE27A;
  --r: 18px;
  --r-s: 12px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(22,29,69,.06), 0 12px 40px -12px rgba(22,29,69,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 18px/1.55 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 54px); max-width: 18ch; }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
s { color: var(--muted); text-decoration-thickness: 2px; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; margin-top: 20px; }

mark.todo { background: var(--todo); color: #3A2E00; padding: 1px 4px; border-radius: 4px; font-size: .85em; font-weight: 600; }
.todo-line { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow .num {
  font-variant-numeric: tabular-nums; color: var(--white); background: var(--brand);
  border-radius: 6px; padding: 3px 7px; letter-spacing: .04em;
}
.eyebrow--light { color: var(--sky); }
.eyebrow--light .num { background: var(--sky); color: var(--ink); }

/* ── Кнопки ── */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 0 28px; border-radius: 14px;
  font-weight: 700; font-size: 18px; font-family: inherit; line-height: 1.2;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px -10px rgba(43,58,150,.65); }
.btn--primary:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.btn--block { width: 100%; }
.btn:focus-visible, .opt input:focus-visible + span, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ── Шапка ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.top__logo img { width: 112px; height: auto; }
.top__addr { font-size: 14px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.top__addr span { color: var(--muted); font-weight: 500; }
.top__contacts { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top__phone { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top__max { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; padding: 9px 14px; border-radius: 10px; background: var(--sky-soft); white-space: nowrap; }
@media (max-width: 860px) { .top__addr { display: none; } }
@media (max-width: 560px) {
  .top__in { min-height: 60px; gap: 12px; }
  .top__logo img { width: 92px; }
  .top__max { display: none; }
  .top__phone { font-size: 17px; }
}

/* ── 1. Hero ── */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; max-width: 11ch; letter-spacing: -0.035em; }
.hero__lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.4; margin-top: 22px; font-weight: 500; }
.hero__lead b { color: var(--brand); font-weight: 800; }
.fn { text-decoration: none; font-weight: 700; margin-left: 2px; }

.proof { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.proof li { padding: 4px 22px 4px 0; margin-right: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.proof li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.proof b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.proof span { font-size: 14px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.hero__capture { margin-top: 32px; max-width: 520px; }
html[data-variant="a"] .only-b, html[data-variant="b"] .only-a { display: none; }

.hero__doc { margin: 0; position: relative; align-self: start; }
.hero__doc img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 12%; border-radius: 28px; }
.hero__doc figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: 14px 16px;
  font-size: 14px; color: var(--muted); line-height: 1.35; box-shadow: var(--shadow);
}
.hero__doc figcaption b { display: block; color: var(--ink); font-size: 16px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__doc { order: 2; max-width: 520px; }
  .hero__doc img { aspect-ratio: 1/1; object-position: 50% 15%; }
}
@media (max-width: 480px) {
  .proof { grid-template-columns: 1fr 1fr 1fr; }
  .proof li { padding-right: 10px; margin-right: 10px; }
  .proof b { font-size: 17px; }
  .proof span { font-size: 12.5px; }
  .proof br { display: none; }
}

/* ── Карточка формы ── */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); }
.lead-form__title { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.lead-form__sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.lead-form__note { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 14px; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  font-weight: 500; font-size: 18px; font-family: inherit; color: var(--ink);
  width: 100%; min-width: 0; min-height: 56px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--brand); background: var(--white); }
.field input.is-bad { border-color: #D64545; background: #FFF5F5; }
.lead-form .btn { width: 100%; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.consent input { margin: 2px 0 0; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.lead-form.is-sending .btn { opacity: .6; pointer-events: none; }
.form-error { color: #B83232; font-size: 14px; margin-top: 8px; text-align: center; }

/* ── Квиз ── */
.quiz { border: 0; }
.quiz__title { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.quiz__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.quiz__bar { height: 6px; background: var(--sky-soft); border-radius: 6px; margin: 14px 0 18px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: var(--brand); border-radius: 6px; transition: width .35s ease; }
.quiz__step { border: 0; padding: 0; margin: 0; display: none; }
.quiz__step.is-active { display: block; animation: rise .3s ease both; }
.quiz__step legend { font-size: 19px; font-weight: 700; margin-bottom: 12px; padding: 0; line-height: 1.3; }
.opt { display: block; margin-bottom: 8px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 50px; position: relative;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 17px; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.opt span::before { content: ''; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); transition: .15s; }
.opt:hover span { border-color: var(--sky); }
.opt input:checked + span { border-color: var(--brand); background: var(--sky-soft); }
.opt input:checked + span::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--white); background: var(--brand); }
.quiz__gift { font-size: 15px; color: var(--muted); }
.quiz__back { margin-top: 10px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; padding: 6px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 2. Цена / чек ── */
.price { background: var(--white); }
.price__grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 52ch; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A96' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.receipt {
  --tooth: 14px;
  position: relative; background: var(--white); padding: 30px 28px 28px;
  border-radius: 6px 6px 0 0; box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  margin-bottom: var(--tooth);
}
.receipt::after { /* перфорация снизу */
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--tooth) * -1); height: var(--tooth);
  background:
    linear-gradient(-45deg, transparent 50%, var(--white) 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(45deg, transparent 50%, var(--white) 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
  filter: drop-shadow(0 6px 6px rgba(22,29,69,.08));
}
.receipt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.receipt__head img { width: 92px; }
.receipt__head p { text-align: right; font-weight: 800; font-size: 16px; line-height: 1.25; }
.receipt__head span { font-weight: 500; color: var(--muted); font-size: 14px; }
.receipt__list { list-style: none; padding: 14px 0; margin: 0; border-bottom: 2px dashed var(--line); }
.receipt__list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 16px; }
.receipt__list i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.receipt__list em { font-style: normal; color: var(--brand); font-weight: 800; }
.receipt__total { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 8px; }
.receipt__total span { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.receipt__total b { font-size: clamp(36px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt__total small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.receipt__fine { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 18px; }
@media (max-width: 900px) {
  .price__grid { grid-template-columns: 1fr; }
  .receipt { transform: none; max-width: 520px; }
}

/* ── 3. Диагностика ── */
.diag { background: var(--paper); }
.diag__head h2 { max-width: 20ch; }
.was { font-size: .55em; font-weight: 700; vertical-align: .35em; margin-left: 6px; }
.diag__list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: d; }
.diag__list li { background: var(--white); border-radius: var(--r); overflow: hidden; counter-increment: d; position: relative; }
.diag__list img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.diag__list li::before {
  content: counter(d); position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--white); color: var(--brand); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow);
}
.diag__list h3 { padding: 20px 22px 0; }
.diag__list p { padding: 8px 22px 24px; color: var(--muted); font-size: 16px; }
.diag__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 860px) {
  .diag__list { grid-template-columns: 1fr; }
  .diag__list li { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .diag__list img { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; min-height: 150px; }
  .diag__list h3 { padding: 16px 16px 0; font-size: 18px; }
  .diag__list p { padding: 6px 16px 16px; font-size: 15px; }
  .diag__list li::before { top: 10px; left: 10px; width: 30px; height: 30px; font-size: 15px; }
  .diag__cta .btn { width: 100%; }
}

/* ── 4. Врач ── */
.doctor__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.doctor__photo { margin: 0; position: sticky; top: 96px; }
.doctor__photo img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; object-position: 40% 50%; width: 100%; }
.bigstat { display: flex; align-items: center; gap: 16px; margin: 32px 0 8px; }
.bigstat b { font-size: clamp(72px, 9vw, 112px); line-height: .85; font-weight: 800; letter-spacing: -0.05em; color: var(--brand); }
.bigstat span { font-size: 18px; font-weight: 700; line-height: 1.25; }
.small-h { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 32px; }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; border-left: 2px solid var(--sky-soft); }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 16px; line-height: 1.45; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--sky); }
.timeline b { display: block; font-size: 14px; color: var(--brand); font-variant-numeric: tabular-nums; }
.colleague { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 16px; border-radius: var(--r); background: var(--paper); }
.colleague img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.colleague p { font-size: 15px; color: var(--muted); }
.colleague b { display: block; color: var(--ink); font-size: 17px; }
@media (max-width: 860px) {
  .doctor__grid { grid-template-columns: 1fr; }
  .doctor__photo { position: static; }
  .doctor__photo img { aspect-ratio: 16/10; }
}

/* ── 5. Шаги ── */
.steps { background: var(--white); padding-top: 0; }
.steps__list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps__list li { padding: 28px 28px 8px 0; position: relative; }
.steps__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__n { display: block; font-size: 64px; font-weight: 800; line-height: 1; color: var(--sky); letter-spacing: -0.04em; margin-bottom: 18px; }
.steps__list p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.steps__note { margin-top: 36px; padding: 18px 22px; border-radius: var(--r-s); background: var(--sky-soft); font-size: 16px; max-width: 70ch; }
@media (max-width: 760px) {
  .steps__list { grid-template-columns: 1fr; border-top: 0; }
  .steps__list li, .steps__list li + li { padding: 20px 0 20px 76px; border-left: 0; border-top: 1px solid var(--line); }
  .steps__n { position: absolute; left: 0; top: 18px; font-size: 52px; margin: 0; }
}

/* ── 6. Гарантия ── */
.guarantee { background: var(--ink); color: var(--white); }
.guarantee__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.guarantee h2 { color: var(--white); }
.guarantee .lead { color: #B9C2E4; }
.guarantee__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.guarantee__list li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); color: #B9C2E4; font-size: 16px; }
.guarantee__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.guarantee__list b { display: block; color: var(--white); font-size: 19px; margin-bottom: 4px; }
@media (max-width: 860px) { .guarantee__grid { grid-template-columns: 1fr; } }

/* ── 7. Отзывы ── */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--r); background: var(--paper); }
.rating b { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.rating span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.vids { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vid { all: unset; cursor: pointer; display: block; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 9/14; width: 100%; background: var(--paper); }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vid:hover img { transform: scale(1.03); }
.vid:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.vid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(22,29,69,.75) 100%); }
.vid__play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.vid__play::before { content: ''; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--brand); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vid__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: var(--white); font-weight: 700; font-size: 16px; line-height: 1.25; }
.vid__cap small { display: block; font-weight: 500; font-size: 13px; opacity: .85; }
@media (max-width: 860px) {
  .vids { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); padding-bottom: 6px; }
  .vids li { scroll-snap-align: start; }
}

/* ── 8. Клиника ── */
.clinic { background: var(--paper); }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; margin-top: 40px; }
.mosaic figure { margin: 0; border-radius: var(--r-s); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-row: span 2; }
.mosaic__a figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.94); padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 140px 140px; }
  .mosaic__a { grid-row: auto; grid-column: span 2; }
}
.where { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 20px; }
.where__info { background: var(--white); border-radius: var(--r); padding: 28px; }
.where dl { margin: 0; display: grid; gap: 4px; }
.where dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 14px; }
.where dt:first-child { margin-top: 0; }
.where dd { margin: 0; font-size: 18px; font-weight: 600; }
.where dd a { color: var(--ink); text-decoration: none; }
.where__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.where__btns .btn { min-height: 50px; font-size: 16px; padding: 0 18px; }
.where__map { border-radius: var(--r); overflow: hidden; min-height: 340px; background: var(--line); }
.where__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

/* ── 9. FAQ ── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: 19px; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.card--sticky { position: sticky; top: 96px; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .card--sticky { position: static; } }

/* ── Подвал ── */
.foot { background: var(--ink); color: #AEB6D6; font-size: 14px; padding-bottom: 96px; }
.foot__warn { background: var(--brand); color: var(--white); text-align: center; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: clamp(13px, 1.8vw, 20px); padding: 18px var(--gut); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding-top: 40px; }
.foot p { line-height: 1.6; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--white); }
.foot__logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; width: 110px; }
.foot__fine { grid-column: 1 / -1; font-size: 12.5px; opacity: .8; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
@media (max-width: 640px) { .foot__grid { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .foot { padding-bottom: 0; } .foot__grid { padding-bottom: 40px; } }

/* ── Плавающая панель ── */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
.dock.is-on { transform: none; }
.dock a, .dock button { min-height: 52px; border-radius: 12px; font-weight: 700; font-size: 16px; font-family: inherit; display: grid; place-items: center; text-decoration: none; border: 0; cursor: pointer; }
.dock__call { flex: 0 0 38%; background: var(--sky-soft); color: var(--brand); }
.dock__cta { flex: 1; background: var(--brand); color: var(--white); }
@media (max-width: 860px) { .dock { display: flex; } }

/* ── Модалки ── */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(480px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(22,29,69,.5); color: var(--ink); }
.modal::backdrop { background: rgba(22,29,69,.55); backdrop-filter: blur(3px); }
.modal .lead-form, .modal .thanks { padding: 32px 26px 26px; position: relative; }
.modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: var(--paper); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.modal .fields { grid-template-columns: 1fr; }
.modal--video { width: min(420px, calc(100% - 32px)); background: #000; }
.modal__video { aspect-ratio: 9/16; max-height: 82vh; width: 100%; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.thanks { text-align: center; }
.thanks__mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--sky-soft); color: var(--brand); font-size: 32px; font-weight: 800; display: grid; place-items: center; }
.thanks p + p { margin-top: 10px; color: var(--muted); }
.thanks__addr { font-weight: 700; color: var(--ink) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
