/* «Зубной мастер» — стили. Mobile first: база под 375 px, ниже медиазапросы для планшета и десктопа. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyr.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-lat.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0F2C4C;
  --tide: #1FA99B;
  --tide-text: #127368;
  --white: #FFFFFF;
  --foam: #F1F5F4;
  --slate: #5B6E82;
  --line: #DCE4E6;
  --gutter: 16px;
  --max: 1280px;
  --sec: 72px;
  --r-ctrl: 8px;
  --r-img: 18px;
  --hdr: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-ctrl); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px;
  border-radius: var(--r-ctrl); border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn--accent { background: var(--tide); color: var(--ink); }
.btn--accent:hover { background: #26BBAC; }
.btn--ghost { background: rgba(255,255,255,.72); border-color: rgba(15,44,76,.18); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--hdr); display: flex; align-items: center; gap: 16px; }
.hdr__logo img { width: 156px; height: auto; }
.hdr__nav, .hdr__contact { display: none; }
.hdr__msg { margin-left: auto; display: flex; gap: 6px; }
.ico-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctrl); color: var(--ink); border: 1px solid var(--line); }
.ico-btn svg { width: 20px; height: 20px; }
.ico-btn:hover { border-color: var(--ink); }
.ico-btn--call { background: var(--tide); border-color: var(--tide); }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); min-height: min(calc(100svh - var(--hdr)), 820px); }
.hero__in { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 8px; }
.hero__place { font-size: 14px; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.hero__place::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tide); }
.hero__title { margin-top: 14px; font-weight: 800; font-size: clamp(36px, 10.4vw, 92px); line-height: .98; letter-spacing: -.04em; }
.hero__title span { display: block; }
.hero__title .t2 { color: var(--slate); font-size: .62em; line-height: 1.08; letter-spacing: -.03em; margin-top: .2em; max-width: 14ch; }
.hero__price { margin-top: 22px; display: grid; gap: 4px; font-size: 15px; color: var(--slate); }
.hero__price b { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-right: 6px; }
.hero__facts { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.hero__facts li { display: flex; gap: 10px; align-items: baseline; }
.hero__facts li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--tide); transform: translateY(-4px); }
.hero__cta { margin-top: 26px; display: grid; gap: 10px; }

/* Стеклянный зуб: стоит сразу, без анимации появления; при прокрутке поворачивается и улетает вверх */
.hero__tooth { position: relative; z-index: 1; height: 300px; margin-top: 8px; display: grid; place-items: start center; pointer-events: none; }
.hero__tooth picture { display: block; }
.hero__tooth-img {
  height: 360px; width: auto; max-width: none;
  transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--tr, -8deg)) scale(var(--ts, 1));
  filter: blur(var(--tb, 0px)); opacity: var(--to, 1);
  will-change: transform, opacity, filter;
}
.hero__glow { position: absolute; left: 50%; top: 45%; width: 340px; height: 340px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(31,169,155,.16) 0%, rgba(31,169,155,.06) 45%, rgba(31,169,155,0) 70%); }
.hero__shadow { position: absolute; left: 50%; bottom: -36px; width: 170px; height: 22px; transform: translateX(-50%) scaleX(var(--ss, 1)); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15,44,76,.22) 0%, rgba(15,44,76,0) 70%); opacity: var(--so, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Цифры ---------- */
.proof { background: var(--ink); color: #fff; }
.proof__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 30px; padding-bottom: 30px; }
.proof b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.proof span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.7); }

/* ---------- Секции: общий каркас как у референса ---------- */
.sec { padding: var(--sec) 0; }
.sec__head { margin-bottom: 32px; }
.sec__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 14px; }
.sec__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tide); }
.sec__tag--light { color: rgba(255,255,255,.7); }
.h2 { font-size: clamp(30px, 8vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; }
.h2 span { display: block; }
.h2 .t2 { color: var(--slate); }
.lead { margin-top: 18px; font-size: 17px; color: var(--slate); max-width: 60ch; }

/* ---------- Квиз ---------- */
.calc { background: var(--foam); }
.quiz { display: grid; gap: 0; background: var(--white); border-radius: var(--r-img); overflow: hidden; }
.quiz__visual { display: none; }
.quiz__form { padding: 22px 18px 20px; display: flex; flex-direction: column; min-height: 520px; }
.quiz__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 20%; background: var(--tide); transition: width .35s ease; }
.quiz__count { margin-top: 12px; font-size: 14px; color: var(--slate); }
.quiz__count b { color: var(--ink); }
.qstep { display: none; border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.qstep.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) { .qstep.is-active { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; } }
.qstep legend { padding: 0; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 58px; padding: 14px 16px 14px 50px;
  border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; position: relative; transition: border-color .15s, background-color .15s;
}
.opt span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid #AAB8C2; background: #fff; transition: border-color .15s, box-shadow .15s; }
.opt small { font-weight: 600; font-size: 14px; color: var(--slate); margin-left: auto; }
.opt:hover span { border-color: #AAB8C2; }
.opt input:checked + span { border-color: var(--ink); background: var(--foam); }
.opt input:checked + span::before { border-color: var(--tide); box-shadow: inset 0 0 0 5px var(--tide); }
.opt input:focus-visible + span { outline: 3px solid var(--tide); outline-offset: 2px; }

.result { background: var(--ink); color: #fff; border-radius: 14px; padding: 20px 18px; }
.result__sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.result__sum span { font-size: 16px; color: rgba(255,255,255,.7); }
.result__sum b { font-size: clamp(34px, 10vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.result__note { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.72); }
.result__extra { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 8px; }
.result__extra div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.result__extra dt { color: rgba(255,255,255,.72); }
.result__extra dd { font-weight: 800; color: var(--tide); white-space: nowrap; }
.quiz__ask { margin-top: 18px; font-size: 15px; color: var(--slate); }

.fields { display: grid; gap: 12px; margin-top: 16px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; }
.field input:focus { outline: none; border-color: var(--ink); }
.field input.is-bad { border-color: #C0392B; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--slate); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.consent a { color: var(--tide-text); }
.form-error { margin-top: 10px; font-size: 14px; font-weight: 600; color: #B03A2E; }

.quiz__nav { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quiz__nav [hidden] { display: none; }
.quiz__done, .quiz__fail { margin-top: 18px; }
.quiz__done h3, .quiz__fail h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.quiz__done p, .quiz__fail p { margin-top: 10px; color: var(--slate); }
.quiz__done-ico { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--tide); color: var(--ink); margin-bottom: 18px; }
.fail-links { margin-top: 18px; display: grid; gap: 10px; }
.quiz.is-finished .quiz__form { min-height: 0; padding-bottom: 32px; }
.quiz.is-finished .quiz__progress, .quiz.is-finished .quiz__count, .quiz.is-finished .quiz__nav { display: none; }

/* ---------- Почему к нам: закреплённый имплант + стеклянные карточки ---------- */
.why { padding-bottom: 0; }
.why .sec__head { margin-bottom: 0; }
.why__stage { display: grid; position: relative; }
.why__pin, .why__cards { grid-area: 1 / 1; }
.why__pin {
  position: sticky; top: var(--hdr); align-self: start; z-index: 0;
  height: calc(100svh - var(--hdr)); display: grid; place-items: center; overflow: hidden; pointer-events: none;
}
.why__obj {
  height: min(64svh, 560px); width: auto; max-width: none;
  transform: rotate(var(--ro, 0deg)) scale(var(--sc, 1)); will-change: transform;
  filter: drop-shadow(0 50px 50px rgba(15,44,76,.22));
}
.why__cards { position: relative; z-index: 1; display: grid; gap: 14px; padding-top: 62svh; padding-bottom: 28svh; }
.gcard {
  min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 24px 22px; border-radius: 14px;
  background: rgba(241,245,244,.62); border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
}
.gcard h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; max-width: 16ch; }
.gcard p { color: var(--slate); font-size: 15px; line-height: 1.55; }

/* ---------- Этапы ---------- */
.steps { background: var(--foam); }
.steps__list { counter-reset: s; display: grid; gap: 0; }
.steps__list li { counter-increment: s; padding: 20px 0 20px 64px; position: relative; border-top: 1px solid var(--line); }
.steps__list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; color: var(--tide); line-height: 1; }
.steps__list b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.steps__list p { margin-top: 6px; color: var(--slate); font-size: 15px; }

/* ---------- Лечим под рейс ---------- */
.reys { background: var(--ink); color: #fff; display: grid; }
.reys__photo img { width: 100%; height: 280px; object-fit: cover; object-position: 30% 50%; }
.reys__body { padding: 44px var(--gutter) var(--sec); }
.reys .h2 .t2 { color: rgba(255,255,255,.6); }
.reys__list { margin-top: 26px; display: grid; gap: 12px; font-size: 17px; }
.reys__list li { display: flex; gap: 12px; align-items: baseline; }
.reys__list li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--tide); transform: translateY(-5px); }
.reys__deal { margin-top: 28px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.8); }
.reys__deal b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--tide); line-height: 1; }
.reys__cta { margin-top: 26px; display: grid; gap: 10px; }

/* ---------- Цены ---------- */
.prices__grid { display: grid; gap: 32px; }
.ptable h3 { font-size: 15px; font-weight: 800; color: var(--tide-text); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-top: 28px; }
.ptable h3:first-child { margin-top: 0; }
.ptable dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ptable dt { color: var(--ink); }
.ptable dd { font-weight: 800; text-align: right; white-space: nowrap; }
.ptable dd small { display: block; font-weight: 600; font-size: 12px; color: var(--tide-text); white-space: normal; }
.offers { margin-top: 40px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.offers li { background: var(--white); padding: 18px; font-size: 15px; color: var(--slate); }
.offers b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

/* ---------- Врачи ---------- */
.doctors { padding-top: 0; }
.doc { display: grid; gap: 28px; }
.doc__photo { margin: 0 calc(var(--gutter) * -1); }
.doc__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.doc__role { margin-top: 14px; font-weight: 700; color: var(--tide-text); font-size: 17px; }
.doc__text { margin-top: 14px; color: var(--slate); font-size: 17px; max-width: 54ch; }
.team { margin-top: 56px; }
.team__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.team__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.team__list b { font-weight: 700; }
.team__list span { grid-column: 1; color: var(--slate); font-size: 15px; }
.team__list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- Гарантии ---------- */
.guar { background: var(--foam); }
.guar__grid { display: grid; gap: 0; }
.guar__grid p { padding: 22px 0; border-top: 1px solid var(--line); }
.guar__grid b { display: block; font-size: clamp(38px, 11vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.guar__grid span { display: block; margin-top: 8px; color: var(--slate); }
.guar__lab { margin-top: 32px; }
.guar__lab img { border-radius: var(--r-img); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guar__lab figcaption { margin-top: 12px; font-size: 14px; color: var(--slate); }

/* ---------- Оплата ---------- */
.pay__grid { display: grid; gap: 32px; }
.pay__list { margin-top: 26px; display: grid; gap: 12px; font-size: 17px; }
.pay__list li { display: flex; gap: 12px; align-items: baseline; }
.pay__list li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--tide); transform: translateY(-5px); }
.pay__example { background: var(--foam); border-radius: var(--r-img); padding: 24px 20px; align-self: end; }
.pay__label { font-size: 14px; color: var(--slate); }
.pay__sum { margin-top: 6px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.pay__example dl { margin-top: 18px; display: grid; gap: 0; }
.pay__example dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pay__example dt { color: var(--slate); }
.pay__example dd { font-weight: 800; white-space: nowrap; }

/* ---------- Отзывы ---------- */
.reviews { padding-top: 0; }
.rating { display: flex; gap: 32px; flex-wrap: wrap; }
.rating p { display: flex; align-items: center; gap: 12px; }
.rating b { font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.rating span { font-size: 14px; color: var(--slate); line-height: 1.4; }
.reviews__slots { margin-top: 28px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.slot { scroll-snap-align: start; aspect-ratio: 3 / 4; border: 1.5px dashed #B9C6CE; border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--slate); padding: 16px; }

/* ---------- Острая боль ---------- */
.pain { background: var(--tide); color: var(--ink); }
.pain__in { padding-top: 44px; padding-bottom: 44px; display: grid; gap: 22px; }
.pain__title { font-size: clamp(28px, 7.5vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.pain__in p { margin-top: 12px; font-size: 17px; max-width: 56ch; }
.pain__cta { display: grid; gap: 10px; }
.pain .btn--accent { background: var(--ink); color: #fff; }
.pain .btn--accent:hover { background: #17406B; }
.pain .btn--line { border-color: rgba(15,44,76,.35); }
.pain .btn--line:hover { border-color: var(--ink); }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; gap: 32px; }
.contacts__info dl > div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.contacts__info dt { font-size: 14px; color: var(--slate); }
.contacts__info dd { font-weight: 600; }
.contacts__info dd a { text-decoration: none; border-bottom: 1px solid var(--tide); }
.lead-form { margin-top: 32px; background: var(--foam); border-radius: var(--r-img); padding: 22px 18px; }
.lead-form h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lead-form .btn { margin-top: 16px; width: 100%; }
.lead-form__ok { margin-top: 12px; font-weight: 700; color: var(--tide-text); }
.contacts__map { min-height: 360px; border-radius: var(--r-img); overflow: hidden; background: var(--foam); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Футер ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 0 32px; font-size: 14px; }
.ftr__top { display: grid; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ftr__top img { width: 180px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ftr__links a { color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ftr__legal { padding-top: 22px; display: grid; gap: 8px; }
.ftr__legal a { color: #fff; }
.ftr__warn { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Нижняя панель на телефоне ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18);
  padding-bottom: env(safe-area-inset-bottom); background-color: var(--ink);
}
.mbar a { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.mbar a:first-child { background: var(--tide); color: var(--ink); }
.mbar svg { width: 20px; height: 20px; }

/* ================= Планшет ================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --sec: 104px; --hdr: 72px; }
  body { padding-bottom: 0; font-size: 17px; }
  .mbar { display: none; }
  .hdr__logo img { width: 190px; }
  .hdr__contact { display: grid; margin-left: auto; text-align: right; line-height: 1.25; }
  .hdr__phone { font-weight: 800; text-decoration: none; font-size: 17px; }
  .hdr__hours { font-size: 12px; color: var(--slate); }
  .hdr__msg { margin-left: 0; }
  .ico-btn--call { display: none; }

  .hero { min-height: 720px; display: flex; align-items: center; }
  .hero__in { padding-top: 56px; padding-bottom: 64px; }
  .hero__in > * { max-width: 54%; }
  .hero__tooth { position: absolute; right: 2%; top: 50%; width: 46%; height: 100%; margin: 0; transform: translateY(-50%); place-items: center; }
  .hero__tooth-img { height: min(74vh, 640px); }
  .hero__glow { width: min(62vh, 560px); height: min(62vh, 560px); top: 50%; }
  .hero__shadow { bottom: calc(50% - min(37vh, 320px) - 40px); width: 260px; height: 30px; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__price { grid-template-columns: auto auto; gap: 28px; justify-content: start; }
  .hero__price p { display: grid; }
  .hero__price b { font-size: 30px; }

  .proof__grid { grid-template-columns: repeat(4, 1fr); padding-top: 36px; padding-bottom: 36px; }
  .proof b { font-size: 36px; }

  .quiz__form { padding: 36px 36px 32px; min-height: 600px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .quiz__nav { display: flex; justify-content: space-between; }
  .fail-links { display: flex; flex-wrap: wrap; }

  .steps__list { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps__list li { padding: 76px 0 0; border-top: 2px solid var(--ink); }
  .steps__list li::before { top: 20px; font-size: 40px; }

  .reys { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .reys__photo img { height: 100%; }
  .reys__body { padding: var(--sec) 48px; align-self: center; }
  .reys__cta { display: flex; flex-wrap: wrap; }

  .prices__grid { grid-template-columns: 1fr 1fr; gap: 40px 40px; }
  .offers { grid-template-columns: repeat(2, 1fr); }

  .guar__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
  .guar__grid b { font-size: clamp(36px, 4.6vw, 64px); }
  .guar__grid p { border-top: 2px solid var(--ink); }

  .reviews__slots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .slot { aspect-ratio: 4 / 3; }

  .pain__in { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }

  .lead-form { padding: 28px; }
  .lead-form .btn { width: auto; }

  .ftr__top { grid-template-columns: auto 1fr; align-items: center; }
  .ftr__links { justify-content: flex-end; }
}

/* ================= Десктоп ================= */
@media (min-width: 1100px) {
  .hdr__nav { display: flex; gap: 28px; margin-left: 40px; }
  .hdr__nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--slate); padding: 10px 0; }
  .hdr__nav a:hover { color: var(--ink); }

  .hero { min-height: min(880px, calc(100vh - var(--hdr))); }
  .hero__title { max-width: 11ch; }
  .hero__in > * { max-width: 600px; }
  .hero__tooth { right: 4%; width: 44%; }
  .hero__tooth-img { height: min(78vh, 720px); }

  /* Сетка референса: метка раздела слева, заголовок справа */
  .sec__head { display: grid; grid-template-columns: 3fr 9fr; column-gap: 24px; margin-bottom: 56px; }
  .sec__head .sec__tag { grid-row: 1 / span 2; align-self: start; margin-top: 12px; }
  .sec__head .h2, .sec__head .lead { grid-column: 2; }

  .quiz { grid-template-columns: 5fr 7fr; }
  .quiz__visual { display: block; position: relative; min-height: 100%; }
  .quiz__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .quiz__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,44,76,0) 55%, rgba(15,44,76,.75) 100%); }
  .quiz__visual p { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.35; max-width: 24ch; }
  .quiz__form { padding: 48px 56px 44px; }

  .why__obj { height: min(78svh, 760px); }
  .why__cards { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 70svh; padding-bottom: 34svh; grid-auto-rows: minmax(300px, auto); }
  .gcard { padding: 32px 30px; }
  .gcard h3 { font-size: 24px; }
  .gcard:nth-child(1) { grid-column: 2; grid-row: 1; }
  .gcard:nth-child(2) { grid-column: 3; grid-row: 1; }
  .gcard:nth-child(3) { grid-column: 1; grid-row: 2; }
  .gcard:nth-child(4) { grid-column: 3; grid-row: 2; }
  .gcard:nth-child(5) { grid-column: 2; grid-row: 3; }

  .prices__grid { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: repeat(4, 1fr); }

  .doc { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .doc__photo { margin: 0; }
  .doc__photo { border-radius: var(--r-img); }
  .team { display: grid; grid-template-columns: 3fr 9fr; column-gap: 24px; margin-top: 88px; }
  .team__list li { grid-template-columns: 1.1fr 1.6fr auto; align-items: center; }
  .team__list span { grid-column: 2; }
  .team__list i { grid-column: 3; grid-row: 1; }

  .guar__lab { display: grid; grid-template-columns: 3fr 9fr; column-gap: 24px; margin-top: 56px; }
  .guar__lab .flow { grid-column: 2; }
  .guar__lab img { aspect-ratio: 21 / 9; }
  .guar__lab figcaption { grid-column: 2; }

  .pay__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .pay__example { padding: 36px; }

  .contacts__grid { grid-template-columns: 5fr 7fr; gap: 48px; }
  .contacts__map { position: relative; min-height: 560px; }
  .contacts__map iframe { position: absolute; inset: 0; min-height: 0; }
}


/* ================= Анимации как на референсе ================= */
:root { --ease-out: cubic-bezier(.19, 1, .22, 1); }


/* Появление при прокрутке: fadeinup, 1 с, мягкое замедление */
html.js-anim [data-rv] { opacity: 0; transform: translate3d(0, 48px, 0);
  transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
html.js-anim [data-rv].is-in { opacity: 1; transform: none; }
/* Стеклянные карточки: transform ломает backdrop-filter в части браузеров, поэтому только сдвиг через translate */
html.js-anim .gcard[data-rv] { transform: translate3d(0, 80px, 0); }

/* Фото «перетекают»: раскрытие шторкой снизу + медленный параллакс внутри рамки */
.flow { overflow: hidden; position: relative; }
.flow img { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); transform-origin: 50% 50%; }
html.js-anim .flow[data-rv] { opacity: 1; transform: none; clip-path: inset(18% 0 0 0 round var(--r-img));
  transition: clip-path 1.4s var(--ease-out) var(--d, 0ms); }
html.js-anim .flow[data-rv].is-in { clip-path: inset(0 0 0 0 round var(--r-img)); }
html.js-anim .reys__photo.flow[data-rv], html.js-anim .quiz__visual.flow[data-rv] { clip-path: inset(0 0 18% 0); }
html.js-anim .reys__photo.flow[data-rv].is-in, html.js-anim .quiz__visual.flow[data-rv].is-in { clip-path: inset(0 0 0 0); }
.guar__lab .flow { border-radius: var(--r-img); }
.guar__lab .flow img { border-radius: 0; }

/* Кнопки: волна размытия по буквам при наведении (десктоп) */
.btn .wd { display: inline-block; white-space: nowrap; }
.btn .ch { display: inline-block; white-space: pre; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .btn:hover .ch { animation: blurwave .7s ease calc(var(--i) * 22ms) both; }
}
@keyframes blurwave {
  0% { filter: blur(0); opacity: 1; transform: none; }
  40% { filter: blur(4px); opacity: .25; transform: translateY(-3px); }
  100% { filter: blur(0); opacity: 1; transform: none; }
}

/* Плавный скролл активен — отключаем нативный smooth, чтобы не спорили */
html.has-smooth { scroll-behavior: auto; }

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