:root {
  --bg: #F4F8F8; --surface: #FFFFFF; --ink: #0B1F22; --ink-2: #46595C; --ink-3: #5B6E71; --line: #DCE6E6;
  --teal: #50BEB4; --teal-ink: #1F7A70; --teal-soft: #E3F4F2; --teal-glow: #91DBD1;
  --dark: #061416; --dark-2: #0B2226; --dark-ink: #E8F3F2; --dark-ink-2: #9FB8B6;
  --f-display: 'Unbounded', system-ui, sans-serif; --f-text: 'Manrope', system-ui, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px); --maxw: 1280px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.i18n-wait body { visibility: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .6s var(--ease), color .6s var(--ease); }
html.is-dark body { background: var(--dark); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; } /* a component's own display (.ai is flex) must not resurrect hidden elements */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.mono { margin: 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1.display { font-size: clamp(34px, 6vw, 80px); font-weight: 300; }
h2.display { font-size: clamp(28px, 4.2vw, 56px); }
.muted { color: var(--ink-3); font-size: 14px; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
main, .ftr-wrap { position: relative; z-index: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--f-text); text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #17363c; }
.btn-teal { background: var(--teal-ink); color: #fff; } .btn-teal:hover { background: color-mix(in srgb, var(--teal-ink) 85%, #000); }
.btn-ghost { background: transparent; border-color: var(--line); } .btn-ghost:hover { border-color: var(--ink); }

.hdr { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .6s, color .6s; }
.hdr.is-scrolled { border-color: var(--line); }
html.is-dark .hdr { background: color-mix(in srgb, var(--dark) 76%, transparent); color: var(--dark-ink); border-color: rgba(232, 243, 242, .08); }
.hdr-logo img.brand-logo, .ftr img.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font: 500 22px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.wordmark img { width: 28px; height: 28px; }
.hdr-nav { display: flex; gap: 28px; margin-inline: auto; font-weight: 600; font-size: 15px; }
.hdr-nav a { text-decoration: none; opacity: .75; transition: opacity .2s; } .hdr-nav a:hover { opacity: 1; }
.hdr-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font: 600 12px/1 var(--f-mono); }
.lang a { padding: 7px 10px; border-radius: 999px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
html.is-dark .lang a[aria-current="true"] { background: var(--dark-ink); color: var(--dark); }
.hdr-tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 1080px) { .hdr-nav { display: none; } .hdr-end { margin-left: auto; } }
@media (max-width: 640px) { .hdr { height: 60px; } .hdr-tel, .hdr-end .btn { display: none; } }

.hero { position: relative; min-height: calc(100svh - 72px); display: grid; align-content: center; padding: clamp(16px, 5vh, 64px) 0 32px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 15%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--teal) 0%, transparent); } }
.hero h1 { margin: 0 0 20px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.tooth-fallback { width: 100%; height: 100%; object-fit: contain; display: none; }
html.no-gl .tooth-fallback { display: block; }
.stage-hud { position: absolute; inset: 5%; pointer-events: none; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--teal-ink); background:
  linear-gradient(var(--teal) 0 0) top left / 18px 1.5px no-repeat, linear-gradient(var(--teal) 0 0) top left / 1.5px 18px no-repeat,
  linear-gradient(var(--teal) 0 0) top right / 18px 1.5px no-repeat, linear-gradient(var(--teal) 0 0) top right / 1.5px 18px no-repeat,
  linear-gradient(var(--teal) 0 0) bottom left / 18px 1.5px no-repeat, linear-gradient(var(--teal) 0 0) bottom left / 1.5px 18px no-repeat,
  linear-gradient(var(--teal) 0 0) bottom right / 18px 1.5px no-repeat, linear-gradient(var(--teal) 0 0) bottom right / 1.5px 18px no-repeat; }
.stage-hud span { position: absolute; } .hud-tl { top: 10px; left: 26px; } .hud-br { bottom: 10px; right: 26px; }

.ask { margin: 0; max-width: 560px; }
.ask-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.ask-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 22px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 12px 40px -20px color-mix(in srgb, var(--ink) 35%, transparent); transition: border-color .3s, box-shadow .3s; }
.ask-row:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent), 0 12px 40px -20px color-mix(in srgb, var(--ink) 35%, transparent); }
.ask-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font: 500 16px/1.4 var(--f-text); color: var(--ink); }
.send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #1A1A1A; color: #fff; cursor: pointer; }
.send svg { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .72); font: 600 13.5px/1.2 var(--f-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--teal-ink); background: #fff; }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.orb { flex: none; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from var(--a), var(--teal), var(--teal-glow), #fff, var(--teal-ink), var(--teal)); box-shadow: inset 0 0 6px rgba(255, 255, 255, .8); animation: orb 6s linear infinite; }
.orb-s { width: 16px; height: 16px; }
@keyframes orb { to { --a: 360deg; } }

.facts { list-style: none; padding: 0; margin: clamp(28px, 6vh, 64px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.facts li { display: grid; gap: 4px; padding: 18px 20px; background: color-mix(in srgb, var(--bg) 60%, #fff); }
.facts b { font: 400 clamp(20px, 2vw, 26px)/1.1 var(--f-display); }
.facts span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 340px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

.offer { position: relative; margin-block: clamp(40px, 8vw, 96px); }
.offer-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(120deg, #fff 0%, var(--teal-soft) 100%); }
.offer h2 { margin: 10px 0 18px; font: 400 clamp(24px, 3vw, 40px)/1.1 var(--f-display); }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.offer-list li { position: relative; padding-left: 22px; }
.offer-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); }
.offer-price { display: grid; justify-items: start; gap: 8px; }
.offer-price s { color: var(--ink-3); font-size: 18px; }
.offer-price b { font: 400 clamp(40px, 5vw, 64px)/1 var(--f-display); color: var(--teal-ink); }
@media (max-width: 760px) { .offer-card { grid-template-columns: 1fr; } .offer-list { grid-template-columns: 1fr; } }

/* the chapter's colors follow the page: dark text until the page turns dark, so it is readable at every moment */
.journey { position: relative; color: var(--ink); transition: color .6s var(--ease); }
html.is-dark .journey, html.still .journey { color: var(--dark-ink); }
html.still .journey { background: var(--dark); }
html.still .journey-grid { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "bar"; }
html.still .journey-stage { display: none; }
.journey-pin { min-height: 100svh; display: grid; align-items: center; padding: 96px 0 48px; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "stage steps" "bar bar"; gap: 24px 48px; align-items: center; }
.journey-head { grid-area: head; } .journey-head .mono, .step .mono { color: var(--teal-ink); }
html.is-dark .journey .mono, html.still .journey .mono { color: var(--teal); }
.journey h2 { margin: 8px 0 0; max-width: 14em; }
.journey-stage { grid-area: stage; position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; overflow: hidden; }
.reticle { position: absolute; inset: 6%; border-radius: 50%; opacity: 0; transition: opacity .6s; border: 1px solid color-mix(in srgb, var(--teal-glow) 60%, transparent); box-shadow: 0 0 0 2000px color-mix(in srgb, var(--dark) 55%, transparent); }
.reticle::before, .reticle::after { content: ""; position: absolute; background: color-mix(in srgb, var(--teal-glow) 50%, transparent); }
.reticle::before { left: 50%; top: 8%; bottom: 8%; width: 1px; } .reticle::after { top: 50%; left: 8%; right: 8%; height: 1px; }
.journey[data-mode="micro"] .reticle { opacity: 1; }
.steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; transition: opacity .5s, background-color .5s, border-color .5s; }
html.is-dark .step { border-color: rgba(232, 243, 242, .12); }
html.is-dark .step:not(.is-on) { opacity: .7; } /* dimmed, still AA on the dark page */
.step.is-on, html.still .step { background: color-mix(in srgb, var(--teal) 8%, transparent); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.step h3 { margin: 6px 0 4px; font: 600 20px/1.25 var(--f-text); }
.step p { margin: 0; color: var(--ink-2); }
html.is-dark .step p, html.still .step p { color: var(--dark-ink-2); }
.journey-progress { grid-area: bar; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(232, 243, 242, .12); }
.journey-progress span { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "steps" "bar"; }
  .journey-stage { max-width: 300px; }
  html.motion .step:not(.is-on) { display: none; }
}

.sec { position: relative; padding: clamp(64px, 10vw, 128px) 0; background: var(--bg); }
.sec-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin: 0; }
.sec-sub { margin: 0; color: var(--ink-2); font-size: 17px; }
.sec-sub .pill { display: inline-flex; align-items: center; margin-right: 6px; padding: 4px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font: 600 13px/1.4 var(--f-text); vertical-align: 1px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); grid-auto-flow: dense; gap: 14px; }
.svc { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--teal) 18%, transparent), transparent 60%); }
.svc:hover::before { opacity: 1; }
.svc-hit { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; padding: 24px; cursor: pointer; }
.svc-hit:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: -4px; border-radius: 24px; }
.svc h3 { margin: 0; font: 500 clamp(19px, 1.7vw, 23px)/1.15 var(--f-display); letter-spacing: -.01em; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15px; }
.svc-num { color: var(--ink-3); }
.svc-price { margin-top: auto; font-weight: 700; }
.svc-price small { display: block; font-weight: 600; color: var(--teal-ink); }
.svc-big { font: 300 clamp(72px, 9vw, 132px)/.9 var(--f-display); color: var(--teal); letter-spacing: -.04em; }
.svc-big small { display: block; margin-top: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.b-xl { grid-column: span 2; grid-row: span 2; border-color: transparent; background: linear-gradient(160deg, var(--dark-2), var(--dark)); color: var(--dark-ink); }
.b-xl p { color: var(--dark-ink-2); } .b-xl .svc-num { color: var(--teal); } .b-xl h3 { font-size: clamp(26px, 2.8vw, 38px); }
.b-wide { grid-column: span 2; } .b-tall { grid-row: span 2; }
.svc-img { position: absolute; inset: 0; z-index: -2; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.04); }
.has-img .svc-hit { justify-content: flex-end; color: #fff; background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--dark) 85%, transparent)); }
.has-img p, .has-img .svc-num { color: rgba(255, 255, 255, .85); } .has-img .svc-price small { color: var(--teal-glow); }
.has-img .svc-price { margin-top: 0; }
/* a profile's still-life photo (objects on stone): the card takes the photo's backdrop colour; the photo sits beside the
   text on a wide card, under it on a tall one, behind it on the large dark one, and above it on a phone */
.has-still { border-color: color-mix(in srgb, var(--still-bg, var(--surface)) 90%, #000); background: var(--still-bg, var(--surface)); }
.svc-still { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; }
.svc-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc-still img { transform: scale(1.035); }
/* a tall card: the photo takes the room the text leaves, to the card's edges, fading in at its top */
.b-tall .svc-still { position: relative; inset: auto; flex: 1 1 auto; min-height: 150px; margin: -36px -24px -24px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%); mask-image: linear-gradient(180deg, transparent, #000 34%); }
.b-tall.has-still .svc-price { margin-top: 2px; }
.b-wide .svc-still { left: 38%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%); mask-image: linear-gradient(90deg, transparent, #000 36%); }
.b-xl .svc-still { -webkit-mask-image: linear-gradient(90deg, transparent 14%, #000 56%); mask-image: linear-gradient(90deg, transparent 14%, #000 56%); }
.b-xl.has-still { background: var(--still-bg); }
.b-wide.has-still .svc-hit > :not(.svc-still), .b-xl.has-still .svc-hit > :not(.svc-still) { max-width: 54%; }
.b-xl.has-still .svc-big { font-size: clamp(56px, 6.4vw, 96px); }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .b-xl, .b-wide { grid-column: auto; } .b-xl, .b-tall { grid-row: auto; }
  .has-img { min-height: 340px; }
  .has-still .svc-still, .b-tall .svc-still { position: relative; inset: auto; order: -1; flex: none; min-height: 0; aspect-ratio: 16 / 10; margin: -24px -24px 2px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .b-wide.has-still .svc-hit > :not(.svc-still), .b-xl.has-still .svc-hit > :not(.svc-still) { max-width: none; }
  .b-xl.has-still .svc-big { font-size: 64px; }
}

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.doc-ava { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); font: 300 clamp(56px, 7vw, 96px)/1 var(--f-display); letter-spacing: .04em; }
.doc-photo { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 14px; border: 1px dashed color-mix(in srgb, var(--teal-ink) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, #fff 70%, transparent); color: var(--teal-ink); font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.doc .doc-body { flex: 1; display: grid; align-content: start; gap: 8px; padding: 20px 22px 22px; }
.doc h3 { margin: 0; font: 700 19px/1.25 var(--f-text); }
.doc p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.doc .btn { justify-self: start; margin-top: 8px; }
/* a clinic whose photos are still to come (profile photoNote): a feature card for the lead doctor across the row —
   her round portrait with a fine light ring on her own photo blurred and toned into the palette, a quiet one-line note —
   and compact light cards for the rest: a small round avatar with initials, name, role, a line, «Записатися» */
.docs.is-ph { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.docs.is-ph .doc-lead { grid-column: 1 / -1; flex-direction: row; }
.docs.is-ph .doc-lead .doc-ava { flex: 0 0 clamp(300px, 38%, 460px); aspect-ratio: auto; min-height: 380px; overflow: hidden; isolation: isolate; color: var(--dark-ink);
  background: radial-gradient(75% 55% at 50% 40%, color-mix(in srgb, var(--teal) 22%, #4A4A49) 0%, transparent 72%), linear-gradient(180deg, #333437 0%, var(--dark-2) 58%, var(--dark) 100%); }
.docs.is-ph .doc-lead .doc-ava::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; /* fine grain: no banding */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
.doc-back { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.doc-back img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: saturate(.9) contrast(.95); }
.doc-back:has(img)::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 50% at 50% 42%, transparent 0%, color-mix(in srgb, var(--dark) 30%, transparent) 100%),
  linear-gradient(180deg, color-mix(in srgb, var(--dark-2) 28%, transparent) 0%, color-mix(in srgb, var(--dark) 78%, transparent) 100%),
  color-mix(in srgb, var(--teal) 16%, transparent); }
.docs.is-ph .doc-portrait { position: relative; width: clamp(176px, 15vw, 216px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--dark-2);
  outline: 1px solid rgba(255, 255, 255, .42); outline-offset: 8px; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .05); }
.docs.is-ph .doc-photo { top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); border-radius: 14px; white-space: normal; text-align: center; text-wrap: balance;
  padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .14); background: color-mix(in srgb, var(--dark) 30%, transparent); color: rgba(255, 255, 255, .68);
  font: 500 11px/1.35 var(--f-text); letter-spacing: 0; text-transform: none; backdrop-filter: blur(8px); }
.docs.is-ph .doc-lead .doc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: clamp(28px, 4vw, 52px); }
.doc-lead h3 { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--f-display); letter-spacing: -.01em; }
.doc-lead .doc-body > p:not(.mono) { max-width: 34em; font-size: 16px; }
.docs.is-ph .doc-lead .btn { margin-top: 8px; }
.doc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.doc-facts li { padding: 5px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: 13px; font-weight: 600; }
/* the compact cards: the service cards' white surface and line */
.doc-mini { gap: 12px; padding: 22px 22px 18px; border-radius: 22px; }
.doc-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.doc-head > div { min-width: 0; }
.doc-av { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  background: radial-gradient(circle at 50% 30%, #fff, var(--teal-soft) 75%); color: var(--teal-ink); font: 400 19px/1 var(--f-display); letter-spacing: .01em; }
.doc-mini h3 { margin: 0; font: 700 18px/1.25 var(--f-text); }
.doc .doc-role { margin: 3px 0 0; color: var(--teal-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.doc .doc-desc { margin: 0; color: var(--ink-2); font-size: 15px; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 700 15px/1.2 var(--f-text); cursor: pointer; }
.doc-link svg { width: 18px; height: 18px; color: var(--teal-ink); transition: transform .3s var(--ease); }
.doc-link:hover svg, .doc-link:focus-visible svg { transform: translateX(4px); }
.doc-team { background: color-mix(in srgb, var(--teal-soft) 45%, var(--surface)); }
.doc-team h3 { font-size: 17px; }
.doc-team .doc-role { margin: 4px 0 0; }
.doc-team .doc-head { margin-bottom: 2px; }
.doc-stack { display: flex; padding-left: 12px; }
.doc-stack i { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -12px; border: 2px solid var(--surface); border-radius: 50%; font: 300 20px/1 var(--f-display); font-style: normal; color: var(--teal-ink);
  background: radial-gradient(circle at 50% 30%, #fff, color-mix(in srgb, var(--teal) 50%, var(--teal-soft)) 95%); }
.doc-stack i:nth-child(2) { background: radial-gradient(circle at 50% 30%, #fff, color-mix(in srgb, var(--teal) 34%, var(--teal-soft)) 95%); }
.doc-stack i:nth-child(3) { background: radial-gradient(circle at 50% 30%, #fff, color-mix(in srgb, var(--teal) 18%, var(--teal-soft)) 95%); }
.doc-stack i:last-child { background: var(--surface); border-color: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 35%, transparent); }
@media (max-width: 1000px) { .docs, .docs.is-ph { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .docs.is-ph .doc-lead { flex-direction: column; }
  .docs.is-ph .doc-lead .doc-ava { flex: none; min-height: 0; aspect-ratio: 5 / 4; }
}
@media (max-width: 600px) {
  .docs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .doc { flex: 0 0 80%; scroll-snap-align: start; }
  .docs.is-ph { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; overflow: visible; margin-inline: 0; padding: 0; }
  .docs.is-ph .doc-lead .doc-ava { aspect-ratio: 1; }
  .docs.is-ph .doc-portrait { width: 188px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 14px/1 var(--f-text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-list { border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.price-row small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.price-row b { font: 600 18px/1.2 var(--f-text); white-space: nowrap; }
.price-cta { margin-top: 24px; }


.contacts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.contacts-head h2 { margin-bottom: 0; }
.open-now { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; }
.open-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-ink); animation: live 2s var(--ease) infinite; }
.open-now.is-closed { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.open-now.is-closed .dot { background: var(--ink-3); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal-ink) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--teal-ink) 0%, transparent); } }
html.still .open-now .dot { animation: none; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.tile { padding: 24px 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.tile p { margin: 0; }
.tile-map { grid-row: span 2; position: relative; min-height: 380px; padding: 0; overflow: hidden; background: var(--teal-soft); }
.tile-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.25) hue-rotate(130deg) saturate(1.3) contrast(.92) brightness(1.03); }
.map-card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 16px 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--dark) 35%, transparent); backdrop-filter: blur(12px); }
.map-card address { font: 400 clamp(17px, 1.7vw, 22px)/1.25 var(--f-display); font-style: normal; }
.map-card .btn svg { width: 18px; height: 18px; transform: rotate(-45deg); }
.phones { display: grid; margin-top: 6px; }
.phones a { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; text-decoration: none; }
.phones a:last-child { border-bottom: 0; padding-bottom: 0; }
.phones svg { flex: none; width: 20px; height: 20px; color: var(--teal-ink); }
.phones .go { margin-left: auto; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.phones a:hover .go, .phones a:focus-visible .go { transform: translateX(4px); color: var(--teal-ink); }
.hours { margin-top: 10px !important; font: 400 clamp(17px, 1.6vw, 20px)/1.3 var(--f-display); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.week li { padding: 10px 0; border-radius: 12px; background: var(--bg); text-align: center; font: 500 12px/1 var(--f-mono); color: var(--ink-2); }
.week li.is-today { background: var(--teal-ink); color: #fff; }
.week li.is-off { opacity: .45; text-decoration: line-through; }
.tile-ai { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; border-color: var(--dark); background: var(--dark); color: var(--dark-ink); }
.tile-ai .orb { width: 48px; height: 48px; }
.ai-title { font: 400 clamp(18px, 1.8vw, 22px)/1.25 var(--f-display); }
.ai-sub { margin-top: 4px !important; color: var(--dark-ink-2); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.btn-light { background: #fff; color: var(--ink); } .btn-light:hover { background: var(--teal-soft); }
.btn-line { background: transparent; border-color: rgba(232, 243, 242, .3); color: var(--dark-ink); } .btn-line:hover { border-color: var(--dark-ink); }
.contacts-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 4px 4px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .3s; }
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.pay { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-map { grid-row: auto; display: flex; flex-direction: column; min-height: 0; }
  .tile-map iframe { position: static; height: 300px; }
  .map-card { position: static; border-radius: 0; box-shadow: none; background: var(--surface); }
  .ai-actions { margin-left: 0; }
  .ai-actions .btn { flex: 1 1 auto; }
}

.ftr-wrap { background: var(--bg); }
.ftr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.ftr p { margin: 0; }

.sheet { width: min(560px, 100% - 32px); max-height: min(86vh, 780px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--dark) 55%, transparent); }
.sheet::backdrop { background: color-mix(in srgb, var(--dark) 45%, transparent); backdrop-filter: blur(4px); }
.sheet-in { display: grid; gap: 16px; padding: 28px; }
.sheet h2 { margin: 0; padding-right: 44px; font: 400 26px/1.15 var(--f-display); }
.sheet ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.sheet .x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.sheet .x svg { width: 18px; height: 18px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner { font-family: 'Manrope', system-ui, sans-serif; }
.owner-brand { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; color: #1A1A1A; }
.owner h3 { margin: 4px 0 0; font: 700 17px/1.3 var(--f-text); }
.owner-bookings { display: grid; gap: 8px; }

.plugix-badge { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid rgba(26, 26, 26, .1); border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); color: #1A1A1A; font: 700 13px/1 'Manrope', sans-serif; cursor: pointer; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3); }
.launcher { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border: 0; border-radius: 999px; background: #1A1A1A; color: #fff; font: 700 15px/1 'Manrope', sans-serif; cursor: pointer; box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--dark) 55%, transparent); transition: opacity .3s, transform .3s var(--ease); }
.launcher .orb { width: 30px; height: 30px; }
.launcher:hover { transform: translateY(-2px); }
html.ai-open .launcher { opacity: 0; pointer-events: none; }
.dock { display: none; }
@media (max-width: 640px) {
  .launcher, .plugix-badge { display: none; }
  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; }
  .dock-ai { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: 18px; background: #1A1A1A; color: #fff; font: 700 15px/1 'Manrope', sans-serif; }
  .dock-call, .dock-plugix { width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 18px; }
  .dock-call { background: var(--teal-ink); color: #fff; } .dock-call svg { width: 22px; height: 22px; }
  .dock-plugix { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  html.ai-open .dock { display: none; }
  .ftr-wrap { padding-bottom: 84px; }
}

html.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* wave 2 shell: the tracks style their own parts (jaw.css, smile.css, voice.css) */
.chip-voice { display: inline-flex; align-items: center; gap: 6px; }
.chip svg { width: 16px; height: 16px; flex: none; }
.owner-room { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 20px; }
.owner-qr { width: 132px; aspect-ratio: 1; border-radius: 12px; background: var(--bg); overflow: hidden; }
.owner-qr svg { display: block; width: 100%; height: 100%; }
.owner-room-text { display: grid; gap: 8px; justify-items: start; }
.owner-room h3 { margin: 0; }
.owner-code b { font-weight: 500; letter-spacing: .18em; color: var(--ink); }
@media (max-width: 480px) { .owner-room { grid-template-columns: 1fr; } .owner-qr { width: 168px; } }

/* wave 2: the implant caption at «Імплантація» shows with its step */
.step .implant-tag { margin: 10px 0 0; color: var(--teal-ink); opacity: 0; }
.step.is-on .implant-tag, html.still .step .implant-tag { opacity: 1; }
html.motion .step.is-on .implant-tag { animation: tag-in .6s var(--ease) .15s both; }
html.is-dark .step .implant-tag, html.still .step .implant-tag { color: var(--teal); }
@keyframes tag-in { from { opacity: 0; transform: translateY(6px); } }
/* one step open at a time on a wide screen: the pinned chapter, the implant caption included, fits a laptop screen;
   the folded text stays for screen readers */
@media (min-width: 901px) {
  html.motion .step:not(.is-on) p { max-height: 0; margin: 0; overflow: hidden; }
  html.motion .step.is-on p { animation: step-in .45s var(--ease); }
}
@keyframes step-in { from { opacity: 0; } }
@media (min-width: 901px) and (max-height: 860px) { /* a laptop screen: the pinned chapter tightens to fit */
  html.motion .journey-pin { padding: 84px 0 20px; }
  html.motion .journey h2 { font-size: 40px; max-width: none; }
  html.motion .step { padding: 12px 18px; }
  html.motion .journey-stage { max-width: min(520px, 100svh - 260px); }
}

/* wave 2 polish: the cursor ring (fine pointers, motion only) */
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 90; width: 34px; height: 34px; border: 1.5px solid var(--teal-ink); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring.is-on { opacity: .9; }
.cursor-ring.is-hot { width: 56px; height: 56px; background: color-mix(in srgb, var(--teal) 14%, transparent); border-color: var(--teal); }
html.is-dark .cursor-ring { border-color: var(--teal); }
html.ai-open .cursor-ring, html:has(dialog[open]) .cursor-ring { opacity: 0; }
