/* ===== Tokens ===== */
:root {
  --black: #000;
  --ink: #1e1e1e;
  --white: #fff;
  --gray: #9a9a9a;
  --gray-dark: #4d4d4d;
  --light: #f2f2f2;

  --font-main: 'Montserrat', sans-serif;
  --font-accent: 'Plaster', sans-serif;

  --ls: -0.04em;
  --lh: 1;

  --radius: 2rem;
  --radius-sm: 1rem;
}

/* 1rem = 10px at 1920px wide, scales proportionally on desktop */
html { font-size: 10px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 0px) + 2rem); }
@media (min-width: 1024px) {
  html { font-size: calc(100vw / 192); }
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  letter-spacing: var(--ls);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ===== Helpers ===== */
.font-accent { font-family: var(--font-accent); letter-spacing: 0; }

.bg-black {
  background: #111 url('../img/bg-black.png') center / cover no-repeat;
  color: var(--white);
}

.bg-white {
  background: var(--light) url('../img/bg-white.png') center / cover no-repeat;
  color: var(--ink);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  height: 5.9rem;
  padding: 0 1rem 0 2.2rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: 2rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .25s ease;
}
.btn:hover { background: var(--black); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: .6rem;
  background: var(--white);
  color: var(--ink);
  transition: transform .25s ease;
}
.btn__icon svg { width: 1.6rem; height: 1.6rem; }
.btn:hover .btn__icon { transform: rotate(45deg); }

/* ===== Header (sticks to the top while scrolling) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 .6rem 2.4rem rgba(0, 0, 0, .07); }

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* same side offsets as the hero cards */
  padding: 2rem 2.8rem 1.6rem 3.3rem;
}

/* text logo in Plaster: sharp on any screen density. Ink is ~5.2em wide.
   The box is only cap-height tall (.67em) so the letters, not the Y tail, are centred with the buttons */
.header__logo {
  display: block;
  height: .67em;
  font-size: calc(16.7rem / 5.2);
  color: var(--ink);
}
.header__logo-text {
  display: block;
  margin: -.185em 0 0 -.05em;
  font-family: var(--font-accent);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__btn { margin-left: 1.6rem; }

/* outlined square buttons: location + language */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  height: 5.4rem;
  min-width: 5.6rem;
  padding: 0 1.2rem;
  border: 1.5px solid var(--ink);
  border-radius: .8rem;
  background: var(--white);
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.icon-btn > svg { width: 2.8rem; height: 2.8rem; }
.icon-btn:hover { background: var(--ink); color: var(--white); }

.lang-menu { position: relative; }
.lang-menu__toggle img,
.lang-menu__item img {
  width: 3rem;
  height: 2rem;
  border-radius: .3rem;
  object-fit: cover;
}
.lang-menu__toggle .lang-menu__chevron {
  width: 2rem;
  height: 2rem;
  transition: transform .3s ease;
}
.lang-menu__toggle[aria-expanded="true"] .lang-menu__chevron { transform: rotate(180deg); }

.lang-menu__list {
  position: absolute;
  top: calc(100% + .8rem);
  right: 0;
  z-index: 30;
  min-width: 22rem;
  padding: .6rem;
  border: 1.5px solid var(--ink);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.8rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.lang-menu.is-open .lang-menu__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: .6rem;
  font-size: 1.9rem;
  transition: background-color .2s ease;
}
.lang-menu__item:hover { background: var(--light); }
.lang-menu__item[aria-current="page"] { font-weight: 600; }

.nav__list {
  display: flex;
  align-items: center;
  padding: .7rem;
  border-radius: var(--radius-sm);
  background: var(--light);
}

.nav__link {
  display: block;
  padding: 1.6rem 2.4rem;
  border-radius: .8rem;
  font-size: 2rem;
  color: var(--gray-dark);
  transition: color .25s ease, background-color .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  background: var(--ink);
  color: var(--white);
}

.header__logo { justify-self: start; }
.header__actions { justify-self: end; }

.burger { display: none; }

/* ===== Hero ===== */
.hero {
  padding: 2rem 2.8rem 0 3.3rem;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 921fr 900fr;
  gap: 3.8rem;
}

.hero__card {
  position: relative;
  height: 92.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Big logo: one copy per card (clipped by the card) + one behind the gap.
   All copies share the same position relative to the grid. */
.hero__logo {
  position: absolute;
  top: -.2rem;
  left: 8.2rem;
  font-family: var(--font-accent);
  font-size: 32rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}
.hero__logo--light {
  color: var(--white);
  /* shift back by the left card width (921/900 of this card) + gap */
  left: calc(8.2rem - 100% * 921 / 900 - 3.8rem);
}

/* Left card */
.hero__card--light {
  padding: 39rem 6rem 0;
}

.hero__title {
  position: relative;
  z-index: 1;
  font-size: 7.6rem;
  font-weight: 400;
  line-height: .8;
  letter-spacing: -0.05em;
}
.hero__title-line { display: block; }
.hero__title-line--strong { font-weight: 500; }
.hero__title em {
  font-weight: 300;
  letter-spacing: -0.06em;
}

.hero__tooth {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92.1rem;
  max-width: none;
  pointer-events: none;
}

/* Right card */
.hero__card--dark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 37.6rem 5.9rem 7.9rem 6.1rem;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.hero__lead {
  /* must not run below the video preview next to it */
  max-width: 44rem;
  margin-top: -.4rem;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: .95;
}

.hero__video {
  flex-shrink: 0;
  width: 34.6rem;
  aspect-ratio: 346 / 232;
  border-radius: 1.2rem;
}

.hero__text {
  max-width: 75rem;
  font-size: 3rem;
  font-weight: 400;
  line-height: .95;
  color: var(--gray);
}

/* ===== Section label ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 3.6rem;
  font-weight: 200;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.section-label__sep { font-size: .8em; }

/* ===== Flying video (hero → about, desktop only) ===== */
.video-fly {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  overflow: hidden;
  will-change: transform, width, height;
}
.has-fly .about__video { visibility: hidden; }

/* ===== Video player ===== */
.vplayer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #111;
  cursor: pointer;
  font-size: 3.46px; /* JS sets 1em = 1% of width */
}

.vplayer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft dark shade, a bit stronger when paused */
.vplayer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .18);
  transition: background-color .4s ease;
  pointer-events: none;
}
.vplayer.is-paused::before { background: rgba(0, 0, 0, .35); }

.vplayer__frame {
  position: absolute;
  inset: 3.8% 2.6%;
  z-index: 2;
  border: max(1.5px, .24em) solid rgba(255, 255, 255, .9);
  border-radius: 2.2em;
  pointer-events: none;
}

.vplayer__toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 13em;
  height: 13em;
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}
.vplayer__toggle svg { width: 100%; height: 100%; }
.vplayer.is-paused .vplayer__toggle,
.vplayer:hover .vplayer__toggle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.vplayer .icon-pause { display: none; }
.vplayer:not(.is-paused) .icon-play { display: none; }
.vplayer:not(.is-paused) .icon-pause { display: block; }

.vplayer__bar {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1rem 1.8rem 1rem 1rem;
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: default;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.vplayer.is-docked:hover .vplayer__bar,
.vplayer.is-docked.is-paused .vplayer__bar,
.vplayer.is-docked:focus-within .vplayer__bar {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.vplayer__btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: .8rem;
  transition: background-color .2s ease;
}
.vplayer__btn:hover { background: rgba(255, 255, 255, .15); }
.vplayer__btn svg { width: 2rem; height: 2rem; }

.vplayer__range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: .5rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--white) var(--p, 0%), rgba(255, 255, 255, .3) var(--p, 0%));
  cursor: pointer;
}
.vplayer__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--white);
  transition: transform .2s ease;
}
.vplayer__range::-moz-range-thumb {
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}
.vplayer__range:hover::-webkit-slider-thumb { transform: scale(1.2); }

.vplayer__time {
  flex-shrink: 0;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ===== About ===== */
.about {
  padding: 24rem 2.8rem 16rem 3.3rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 921fr 900fr;
  gap: 3.8rem;
}

.about__title {
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}
.about__title em {
  font-weight: 300;
  letter-spacing: -0.06em;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem 2.5rem;
  margin-top: 6.2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 22.1rem;
  padding-top: 4.6rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat__num {
  font-size: 6.8rem;
  font-weight: 500;
  letter-spacing: -0.1em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 1.8rem;
  font-size: 3rem;
  font-weight: 300;
  line-height: .85;
  color: var(--gray);
}

.about__media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 7.3rem;
}

.about__video {
  width: 100%;
  aspect-ratio: 346 / 232;
  border-radius: var(--radius);
  overflow: hidden;
}

.btn--lg {
  height: 8.2rem;
  gap: 1.6rem;
  padding: 0 1.5rem 0 3.4rem;
  border-radius: 1.2rem;
  font-size: 2.8rem;
  font-weight: 400;
}
.btn__icon--lg {
  width: 5rem;
  height: 5rem;
  border-radius: .8rem;
}
.btn__icon--lg svg { width: 3rem; height: 3rem; }
.btn:hover .btn__icon--lg { transform: scale(1.08); }

.about__yt { margin-top: 3.4rem; }

/* ===== Services ===== */
.services {
  position: relative;
  padding-top: 6rem;
}

/* desktop: JS makes the section tall and this block sticky while cards scroll sideways */
.services__pin {
  position: sticky;
  top: var(--pin-top, 0px);
  padding-top: 3rem;
  overflow: hidden;
}

.services__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
  text-align: center;
}

.services__title {
  max-width: 112rem;
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}

.services__band {
  margin-top: 4.4rem;
  padding: 5rem 0;
  background: var(--light) url('../img/bg-white-services.png') center / cover no-repeat;
}

.services__track {
  display: flex;
  gap: 5.5rem;
  width: max-content;
  padding: 0 3.5rem;
  will-change: transform;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 53.9rem;
  min-height: 57.6rem;
  padding: 1.3rem 1.3rem 3.2rem;
  border-radius: 3rem;
  background: var(--white);
  text-align: center;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service:hover {
  transform: translateY(-.8rem);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, .06);
}

.service__media {
  position: relative;
  width: 100%;
}
.service__photo {
  width: 100%;
  border-radius: 2rem;
}

.service__icon {
  position: absolute;
  top: 15.3rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 9.2rem;
  height: 9.2rem;
  border-radius: 1rem;
  background: var(--ink);
  transform: translateX(-50%);
}
.service__icon img { width: 5.4rem; }
.service__icon img[src*="Endodontics"] { width: 6.5rem; }
/* this icon already contains its black square */
.service__icon img[src*="Orthodontics"] { width: 100%; }

.service__title {
  margin-top: 3rem;
  font-size: 4.4rem;
  font-weight: 400;
}

.service__text {
  max-width: 44rem;
  margin-top: 1.8rem;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: #8a8a8a;
}

.service__tags {
  display: flex;
  gap: 1.6rem;
  margin-top: auto;
  padding-top: 3.6rem;
}

.service__tag {
  display: grid;
  place-items: center;
  min-width: 19.5rem;
  height: 6.9rem;
  padding: 0 3rem;
  border: 1.5px solid var(--ink);
  border-radius: .6rem;
  font-size: 2.8rem;
  white-space: nowrap;
}

/* ===== Doctors ===== */
.doctors {
  position: relative;
  z-index: 2; /* slides over the pinned services block */
  padding: 19rem 6.1rem 20.5rem;
  border-radius: 3rem;
  background: #050505 url('../img/bg-black-doctors.png') center top / cover no-repeat;
  color: var(--white);
}

.doctors__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6rem;
  margin: 0 1.8rem 0 -3.5rem;
}

.doctors__head > div { flex: 1 1 0; }

.section-label--light { color: #8a8a8a; }

.doctors__title {
  max-width: 100rem;
  margin-top: 3.4rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .72;
  letter-spacing: -0.06em;
}

.doctors__text {
  flex: 0 0 54rem;
  margin-top: 8.4rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10rem 9.9rem;
  margin-top: 9.6rem;
}

/* the photos have a pure black backdrop; a "lighten" layer lifts only the darkest pixels to grey,
   so the backdrop separates from the black section while faces and coats stay untouched */
.doctor__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #2b2b2b;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.doctor__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2rem;
  overflow: hidden;
}
.doctor__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.doctor:hover .doctor__photo { transform: scale(1.04); }

.doctor__badge,
.doctor__name {
  position: absolute;
  left: 2.4rem;
  display: flex;
  align-items: center;
  height: 7rem;
  padding: 0 3rem;
  border-radius: .8rem;
  font-size: 3rem;
  font-weight: 400;
  white-space: nowrap;
}
.doctor__badge {
  top: 2.6rem;
  background: var(--white);
  color: var(--ink);
}
.doctor__name {
  bottom: 2.6rem;
  background: var(--ink);
  color: var(--white);
}

.doctor__call,
.doctor__spec {
  position: absolute;
  right: 2.4rem;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: .8rem;
}
.doctor__call {
  top: 2.6rem;
  background: var(--white);
  color: var(--ink);
  transition: transform .25s ease;
}
.doctor__call svg { width: 2.8rem; height: 2.8rem; }
.doctor__call:hover { transform: scale(1.08); }

.doctor__spec {
  bottom: 2.6rem;
  background: var(--ink);
}
.doctor__spec img { width: 4.2rem; }
.doctor__spec img[src*="Endodontics"] { width: 5rem; }
.doctor__spec img[src*="Orthodontics"] { width: 100%; }

.doctor__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 1.4rem;
  min-height: 14.5rem;
  margin-top: 3.5rem;
  padding: 2.8rem 2.4rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, .05);
  font-size: 3rem;
  font-weight: 300;
  align-content: center;
}
.doctor__facts li {
  display: flex;
  align-items: center;
}
/* thin divider between facts */
.doctor__facts li + li::before {
  content: '';
  width: 1px;
  height: 1em;
  margin: 0 1.2rem;
  background: rgba(255, 255, 255, .35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Before / After ===== */
.compare {
  padding: 16rem 3.3rem 0 3.2rem;
}

.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
}

.compare__card {
  position: relative;
  min-height: 69.9rem;
  padding: 7.4rem 5.2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.compare__title {
  max-width: 66rem;
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}

.compare__text {
  max-width: 73rem;
  margin-top: 7.4rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
}

.compare__teeth {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

/* slider: the "before" photo is clipped from the right up to --pos */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.ba__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__img--before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: .6rem;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.ba__handle svg { width: 3rem; height: 3rem; }
.ba:hover .ba__handle,
.ba.is-dragging .ba__handle { transform: translate(-50%, -50%) scale(1.1); }

.ba__tag {
  position: absolute;
  bottom: 2rem;
  display: flex;
  align-items: center;
  height: 4rem;
  padding: 0 2.8rem;
  border-radius: .8rem;
  font-size: 2rem;
  pointer-events: none;
}
.ba__tag--before { left: 2rem; background: var(--white); color: var(--ink); }
.ba__tag--after { right: 2rem; background: var(--ink); color: var(--white); }

/* invisible native range on top: handles mouse, touch and keyboard */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 6rem; height: 100vh; }
.ba:has(.ba__range:focus-visible) .ba__handle { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ===== Reviews ===== */
.reviews {
  padding: 16rem 5.1rem 14rem 3rem;
}

.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6rem;
}
.reviews__head > div { flex: 1 1 0; }

.reviews__title {
  max-width: 70rem;
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}

.reviews__text {
  flex: 0 0 48.5rem;
  margin-top: 9.6rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
}

.reviews__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11.6rem;
}

.reviews__sort {
  position: relative;
  display: block;
}
.reviews__sort select {
  height: 8rem;
  width: 30.5rem;
  padding: 0 6rem 0 4rem;
  border: 1.5px solid var(--ink);
  border-radius: .6rem;
  background: var(--white);
  font: inherit;
  font-size: 2.6rem;
  letter-spacing: inherit;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.reviews__sort svg {
  position: absolute;
  top: 50%;
  right: 3.2rem;
  width: 2.2rem;
  height: 2.2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.reviews__write {
  height: 8rem;
  width: 30.5rem;
  border-radius: .6rem;
  background: var(--ink);
  color: var(--white);
  font-size: 2.6rem;
  transition: background-color .25s ease;
}
.reviews__write:hover { background: var(--black); }

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
  margin-top: 3.2rem;
}

.review {
  position: relative;
  padding: 4.8rem 4.6rem 3.8rem 2.7rem;
  border-radius: 1.6rem;
  background: var(--light) url('../img/bg-white-services.png') center / cover no-repeat;
  animation: review-in .5s ease both;
  animation-delay: var(--delay, 0s);
}
@keyframes review-in {
  from { opacity: 0; transform: translateY(2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .review { animation: none; }
}

.review__stars {
  display: flex;
  gap: .9rem;
}
.review__stars svg { width: 3.2rem; height: 3.2rem; }
.review__stars .is-on { color: #fca10c; }
.review__stars .is-off { color: #d6d6d6; }

.review__score {
  position: absolute;
  top: 4.4rem;
  right: 10.2rem;
  font-size: 4rem;
  letter-spacing: 0;
}
.review__score span { color: var(--gray); }

.review__text {
  margin-top: 4.4rem;
  font-size: 3rem;
  line-height: .95;
}

.review__foot {
  display: flex;
  align-items: center;
  margin-top: 3.6rem;
}

.review__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 6.7rem;
  height: 6.7rem;
  border-radius: 50%;
  background: #e8e8e8;
  color: var(--gray-dark);
  overflow: hidden;
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__avatar svg { width: 3.4rem; height: 3.4rem; }

.review__name {
  width: 27rem;
  margin-left: 1.6rem;
  font-size: 2.6rem;
}

.review__date {
  font-size: 2.8rem;
  color: var(--gray);
}

.review__source {
  position: absolute;
  right: 9.6rem;
  bottom: 3.8rem;
  width: 6.4rem;
  height: 6.4rem;
}
.review__source img { width: 100%; height: 100%; object-fit: contain; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.8rem;
  margin-top: 6.6rem;
}

.pager__arrow {
  display: grid;
  place-items: center;
  width: 10rem;
  height: 9rem;
  border: 1.5px solid var(--ink);
  border-radius: .8rem;
  background: var(--ink);
  color: var(--white);
  transition: background-color .25s ease, color .25s ease;
}
.pager__arrow svg { width: 3.4rem; height: 3.4rem; }
.pager__arrow:disabled {
  background: transparent;
  color: var(--ink);
  border-color: #9a9a9a;
  cursor: default;
}

.pager__pages {
  display: flex;
  gap: .4rem;
  list-style: none;
}
.pager__pages button {
  min-width: 3.8rem;
  height: 5rem;
  font-size: 3rem;
  letter-spacing: 0;
  color: var(--gray);
  transition: color .2s ease;
}
.pager__pages button:hover { color: var(--ink); }
.pager__pages button[aria-current="page"] { color: var(--ink); }

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 78.1rem;
  gap: 8rem;
  align-items: start;
  padding: 16rem 10.1rem 16rem;
}

/* stays in place while the questions scroll past */
.faq__intro {
  position: sticky;
  top: calc(var(--header-h, 0px) + 6rem);
}

.faq__title {
  max-width: 70rem;
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}

.faq__text {
  max-width: 76rem;
  margin-top: 7.4rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
}

.faq__list { padding-top: 1rem; }

.faq-item {
  border-bottom: 1px solid #3a3a3a;
}
/* the list ends with the last question, not a line */
.faq-item:last-child { border-bottom: 0; }

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  width: 100%;
  min-height: 12rem;
  padding: 3.6rem 1.4rem 3.6rem 0;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.05em;
  text-align: left;
  color: var(--ink);
}
.faq-item__q svg {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  color: #6b6b6b;
  transition: transform .4s ease, color .3s ease;
}
.faq-item__q:hover svg { color: var(--ink); }
.faq-item.is-open .faq-item__q { font-weight: 500; }
.faq-item.is-open .faq-item__q svg {
  color: var(--ink);
  transform: rotate(180deg);
}

/* height animates from 0 to auto via grid rows */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1);
}
.faq-item__a > div { overflow: hidden; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

.faq-item__a p {
  max-width: 72rem;
  padding: 0 0 4rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity .35s ease, transform .35s ease;
}
.faq-item.is-open .faq-item__a p {
  opacity: 1;
  transform: none;
  transition-delay: .1s;
}

/* side reveals */
.reveal--left { transform: translateX(-6rem); }
.reveal--right { transform: translateX(6rem); }

/* ===== CTA ===== */
.cta {
  position: relative;
  /* side panels slide in from outside the screen; clip them (no sideways drag on iOS) */
  overflow-x: clip;
  padding: 12rem 0 0;
  text-align: center;
}

.cta__side {
  position: absolute;
  width: 47.4rem;
  pointer-events: none;
}
.cta__side--left { left: 0; top: 25.7rem; }
.cta__side--right { right: 0; top: 27.4rem; width: 44.4rem; }

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title {
  max-width: 76rem;
  margin-top: 3.6rem;
  font-size: 8rem;
  font-weight: 400;
  line-height: .75;
  letter-spacing: -0.05em;
}
.cta__title em {
  font-weight: 300;
  letter-spacing: -0.06em;
}

.cta__media {
  position: relative;
  width: 112.2rem;
  margin-top: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.cta__photo { width: 100%; }

.cta__frame {
  position: absolute;
  inset: 3.4rem 2.8rem 3rem;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 2.4rem;
  pointer-events: none;
}

.cta__btn {
  position: absolute;
  left: 50%;
  bottom: 9.8rem;
  transform: translateX(-50%);
  background: var(--black);
}
.cta__btn .btn__icon--lg svg { width: 3.2rem; height: 3.2rem; }
.cta__btn:hover .btn__icon--lg { transform: rotate(-8deg) scale(1.08); }

.cta__text {
  max-width: 75rem;
  margin-top: 5rem;
  font-size: 3rem;
  line-height: .95;
  color: var(--gray);
}

/* ===== Locations ===== */
.locations {
  display: grid;
  grid-template-columns: 56.8rem 1fr;
  gap: 6.4rem;
  align-items: stretch;
  padding: 28rem 7.4rem 18rem 7.5rem;
}

.locations__list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 2.3rem;
  width: 100%;
  height: 19rem;
  padding: 0 3rem 0 3.4rem;
  border: 1.5px solid #cfcfcf;
  border-radius: .8rem;
  background: var(--white);
  text-align: left;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.location:hover { border-color: #8a8a8a; }
.location.is-active {
  border-color: var(--ink);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .08);
}

.location__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: .6rem;
  background: var(--black);
}
.location__icon img { width: 2.6rem; }

.location__body {
  display: flex;
  flex-direction: column;
  font-size: 2.8rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.location__name { font-weight: 600; }

.map {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
}
.map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* clinic pins: the active one pulses */
.map__pin {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border: .5rem solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.map__pin.is-active { transform: translate(-50%, -50%) scale(1.3); }
.map__pin.is-active::after {
  content: '';
  position: absolute;
  inset: -.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  animation: pin-pulse 1.8s ease-out infinite;
}
@keyframes pin-pulse {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(3); opacity: 0; }
}

.map__route {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 8.3rem;
  padding: 0 3.4rem 0 2.6rem;
  border-radius: 1rem;
  background: var(--black);
  color: var(--white);
  font-size: 2.8rem;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.map__route:hover { transform: translate(-50%, -50%) scale(1.03); }
.map__route-icon {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: .6rem;
  background: var(--white);
}
.map__route-icon img { width: 2.6rem; }

/* ===== Footer ===== */
.footer {
  padding: 6.8rem 6.4rem 0 6.5rem;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 9.6rem;
  border-bottom: 1px solid #d0d0d0;
  margin: 0 3.1rem 0 3.1rem;
}
.footer__top > :first-child { margin-left: -3.1rem; }
.footer__top > :last-child { margin-right: -3.1rem; }

/* Plaster wordmark, ink is ~5.2em wide */
.footer__logo {
  justify-self: start;
  font-family: var(--font-accent);
  font-size: 7.3rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.lang {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lang__btn {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 4rem;
  border-radius: .6rem;
  overflow: hidden;
  /* inactive flag is muted but stays crisp */
  filter: grayscale(.6);
  opacity: .6;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.lang__btn.is-active,
.lang__btn:hover { filter: none; }
.lang__btn img { width: 100%; height: 100%; object-fit: cover; }
.lang__btn:hover { transform: translateY(-.2rem); opacity: .85; }
.lang__btn.is-active { opacity: 1; }

.socials {
  justify-self: end;
  display: flex;
  gap: 1.6rem;
}
.socials__link {
  display: grid;
  place-items: center;
  width: 8.1rem;
  height: 8.1rem;
  border-radius: .8rem;
  background: var(--black);
  transition: transform .25s ease, background-color .25s ease;
}
.socials__link img { width: 5rem; }
.socials__link:hover { transform: translateY(-.4rem); background: var(--ink); }

.footer__cols {
  display: grid;
  grid-template-columns: 37rem 50.5rem 46.6rem 1fr;
  margin-top: 9.8rem;
}

.footer__heading {
  font-size: 6rem;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 3.4rem;
  font-size: 3.4rem;
  font-weight: 300;
}
.footer__col a { transition: color .2s ease; }
.footer__col:not(.footer__col--contacts) a:hover { color: #8a8a8a; }

.footer__col--contacts ul { gap: 2.8rem; }
.footer__col--contacts a { display: inline-block; font-weight: 400; }
.footer__col--contacts a:hover { opacity: .6; }
.footer__mail {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.footer__copy {
  margin-top: 11rem;
  font-size: 3.4rem;
  text-align: center;
}

/* giant wordmark cut at the baseline, rises in when it enters the screen */
.footer__mark {
  height: calc(34.7rem * .67);
  margin: 3.2rem -3rem 0 -3rem;
  overflow: hidden;
}
.footer__mark.reveal,
.footer__mark.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.footer__word {
  display: block;
  margin-top: calc(34.7rem * -.185);
  margin-left: calc(1.3rem - 34.7rem * .05);
  font-family: var(--font-accent);
  font-size: 34.7rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transform: translateY(70%);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.footer__mark.is-visible .footer__word { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .footer__word { transform: none; transition: none; }
}

/* ===== Smooth scroll (Lenis) ===== */
html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ===== Mobile ===== */
@media (max-width: 1023px) {
  .header__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding: 1.6rem;
  }
  .header__logo { margin-right: auto; }
  .header__btn { display: none; }
  .header__actions { gap: .8rem; }
  .icon-btn { height: 4.4rem; min-width: 4.4rem; padding: 0 1rem; }
  .icon-btn > svg { width: 2.2rem; height: 2.2rem; }
  .lang-menu__toggle img { width: 2.6rem; height: 1.8rem; }
  .lang-menu__item { font-size: 1.7rem; }

  .burger {
    display: grid;
    place-content: center;
    gap: .6rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
  }
  .burger span {
    display: block;
    width: 1.8rem;
    height: 2px;
    background: var(--white);
    transition: transform .3s ease;
  }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: calc(100% - .4rem);
    left: 1.6rem;
    right: 1.6rem;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .12);
  }
  .nav__link,
  .nav__link.is-active { padding: 1.6rem 2rem; }

  .hero { padding: .8rem 1.6rem 0; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .hero__card { height: auto; }

  /* logo spans the first card width; card height follows the logo ratio (1662 / 294) */
  .hero__logo--gap,
  .hero__logo--light { display: none; }
  /* ink width of the word ≈ 5.2em, so it fits the card width */
  .hero__logo {
    font-size: calc((100vw - 7.2rem) / 5.2);
    top: calc(2.4rem - .185em);
    left: calc(2rem - .05em);
  }

  .hero__card--light {
    padding: calc((100vw - 7.2rem) / 5.65 + 6rem) 2rem 0;
    min-height: 0;
  }
  .hero__title { font-size: clamp(3.6rem, 10vw, 6rem); }
  .hero__tooth {
    position: relative;
    width: 110%;
    margin: -20% -5% 0;
  }

  .hero__card--dark {
    gap: 4rem;
    padding: 3.2rem 2rem;
  }
  .hero__top { flex-direction: column; gap: 2.4rem; }
  .hero__lead { margin-top: 0; font-size: clamp(3rem, 7vw, 4.2rem); }
  .hero__video { display: none; }
  .vplayer__bar { gap: 1rem; padding: .6rem 1.2rem .6rem .6rem; }
  .vplayer__time { font-size: 1.3rem; }
  .hero__text { font-size: 2rem; }

  .about { padding: 10rem 1.6rem 8rem; }
  .about__grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .section-label { font-size: 2.4rem; gap: 1.2rem; }
  .about__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .stats { gap: 1.2rem; margin-top: 3.2rem; }
  .stat { height: auto; padding: 2.8rem 1rem; }
  .stat__num { font-size: 4.8rem; }
  .stat__label { margin-top: 1.2rem; font-size: 1.8rem; }
  .stat__label br { display: none; }
  .about__media { padding-top: 0; }
  .btn--lg { height: 6.4rem; font-size: 2rem; padding-left: 2.4rem; }
  .btn__icon--lg { width: 4.2rem; height: 4.2rem; }
  .about__yt { margin-top: 1.6rem; }

  /* services: pinned + vertical scroll moves the cards (JS adds .is-pinned);
     without JS / with reduced motion it falls back to a native swipe with snapping */
  .services { padding-top: 2rem; }
  .services__pin { position: static; padding-top: 0; }
  .services.is-pinned .services__pin { position: sticky; padding-top: 2rem; }
  .services.is-pinned .services__band { overflow: hidden; scroll-snap-type: none; }
  .services__head { padding: 0 1.6rem; }
  .services__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .services__band {
    margin-top: 4rem;
    padding: 3.2rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .services__band::-webkit-scrollbar { display: none; }
  .services__track { gap: 1.2rem; padding: 0 1.6rem; }
  .service {
    width: min(85vw, 42rem);
    min-height: 0;
    scroll-snap-align: center;
    border-radius: 2rem;
    padding: 1rem 1rem 2.4rem;
  }
  .service:hover { transform: none; box-shadow: none; }
  .service__photo { border-radius: 1.4rem; }
  .service__icon { top: 58%; width: 6.4rem; height: 6.4rem; border-radius: .8rem; }
  .service__icon img { width: 3.8rem; }
  .service__icon img[src*="Endodontics"] { width: 4.6rem; }
  .service__title { margin-top: 2rem; font-size: 2.8rem; }
  .service__text { margin-top: 1rem; font-size: 1.8rem; }
  .service__tags { gap: 1rem; padding-top: 2.4rem; }
  .service__tag { min-width: 0; height: 4.8rem; padding: 0 1.8rem; font-size: 1.8rem; }

  .doctors { margin-top: 6rem; padding: 6rem 1.6rem 8rem; border-radius: 2rem; }
  .doctors__head { flex-direction: column; gap: 2.4rem; margin: 0; }
  .doctors__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .doctors__head > div { flex: none; }
  .doctors__text { flex: none; margin-top: 0; font-size: 2rem; }
  .doctors__grid { grid-template-columns: 1fr; gap: 4rem; margin-top: 4rem; }
  .doctor__badge, .doctor__name { left: 1.4rem; height: 4.6rem; padding: 0 1.8rem; font-size: 2rem; }
  .doctor__badge { top: 1.4rem; }
  .doctor__name { bottom: 1.4rem; }
  .doctor__call, .doctor__spec { right: 1.4rem; width: 4.6rem; height: 4.6rem; }
  .doctor__call { top: 1.4rem; }
  .doctor__spec { bottom: 1.4rem; }
  .doctor__call svg { width: 2rem; height: 2rem; }
  .doctor__spec img { width: 2.8rem; }
  .doctor__spec img[src*="Endodontics"] { width: 3.4rem; }
  .doctor__facts { min-height: 0; margin-top: 1.2rem; padding: 1.8rem; font-size: 2rem; row-gap: 1rem; }

  .compare { padding: 8rem 1.6rem 0; }
  .compare__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .compare__card { min-height: 0; padding: 3.2rem 2rem 14rem; }
  .compare__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .compare__text { margin-top: 2.4rem; font-size: 2rem; }
  .ba__tag { bottom: 1.2rem; height: 3.4rem; padding: 0 1.6rem; font-size: 1.6rem; }
  .ba__tag--before { left: 1.2rem; }
  .ba__tag--after { right: 1.2rem; }
  .ba__handle { width: 4.6rem; height: 4.6rem; }
  .ba__handle svg { width: 2.4rem; height: 2.4rem; }

  .reviews { padding: 8rem 1.6rem 8rem; }
  .reviews__head { flex-direction: column; gap: 2.4rem; }
  .reviews__head > div, .reviews__text { flex: none; }
  .reviews__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .reviews__text { margin-top: 0; font-size: 2rem; }
  .reviews__bar { gap: 1rem; margin-top: 4rem; }
  .reviews__sort select, .reviews__write { width: auto; height: 5.2rem; font-size: 1.7rem; }
  .reviews__sort select { padding: 0 4.4rem 0 1.8rem; }
  .reviews__sort svg { right: 1.6rem; width: 1.8rem; }
  .reviews__write { padding: 0 2rem; }
  .reviews__list { gap: 1.6rem; margin-top: 2rem; }
  .review { padding: 2.4rem 2rem; }
  .review__stars { gap: .6rem; }
  .review__stars svg { width: 2rem; height: 2rem; }
  .review__score { top: 2rem; right: 2rem; font-size: 2.6rem; }
  .review__text { margin-top: 2rem; font-size: 1.9rem; line-height: 1.1; }
  /* date goes under the name so the source logo fits on the right */
  .review__foot {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.2rem;
    row-gap: .4rem;
    margin-top: 2rem;
    padding-right: 5.6rem;
  }
  .review__avatar { grid-row: span 2; width: 4.8rem; height: 4.8rem; }
  .review__name { width: auto; margin: 0; font-size: 1.8rem; align-self: end; }
  .review__date { font-size: 1.6rem; align-self: start; }
  .review__source { right: 2rem; bottom: 2.4rem; width: 4.4rem; height: 4.4rem; }
  .pager { gap: 1.6rem; margin-top: 3.2rem; }
  .pager__arrow { width: 5.6rem; height: 5.2rem; }
  .pager__arrow svg { width: 2.4rem; height: 2.4rem; }
  .pager__pages button { font-size: 2.2rem; min-width: 3.2rem; }

  .faq { grid-template-columns: 1fr; gap: 3.2rem; padding: 8rem 1.6rem; }
  .faq__intro { position: static; }
  .faq__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .faq__text { margin-top: 2.4rem; font-size: 2rem; }
  .faq-item__q { min-height: 0; gap: 2rem; padding: 2.4rem 0; font-size: 2.4rem; line-height: 1; }
  .faq-item__q svg { width: 2.6rem; height: 2.6rem; }
  .faq-item__a p { padding-bottom: 2.4rem; font-size: 1.9rem; line-height: 1.1; }

  .cta { padding: 6rem 1.6rem 0; }
  .cta__side { display: none; }
  .cta__title { margin-top: 2.4rem; font-size: clamp(3.6rem, 10vw, 6rem); line-height: .85; }
  .cta__media { width: 100%; margin-top: 3.2rem; aspect-ratio: 4 / 5; }
  .cta__photo { height: 100%; object-fit: cover; }
  .cta__frame { inset: 1.4rem; border-radius: 1.4rem; }
  .cta__btn { bottom: 3.6rem; }
  .cta__text { margin-top: 2.4rem; font-size: 2rem; }

  .locations { grid-template-columns: 1fr; gap: 1.6rem; padding: 8rem 1.6rem; }
  .locations__list { gap: 1.2rem; }
  .location { height: auto; padding: 2rem; gap: 1.6rem; }
  .location__icon { width: 4.4rem; height: 4.4rem; }
  .location__icon img { width: 2.2rem; }
  .location__body { font-size: 1.8rem; }
  .map { aspect-ratio: 4 / 3; }
  .map__route { gap: 1rem; height: 5.6rem; padding: 0 1.6rem 0 1rem; font-size: 1.5rem; }
  .map__route-icon { width: 3.6rem; height: 3.6rem; }
  .map__route-icon img { width: 1.8rem; }

  .footer { padding: 4rem 1.6rem 0; }
  .footer__top {
    grid-template-columns: 1fr auto;
    row-gap: 2.4rem;
    margin: 0;
    padding-bottom: 3.2rem;
  }
  .footer__top > :first-child, .footer__top > :last-child { margin: 0; }
  .footer__logo { font-size: 4.4rem; }
  .socials { grid-column: 1 / -1; justify-self: start; gap: 1rem; }
  .socials__link { width: 5.2rem; height: 5.2rem; }
  .socials__link img { width: 3rem; }
  .lang__btn { width: 4.4rem; height: 3rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 4rem 2rem; margin-top: 4rem; }
  .footer__heading { font-size: 3.2rem; }
  .footer__col ul { gap: 1.4rem; margin-top: 1.8rem; font-size: 1.9rem; }
  /* second row: Legal | Contacts */
  .footer__col--contacts { min-width: 0; }
  .footer__col--contacts a { overflow-wrap: anywhere; }
  .footer__col--contacts ul { gap: 1.4rem; }
  .footer__copy { margin-top: 5rem; font-size: 1.7rem; }
  .footer__mark { height: calc((100vw - 3.2rem) / 5.2 * .67); margin: 2.4rem 0 0; }
  .footer__word {
    font-size: calc((100vw - 3.2rem) / 5.2);
    margin-top: calc((100vw - 3.2rem) / 5.2 * -.185);
    margin-left: calc((100vw - 3.2rem) / 5.2 * -.05);
  }
}

/* ===== Mobile layout (mockup: iPhone 14/15 Pro Max, 430px) =====
   Kept last so it overrides the generic mobile rules above. */
.hero__logo-m { display: none; }

@media (max-width: 1023px) {
  /* 1rem = 10px on phones (360–430), grows a little on large phones / tablets */
  html { font-size: clamp(9px, calc(100vw / 43), 15px); }

  /* header: location + language | logo | burger */
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .8rem;
    padding: 1.6rem 1.6rem 1.2rem;
  }
  .header__actions { grid-column: 1; grid-row: 1; justify-self: start; gap: .8rem; }
  .header__logo { grid-column: 2; grid-row: 1; margin: 0; justify-self: center; }
  .header__logo { font-size: calc(14.4rem / 5.2); }
  .burger { grid-column: 3; grid-row: 1; justify-self: end; }

  .icon-btn { height: 3.2rem; min-width: 3.2rem; padding: 0 .6rem; gap: .4rem; border-radius: .6rem; }
  .icon-btn > svg { width: 1.8rem; height: 1.8rem; }
  .lang-menu__toggle { min-width: 5.2rem; }
  .lang-menu__toggle img { width: 2.2rem; height: 1.5rem; border-radius: .2rem; }
  .lang-menu__toggle .lang-menu__chevron { width: 1.4rem; height: 1.4rem; }
  .lang-menu__list { left: 0; right: auto; min-width: 18rem; }

  /* plain three-line burger */
  .burger {
    width: 3.6rem;
    height: 3.6rem;
    gap: .55rem;
    border-radius: 0;
    background: none;
  }
  .burger span { width: 2.6rem; height: 2px; background: var(--ink); }
  .burger span:nth-child(2) { transition: opacity .2s ease; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-7.5px) rotate(-45deg); }

  .nav { top: calc(100% + .4rem); }

  /* hero */
  .hero { padding: 1.6rem 1.6rem 0; }
  .hero__grid { gap: 0; }
  .hero__logo { display: none; }

  .hero__card--light {
    height: calc((100vw - 3.2rem) * .78);
    padding: 2.6rem 1.6rem 0;
    border-radius: 1.6rem;
  }
  .hero__title {
    font-size: calc((100vw - 3.2rem) / 9.3);
    line-height: .8;
    text-align: center;
  }
  /* on phones the second line keeps the same weight as the first */
  .hero__title-line--strong { font-weight: 400; }
  .hero__tooth {
    position: absolute;
    top: 13%;
    left: 0;
    width: 100%;
    margin: 0;
  }

  /* outlined wordmark between the cards */
  .hero__logo-m {
    display: block;
    /* line box is taller than the letters: pull it up so the caps start right under the card */
    height: 1.11em;
    margin: calc(.6rem - .185em) 0 0;
    font-family: var(--font-accent);
    font-size: calc((100vw - 3.2rem) / 5.25);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
    user-select: none;
    pointer-events: none;
  }

  .hero__card--dark {
    gap: 3.2rem;
    margin-top: .2rem;
    padding: 4.4rem 2.6rem 4.4rem;
    border-radius: 1.6rem;
  }
  .hero__top { gap: 3.2rem; }
  .hero__lead {
    max-width: none;
    margin-top: 0;
    font-size: calc((100vw - 3.2rem) / 15.4);
    line-height: .85;
  }
  .hero__video {
    display: block;
    width: 45%;
    border-radius: .8rem;
  }
  .hero__text {
    font-size: calc((100vw - 3.2rem) / 26.5);
    line-height: .95;
  }

  /* about */
  .about { padding: 12rem 1.6rem 6rem; }
  .section-label { font-size: 1.8rem; gap: 1rem; }
  /* every section title on phones uses the same scale as About */
  .about__title,
  .services__title,
  .doctors__title,
  .compare__title,
  .reviews__title,
  .faq__title,
  .cta__title { margin-top: 2rem; font-size: calc((100vw - 3.2rem) / 11.7); line-height: .78; }
  .stats { gap: 1rem; margin-top: 2.6rem; }
  .stat { padding: 2rem .8rem 1.6rem; border-radius: 1.2rem; }
  .stat__num { font-size: 2.8rem; }
  .stat__label { margin-top: .8rem; font-size: 1.3rem; line-height: .85; }
  .stat__label br { display: inline; }
  .about__grid { gap: 1.6rem; }
  .about__media { align-items: center; }
  .about__video { border-radius: 1.4rem; aspect-ratio: 398 / 265; }
  .btn--lg { height: 5rem; padding: 0 1rem 0 2rem; font-size: 1.8rem; border-radius: .8rem; }
  .btn__icon--lg { width: 3.2rem; height: 3.2rem; border-radius: .5rem; }
  .btn__icon--lg svg { width: 2rem; height: 2rem; }
  .about__yt { margin-top: 2rem; }

  /* smaller player chrome on phones */
  .vplayer__frame { inset: 3% 2.5%; border-width: 1.5px; border-radius: 1rem; }
}

/* very narrow phones (Galaxy S, iPhone SE): keep the two header buttons and the logo from colliding */
@media (max-width: 374px) {
  .header__logo { font-size: calc(12.4rem / 5.2); }
  .header__inner { padding-inline: 1.2rem; }
}

/* ===== Motion effects ===== */

/* 1. text reveal: each word slides up from under its own mask.
   The clip area is taller than the word box because display type uses line-height < 1 */
.is-split .sw {
  display: inline-block;
  clip-path: polygon(-15% -40%, 115% -40%, 115% 140%, -15% 140%);
}
.is-split .sw__i {
  display: inline-block;
  transform: translateY(170%);
  transition: transform 1.1s cubic-bezier(.2, .75, .2, 1) var(--d, 0s);
}
.is-split.is-split-in .sw__i { transform: none; }

/* 7. images grow while scrolling into view (JS sets `scale`) */
.cta__media, .ba, .map, .doctor__media, .compare__card { will-change: scale; }

/* 9. magnetic buttons: JS sets `translate`, which stacks on top of existing transforms */
.is-magnetic { transition-property: background-color, color, border-color, box-shadow, opacity, transform, translate; transition-duration: .25s, .25s, .25s, .3s, .25s, .25s, .45s; transition-timing-function: ease, ease, ease, ease, ease, ease, cubic-bezier(.2, .7, .2, 1); }

/* 14. custom cursor */
html.has-cursor,
html.has-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width .3s ease, height .3s ease, margin .3s ease, opacity .3s ease, background-color .3s ease;
}
.cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.cursor.is-link.is-down { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  mix-blend-mode: normal;
}
.cursor.is-hidden { opacity: 0; }

.cursor__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease;
}
.cursor.is-label .cursor__label { opacity: 1; }

/* 16. curtain for switching languages */
body::after {
  content: 'Klykium';
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  font-family: var(--font-accent);
  font-size: min(16vw, 22rem);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
html.is-leaving body::after { opacity: 1; pointer-events: all; }
html.is-entering body::after { opacity: 1; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .is-split .sw__i { transform: none; transition: none; }
}

/* ===== Mobile tweaks: first screen + crisp burger ===== */
@media (max-width: 1023px) {
  .hero__card--light { padding-top: 4rem; }
  .hero__title { font-size: calc((100vw - 3.2rem) / 10.4); }
  .hero__tooth { top: 6%; }

  /* bold three-line icon with rounded ends (same as the iconamoon icon, drawn in CSS) */
  .burger { width: 36px; height: 36px; gap: 5px; }
  .burger span { width: 22px; height: 3px; border-radius: 3px; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
}

/* ===== Mobile only: "scroll down" arrow + contact buttons ===== */
.hero__scroll,
.fab { display: none; }

@media (max-width: 1023px) {
  /* bouncing arrow right under the hero title */
  .hero__scroll {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    margin: 1.2rem auto 0;
    color: var(--ink);
    animation: scroll-hint 1.6s ease-in-out infinite;
  }
  .hero__scroll svg { width: 3rem; height: 3rem; }

  @keyframes scroll-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(.8rem); }
  }

  /* fixed buttons in the bottom-right corner: messengers above, phone below */
  .fab {
    position: fixed;
    right: 1.6rem;
    bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .fab__btn,
  .fab__item {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
  }
  .fab__btn {
    width: 5.6rem;
    height: 5.6rem;
    background: var(--ink);
    box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .25);
  }
  .fab__btn svg { width: 2.6rem; height: 2.6rem; }

  /* phone: the handset "rings" every few seconds, a soft wave spreads from the button */
  .fab__btn--phone { position: relative; }
  .fab__btn--phone svg { animation: phone-ring 3s ease-in-out infinite; }
  .fab__btn--phone::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ink);
    z-index: -1;
    animation: phone-wave 3s ease-out infinite;
  }

  @keyframes phone-ring {
    0%, 60%, 100% { transform: rotate(0); }
    64% { transform: rotate(-18deg); }
    68% { transform: rotate(16deg); }
    72% { transform: rotate(-14deg); }
    76% { transform: rotate(12deg); }
    80% { transform: rotate(-8deg); }
    84% { transform: rotate(0); }
  }
  @keyframes phone-wave {
    0%, 55% { transform: scale(1); opacity: 0; }
    60% { opacity: .35; }
    100% { transform: scale(1.6); opacity: 0; }
  }

  .fab__icon-close,
  .fab.is-open .fab__icon-open { display: none; }
  .fab.is-open .fab__icon-close { display: block; }

  /* messengers pop out of the chat button */
  .fab__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .fab__item {
    width: 4.8rem;
    height: 4.8rem;
    box-shadow: 0 .4rem 1.4rem rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.6rem) scale(.6);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
  }
  .fab__item svg { width: 2.4rem; height: 2.4rem; }
  .fab__item--telegram { background: #29a9eb; }
  .fab__item--viber { background: #7360f2; }
  .fab__item--whatsapp { background: #25d366; }

  .fab.is-open .fab__item {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* bottom item appears first */
  .fab.is-open li:nth-child(2) .fab__item { transition-delay: .05s; }
  .fab.is-open li:nth-child(1) .fab__item { transition-delay: .1s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll,
  .fab__btn--phone svg,
  .fab__btn--phone::before { animation: none; }
}
