/* =========================================================
   Val Fleuri Dental — design system & layout
   ========================================================= */
:root {
  --navy: #0E2A66;
  --navy-2: #173B82;
  --blue-card: #30599C;
  --blue-card-2: #3A66AD;
  --accent: #3AA0EE;
  --accent-2: #1C74CF;
  --text: #22304B;
  --muted: #5D6E8C;
  --label: #5A72A0;
  --line: #DCE4F0;
  --line-blue: #A9C2E6;
  --soft: #F2F7FE;
  --white: #fff;

  --grad-btn: linear-gradient(90deg, #2C95E6 0%, #1460C2 55%, #0C347D 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 14px;
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 80px; }
body {
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
svg { width: 1em; height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 64px); margin-inline: auto; }
.section { padding: clamp(90px, 11vw, 150px) 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow--light { color: rgba(255,255,255,.9); }

.h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  color: var(--navy);
}

.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(44px, 5vw, 64px); }
.section-head .h2 { margin: 12px 0 20px; }
.section-head p { font-size: 16px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 28px 0 6px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-position .6s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: var(--grad-btn);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -12px rgba(20, 96, 194, .7);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(20, 96, 194, .85); }
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .5s var(--ease);
}
.btn--primary:hover .btn__icon { transform: rotate(-12deg) scale(1.06); }
.btn--ghost {
  height: 48px; padding: 0 22px;
  color: var(--accent-2);
  border: 1px solid var(--line-blue);
  font-size: 15px;
}
.btn--ghost svg { transition: transform .4s var(--ease); width: 16px; height: 16px; }
.btn--ghost:hover { background: var(--soft); border-color: var(--accent); }
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--solid {
  height: 50px; padding: 0 34px; color: #fff;
  background: var(--grad-btn); background-size: 160% 100%;
  box-shadow: 0 10px 30px -12px rgba(20, 96, 194, .7);
}
.btn--solid:hover { background-position: 100% 0; transform: translateY(-2px); }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease);
}
.round-btn svg { width: 17px; height: 17px; }
.round-btn:hover:not(:disabled) { background: var(--accent-2); color: #fff; transform: scale(1.05); }
.round-btn:disabled { border-color: var(--line); color: #B6C3D8; cursor: default; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.logo__mark { width: 30px; height: 30px; color: var(--accent-2); filter: drop-shadow(0 4px 8px rgba(28, 116, 207, .25)); }
.logo__text { font-size: 13px; line-height: 1.02; font-weight: 500; letter-spacing: -.01em; color: var(--accent-2); }
.logo--light .logo__mark { color: #fff; filter: none; }
.logo--light .logo__text { color: #fff; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.header.is-scrolled { background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(14,42,102,.07); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav a, .header__contact { position: relative; font-size: 15px; font-weight: 500; color: var(--navy); }
.nav a::after, .header__contact::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after, .header__contact:hover::after { transform: scaleX(1); transform-origin: left; }
.header__contact { justify-self: end; }
.burger { display: none; }

/* intro animation for header items */
.is-loading .logo, .is-loading .nav a, .is-loading .header__contact { opacity: 0; transform: translateY(-14px); }
.logo, .nav a, .header__contact { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.header__contact { --i: 6; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); padding-top: 120px; overflow: hidden; isolation: isolate; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(max(720px, 100svh) - 170px); }
.hero__left { padding-top: clamp(10px, 4vh, 50px); position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(46px, 5.7vw, 88px);
  font-weight: 500; letter-spacing: -.045em; line-height: .98;
  color: var(--navy);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line:first-child { padding-left: 1.95em; }
.hero__title .line > span { display: inline-block; transition: transform 1.1s var(--ease-out), opacity 1.1s; }
.hero__title .line:nth-child(1) > span { transition-delay: .35s; }
.hero__title .line:nth-child(2) > span { transition-delay: .45s; }
.hero__title .line:nth-child(3) > span { transition-delay: .55s; }
.is-loading .hero__title .line > span { transform: translateY(105%); opacity: 0; }
.hero__lead { max-width: 370px; margin-top: 44px; font-size: 17px; color: var(--text); transition: opacity 1s .8s, transform 1s .8s var(--ease-out); }
.is-loading .hero__lead { opacity: 0; transform: translateY(16px); }

.hero__right { align-self: center; justify-self: end; margin-top: 12vh; position: relative; z-index: 3; }
.hero__title-2 {
  font-size: clamp(40px, 4.5vw, 70px);
  font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--navy);
  margin-bottom: 36px;
}
.hero__title-2 span { display: block; transition: opacity 1s, transform 1.1s var(--ease-out), filter 1s; }
.hero__title-2 span:nth-child(1) { transition-delay: .7s; }
.hero__title-2 span:nth-child(2) { transition-delay: .8s; }
.hero__right .btn { transition: opacity 1s 1s, transform 1s 1s var(--ease-out), box-shadow .4s, background-position .6s; }
.is-loading .hero__title-2 span { opacity: 0; transform: translateX(30px); filter: blur(8px); }
.is-loading .hero__right .btn { opacity: 0; transform: translateY(16px); }

.hero__tooth {
  position: absolute; left: 50%; top: 55%;
  width: clamp(300px, 34vw, 540px);
  z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.hero__tooth-float { animation: float 7s ease-in-out infinite; }
.hero__tooth img {
  width: 100%; height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 46% 47% at 50% 44%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 46% 47% at 50% 44%, #000 70%, transparent 100%);
  transition: opacity 1.2s .2s;
}
.is-loading .hero__tooth img { opacity: 0; transform: scale(.85) rotate(-6deg); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }

.hero__watermark {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%);
  font-size: clamp(56px, 8.2vw, 150px); font-weight: 500; letter-spacing: -.045em;
  color: rgba(23, 59, 130, .045); white-space: nowrap; z-index: -1; user-select: none;
}

/* ---------- About ---------- */
.about { padding: 40px 0 0; position: relative; }
.about__card {
  position: relative;
  width: min(var(--container), 100% - 64px);
  margin-inline: auto;
  min-height: max(600px, 86vh);
  border-radius: 24px;
  overflow: hidden; color: #fff;
  display: flex; flex-direction: column;
  padding: clamp(34px, 4.5vw, 56px) clamp(28px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
  isolation: isolate;
  box-shadow: 0 24px 60px -20px rgba(14, 42, 102, .35);
}
.about__bg { position: absolute; inset: 0; z-index: -2; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.about__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 52, 120, .72) 0%, rgba(40, 84, 160, .62) 60%, rgba(25, 60, 130, .92) 100%);
  mix-blend-mode: normal;
}
.about__card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #2C5DB0; mix-blend-mode: color; opacity: .65; }
.about__label { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(24px, 3vw, 44px); }
.about__content { max-width: 560px; }
.about__title { font-size: clamp(32px, 3.4vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 26px; }
.about__text { font-size: 16px; color: rgba(255,255,255,.88); max-width: 500px; }
.stats { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 18px 16px 16px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .4s;
}
.stat:hover { background: rgba(255,255,255,.17); }
.stat strong { display: block; font-size: clamp(40px, 4.2vw, 62px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.stat > span { font-size: clamp(15px, 1.3vw, 19px); }

/* ---------- Services ---------- */
.services__row { display: flex; gap: 14px; height: clamp(300px, 26vw, 400px); }
.svc {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: 12px; overflow: hidden; cursor: pointer; outline: none;
  background: linear-gradient(180deg, #2B53A5 0%, #5A79C8 60%, #93A6E2 100%);
  transition: flex 0.8s var(--ease), box-shadow .5s, opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s;
  isolation: isolate;
}
.svc img {
  position: absolute; top: 0; left: 0; height: 100%; width: 100%;
  object-fit: cover; z-index: -2;
  transition: width .8s var(--ease), transform 1.2s var(--ease);
}
.svc::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(30, 60, 140, .45)); z-index: -1; }
.svc__name {
  position: absolute; left: 0; bottom: 24px; width: 100%;
  padding: 0 14px; text-align: center;
  font-size: clamp(17px, 1.45vw, 22px); font-weight: 400; color: #fff; line-height: 1.12;
  transition: width .8s var(--ease), font-size .6s var(--ease), text-align .1s;
}
.svc__detail {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: calc(50% - 12px);
  border-radius: 10px; padding: 18px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.svc__detail-head { display: flex; justify-content: space-between; gap: 12px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.2; }
.svc__go { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.svc__go:hover { background: rgba(255,255,255,.35); transform: rotate(45deg); }
.svc__go svg { width: 16px; height: 16px; }
.svc__detail-text { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.92); }

.svc.is-active { flex: 2.35 1 0; box-shadow: 0 30px 60px -30px rgba(23, 59, 130, .6); }
.svc.is-active img { width: 52%; transform: scale(1.04); }
.svc.is-active .svc__name { width: 52%; font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; }
.svc.is-active .svc__detail { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s, .2s; }
.svc:not(.is-active):hover img { transform: scale(1.05); }
.services__row.has-active .svc:not(.is-active) .svc__name { font-size: clamp(15px, 1.25vw, 19px); }

.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 4vw, 56px); }

/* ---------- Specialists ---------- */
.team { overflow: hidden; }
.team__grid { display: grid; grid-template-columns: minmax(300px, .8fr) 1.45fr; gap: 40px; min-height: 640px; }
.team__intro { display: flex; flex-direction: column; align-items: flex-start; }
.team__title { margin-bottom: 30px; }
.avatars { display: inline-flex; vertical-align: middle; margin-left: 10px; transform: translateY(-.12em); }
.avatars img, .avatars span {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 2px solid #fff; margin-left: -9px; background: #CFE3F7;
}
.avatars img:first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; background: var(--blue-card); color: #fff; font-size: 13px; letter-spacing: 0; font-weight: 500; }
.team__text { max-width: 440px; font-size: 16px; margin-bottom: 30px; }
.team__controls { margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: 40px; }
.team__count { font-size: 15px; color: var(--label); font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
.team__right { position: relative; display: flex; flex-direction: column; min-width: 0; }
.team__label { align-self: flex-end; margin-bottom: 20px; }
.team__viewport { margin-top: auto; touch-action: pan-y; cursor: grab; }
.team__viewport:active { cursor: grabbing; }
.team__track { display: flex; gap: 14px; transition: transform .9s var(--ease); will-change: transform; }
.doc {
  flex: none; width: clamp(240px, 19vw, 290px);
  background: var(--blue-card); border-radius: 12px; padding: 12px 12px 18px; color: #fff;
  transition: transform .6s var(--ease), box-shadow .6s, background .4s;
  user-select: none;
}
.doc:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(23, 59, 130, .7); background: var(--blue-card-2); }
.doc__photo { position: relative; aspect-ratio: 3 / 3.85; border-radius: 8px; overflow: hidden; margin-bottom: 18px; background: #E9EEF4; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform 1s var(--ease); pointer-events: none; }
.doc:hover .doc__photo img { transform: scale(1.05); }
.doc__role { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.doc h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.doc p { font-size: 13.5px; color: rgba(255,255,255,.88); line-height: 1.4; margin-bottom: 18px; min-height: 2.8em; }
.doc small { font-size: 11.5px; color: rgba(255,255,255,.75); }

/* ---------- Calculator ---------- */
.calc__grid { display: grid; grid-template-columns: 1fr 1.42fr 1.2fr; gap: 14px; }
.calc__col { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--blue-card); border-radius: 12px; padding: 22px; color: #fff; position: relative; }
.calc__col .panel { flex: 1; }
.panel__title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.panel__title + * { clear: both; }
.radio { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; clear: both; }
.radio input, .check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.6px solid rgba(255,255,255,.85);
  transition: background .25s, box-shadow .25s, border-color .25s; cursor: pointer;
}
.radio input:checked { background: #7DC2F7; border-color: #D8EDFF; box-shadow: inset 0 0 0 3px var(--blue-card); }
.radio input:checked + span { font-weight: 600; }
.radio:hover input:not(:checked) { background: rgba(255,255,255,.15); }
.radio input:focus-visible, .check input:focus-visible, .chip:focus-visible { outline: 2px solid #9fd3ff; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 5px; font-size: 13px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease);
}
.chip:hover { background: rgba(255,255,255,.2); }
.chip.is-active { background: #4DA9F2; box-shadow: inset 0 0 0 1px #8DCBFA, 0 6px 16px -6px rgba(77,169,242,.8); }

.calc__stage-panel { display: flex; flex-direction: column; overflow: hidden; }
.calc__stage-head { display: flex; justify-content: space-between; align-items: flex-start; }
.calc__stage-head .panel__title { float: none; width: auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: rgba(255,255,255,.9); }
.check input { border-radius: 4px; }
.check input:checked { background: #7DC2F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2330599C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: #D8EDFF; }

.stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; perspective: 1000px; cursor: grab; touch-action: pan-y; padding: 6px 0 0; min-height: 300px; }
.stage.is-dragging { cursor: grabbing; }
.stage__rot { width: 82%; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.stage.is-dragging .stage__rot { transition: none; }
.stage__img { position: relative; transition: transform .8s var(--ease); transform-origin: 50% 30%; }
.stage__img.is-zoom { transform: scale(1.55) translateY(8%); }
.stage__img img {
  width: 100%; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 52% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 55% 52% at 50% 50%, #000 70%, transparent 100%);
  filter: drop-shadow(0 20px 30px rgba(10, 30, 80, .3));
}
.hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; border-radius: 42% 42% 46% 46%;
  transform: translate(-50%, -50%);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease);
}
.hotspot:hover { background: rgba(160, 215, 255, .28); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.hotspot.is-on {
  background: radial-gradient(circle at 50% 40%, rgba(130, 205, 255, .75), rgba(40, 140, 240, .55));
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.95), 0 0 22px 4px rgba(90, 185, 255, .85);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 1.5px rgba(255,255,255,.95), 0 0 30px 8px rgba(90, 185, 255, .55); } }
.stage__arc { width: 86%; height: auto; margin-top: -18px; overflow: visible; }
#arc-knob { filter: drop-shadow(0 0 6px rgba(160, 215, 255, .9)); transition: cx .5s var(--ease), cy .5s var(--ease); }
.stage.is-dragging #arc-knob { transition: none; }
.stage__deg { font-size: 15px; color: rgba(255,255,255,.9); margin-top: -10px; }
.stage__hint { text-align: center; font-size: 12px; color: rgba(255,255,255,.65); margin: 6px 0 12px; }
.thumbs { display: flex; justify-content: center; gap: 12px; }
.thumb {
  width: 66px; height: 66px; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  padding: 6px; transition: box-shadow .3s, background .3s, transform .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.thumb[data-view="zoom"] img { transform: scale(1.8) translateY(8%); }
.thumb:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
.thumb.is-active { box-shadow: inset 0 0 0 1.5px #9fd3ff, 0 0 18px -4px rgba(120, 200, 255, .9); }

.calc__result .panel__title { float: none; }
.calc__result::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .18;
  background-image: radial-gradient(circle at 92% 8%, transparent 0 46px, rgba(255,255,255,.6) 47px, transparent 48px), radial-gradient(circle at 92% 8%, transparent 0 96px, rgba(255,255,255,.4) 97px, transparent 98px);
}
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.res-card { background: #fff; color: var(--navy); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.res-card--wide { grid-column: 1 / -1; }
.res-card h4 { font-size: 13.5px; font-weight: 500; margin-bottom: 10px; letter-spacing: -.01em; }
.gauge { position: relative; margin: 0 auto; width: 100%; max-width: 128px; }
.gauge svg { width: 100%; height: auto; display: block; }
#gauge-fill { transition: stroke-dasharray 1s var(--ease); }
.gauge__meta { display: flex; justify-content: space-between; align-items: flex-end; font-size: 9px; color: var(--muted); margin-top: -4px; }
.gauge__meta strong { font-size: 13px; font-weight: 500; color: var(--navy); }
.res-note { font-size: 9.5px; color: var(--muted); text-align: center; background: var(--soft); border-radius: 5px; padding: 3px; margin-top: 6px; }
.segments { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-bottom: auto; padding-bottom: 12px; }
.segments i { height: 14px; border-radius: 2px; background: #E2ECF8; transition: background .4s; transition-delay: calc(var(--k) * 30ms); }
.segments i.on { background: linear-gradient(180deg, #4FB0F5, #1C74CF); }
.res-pill { background: var(--soft); border-radius: 6px; padding: 7px 8px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.res-pill strong { font-size: 13px; font-weight: 500; }
.res-pill span { font-size: 9.5px; color: var(--muted); }
.res-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-doc { display: flex; align-items: center; gap: 10px; animation: fadeIn .5s var(--ease); }
.res-doc img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #E6EEF7; flex: none; }
.res-doc strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.res-doc small { font-size: 11px; color: var(--muted); }
.res-plan li { position: relative; font-size: 12px; padding-left: 13px; margin-bottom: 7px; line-height: 1.3; animation: fadeIn .5s var(--ease) both; }
.res-plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.cost-bar { position: relative; height: 14px; border-radius: 3px; background: #E2ECF8; overflow: hidden; }
.cost-bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #4FB0F5, #1C74CF); transition: left .8s var(--ease), width .8s var(--ease); }
.cost-scale { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin: 4px 0 auto; padding-bottom: 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Testimonials ---------- */
.tabs { position: relative; display: flex; justify-content: center; max-width: 600px; margin: 0 auto clamp(40px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 10px 14px 12px; font-size: 15px; color: var(--accent-2); transition: color .3s; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); font-weight: 500; }
.tabs__ink { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--accent-2); transition: transform .6s var(--ease), width .6s var(--ease); }
.stories__panels { position: relative; }
.story { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.story[hidden] { display: none; }
.story.is-entering > * { animation: storyIn .8s var(--ease-out) both; }
.story.is-entering > *:nth-child(2) { animation-delay: .08s; }
.story.is-entering > *:nth-child(3) { animation-delay: .16s; }
@keyframes storyIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.story__text { padding-right: clamp(0px, 3vw, 50px); }
.story__text h3 { font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; color: var(--navy); margin-bottom: 18px; }
.story__text p { font-size: 15px; margin-bottom: 30px; }
.story__text h4 { font-size: 20px; font-weight: 500; color: var(--navy); margin-bottom: 14px; letter-spacing: -.02em; }
.story__text li { position: relative; padding-left: 14px; font-size: 15px; margin-bottom: 8px; }
.story__text li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

.ba { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: pan-y; background: #EAF0F7; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba--zoom img { transform: scale(1.35); }
.ba__before { filter: sepia(.6) saturate(1.25) hue-rotate(-10deg) brightness(.88) contrast(.9); }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 12px; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 2; }
.ba__tag--l { left: 12px; } .ba__tag--r { right: 12px; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #3A8EE6; z-index: 2; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 3;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #fff;
  background: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 20px rgba(0,0,0,.15);
  transition: transform .3s var(--ease);
}
.ba:hover .ba__handle, .ba.is-dragging .ba__handle { transform: scale(1.1); }

.story__side { display: flex; flex-direction: column; gap: 22px; }
.quote {
  position: relative; flex: 1; border-radius: 10px; padding: 26px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 0%, rgba(125, 194, 247, .55), transparent 55%), linear-gradient(160deg, #3A6FC0 0%, #234C96 100%);
  display: flex; flex-direction: column; isolation: isolate;
}
.quote::after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 40px rgba(255,255,255,.04); z-index: -1; }
.quote__mark { width: 40px; height: 40px; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.quote p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 22px; }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.quote footer strong { display: block; font-weight: 500; font-size: 14px; }
.quote footer small { font-size: 12px; opacity: .8; }
.stars { margin-left: auto; display: flex; gap: 2px; color: #FFD27A; }
.stars svg { width: 14px; height: 14px; }
.story__caption { font-size: 15px; }
.stories__nav { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 28px; }

/* ---------- Booking ---------- */
.booking { overflow: hidden; min-height: 760px; display: flex; align-items: center; }
.booking__inner { position: relative; z-index: 2; }
.booking__decor { position: absolute; z-index: 1; pointer-events: none; }
.booking__decor .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #EDF4FE 0 50%, #F6F9FE 50.5% 70%, transparent 70.5%);
}
.booking__decor img { position: relative; mix-blend-mode: multiply; animation: float 8s ease-in-out infinite; }
.booking__decor--l { width: clamp(300px, 34vw, 520px); aspect-ratio: 1; left: clamp(-260px, -14vw, -120px); top: 12%; }
.booking__decor--l img { width: 110%; margin: 22% 0 0 4%; -webkit-mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 70%, transparent 100%); transform: rotate(-8deg); }
.booking__decor--r { width: clamp(280px, 30vw, 460px); aspect-ratio: 1; right: clamp(-220px, -11vw, -90px); bottom: 10%; }
.booking__decor--r img { width: 62%; margin: 12% 0 0 14%; -webkit-mask-image: radial-gradient(ellipse 46% 46% at 50% 44%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 46% 46% at 50% 44%, #000 70%, transparent 100%); transform: rotate(14deg); animation-delay: -3s; }

.form { width: 100%; max-width: 540px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.field { position: relative; display: block; }
.field input, .field select {
  width: 100%; height: 46px; border: 0; border-bottom: 1px solid #9FB2D0; background: transparent;
  font: inherit; font-size: 15px; color: var(--navy); padding: 0 30px 0 2px; outline: none; border-radius: 0;
  appearance: none; -webkit-appearance: none; transition: border-color .3s;
}
.field input::placeholder { color: #5D6E8C; }
.field select:invalid { color: #5D6E8C; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-error input, .field.is-error select { border-color: #E0607E; }
.field__icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6E80A0; pointer-events: none; }
.field--date .field__icon { pointer-events: auto; cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 0; width: 30px; height: 100%; cursor: pointer; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.form__legal { font-size: 11.5px; color: var(--muted); max-width: 240px; text-align: right; }
.form__legal a { text-decoration: underline; color: var(--navy); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 20px 40px -16px rgba(14, 42, 102, .7);
  transition: transform .6s var(--ease), opacity .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer ---------- */
.footer { position: relative; background: linear-gradient(180deg, #3762A8 0%, #2F5A9E 100%); color: #fff; padding: 44px 0 34px; overflow: hidden; }
.footer__bigmark { position: absolute; width: 300px; height: 300px; left: -30px; bottom: -110px; opacity: .1; color: #fff; }
.footer__grid { position: relative; display: grid; grid-template-columns: 170px 1fr auto auto auto; gap: 20px 60px; align-items: start; }
.footer .logo__mark { width: 32px; height: 32px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 500; padding-top: 6px; }
.footer__nav a, .footer__col a, .footer__legal a { transition: opacity .3s; }
.footer__nav a:hover, .footer__col a:hover, .footer__legal a:hover { opacity: .7; }
.footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; padding-top: 6px; }
.footer__col h3 { font-size: 14px; font-weight: 500; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 8px; letter-spacing: .01em; }
.footer__col address { font-style: normal; margin-top: 4px; }
.footer__col .strong { font-size: 15px; font-weight: 500; }
.footer__legal { grid-column: 3 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px; font-size: 12px; margin-top: 40px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; color: rgba(255,255,255,.85); }
.footer__legal > span { width: 100%; text-align: right; color: rgba(255,255,255,.55); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease-out), transform .85s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.svc[data-reveal].is-in { transition-delay: var(--d, 0s), var(--d, 0s), 0s, var(--d, 0s), var(--d, 0s), var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .calc__grid { grid-template-columns: 1fr 1.3fr; }
  .calc__result { grid-column: 1 / -1; }
  .res-grid { grid-template-columns: repeat(4, 1fr); }
  .res-card--wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__nav { grid-column: 2 / -1; }
  .footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .container { width: min(var(--container), 100% - 40px); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: -1;
  }
  .nav a { font-size: 28px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .header__contact { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .burger { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; border-radius: 50%; background: var(--soft); }
  .burger span { display: block; width: 20px; height: 1.6px; background: var(--navy); transition: transform .4s var(--ease); }
  .nav-open .burger span:first-child { transform: translateY(4.3px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4.3px) rotate(-45deg); }

  .hero { padding-top: 110px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__title .line:first-child { padding-left: 1.2em; }
  .hero__tooth { position: relative; left: auto; top: auto; transform: none; margin: -10px auto -40px; width: min(420px, 78vw); }
  .hero__right { justify-self: start; margin-top: 0; padding-bottom: 80px; }
  .hero__watermark { bottom: 10px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .about__card { min-height: 700px; width: min(var(--container), 100% - 32px); margin-inline: auto; }
  .about__label { position: static; margin-bottom: 18px; }

  .services__row { flex-direction: column; height: auto; }
  .svc, .svc.is-active { flex: none; height: 230px; }
  .svc img, .svc.is-active img { width: 45%; transform: none; }
  .svc .svc__name, .svc.is-active .svc__name { width: 45%; font-size: 20px; }
  .svc .svc__detail { opacity: 1; transform: none; pointer-events: auto; width: calc(55% - 12px); }

  .team__grid { grid-template-columns: 1fr; min-height: 0; }
  .team__controls { order: 3; padding-top: 24px; }
  .team__label { display: none; }

  .calc__grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res-card--wide { grid-column: 1 / -1; }

  .tabs { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .story { grid-template-columns: 1fr 1fr; }
  .story__text { grid-column: 1 / -1; padding: 0; }

  .booking__decor { opacity: .5; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .hero__lead { margin-top: 26px; }
  .stats { gap: 10px; }
  .stat strong { font-size: 38px; }
  .svc, .svc.is-active { height: auto; min-height: 220px; display: flex; flex-direction: column; }
  .svc img, .svc.is-active img { position: relative; width: 100%; height: 200px; }
  .svc .svc__name, .svc.is-active .svc__name { position: absolute; top: 160px; bottom: auto; width: 100%; }
  .svc .svc__detail { position: relative; inset: auto; width: auto; margin: 0 10px 10px; gap: 14px; }
  .story { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .form__legal { text-align: center; max-width: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .footer__legal > span { text-align: left; }
  .booking__decor--l { top: 2%; }
  .booking__decor--r { bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
