/* Layout: quiet white pages cut by full-width photo and rubber-dam-blue bands; handwriting only on photos. */
:root {
  --enamel: #FFFFFF;
  --mist: #EDF3F9;
  --dam: #0B4A8F;        /* rubber dam */
  --dam-deep: #07346A;
  --ink: #0E1726;        /* logo line */
  --soft: #4A586C;
  --line: #CBD7E5;
  --marker: #FFEB3B;     /* exam marker */
  --backdrop: #CECBD7;   /* portrait backdrop */
  --display: "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Sofia Sans", "Segoe UI", Arial, sans-serif;
  --hand: "Shantell Sans", "Segoe Print", "Comic Sans MS", cursive;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --band: clamp(3.5rem, 8vw, 7rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--enamel); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.2vw, 6.25rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }
p { max-width: 62ch; text-wrap: pretty; }
a { color: var(--dam); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dam); outline-offset: 3px; }
.dam :focus-visible, .visit :focus-visible, .reach__a :focus-visible, .foot :focus-visible { outline-color: var(--marker); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(1rem, 3.5vw, 3rem); }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--soft); }
.sec { padding-block: var(--band); }
.sec--t { padding-top: 0; }
.sec > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sec > .more { margin-top: 2rem; }
.intro { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.intro h2 { max-width: 20ch; }
.note { padding-bottom: var(--band); max-width: 1280px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--ink); color: #fff; padding: .7rem 1rem; }
.skip:focus { top: 1rem; }

/* actions */
.acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .7rem 1.35rem; border: 2px solid var(--dam); border-radius: 4px; background: var(--dam); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.btn:hover { background: var(--dam-deep); border-color: var(--dam-deep); }
.btn--line { background: transparent; color: var(--dam); }
.btn--line:hover { background: var(--dam); border-color: var(--dam); color: #fff; }
.btn--y { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn--y:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; border-color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--dam); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: inherit; text-decoration-color: var(--dam); text-decoration-thickness: 2px; }
.more:hover { color: var(--dam); }
.dam .more { text-decoration-color: var(--marker); }
.dam .more:hover { color: var(--marker); }

/* social links: strip above the sticky navigation */
.social { background: var(--dam-deep); color: #fff; }
.social ul { display: flex; justify-content: flex-end; gap: clamp(1rem, 2.5vw, 1.75rem); }
.social a { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; }
.social a:hover { color: var(--marker); }
.social svg { width: 18px; height: 18px; flex: none; }
.social :focus-visible { outline-color: var(--marker); outline-offset: -3px; }
@media (max-width: 699px) { .social ul { justify-content: space-between; gap: .5rem; } }

/* header */
.bar { position: sticky; top: 0; z-index: 50; background: var(--enamel); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--ink); text-decoration: none; font: 400 1.2rem/1 var(--body); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 84px; }
.brand b { font-weight: 700; }
.nav ul { display: flex; gap: clamp(.7rem, 1.25vw, 1.25rem); }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; white-space: nowrap; border-block: 2px solid transparent; }
.nav a:hover { color: var(--dam); }
.nav a[aria-current] { color: var(--dam); border-bottom-color: var(--dam); }
.lang { display: flex; }
.lang a { display: grid; place-items: center; min-width: 38px; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--soft); text-decoration: none; }
.lang a[aria-current] { color: var(--dam); text-decoration: underline; text-decoration-thickness: 2px; }
.bar__tel { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; color: var(--dam); text-decoration: none; }
.bar__tel svg { width: 22px; flex: none; }
.burger { display: none; min-height: 44px; padding: 0 .9rem; border: 2px solid var(--ink); border-radius: 4px; background: none; font-weight: 600; cursor: pointer; }
@media (max-width: 1239px) {
  .burger { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; max-height: calc(100vh - 116px); overflow: auto; background: var(--enamel); border-bottom: 1px solid var(--line); padding: .5rem clamp(1rem, 3.5vw, 3rem) 1.5rem; }
  .nav.is-open { display: block; }
  .nav ul { display: grid; gap: 0; }
  .nav a { min-height: 54px; font-size: 1.25rem; border: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 699px) {
  .bar__in { gap: .35rem; min-height: 64px; }
  .brand { font-size: .9rem; gap: .4rem; }
  .brand span { display: grid; line-height: 1.1; }
  .brand img { width: 56px; }
  .bar__tel { width: 40px; justify-content: center; }
  .bar__tel span { display: none; }
  .lang a { min-width: 32px; }
  .burger { padding: 0 .6rem; font-size: 1rem; }
}

/* hero and before/after strip */
.hero__in { display: grid; gap: 1.5rem var(--gap); padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2rem, 3.5vw, 3rem); }
.hero__in > div { display: grid; gap: 1.5rem; align-content: end; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.15fr 1fr; align-items: end; } }
.cmp { --pos: 34%; position: relative; overflow: hidden; aspect-ratio: 1600 / 401; max-height: 560px; width: 100%; background: var(--dam); touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 100%; }
.cmp__b { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__l { position: absolute; bottom: .35rem; left: clamp(1rem, 3vw, 3rem); font: 500 clamp(1.4rem, 2.6vw, 2.4rem)/1.2 var(--hand); color: var(--marker); text-shadow: 0 1px 5px rgb(7 52 106 / .9), 0 0 2px var(--dam-deep); pointer-events: none; }
.cmp__l--r { left: auto; right: clamp(1rem, 3vw, 3rem); }
.cmp__h { position: absolute; inset-block: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--marker); pointer-events: none; }
.cmp__h svg { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; padding: 13px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--marker); color: var(--ink); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp:has(input:focus-visible) .cmp__h svg { outline: 3px solid #fff; outline-offset: 2px; }
.hero__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 2rem; max-width: 1280px; padding-block: 1rem clamp(2rem, 4vw, 3.5rem); color: var(--soft); }
@media (max-width: 699px) { .cmp { --pos: 50%; aspect-ratio: 1.75; } }

/* blue band */
.dam { background: var(--dam); color: #fff; padding-block: var(--band); }
.dam__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; max-width: none; margin-top: 2rem; }

/* sample treatment plan */
.plan { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 860px) { .plan { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
.plan__photo { position: relative; max-width: 440px; }
.plan__photo img { width: 100%; }
.plan__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan__photo ellipse { fill: none; stroke: var(--marker); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.plan__photo ellipse.on { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease-out; }
.plan__list { border-top: 1px solid rgb(255 255 255 / .35); }
.plan__list li { border-bottom: 1px solid rgb(255 255 255 / .35); }
.plan__list button { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start; width: 100%; padding: 1.15rem .75rem; border: 0; background: none; text-align: left; cursor: pointer; transition: background-color .18s; }
.plan__list button:hover { background: rgb(255 255 255 / .08); }
.plan__list button[aria-pressed="true"] { background: var(--dam-deep); }
.plan__n { font: 500 2rem/1 var(--hand); color: var(--marker); }
.plan__txt { display: grid; gap: .25rem; }
.plan__txt strong { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
.plan__p { font: 700 1.6rem/1.1 var(--display); }

/* two columns */
.split { display: grid; gap: 2.5rem var(--gap); align-items: center; }
.split > div { display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.1fr; } .split--r { grid-template-columns: 1.1fr 1fr; } }
.mail { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--mist); border-radius: 4px; }
.mail__top { display: flex; flex-wrap: wrap; gap: .1rem .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mail__top span, .mail figcaption { color: var(--soft); font-size: 1rem; }
.mail img { width: 200px; border-radius: 4px; }

/* doctor */
.doc { background: var(--backdrop); overflow: hidden; }
.doc__in { display: grid; gap: 1.5rem var(--gap); align-items: end; }
.doc__in > img { width: 100%; max-width: 580px; justify-self: center; -webkit-mask: linear-gradient(90deg, transparent, #000 24%, #000 80%, transparent), linear-gradient(transparent, #000 5%); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 24%, #000 80%, transparent), linear-gradient(transparent, #000 5%); mask-composite: intersect; }
.doc__in > div { display: grid; gap: 1.25rem; justify-items: start; padding-block: clamp(2rem, 5vw, 5rem); align-self: center; }
.doc__in p { color: var(--ink); }
.doc h1 { font-size: clamp(2.8rem, 5.6vw, 5rem); }
@media (min-width: 860px) { .doc__in { grid-template-columns: 1fr 1.1fr; } }
@media (max-width: 859px) { .doc__in > div { order: -1; padding-bottom: 0; } }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem clamp(1rem, 2vw, 1.75rem); }
.video { display: grid; gap: .75rem; align-content: start; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.video__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); }
.video__img img, .video__img iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__img i { position: absolute; left: 1rem; bottom: 1rem; width: 54px; height: 54px; border-radius: 50%; background: var(--dam); box-shadow: 0 0 0 2px #fff; transition: background-color .18s; }
.video__img i::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #fff; border-block: 11px solid transparent; }
.video:hover i { background: var(--ink); }
.video:hover .video__t { text-decoration: underline; text-decoration-thickness: 2px; }

/* booking band */
.visit { background: var(--dam-deep); color: #fff; padding-block: var(--band); }
.visit__in { display: grid; gap: 2.5rem var(--gap); }
.visit__in > div { display: grid; gap: 1.1rem; align-content: start; }
.visit .acts { margin-top: .75rem; }
.visit dl { align-self: end; }
.visit dl > div { padding-block: 1rem; border-top: 1px solid rgb(255 255 255 / .35); }
.visit dt { color: #C6DAF0; font-size: 1rem; }
.visit dd { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.visit dd a { color: inherit; }
@media (min-width: 860px) { .visit__in { grid-template-columns: 1.1fr 1fr; } }

/* inner pages */
.head { display: grid; gap: 1.25rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; border-radius: 4px; }
.exam { display: grid; gap: 2rem; }
.exam .intro { margin: 0; }
.rates dl > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.rates dl > div:last-child { border-bottom: 1px solid var(--line); }
.rates dt { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.rates small { display: block; font-size: 1rem; font-weight: 400; color: var(--soft); }
.rates dd { font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); color: var(--dam); }
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.75rem clamp(1rem, 2vw, 1.75rem); }
.prices li { display: grid; grid-template-rows: auto 1fr auto auto; gap: .5rem; align-content: start; }
.prices img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--mist); margin-bottom: .5rem; }
.prices__p { font: 700 2.25rem/1 var(--display); color: var(--dam); }
.prices__n { min-height: 1.6em; }
.prices li:not(:has(.prices__n))::after { content: ""; min-height: 1.6em; }
.svc { display: grid; gap: 0 var(--gap); }
.svc > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.svc dt { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-bottom: .3rem; }
.svc dd { color: var(--soft); max-width: 55ch; }
@media (min-width: 860px) { .svc:not(.svc--1) { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.chips a { display: flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 500; line-height: 1.2; }
.chips a:hover { border-color: var(--dam); background: var(--mist); }
/* each row shares one height: widths follow the photo's own proportions (--r) */
.cases, .cases__row { display: flex; gap: clamp(.6rem, 1.4vw, 1.25rem); }
.cases { flex-direction: column; }
.cases .zoom { flex: var(--r) 1 0; min-width: 0; width: auto; max-width: calc(var(--r) * 470px); aspect-ratio: var(--r); }
.cases img { height: 100%; object-fit: cover; }
@media (max-width: 699px) { .cases__row { flex-wrap: wrap; } .cases .zoom { flex: 0 1 auto; width: calc(var(--r) * 240px); max-width: 100%; } }
.year { display: grid; gap: 1.25rem var(--gap); padding-block: 2rem; border-top: 1px solid var(--line); }
.year h3 { font: 700 3rem/1 var(--display); color: var(--dam); }
.year ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 1.75rem 1.25rem; }
.year img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--mist); padding: .6rem; }
.year p { margin-top: .6rem; line-height: 1.35; font-size: 1.05rem; }
.year strong { font-weight: 600; }
.year p span { display: block; margin-top: .2rem; color: var(--soft); }
@media (min-width: 860px) { .year { grid-template-columns: 8rem 1fr; } }
@media (max-width: 559px) { .year ul { grid-template-columns: 1fr 1fr; } }
.reach { display: grid; gap: 1rem; }
.reach > div { display: grid; gap: 1rem; justify-items: start; align-content: space-between; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 4px; }
.reach__a { background: var(--dam); color: #fff; }
.reach__b { background: var(--mist); }
@media (min-width: 860px) { .reach { grid-template-columns: 1.4fr 1fr; } }
.place { display: grid; gap: 2rem var(--gap); }
.place iframe { width: 100%; min-height: 400px; border: 0; border-radius: 4px; background: var(--mist); }
@media (min-width: 860px) { .place { grid-template-columns: 1fr 1.5fr; } }

/* photo viewer */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 1rem; border: 0; background: var(--ink); color: #fff; }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: .75rem; }
.lb img { width: 100%; height: 100%; object-fit: contain; }
.lb p { text-align: center; }
.lb div { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lb button { min-height: 48px; padding: 0 1.1rem; border: 1px solid rgb(255 255 255 / .6); border-radius: 4px; background: none; cursor: pointer; }
.lb button:hover { background: #fff; color: var(--ink); }
.lb :focus-visible { outline-color: var(--marker); }

/* footer */
.foot { background: var(--ink); color: #DCE4EE; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; font-size: 1.05rem; }
.foot__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem var(--gap); }
.foot__logo { width: 170px; filter: brightness(0) invert(1); }
.foot h2 { font: 600 1.1rem/1.3 var(--body); letter-spacing: 0; margin-bottom: .6rem; color: #fff; }
.foot p + p { margin-top: .6rem; }
.foot a { color: inherit; }
.foot a:hover { color: var(--marker); }
.foot__c { margin-top: 2.5rem; max-width: 1280px; font-size: 1rem; color: #A9B6C7; }

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