/* ЭМАЛЬ — цифровая стоматология. Светлый клинический фон, графит, один коралловый акцент.
   Unbounded (крупные заголовки) + Onest (текст). Главное — 3D-зуб и скролл-история «как лечим». */
:root {
  --bg: #f3f4f1;
  --panel: #ffffff;
  --soft: #e7e9e4;
  --soft-2: #dde0da;
  --ink: #0c0e12;
  --ink-2: #464b54;
  --muted: #7a7f88;
  --coral: #ff4f2e;
  --coral-2: #e63e1e;
  --coral-soft: #ffe6df;
  --ok: #1f9d6b;
  --line: rgba(12, 14, 18, .1);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --max: 1380px;
  --r: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 64px); }
h3 { font-size: 22px; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; background: none; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 16px; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-2); }
.btn--ghost { border-color: var(--line); background: var(--panel); }
.btn--ghost:hover { border-color: var(--ink); }

/* Шапка */
.top { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 22px; border-radius: 22px; background: rgba(243, 244, 241, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: transform .45s var(--ease), background-color .3s, box-shadow .3s; }
.top.is-scrolled { background: rgba(255, 255, 255, .78); box-shadow: 0 10px 40px -24px rgba(12, 14, 18, .35), inset 0 0 0 1px rgba(12, 14, 18, .05); }
.top.is-hidden { transform: translateY(calc(-100% - 20px)); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.logo svg { width: 32px; height: 32px; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 99px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(12, 14, 18, .06); color: var(--ink); }
.top__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top .btn { min-height: 44px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 100px var(--g) 30px; display: flex; flex-direction: column; }
.drawer a { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer .drawer__tel { margin-top: auto; font-family: var(--body); font-size: 18px; font-weight: 600; border: 0; color: var(--coral); }

/* Первый экран */
.hero { position: relative; max-width: var(--max); margin: 0 auto; min-height: 100svh; padding: 120px var(--g) 48px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.hero > * { min-width: 0; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 99px; background: var(--panel); font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.hero__title { font-size: clamp(40px, 4.5vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.lmask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__lead { margin-top: 26px; font-size: 19px; color: var(--ink-2); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 44px 0 0; }
.hero__facts div { padding: 0 26px; border-left: 1px solid var(--line); }
.hero__facts div:first-child { padding-left: 0; border-left: 0; }
.hero__facts dt { font-size: 13px; color: var(--muted); }
.hero__facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.hero__facts dd small { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.hero__stage { position: relative; height: min(78svh, 720px); border-radius: 40px; background: radial-gradient(60% 55% at 50% 45%, #ffffff 0%, #eef0ec 60%, #e3e6e0 100%); overflow: hidden; }
.hero__stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(12, 14, 18, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 14, 18, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px -24px rgba(12, 14, 18, .45), inset 0 0 0 1px rgba(255, 255, 255, .8); font-size: 14px; color: var(--ink-2); max-width: 210px; line-height: 1.35; }
.chip b { display: block; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -.02em; margin-bottom: 2px; }
.chip--a { left: 6%; top: 12%; animation: float 7s ease-in-out infinite; }
.chip--b { right: 6%; top: 40%; animation: float 8s ease-in-out -2s infinite; }
.chip--b b { color: var(--coral); }
.chip--c { left: 10%; bottom: 12%; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__hint { position: absolute; right: 22px; bottom: 18px; font-size: 12.5px; color: var(--muted); }

/* Анатомия */
.anatomy { position: relative; }
.anatomy__pin { height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 96px var(--g) 28px; max-width: var(--max); margin: 0 auto; }
.anatomy__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.anatomy__head h2 { font-size: clamp(28px, 3.4vw, 48px); max-width: 14em; }
.anatomy__dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.anatomy__dots li { padding: 8px 14px; border-radius: 99px; background: var(--panel); font-size: 13px; color: var(--muted); transition: background-color .3s, color .3s; }
.anatomy__dots li.done { color: var(--ink-2); }
.anatomy__dots li.on { background: var(--ink); color: #fff; }
.anatomy__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; min-height: 0; margin-top: 18px; }
.anatomy__stage { position: relative; height: 100%; min-height: 360px; border-radius: 40px; background: radial-gradient(55% 50% at 50% 45%, #fff, #e9ebe6 80%); overflow: hidden; }
.anatomy__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy__steps { position: relative; height: 100%; min-height: 320px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step__card { display: flex; flex-direction: column; gap: 16px; }
.step__k { font-size: 14px; color: var(--coral); font-weight: 600; }
.step h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.step p { color: var(--ink-2); font-size: 17px; max-width: 30em; }
.step__p { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px; border-radius: 99px; border: 0; background: var(--coral-soft); color: var(--coral-2); font-weight: 600; font-size: 15px; transition: background-color .2s; }
.step__p svg { width: 18px; height: 18px; }
.step__p:hover { background: #ffd5ca; }
.anatomy__bar { height: 3px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.anatomy__bar i { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }

/* Заголовки секций */
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 64px; align-items: end; margin-bottom: 40px; }
.sec-head p { color: var(--ink-2); max-width: 34em; }

/* Бенто */
.services { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--g) clamp(48px, 6vw, 80px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 14px; }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px; border: 0; border-radius: var(--r); background: var(--panel); text-align: left; transition: transform .5s var(--ease), box-shadow .3s; will-change: transform; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 79, 46, .1), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { box-shadow: 0 30px 60px -36px rgba(12, 14, 18, .4); }
.tile:hover::before { opacity: 1; }
.tile__k { font-size: 13px; font-weight: 600; color: var(--coral); }
.tile b { position: relative; z-index: 1; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.12; letter-spacing: -.03em; max-width: 12em; }
.tile__p { position: relative; z-index: 1; margin-top: auto; font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 99px; background: var(--bg); }
.tile--implant { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; }
.tile--implant .tile__p { background: rgba(255, 255, 255, .1); }
.tile--implant b { font-size: 34px; }
.tile--aligner { grid-column: span 2; }
.tile__art { position: absolute; pointer-events: none; }
/* имплант: витки резьбы бегут вверх */
.tile__art--screw { right: 18%; bottom: -10px; width: 120px; display: grid; gap: 7px; transform: rotate(-12deg); }
.tile__art--screw i { display: block; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #7d848c, #e6e9ec 40%, #9aa1a8 70%, #5f666d); transform: skewY(-10deg); animation: thread 1.4s linear infinite; }
.tile__art--screw i:nth-child(1) { width: 70%; margin: 0 auto; border-radius: 6px; background: linear-gradient(90deg, #a4864c, #f4dfa8 45%, #a4864c); animation: none; }
.tile__art--screw i:nth-child(7) { width: 60%; margin: 0 auto; }
@keyframes thread { 50% { filter: brightness(1.25); } }
.tile--implant:hover .tile__art--screw i { animation-duration: .5s; }
/* элайнеры: зубы выравниваются при наведении */
.tile__art--row { right: 28px; bottom: 30px; display: flex; gap: 6px; align-items: flex-end; }
.tile__art--row i { width: 26px; height: 46px; border-radius: 10px 10px 14px 14px; background: linear-gradient(#fff, #eef0ec); box-shadow: inset 0 0 0 1.5px var(--soft-2), 0 8px 14px -10px rgba(12, 14, 18, .35); transition: transform .8s var(--ease); }
.tile__art--row i:nth-child(1) { transform: translateY(-8px) rotate(-12deg); }
.tile__art--row i:nth-child(2) { transform: translateY(6px) rotate(9deg); }
.tile__art--row i:nth-child(3) { transform: translateX(4px) rotate(-6deg); }
.tile__art--row i:nth-child(4) { transform: translateY(-5px) rotate(14deg); }
.tile__art--row i:nth-child(5) { transform: translateY(9px) rotate(-10deg); }
.tile__art--row i:nth-child(6) { transform: translateY(-3px) rotate(7deg); }
.tile--aligner:hover .tile__art--row i { transform: none; transition-delay: calc(var(--d, 0) * 1ms); }
/* гигиена: пузырьки */
.tile__art--bubbles { inset: 0; }
.tile__art--bubbles i { position: absolute; bottom: -20px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 20%, rgba(170, 220, 255, .5) 50%, rgba(170, 220, 255, .15)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); animation: bubble 5s linear infinite; }
.tile__art--bubbles i:nth-child(1) { left: 58%; animation-delay: 0s; }
.tile__art--bubbles i:nth-child(2) { left: 72%; width: 24px; height: 24px; animation-delay: -1.2s; }
.tile__art--bubbles i:nth-child(3) { left: 84%; width: 12px; height: 12px; animation-delay: -2.4s; }
.tile__art--bubbles i:nth-child(4) { left: 66%; width: 30px; height: 30px; animation-delay: -3.3s; }
.tile__art--bubbles i:nth-child(5) { left: 90%; animation-delay: -4s; }
.tile__art--bubbles i:nth-child(6) { left: 78%; width: 10px; height: 10px; animation-delay: -.6s; }
@keyframes bubble { to { transform: translateY(-300px) translateX(-14px); opacity: 0; } }
.tile--hyg:hover .tile__art--bubbles i { animation-duration: 2s; }
/* отбеливание: шкала оттенков */
.tile__art--shade { left: 26px; right: 26px; bottom: 74px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #e7d6a8, #f1e7cb 40%, #fbf8f0 75%, #ffffff); box-shadow: inset 0 0 0 1px var(--soft-2); }
.tile__art--shade i { position: absolute; top: -6px; left: 8%; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px -2px rgba(12, 14, 18, .3), inset 0 0 0 5px var(--coral); transition: left 1.2s var(--ease); }
.tile--white:hover .tile__art--shade i { left: calc(100% - 26px); }
/* лечение: окуляр микроскопа */
.tile__art--scope { right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #f7f8f5 50%, #e4e6e0 51%, #e4e6e0 60%, transparent 61%); }
.tile__art--scope i { position: absolute; inset: 30%; border-radius: 50%; border: 2px solid var(--coral); transition: transform .8s var(--ease); }
.tile__art--scope i::before, .tile__art--scope i::after { content: ""; position: absolute; background: var(--coral); }
.tile__art--scope i::before { left: 50%; top: -14px; bottom: -14px; width: 1.5px; }
.tile__art--scope i::after { top: 50%; left: -14px; right: -14px; height: 1.5px; }
.tile--ther:hover .tile__art--scope i { transform: scale(1.5) rotate(90deg); }
/* детям: звёздочки */
.tile__art--stars { right: 26px; top: 24px; display: flex; gap: 6px; }
.tile__art--stars i { width: 18px; height: 18px; background: var(--coral); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: twinkle 2.4s ease-in-out infinite; }
.tile__art--stars i:nth-child(2) { animation-delay: .3s; transform: scale(.7); }
.tile__art--stars i:nth-child(3) { animation-delay: .6s; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.6) rotate(20deg); } }

/* Подбор */
.quiz { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--g); display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 64px; align-items: start; }
.quiz > * { min-width: 0; }
.quiz__intro p { margin-top: 18px; color: var(--ink-2); max-width: 26em; }
.quiz__card { min-height: 380px; padding: clamp(22px, 3vw, 40px); border-radius: 36px; background: var(--panel); box-shadow: 0 30px 70px -50px rgba(12, 14, 18, .5); }
.qz__top { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.qz__prog { flex: 1; height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.qz__prog i { display: block; height: 100%; background: var(--coral); transition: width .5s var(--ease); }
.quiz__card h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 22px; }
.qz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz__opt { min-height: 64px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-weight: 500; font-size: 16px; transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.qz__opt:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.qz__back { margin-top: 18px; border: 0; background: none; color: var(--muted); font-size: 14px; padding: 6px 0; }
.qz__res { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.qz__res img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; }
.qz__res h3 { margin-bottom: 10px; }
.qz__res p { color: var(--ink-2); }
.qz__res dl { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qz__res dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qz__res dt { color: var(--muted); }
.qz__res dd { margin: 0; font-weight: 600; }
.qz__extra { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--coral-soft); color: var(--coral-2) !important; font-size: 15px; }
.qz__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Цены */
.prices { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--g) clamp(48px, 6vw, 80px); }
.prices__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.search { flex: 1 1 320px; }
.search input { width: 100%; min-height: 54px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
.search input:focus { outline: none; border-color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { min-height: 42px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--panel); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.plist { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: var(--r); overflow: hidden; }
.plist li { display: grid; grid-template-columns: 1fr auto 52px; gap: 20px; align-items: center; padding: 16px 16px 16px 26px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.plist li:last-child { border-bottom: 0; }
.plist li:hover { background: #fafbf9; }
.plist b { display: block; font-weight: 500; font-size: 16.5px; }
.plist small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.plist__p { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__go { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--bg); transition: background-color .2s, color .2s; }
.plist__go svg { width: 18px; height: 18px; }
.plist__go:hover { background: var(--coral); color: #fff; }
.plist__empty { display: block !important; color: var(--ink-2); }
.plist__empty a { color: var(--coral); }

/* Врачи */
.doctors { padding: clamp(80px, 10vw, 130px) 0 clamp(48px, 6vw, 80px); }
.doctors .sec-head { max-width: var(--max); margin: 0 auto 40px; padding: 0 var(--g); }
.drail { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--g) 20px; scroll-padding: 0 var(--g); scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; user-select: none; }
.drail::-webkit-scrollbar { display: none; }
.drail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.doc { flex: 0 0 clamp(270px, 26vw, 360px); scroll-snap-align: start; background: var(--panel); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.doc figure { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--soft); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1s var(--ease); pointer-events: none; }
.doc:hover img { transform: scale(1.04); }
.doc__b { padding: 20px 22px 22px; display: grid; gap: 6px; }
.doc__exp { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--coral-2); background: var(--coral-soft); padding: 4px 10px; border-radius: 99px; }
.doc h3 { font-size: 22px; margin-top: 4px; }
.doc__role { font-weight: 500; color: var(--ink-2); }
.doc__note { font-size: 14.5px; color: var(--muted); }
.doc .btn { justify-self: start; margin-top: 10px; min-height: 42px; }

/* Отзывы */
.reviews { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--g); display: grid; grid-template-columns: .55fr 1.45fr; gap: 24px 48px; align-items: start; }
.reviews__score { position: sticky; top: 110px; }
.reviews__score b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(80px, 9vw, 140px); line-height: .9; letter-spacing: -.06em; }
.reviews__score span { display: block; margin-top: 12px; color: var(--ink-2); }
.reviews__wall { columns: 2; column-gap: 14px; }
.rv { break-inside: avoid; margin: 0 0 14px; padding: 24px; border-radius: 24px; background: var(--panel); }
.rv:nth-child(3n+2) { background: var(--ink); color: #fff; }
.rv blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; }
.rv figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 14px; }
.rv figcaption span { color: var(--muted); }

/* Контакты */
.contacts { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--g) clamp(80px, 10vw, 120px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.contacts > * { min-width: 0; }
.contacts__info { padding: clamp(24px, 3vw, 44px); border-radius: 36px; background: var(--panel); }
.contacts address { font-style: normal; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 20px 0 8px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 22px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { border-radius: 36px; overflow: hidden; min-height: 420px; background: var(--soft); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }

.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px var(--g) 110px; font-size: 14px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo--big { color: #fff; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.03em; }
.logo--big svg { width: clamp(44px, 6vw, 80px); height: auto; aspect-ratio: 1; color: #fff; }
.foot__warn { margin-top: 24px; font-family: var(--display); font-size: clamp(16px, 1.8vw, 22px); color: #fff; letter-spacing: -.01em; }
.foot__credit { margin-top: 12px; font-size: 13px; opacity: .7; }
.foot a { color: inherit; }

.mbar { display: none; }

/* Запись */
.book { width: min(620px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border: 0; padding: 0; background: var(--bg); color: var(--ink); }
.book[open] { animation: slidein .5s var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } }
.book::backdrop { background: rgba(12, 14, 18, .35); backdrop-filter: blur(4px); }
.book__form { display: grid; grid-template-rows: auto auto 1fr auto auto; height: 100%; }
.book__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 10px; }
.book__head h3 { font-size: 26px; }
.x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--panel); }
.x svg { width: 20px; height: 20px; }
.book__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 26px; margin: 0; counter-reset: s; }
.book__steps li { counter-increment: s; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--soft-2); transition: border-color .3s, color .3s; }
.book__steps li::before { content: counter(s) " · "; }
.book__steps li.done { border-top-color: var(--ink); color: var(--ink-2); }
.book__steps li.on { border-top-color: var(--coral); color: var(--ink); font-weight: 600; }
.book__body { overflow-y: auto; padding: 20px 26px; overscroll-behavior: contain; }
.bstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.bstep.on { display: block; animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(20px); } }
.bstep legend { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 16px; padding: 0; }
.bsvc__g { margin-bottom: 16px; }
.bsvc__g p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bopt { width: 100%; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 6px; border-radius: 16px; border: 1px solid transparent; background: var(--panel); text-align: left; transition: border-color .2s; }
.bopt b { font-weight: 500; font-size: 15.5px; }
.bopt span { white-space: nowrap; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.bopt:hover { border-color: var(--line); }
.bopt.on { border-color: var(--coral); }
.bdoc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bdoc__o { display: grid; justify-items: start; gap: 2px; padding: 14px; border-radius: 20px; border: 1px solid transparent; background: var(--panel); text-align: left; transition: border-color .2s; }
.bdoc__o img, .bdoc__any { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; object-position: 50% 20%; margin-bottom: 8px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-size: 22px; }
.bdoc__o b { font-weight: 600; font-size: 15px; }
.bdoc__o small { color: var(--muted); font-size: 13px; }
.bdoc__o.on { border-color: var(--coral); }
.bdays { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.bday { flex: 0 0 66px; padding: 10px 4px; border-radius: 18px; border: 0; background: var(--panel); text-align: center; transition: background-color .2s, color .2s; }
.bday span { display: block; font-size: 12px; color: var(--muted); }
.bday b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.bday.on { background: var(--ink); color: #fff; }
.bday.on span { color: rgba(255, 255, 255, .6); }
.bslots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.bslot { min-height: 44px; border-radius: 14px; border: 0; background: var(--panel); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.bslot:hover:not([disabled]) { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.bslot.on { background: var(--coral); color: #fff; }
.bslot[disabled] { color: #b9bdc3; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f > span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.f i { font-style: normal; color: var(--muted); font-weight: 400; }
.f input, .f textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); resize: vertical; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ink); }
.f.bad input { border-color: var(--coral); }
.err { color: var(--coral-2); font-size: 13.5px; font-style: normal; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--coral); margin-top: 1px; flex: none; }
.book__sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.book__sum b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--ink); }
.book__nav { display: flex; justify-content: space-between; gap: 10px; padding: 12px 26px calc(18px + env(safe-area-inset-bottom)); }
.book__nav [data-bnext] { margin-left: auto; min-width: 160px; }
.book__ok { padding: 60px 30px 30px; text-align: center; overflow-y: auto; height: 100%; }
.ok__mark { width: 84px; margin: 0 auto 20px; color: var(--ok); }
.book__ok h3 { font-size: 32px; }
.ok__ref { font-family: var(--display); font-size: 22px; color: var(--coral); margin: 8px 0 22px; }
.book__ok ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; background: var(--panel); border-radius: 22px; }
.book__ok li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.book__ok li:last-child { border-bottom: 0; }
.book__ok li span { color: var(--muted); }
.book__ok li b { font-weight: 600; text-align: right; }
.ok__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* Адаптив */
@media (max-width: 1180px) {
  .nav, .top__phone { display: none; }
  .top .btn { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--implant { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; gap: 18px; }
  .hero__stage { order: -1; height: 46svh; min-height: 320px; border-radius: 30px; }
  .chip { font-size: 12.5px; padding: 9px 12px; max-width: 170px; }
  .chip b { font-size: 14px; }
  .chip--b { top: auto; bottom: 16%; }
  .chip--c { display: none; }
  .hero__hint { display: none; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts div { padding: 0 12px; }
  .hero__facts dd { font-size: 24px; }
  .anatomy__pin { height: auto; padding-top: 70px; display: block; }
  .anatomy__dots { display: none; }
  .anatomy__grid { display: block; margin-top: 18px; }
  .anatomy__stage { position: sticky; top: 76px; height: 44svh; min-height: 280px; z-index: 1; border-radius: 30px; }
  .anatomy__steps { height: auto; min-height: 0; position: relative; z-index: 2; }
  .step { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; display: block; padding: 34svh 0 6svh; }
  .step:first-child { padding-top: 40svh; }
  .step__card { gap: 12px; padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 20px 50px -30px rgba(12, 14, 18, .45); }
  .step h3 { font-size: 24px; }
  .step p { font-size: 16px; }
  .anatomy__bar { display: none; }
  .sec-head, .quiz, .reviews, .contacts { grid-template-columns: 1fr; }
  .reviews__score { position: static; }
  .reviews__wall { columns: 1; }
  .qz__opts { grid-template-columns: 1fr; }
  .qz__res { grid-template-columns: 1fr; }
  .qz__res img { width: 100%; max-width: 220px; }
  .qz__res dl div { grid-template-columns: 120px 1fr; }
  .plist li { grid-template-columns: 1fr auto; padding: 14px 14px 14px 18px; gap: 6px 12px; }
  .plist__go { display: none; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -20px rgba(12, 14, 18, .5); }
  .mbar .btn { flex: 1; }
  .mbar__tel { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink); }
  .mbar__tel svg { width: 22px; height: 22px; }
  .foot { padding-bottom: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { top: 8px; left: 8px; right: 8px; padding: 8px 8px 8px 16px; }
  .top .btn { display: none; }
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 16.5px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts dd small { display: block; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile--implant, .tile--aligner { grid-column: auto; }
  .tile--implant b { font-size: 26px; }
  .bdoc { grid-template-columns: 1fr; }
  .bdoc__o { grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; }
  .bdoc__o img, .bdoc__any { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .book__ok li { flex-direction: column; gap: 2px; }
  .book__ok li b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
