/* =========================================================
   HALE DENTAL — enamel white, clinical teal, fresh mint
   Мотив: силует зуба (лого, прогрес, фото, членство) + 32 зуби (прелоадер, мапа, футер)
   ========================================================= */

:root {
  --bg: #F4F7F5;
  --bg-2: #E9F0EC;
  --card: #FFFFFF;
  --ink: #0B2A2B;
  --ink-2: #2E4B49;
  --muted: #6A8280;
  --line: rgba(11, 42, 43, .12);
  --line-2: rgba(11, 42, 43, .2);
  --teal: #0F6F6A;
  --mint: #8FE3CF;
  --mint-2: #D3F3E8;
  --coral: #E9877A;

  --deep: #0B2A2B;
  --on-deep: #E4F1ED;
  --on-deep-2: rgba(228, 241, 237, .62);

  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --gut: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --r-lg: 32px;
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
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(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: var(--ink); }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 12px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 7c-3 0-4.6 2.4-4.6 5.4 0 3.2 1.6 5 2.4 7.6.8 2.6 1 6 2.6 6 1.8 0 1.8-5.4 5.6-5.4s3.8 5.4 5.6 5.4c1.6 0 1.8-3.4 2.6-6 .8-2.6 2.4-4.4 2.4-7.6C26.6 9.4 25 7 22 7c-2.6 0-3.6 1.4-6 1.4S12.6 7 10 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 7c-3 0-4.6 2.4-4.6 5.4 0 3.2 1.6 5 2.4 7.6.8 2.6 1 6 2.6 6 1.8 0 1.8-5.4 5.6-5.4s3.8 5.4 5.6 5.4c1.6 0 1.8-3.4 2.6-6 .8-2.6 2.4-4.4 2.4-7.6C26.6 9.4 25 7 22 7c-2.6 0-3.6 1.4-6 1.4S12.6 7 10 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- type ---------- */
.h2 {
  font: 500 clamp(2.15rem, 6.2vw, 5.4rem)/.96 var(--f-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2-xl { font-size: clamp(2.6rem, 8vw, 7.4rem); }
.h2 .soft { color: var(--muted); }
.h3 { font: 500 1.4rem/1.15 var(--f-display); letter-spacing: -.02em; }
.sec-sub { margin-top: 26px; max-width: 34em; color: var(--ink-2); font-size: 1.08rem; }
.body-l { font-size: 1.12rem; line-height: 1.6; max-width: 32em; }
.body-l + .body-l { margin-top: 18px; }
.muted { opacity: .7; }
a.u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease-out); }
a.u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- buttons: кнопка-в-кнопці ---------- */
.btn {
  --bg-b: var(--ink); --fg-b: #fff; --ico: rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 7px 7px 7px 24px;
  border-radius: 999px;
  background: var(--bg-b); color: var(--fg-b);
  font: 500 15px/1 var(--f-body);
  white-space: nowrap;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), color .3s;
}
.btn:active { transform: scale(.98); }
.btn-ico {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ico);
  transition: transform .35s var(--ease-out);
}
.btn-ico svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn:hover .btn-ico { transform: translate(3px, -2px) scale(1.06); }
.btn-ink:hover { --bg-b: var(--teal); }
.btn-mint { --bg-b: var(--mint); --fg-b: var(--ink); --ico: rgba(11,42,43,.1); }
.btn-mint:hover { --bg-b: #fff; }
.btn-ghost { --bg-b: transparent; --fg-b: var(--ink); padding: 0 24px; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { --bg-b: var(--mint-2); }
.btn-wide { width: 100%; }

/* ---------- bezel ---------- */
.bezel {
  padding: 6px; border-radius: var(--r-lg);
  background: rgba(11, 42, 43, .04);
  box-shadow: inset 0 0 0 1px rgba(11, 42, 43, .06);
}
.bezel-core {
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--card);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 30px 60px -40px rgba(11, 42, 43, .25);
  height: 100%;
}

/* ---------- preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 150; clip-path: inset(0 0 0 0);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
}
.no-pre .preloader { display: none; }
.pre-smile { width: min(320px, 76vw); height: auto; overflow: visible; }
.pre-smile .pt { fill: #fff; stroke: var(--line-2); stroke-width: 1; transition: fill .25s, stroke .25s; }
.pre-smile .pt.on { fill: var(--mint); stroke: var(--teal); }
.pre-count { font: 500 clamp(3.5rem, 12vw, 6rem)/1 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pre-count small { font-size: .38em; color: var(--muted); letter-spacing: -.02em; margin-left: 4px; }
.pre-meta { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 90; top: 14px; left: 50%;
  width: min(100% - 2 * var(--gut), var(--max));
  transform: translateX(-50%);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 7px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(11, 42, 43, .07), 0 18px 40px -28px rgba(11, 42, 43, .35);
  transition: transform .5s var(--ease-out), opacity .4s;
}
.nav.hide { transform: translate(-50%, -120%); }
.nav-logo { display: flex; align-items: center; gap: 10px; font: 600 1.35rem/1 var(--f-display); letter-spacing: -.03em; }
.nav-logo svg { width: 28px; height: 28px; fill: var(--teal); }
.nav-logo b { font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 6px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 50px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.burger i { position: absolute; left: 16px; right: 16px; height: 1.5px; background: #fff; transition: transform .4s var(--ease-out); }
.burger i:first-child { top: 20px; } .burger i:last-child { top: 27px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gut) 40px;
  background: rgba(244, 247, 245, .92);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { overflow: hidden; font: 500 clamp(2.2rem, 10vw, 3.6rem)/1.1 var(--f-display); letter-spacing: -.04em; }
.menu nav a span { display: block; transform: translateY(105%); transition: transform .6s var(--ease-out); }
.menu-open .menu nav a span { transform: none; }
.menu nav a:nth-child(2) span { transition-delay: .04s; } .menu nav a:nth-child(3) span { transition-delay: .08s; }
.menu nav a:nth-child(4) span { transition-delay: .12s; } .menu nav a:nth-child(5) span { transition-delay: .16s; }
.menu nav a:nth-child(6) span { transition-delay: .2s; }
.menu-meta { color: var(--muted); }

/* ---------- progress: зуб наповнюється ---------- */
.progress { position: fixed; z-index: 70; left: 12px; bottom: 18px; transition: opacity .4s; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.progress svg { width: 30px; height: 30px; }
.pg-shape { fill: rgba(255,255,255,.7); stroke: var(--ink); stroke-width: 1.2; }
.pg-fill { fill: var(--teal); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.pg-label { display: none; color: var(--ink-2); background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 99px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* =========================================================
   SCENE (базовий потік без руху; .motion — закріплена сцена)
   ========================================================= */
.scene { position: relative; background: radial-gradient(80% 60% at 75% 45%, #E3F5EE 0%, rgba(227,245,238,0) 70%), var(--bg); }
.scene-pin {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) max(var(--gut), (100% - var(--max)) / 2) 40px;
}
.stage { position: relative; height: min(78svh, 760px); }
.tooth-gl { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.tooth-gl:active { cursor: grabbing; }
.tooth-fallback { display: none; position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.no-gl .tooth-fallback { display: block; }
.no-gl .tooth-gl, .no-gl .drag-hint { display: none; }
.stage-glow {
  position: absolute; left: 50%; top: 48%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 227, 207, .5), rgba(143, 227, 207, 0));
  pointer-events: none;
}
.stage-shadow {
  position: absolute; left: 50%; bottom: 8%; width: 32%; height: 4%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(11,42,43,.2), rgba(11,42,43,0));
  pointer-events: none;
}
.drag-hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; pointer-events: none;
}
.drag-hint i { width: 26px; height: 14px; border: 1px solid currentColor; border-radius: 99px; position: relative; }
.drag-hint i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: nudge 2.2s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(11px); } }

.hero-copy { grid-row: 1; grid-column: 1; position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero-title { font: 500 clamp(3.4rem, 9vw, 9.2rem)/.9 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -.045em; margin-bottom: 30px; }
.ht { display: block; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; padding-right: .08em; }
.ln > span { display: inline-block; }
.n32 { font-style: normal; color: var(--teal); position: relative; display: inline-block; z-index: 0; }
.n32::after {
  content: ""; position: absolute; left: -.04em; right: -.06em; bottom: .1em; height: .26em; z-index: -1;
  background: var(--mint); border-radius: .1em;
  transform-origin: left; transform: scaleX(var(--hl, 1));
}
.hero-lede { max-width: 26em; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-tags { display: none; }
.scroll-hint { display: none; }

.anat { grid-column: 1 / -1; padding-top: 80px; }
.anat-steps { display: none; }
.anat-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.panel-n { color: var(--teal); margin-bottom: 10px; }
.panel-h { font: 500 clamp(2.4rem, 4.6vw, 4.4rem)/.95 var(--f-display); letter-spacing: -.045em; margin-bottom: 14px; }
.panel-p { color: var(--ink-2); max-width: 30em; margin-bottom: 18px; }
.panel-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.panel-list li:last-child { border-bottom: 1px solid var(--line); }
.panel-list .mono { color: var(--teal); white-space: nowrap; }

/* ---- .motion: закріплена сцена з переходом героя у розріз зуба ---- */
.motion .scene-pin { display: block; height: 100svh; min-height: 0; padding: 0; overflow: hidden; }
.motion .stage { position: absolute; top: 0; right: 0; width: 56%; height: 100%; will-change: transform; }
.motion .hero-copy {
  position: absolute; top: 0; bottom: 0; left: 0; width: 52%;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) 0 40px max(var(--gut), (100% - var(--max)) / 2);
}
.motion .hero-tags { display: block; position: absolute; inset: 0; pointer-events: none; margin: 0; }
.tag {
  position: absolute; display: flex; align-items: baseline; gap: 8px;
  padding: 10px 14px; border-radius: 99px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(11,42,43,.07), 0 16px 30px -22px rgba(11,42,43,.4);
  color: var(--muted);
}
.tag b { font: 600 15px/1 var(--f-display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.tag-a { right: 7%; top: 24%; }
.tag-b { right: 40%; top: 64%; }
.tag-c { right: 6%; top: 72%; }
.motion .scroll-hint { display: flex; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); align-items: center; gap: 12px; color: var(--muted); }
.scroll-hint i { width: 1px; height: 28px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ink); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { 60%, 100% { top: 100%; } }

.motion .anat {
  position: absolute; top: 0; bottom: 0; left: 53%; right: max(var(--gut), (100% - var(--max)) / 2);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) 0 40px;
  visibility: hidden;
}
.motion .anat-steps { display: flex; gap: 6px; margin-bottom: 36px; }
.anat-steps li { flex: 1; padding-top: 12px; color: var(--muted); position: relative; transition: color .3s; }
.anat-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.anat-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.anat-steps li.on { color: var(--ink); }
.anat-steps li.on::after, .anat-steps li.done::after { transform: scaleX(1); }
.motion .anat-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.motion .panel { grid-area: 1 / 1; visibility: hidden; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.sec-head { max-width: 920px; margin-bottom: clamp(44px, 6vw, 84px); }

/* ---------- tooth map ---------- */
.map { background: var(--bg); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.map-chart { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.odonto { width: 100%; height: auto; overflow: visible; }
.odonto .tg { cursor: pointer; outline: none; }
.odonto .tb { fill: #fff; stroke: rgba(11,42,43,.32); stroke-width: 1.3; transition: fill .25s var(--ease-out), stroke .25s; }
.odonto .tf { fill: none; stroke: rgba(11,42,43,.22); stroke-width: 1.2; stroke-linecap: round; pointer-events: none; }
.odonto .tw .tb { stroke-dasharray: 4 3; }
.odonto .tn { font: 500 11px var(--f-mono); fill: var(--muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .25s; }
.odonto .ts { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-out); }
.odonto .tg:hover .tb, .odonto .tg:focus-visible .tb { fill: var(--mint-2); stroke: var(--teal); }
.odonto .tg:hover .ts { transform: scale(1.08); }
.odonto .tg.on .tb { fill: var(--mint); stroke: var(--teal); stroke-width: 1.8; }
.odonto .tg.on .ts { transform: scale(1.12); }
.odonto .tg.on .tn { fill: var(--teal); font-weight: 600; }
.odonto .jaw { font: 500 12px var(--f-mono); letter-spacing: .1em; fill: var(--muted); text-anchor: middle; }
.odonto .mid { stroke: var(--line-2); stroke-dasharray: 3 5; }
.map-side { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 10.5px; }
.map-side--r { left: -4px; } .map-side--l { right: -4px; text-align: right; }
.map-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3;
  padding: 7px 11px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -140%); transition: opacity .2s;
}
.map-tip.show { opacity: 1; }

.map-info { position: sticky; top: calc(var(--nav-h) + 36px); }
.info-core { padding: clamp(24px, 3vw, 38px); }
.info-top { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.info-num { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 92px; height: 104px; border-radius: 26px 26px 34px 34px; background: var(--mint-2); color: var(--teal); }
.info-num .mono { font-size: 10px; }
.info-num b { font: 600 2.6rem/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.info-type { color: var(--teal); margin-bottom: 6px; }
.info-name { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--f-display); letter-spacing: -.03em; }
.info-fact { color: var(--ink-2); margin-bottom: 22px; }
.info-label { color: var(--muted); margin: 0 0 10px; }
.info-issues { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.info-issues li { padding: 7px 12px; border-radius: 99px; background: #FBEDEA; color: #9A4136; font-size: 14px; }
.info-fix { margin-bottom: 26px; }
.info-fix li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.info-fix li:last-child { border-bottom: 1px solid var(--line); }
.info-fix .mono { color: var(--teal); white-space: nowrap; }
.info-pain { margin-top: 16px; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12.5px; line-height: 1.5; }
.map-info .swap { animation: swap .5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- shade guide ---------- */
.shade { background: linear-gradient(var(--bg), var(--bg-2)); }
.shade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.shade-read { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin-top: 40px; }
.shade-read dt { color: var(--muted); margin-bottom: 8px; }
.shade-read dd { font: 500 clamp(2rem, 3.4vw, 3rem)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sh-diff { color: var(--teal); }
.shade-stage {
  border-radius: 40px; padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px) clamp(24px, 3vw, 36px);
  background: radial-gradient(70% 60% at 50% 30%, #FFFFFF, #EAF2EE);
  box-shadow: inset 0 0 0 1px rgba(11,42,43,.06), 0 40px 80px -60px rgba(11,42,43,.4);
}
.incisor { width: min(240px, 52%); height: auto; margin: 0 auto 30px; filter: drop-shadow(0 18px 24px rgba(11,42,43,.12)); }
.incisor stop { transition: stop-color .35s var(--ease-out); }
.inc-shine { stroke: rgba(255,255,255,.75); stroke-width: 9; stroke-linecap: round; filter: blur(3px); }
.inc-shine--2 { stroke-width: 5; stroke: rgba(255,255,255,.5); }
.tabs { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; align-items: end; height: 76px; margin-bottom: 14px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.tab i {
  display: block; width: 100%; height: 40px; border-radius: 5px 5px 45% 45% / 5px 5px 60% 60%;
  box-shadow: inset 0 0 0 1px rgba(11,42,43,.12);
  transition: transform .35s var(--ease-out), box-shadow .3s;
}
.tab span { font: 500 9.5px/1 var(--f-mono); color: var(--muted); transition: color .3s; }
.tab.on i { transform: translateY(-10px); box-shadow: inset 0 0 0 1px rgba(11,42,43,.12), 0 0 0 2px #fff, 0 0 0 3.5px var(--teal); }
.tab.on span { color: var(--ink); }
.tab.start span { color: var(--teal); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, #B9A27E, #D3B887, #DCC59C, #E2D1AE, #ECE3CB, #F7F4EA); box-shadow: inset 0 0 0 1px rgba(11,42,43,.1); }
.range::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, #B9A27E, #D3B887, #DCC59C, #E2D1AE, #ECE3CB, #F7F4EA); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(11,42,43,.15), 0 6px 16px rgba(11,42,43,.25), inset 0 0 0 8px var(--teal); }
.range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(11,42,43,.15), 0 6px 16px rgba(11,42,43,.25), inset 0 0 0 8px var(--teal); }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); margin-top: 6px; }

/* ---------- dentist (deep) ---------- */
[data-theme="deep"] { background: var(--deep); color: var(--on-deep); }
[data-theme="deep"] .eyebrow { color: var(--mint); }
[data-theme="deep"] .h2 .soft { color: var(--on-deep-2); }
.dentist-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.portrait-card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 36px;
  background: radial-gradient(90% 70% at 50% 25%, #1D5A55, #0F3A38 70%);
  box-shadow: inset 0 0 0 1px rgba(143,227,207,.14);
}
.portrait-tooth { position: absolute; left: 50%; top: 5%; width: 84%; transform: translateX(-50%); fill: var(--mint); opacity: .92; }
.doc { position: absolute; left: 52%; bottom: 0; width: 96%; height: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.portrait figcaption { margin-top: 16px; color: var(--on-deep-2); }
.dentist-copy .body-l { color: var(--on-deep); }
.dentist-copy .h2 { margin-bottom: 34px; }
.progress.off { opacity: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; margin-top: 48px; padding-top: 34px; border-top: 1px solid rgba(228,241,237,.14); }
.stats dt { color: var(--on-deep-2); margin-bottom: 8px; }
.stats dd { font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--mint); font-variant-numeric: tabular-nums; }

/* ---------- first visit ---------- */
.timebar { display: flex; gap: 6px; margin-bottom: 40px; }
.timebar i { flex: var(--w) 1 0; height: 10px; border-radius: 9px; background: var(--mint); transform-origin: left; }
.timebar i:nth-child(2) { background: #6FD3BD; } .timebar i:nth-child(3) { background: #3DAF9D; } .timebar i:nth-child(4) { background: var(--teal); }
.visit-steps { display: grid; grid-template-columns: 17fr 25fr 33fr 25fr; gap: 6px; }
.visit-steps li { padding: 24px 22px 28px 0; }
.visit-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.v-time { color: var(--teal); margin-bottom: 18px; }
.visit-steps .h3 { margin-bottom: 10px; }
.visit-steps p:last-child { color: var(--ink-2); font-size: 15.5px; }

/* ---------- fees ---------- */
.fees { background: var(--bg-2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-member { grid-column: span 5; grid-row: span 2; }
.bento-table { grid-column: span 7; }
.bento-finance { grid-column: span 7; }
.member-core { position: relative; overflow: hidden; padding: 36px; background: var(--deep); color: var(--on-deep); display: flex; flex-direction: column; align-items: flex-start; min-height: 480px; }
.pill { padding: 8px 12px; border-radius: 99px; background: rgba(143,227,207,.14); color: var(--mint); }
.member-price { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 26px; }
.member-price span { font: 500 clamp(4rem, 7vw, 6rem)/.9 var(--f-display); letter-spacing: -.05em; }
.member-price small { color: var(--on-deep-2); }
.ticks { margin-bottom: 34px; position: relative; z-index: 1; align-self: stretch; }
.ticks li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid rgba(228,241,237,.12); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 1.5px solid var(--mint); border-bottom: 1.5px solid var(--mint); transform: rotate(-45deg); }
.member-core .btn { margin-top: auto; position: relative; z-index: 1; }
.member-tooth { position: absolute; right: -14%; bottom: -16%; width: 58%; fill: none; stroke: rgba(143,227,207,.22); stroke-width: 1.4; }
.bento-table .bezel-core { padding: 14px 30px; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }
.fee-table td { text-align: right; color: var(--teal); white-space: nowrap; }
.finance-core { padding: 30px; display: flex; align-items: center; gap: 28px; background: var(--mint-2); }
.big-num { font: 500 clamp(3.4rem, 6vw, 5rem)/1 var(--f-display); letter-spacing: -.05em; color: var(--teal); }

/* ---------- reviews ---------- */
[data-theme="mint"] { background: var(--mint-2); }
[data-theme="mint"] .h2 .soft { color: #4F8079; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { background: #fff; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -48px rgba(11,42,43,.5); }
.quote:nth-child(2) { margin-top: 40px; }
.stars { color: var(--teal); letter-spacing: .2em; font-size: 14px; }
.quote blockquote { font: 400 clamp(1.25rem, 1.7vw, 1.5rem)/1.3 var(--f-display); letter-spacing: -.02em; }
.quote figcaption { color: var(--muted); margin-top: auto; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.25 var(--f-display); letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, transform .4s var(--ease-out); }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 11px; right: 11px; top: 16.5px; height: 1px; background: currentColor; }
.faq-list summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.faq-list details[open] summary i { background: var(--mint); transform: rotate(180deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { padding: 0 60px 26px 0; color: var(--ink-2); }

/* ---------- book ---------- */
.book { background: var(--bg); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-copy .body-l { margin-top: 30px; }
.form { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; color: var(--ink-2); padding: 0; }
.field small { color: var(--muted); }
.field input:not([type="radio"]) {
  font: inherit; color: var(--ink); width: 100%;
  padding: 15px 16px; border-radius: 14px; border: 0;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, background .25s;
}
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal); }
.field input.bad { box-shadow: inset 0 0 0 1.5px var(--coral); }
.field input.flash { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0% { background: var(--mint); } }
.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 10px 15px; border-radius: 99px; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s; }
.chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-note { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.form-note.ok { color: var(--teal); }

/* ---------- footer ---------- */
.footer { padding: clamp(80px, 10vw, 140px) 0 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer address { font-style: normal; }
.footer-top p:not(.eyebrow), .footer address { color: var(--on-deep); }
.wordmark { position: relative; margin: clamp(60px, 9vw, 120px) 0 24px; text-align: center; }
.foot-smile { width: min(92%, 1000px); margin: 0 auto; height: auto; overflow: visible; }
.foot-smile .pt { fill: rgba(228,241,237,.06); stroke: rgba(228,241,237,.22); stroke-width: 1.2; }
.wordmark span { display: block; font: 600 clamp(7rem, 31vw, 30rem)/.8 var(--f-display); letter-spacing: -.07em; color: var(--on-deep); margin-top: .14em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--on-deep-2); padding-top: 22px; border-top: 1px solid rgba(228,241,237,.14); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .visit-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav { height: 60px; padding-left: 18px; }

  .scene-pin { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 60svh; }
  .map-grid, .shade-grid, .dentist-grid, .faq-grid, .book-grid { grid-template-columns: minmax(0, 1fr); }
  .map-info { position: static; }
  .portrait { max-width: 520px; }
  .bento-member, .bento-table, .bento-finance { grid-column: 1 / -1; grid-row: auto; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote:nth-child(2) { margin-top: 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* мобільна сцена: заголовок угорі, зуб у центрі, лід і кнопки внизу */
  .motion .hero-copy { width: 100%; padding: calc(var(--nav-h) + 36px) var(--gut) 24px; justify-content: flex-start; }
  .motion .hero-bottom { margin-top: auto; }
  .motion .stage { top: var(--st-top, 300px); bottom: var(--st-bot, 190px); height: auto; width: 100%; }
  .motion .hero-tags { display: none; }
  .motion .scroll-hint { display: none; }
  .motion .anat { left: var(--gut); right: var(--gut); top: auto; bottom: 0; padding: 0 0 24px; justify-content: flex-end; }
  .motion .anat-steps { margin-bottom: 16px; }
  .drag-hint { bottom: -2px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .mono { font-size: 11px; }
  .hero-title { font-size: clamp(3rem, 16vw, 5.2rem); margin-bottom: 0; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn-ghost { display: none; }
  .progress { display: none; }
  .eyebrow { margin-bottom: 16px; }

  .panel-h { font-size: clamp(2.1rem, 11vw, 2.8rem); margin-bottom: 8px; }
  .motion .panel-p { font-size: 14.5px; line-height: 1.45; margin-bottom: 10px; }
  .motion .panel-list li { padding: 8px 0; font-size: 14.5px; }
  .anat-steps li { font-size: 10px; }

  .map-side { display: none; }
  .info-num { width: 76px; height: 88px; }
  .info-num b { font-size: 2.1rem; }
  .info-top { gap: 16px; }

  .shade-read { gap: 22px; }
  .tabs { gap: 2px; height: 62px; }
  .tab i { height: 34px; border-radius: 3px 3px 45% 45% / 3px 3px 60% 60%; }
  .tab span { display: none; }
  .tab.on i { transform: translateY(-8px); }
  .shade-stage { border-radius: 28px; }

  .stats dd { font-size: 2.4rem; }
  .visit-steps { grid-template-columns: minmax(0, 1fr); }
  .visit-steps li, .visit-steps li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .member-core { min-height: 0; padding: 28px; }
  .member-core .btn { margin-top: 0; }
  .bento-table .bezel-core { padding: 6px 20px; }
  .fee-table th { font-size: 15px; padding-right: 12px; }
  .finance-core { flex-direction: column; align-items: flex-start; gap: 10px; }
  .faq-list details p { padding-right: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { flex-direction: column; }
}

/* =========================================================
   STATES
   ========================================================= */
.js.motion [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
