/* ============================================================
   DENTIS — секции
   ============================================================ */

/* ---------- NAV ---------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: var(--s-300) var(--gutter) 0;
  pointer-events: none;
}

.nav__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-nav);
  pointer-events: auto;
  transform: translateY(0);
  transition: transform var(--d-slow) var(--ease),
              background var(--d-slow) var(--ease);
}
.nav.is-hidden .nav__inner { transform: translateY(calc(-100% - var(--s-400))); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: 0.06em;
}
.nav__mark {
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--lime);
  box-shadow: inset 0 0 0 4px var(--ink);
}

.nav__links {
  display: flex;
  gap: var(--s-50);
  margin-inline: auto;
}
.nav__links a {
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.nav__links a[aria-current="true"] { background: var(--ink); color: var(--on-dark); }

.nav__side { display: flex; align-items: center; gap: var(--s-200); }
.nav__phone {
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease);
}
.nav__phone:hover { color: var(--lime-deep); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-2);
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: var(--r-full);
  background: var(--ink);
  transition: transform var(--d-mid) var(--ease);
}
.nav__burger span:nth-child(1) { transform: translateY(-4px); }
.nav__burger span:nth-child(2) { transform: translateY(3px); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__links, .nav__phone { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__side { margin-left: auto; }
  .nav__burger { display: block; }
}
@media (max-width: 460px) {
  .nav__side .btn { display: none; }
}

/* ---------- МОБИЛЬНОЕ МЕНЮ ------------------------------ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(240, 239, 236, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  transition: opacity var(--d-mid) var(--ease);
}
.menu.is-open { opacity: 1; }

.menu__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-50);
  padding: var(--s-900) var(--gutter) var(--s-600);
  max-width: var(--shell);
  margin-inline: auto;
}
.menu__panel > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-200);
  padding-block: var(--s-100);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-3xl);
  line-height: var(--lh-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(var(--s-600));
  transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.menu.is-open .menu__panel > a { opacity: 1; transform: none; }
.menu__panel > a i { font-size: var(--t-xs); color: var(--ink-3); font-style: normal; }
.menu__panel > a:nth-child(1) { transition-delay: 60ms; }
.menu__panel > a:nth-child(2) { transition-delay: 100ms; }
.menu__panel > a:nth-child(3) { transition-delay: 140ms; }
.menu__panel > a:nth-child(4) { transition-delay: 180ms; }
.menu__panel > a:nth-child(5) { transition-delay: 220ms; }
.menu__panel > a:nth-child(6) { transition-delay: 260ms; }
.menu__panel > a:nth-child(7) { transition-delay: 300ms; }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  margin-top: var(--s-500);
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity var(--d-slow) var(--ease) 340ms, transform var(--d-slow) var(--ease) 340ms;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__foot > a:first-child { font-size: var(--t-lg); font-weight: 600; }

/* ---------- HERO ---------------------------------------- */

.hero { padding-top: 88px; }
@media (max-width: 1100px) { .hero { padding-top: 84px; } }

.hero__slab {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--s-400);
  min-height: min(82vh, 760px);
  padding: var(--s-600) var(--s-600) 0;
  background:
    radial-gradient(120% 90% at 78% 100%, #3a3d33 0%, transparent 58%),
    var(--ink);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-300);
  max-width: var(--measure);
  padding-block: var(--s-300) var(--s-600);
}

.hero__title {
  font-size: clamp(var(--t-4xl), 5.4vw, var(--t-7xl));
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.grad {
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--soft { background-image: linear-gradient(90deg, #cfcfc9 0%, #8b8b84 100%); }

.hero__lead {
  color: var(--on-dark-2);
  font-size: var(--t-lg);
  line-height: var(--lh-lg);
  max-width: 44ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.hero__actions .btn svg { width: 16px; height: 16px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-500);
  margin: 0;
  margin-top: var(--s-200);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: var(--s-25); }
.hero__stats dd {
  margin: 0;
  color: var(--lime);
  font-size: var(--t-4xl);
  line-height: 1;
  font-weight: 600;
}
.hero__stats dt {
  color: var(--on-dark-3);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  text-transform: lowercase;
}

.hero__media {
  position: relative;
  align-self: stretch;
  justify-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  min-height: 0;
}
.hero__media img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}

.hero__pill { position: absolute; z-index: 3; }
.hero__pill--1 { top: 10%;  left: -34%; }
.hero__pill--2 { top: 44%;  right: -14%; }
.hero__pill--3 { bottom: 20%; left: -26%; }

@media (max-width: 1100px) {
  .hero__slab {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: var(--s-400);
    gap: var(--s-300);
  }
  .hero__copy { padding-block: var(--s-200) 0; }
  .hero__media {
    align-self: auto;
    height: auto;
    max-width: 420px;
    margin-inline: auto;
  }
  .hero__media img { width: 100%; height: auto; max-height: none; }
  .hero__pill--1 { top: 4%;  left: 0; }
  .hero__pill--2 { top: 40%; right: 0; }
  .hero__pill--3 { left: auto; right: 0; bottom: 14%; }
}
@media (max-width: 560px) {
  .hero__slab { padding: var(--s-300) var(--s-300) 0; border-radius: var(--r-3xl); }
  .hero__stats { gap: var(--s-300); }
  .hero__stats dd { font-size: var(--t-3xl); }
  .hero__media { max-width: 300px; }
  .hero__pill { font-size: var(--t-xs); line-height: var(--lh-xs); padding: var(--s-50) var(--s-100); }
  .hero__pill--1 { top: 2%;   left: calc(-1 * var(--s-300)); }
  .hero__pill--2 { top: 34%;  right: calc(-1 * var(--s-300)); }
  .hero__pill--3 { display: none; }
}

/* ---------- MARQUEE ------------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: var(--s-500);
  border-block: 1px solid var(--line);
  margin-top: var(--s-800);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row {
  display: flex;
  align-items: center;
  gap: var(--s-500);
  padding-right: var(--s-500);
  font-size: var(--t-xl);
  line-height: var(--lh-xl);
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee__row i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--lime); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- ПРОБЛЕМЫ: веер ------------------------------ */

.problems { overflow: hidden; }
.problems__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-300);
  text-align: center;
}
.problems__title {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  margin-inline: auto;
  font-size: clamp(var(--t-3xl), 4.6vw, var(--t-5xl));
  line-height: 1.06;
}
.problems__head .eyebrow { grid-row: 1; grid-column: 1; justify-self: start; align-self: start; }
.problems__nav { grid-row: 1; grid-column: 3; justify-self: end; align-self: start; display: flex; gap: var(--s-75); }

@media (max-width: 900px) {
  .problems__head { grid-template-columns: 1fr; text-align: left; }
  .problems__head .eyebrow, .problems__nav { grid-row: auto; grid-column: auto; justify-self: start; }
  .problems__title { grid-column: auto; grid-row: auto; margin-inline: 0; justify-self: start; }
}

.fan {
  position: relative;
  height: 780px;
  margin-top: var(--s-600);
  cursor: grab;
  touch-action: pan-y;
}
.fan:active { cursor: grabbing; }
.fan__list { position: relative; height: 100%; }

.fan__card {
  position: absolute;
  top: var(--s-500);
  left: 50%;
  width: 360px;
  height: 500px;
  margin-left: -180px;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lift);
  transform-origin: 50% 130%;
  will-change: transform;
  user-select: none;
}
.fan__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.fan__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,21,15,.45) 0%, transparent 34%, transparent 52%, rgba(20,21,15,.78) 100%);
}

.fan__label {
  position: absolute;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 2;
  padding: var(--s-50) var(--s-100);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
}

.fan__go {
  position: absolute;
  top: var(--s-200);
  right: var(--s-200);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.fan__go svg { width: 16px; height: 16px; }
.fan__go:hover { background: var(--lime); transform: rotate(45deg); }

.fan__note {
  position: absolute;
  inset: auto var(--s-300) var(--s-300);
  z-index: 2;
  color: var(--on-dark);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  opacity: 0;
  transform: translateY(var(--s-100));
  transition: opacity var(--d-mid) var(--ease), transform var(--d-mid) var(--ease);
}
.fan__card.is-active .fan__note { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .fan { height: 660px; }
  .fan__card { width: 300px; height: 420px; margin-left: -150px; }
}
@media (max-width: 620px) {
  .fan { height: 580px; }
  .fan__card { width: 250px; height: 350px; margin-left: -125px; }
  .fan__note { inset: auto var(--s-200) var(--s-200); font-size: var(--t-xs); line-height: var(--lh-xs); }
}

/* ---------- TAGLINE ------------------------------------- */

.tagline { padding-block: var(--s-900); }
.tagline__text {
  font-size: clamp(var(--t-2xl), 4.2vw, var(--t-5xl));
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 20ch;
}
.tagline__text .w {
  color: rgba(20, 21, 15, 0.22);
  transition: color var(--d-slow) var(--ease);
}
.tagline__text .w.is-on { color: var(--ink); }

.tagline__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-100);
  max-width: 42ch;
  margin-top: var(--s-600);
  margin-left: auto;
  color: var(--ink-2);
}
@media (max-width: 900px) { .tagline__meta { margin-left: 0; } }

/* ---------- УСЛУГИ: drag -------------------------------- */

.services__title { font-size: clamp(var(--t-3xl), 4.4vw, var(--t-5xl)); }
.services .section-head { align-items: flex-end; }

.drag {
  margin-top: var(--s-500);
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  overflow: hidden;
  cursor: grab;
  position: relative;
  touch-action: pan-y;
}
.drag:active { cursor: grabbing; }
.drag__track {
  display: flex;
  gap: var(--s-100);
  width: max-content;
  will-change: transform;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  min-height: 420px;
  padding: var(--s-300);
  background: var(--surface);
  border-radius: var(--r-3xl);
  user-select: none;
  transition: box-shadow var(--d-mid) var(--ease);
}
.svc:hover { box-shadow: var(--shadow-card); }

.svc__name {
  font-size: var(--t-2xl);
  line-height: var(--lh-2xl);
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.svc__tags { display: flex; flex-wrap: wrap; gap: var(--s-50); margin-top: var(--s-200); }
.svc__tags li {
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-2);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
}
.svc__foot { margin-top: auto; padding-top: var(--s-400); }
.svc__note { color: var(--ink-2); font-size: var(--t-xs); line-height: var(--lh-xs); max-width: 26ch; }
.svc__price {
  margin-top: var(--s-75);
  font-size: var(--t-3xl);
  line-height: var(--lh-3xl);
  font-weight: 600;
}
.svc__price span { font-size: var(--t-lg); color: var(--ink-2); }

.svc__link {
  margin-top: var(--s-200);
  padding-top: var(--s-200);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--d-fast) var(--ease);
}
.svc__link:hover { color: var(--ink); }

.svc__go { position: absolute; right: var(--s-300); bottom: var(--s-300); }
.svc__link { padding-right: 56px; }

.svc--media { padding: var(--s-200); overflow: hidden; background: var(--ink); }
.svc--media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.svc__name--float,
.svc__tags--float { position: relative; z-index: 2; }
.svc__name--float {
  align-self: flex-start;
  padding: var(--s-75) var(--s-200);
  background: var(--surface);
  border-radius: var(--r-2xl);
}
.svc__tags--float { margin-top: auto; }
.svc--media .svc__tags li { background: rgba(255,255,255,.92); color: var(--ink); }

.drag__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-200);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-card);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--d-mid) var(--ease);
}
.drag.is-dragged .drag__hint { opacity: 0; }
.drag__hint svg { width: 12px; height: 12px; }

.services__legal {
  max-width: 60ch;
  margin-top: var(--s-500);
  color: var(--ink-3);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
}

@media (max-width: 560px) {
  .svc { width: 260px; min-height: 380px; padding: var(--s-200); }
  .svc__go { right: var(--s-200); bottom: var(--s-200); }
}

/* ---------- ИМПЛАНТАЦИЯ: орбита ------------------------- */

.implants { overflow: hidden; }
.implants__title { margin-top: var(--s-200); font-size: clamp(var(--t-3xl), 4.4vw, var(--t-5xl)); }

.orbit {
  position: relative;
  margin-top: var(--s-500);
  min-height: 760px;
  display: grid;
  place-items: center;
}
.orbit__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit__rings span {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  aspect-ratio: 1;
}
.orbit__rings span:nth-child(1) { width: min(46vw, 520px); }
.orbit__rings span:nth-child(2) { width: min(60vw, 680px); }
.orbit__rings span:nth-child(3) { width: min(74vw, 840px); border-style: dashed; opacity: .6; }

.orbit__hero {
  position: relative;
  z-index: 1;
  width: min(46vw, 520px);
  filter: drop-shadow(0 30px 60px rgba(20, 21, 15, 0.18));
}

.orbit__item {
  position: absolute;
  z-index: 2;
  width: 268px;
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
}
.orbit__item h3 {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  font-size: var(--t-lg);
  line-height: var(--lh-lg);
}
.orbit__item p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }
.orbit__item a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  transition: gap var(--d-fast) var(--ease);
}
.orbit__item a svg { width: 12px; height: 12px; }
.orbit__item a:hover { gap: var(--s-100); }

.orbit__item--1 { top: 8%;  right: 0; }
.orbit__item--2 { bottom: 20%; right: 2%; }
.orbit__item--3 { top: 24%; left: 0; }
.orbit__item--4 { bottom: 12%; left: 4%; }

@media (max-width: 1000px) {
  .orbit { min-height: 0; grid-template-columns: repeat(2, 1fr); gap: var(--s-400); place-items: start; }
  .orbit__rings { display: none; }
  .orbit__hero { grid-column: 1 / -1; justify-self: center; width: min(72vw, 420px); }
  .orbit__item { position: static; width: auto; }
}
@media (max-width: 620px) {
  .orbit { grid-template-columns: 1fr; }
}

/* ---------- ПОКАЗАНИЯ ----------------------------------- */

.indications__slab {
  position: relative;
  overflow: hidden;
  padding: var(--s-700) var(--s-600) 0;
}
.indications__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-400);
  align-items: end;
}
.indications__head .h-section { font-size: clamp(var(--t-2xl), 3.6vw, var(--t-4xl)); }

.indications__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-100);
  margin-top: var(--s-600);
}
.indications__list li {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  padding: var(--s-300);
  background: var(--bg);
  border-radius: var(--r-2xl);
  transition: transform var(--d-mid) var(--ease), background var(--d-mid) var(--ease);
}
.indications__list li:hover { transform: translateY(-4px); background: var(--surface-2); }
.indications__list span { color: var(--lime-deep); font-size: var(--t-xs); font-weight: 600; }
.indications__list h3 { font-size: var(--t-base); line-height: var(--lh-base); }
.indications__list p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }

.indications__watermark {
  margin: var(--s-400) 0 0;
  font-size: clamp(var(--t-6xl), 17vw, 15rem);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--surface-2);
  text-align: center;
  user-select: none;
  translate: 0 12%;
}
.indications__watermark sup { font-size: 0.24em; vertical-align: super; }

@media (max-width: 1000px) {
  .indications__slab { padding: var(--s-500) var(--s-300) 0; }
  .indications__head { grid-template-columns: 1fr; }
  .indications__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .indications__list { grid-template-columns: 1fr; }
}

/* ---------- ШАГИ ---------------------------------------- */

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-100);
}
.steps__item {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  padding: var(--s-400);
  background: var(--surface);
  border-radius: var(--r-3xl);
}
.steps__num {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--lime-deep);
}
.steps__item h3 { font-size: var(--t-xl); line-height: var(--lh-xl); }
.steps__item p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }
.steps__meta {
  margin-top: var(--s-200);
  padding-top: var(--s-200);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.steps__line {
  height: 2px;
  margin-top: var(--s-400);
  background: var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
}
.steps__line i { display: block; height: 100%; width: 0; background: var(--lime); }

@media (max-width: 900px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- ВРАЧИ --------------------------------------- */

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-100);
}
.doc { display: flex; flex-direction: column; gap: var(--s-100); }
.doc__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
}
.doc__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--ease), filter var(--d-slow) var(--ease);
  filter: grayscale(0.4);
}
.doc:hover .doc__photo img { transform: scale(1.04); filter: grayscale(0); }
.doc__badge {
  position: absolute;
  left: var(--s-200);
  bottom: var(--s-200);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  padding: var(--s-50) var(--s-100);
}
.doc h3 { margin-top: var(--s-100); font-size: var(--t-xl); line-height: var(--lh-xl); }
.doc__role { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }
.doc__facts {
  display: grid;
  gap: var(--s-50);
  margin: var(--s-100) 0 0;
  padding-top: var(--s-100);
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--d-slow) var(--ease), opacity var(--d-slow) var(--ease);
}
.doc:hover .doc__facts, .doc:focus-within .doc__facts { max-height: 120px; opacity: 1; }
.doc__facts div { display: flex; justify-content: space-between; gap: var(--s-100); }
.doc__facts dt { color: var(--ink-3); font-size: var(--t-xs); }
.doc__facts dd { margin: 0; font-size: var(--t-xs); font-weight: 600; }

@media (max-width: 1000px) { .doctors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .doctors__grid { grid-template-columns: 1fr; }
  .doc__facts { max-height: 120px; opacity: 1; }
}

/* ---------- КЕЙСЫ: до/после ----------------------------- */

.cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.case { display: flex; flex-direction: column; gap: var(--s-200); }

.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}
.ba img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ba__before {
  position: absolute;
  inset: 0;
  width: var(--pos, 50%);
  overflow: hidden;
}
.ba__before img { max-width: none; height: 100%; object-fit: cover; object-position: center; }

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range:focus-visible { outline-offset: -4px; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--surface);
  pointer-events: none;
}
/* кружок центрируем абсолютно: внутри полоски в 2px
   grid-выравнивание уводит переполняющий элемент к краю */
.ba__handle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  max-width: none;          /* иначе ширину режет полоска в 2px */
  padding: var(--s-100);
  box-sizing: content-box;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border-radius: var(--r-full);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.ba__tag {
  position: absolute;
  bottom: var(--s-200);
  padding: var(--s-25) var(--s-100);
  background: rgba(20, 21, 15, 0.72);
  color: var(--on-dark);
  border-radius: var(--r-md);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  pointer-events: none;
}
.ba__tag--l { left: var(--s-200); }
.ba__tag--r { right: var(--s-200); }

.case__meta h3 { font-size: var(--t-xl); line-height: var(--lh-xl); }
.case__meta dl { display: flex; flex-wrap: wrap; gap: var(--s-400); margin: var(--s-200) 0 0; }
.case__meta div { display: flex; flex-direction: column-reverse; gap: var(--s-25); }
.case__meta dt { color: var(--ink-3); font-size: var(--t-xs); }
.case__meta dd { margin: 0; font-size: var(--t-base); font-weight: 600; }

@media (max-width: 900px) { .cases__grid { grid-template-columns: 1fr; } }

/* ---------- ОТЗЫВЫ: орбита ------------------------------ */

.reviews { overflow: hidden; }
.revorbit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-400);
  padding-block: var(--s-500);
}
.revorbit__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.revorbit__rings span {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}
.revorbit__rings span:nth-child(1) { width: min(70vw, 720px); }
.revorbit__rings span:nth-child(2) { width: min(96vw, 1040px); }

.revorbit__faces { position: absolute; inset: 0; pointer-events: none; }
.revorbit__face {
  position: absolute;
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-card);
}
.revorbit__face--1 { top: 12%;  left: 13%; }
.revorbit__face--2 { top: 1%;   left: 26%; width: 52px; height: 52px; }
.revorbit__face--3 { top: 4%;   right: 26%; width: 56px; height: 56px; }
.revorbit__face--4 { top: 36%;  right: 5%;  width: 60px; height: 60px; }

.revorbit__bubble {
  position: absolute;
  padding: var(--s-50) var(--s-100);
  background: var(--lime);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  font-weight: 500;
  white-space: nowrap;
}
.revorbit__bubble--1 { top: 9%;  left: 24%; }
.revorbit__bubble--2 { top: 27%; right: 13%; background: var(--surface); box-shadow: var(--shadow-card); }
.revorbit__bubble--3 { top: 33%; left: 6%;   background: var(--surface); box-shadow: var(--shadow-card); }

.revorbit__title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(var(--t-3xl), 5vw, var(--t-6xl));
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.revorbit__title .num { color: var(--lime-deep); }

.review {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0;
  padding: var(--s-500) var(--s-400) var(--s-400);
  background: var(--surface);
  border-radius: var(--r-4xl);
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.review__face {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--r-full);
  margin: calc(-1 * var(--s-800)) auto var(--s-200);
  box-shadow: 0 0 0 8px var(--bg);
}
.review blockquote { margin: 0; }
.review__lead { font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 600; }
.review blockquote p + p { margin-top: var(--s-100); color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }
.review figcaption {
  display: flex;
  justify-content: center;
  gap: var(--s-100);
  margin-top: var(--s-300);
  padding-top: var(--s-200);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  font-weight: 600;
}

.revorbit__sources { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100); }
.revorbit__sources a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-200);
  background: var(--surface);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.revorbit__sources a:hover { color: var(--ink); background: var(--surface-2); }
.revorbit__sources .num { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .revorbit__faces, .revorbit__rings { display: none; }
  .review { padding: var(--s-500) var(--s-300) var(--s-300); }
}

/* ---------- КЛИНИКА ------------------------------------- */

.clinic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--s-300);
  row-gap: var(--s-600);
}
.clinic__cell { margin: 0; }
.clinic__cell--tall { grid-row: span 2; }
.clinic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-3xl);
  background: var(--surface-2);
}
.clinic__cell--tall img { aspect-ratio: 4 / 5; }
.clinic__cell:not(.clinic__cell--tall) img { aspect-ratio: 16 / 10; }
.clinic__cell figcaption {
  margin-top: var(--s-100);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
@media (max-width: 760px) {
  .clinic__grid { grid-template-columns: 1fr; }
  .clinic__cell--tall { grid-row: auto; }
}

/* ---------- ОПЛАТА -------------------------------------- */

.pay__slab { padding: var(--s-700) var(--s-600); }
.pay__head { max-width: var(--measure); }
.pay__head .h-section { margin-top: var(--s-200); }
.pay__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-100);
  margin-top: var(--s-600);
}
.pay__list li {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--d-mid) var(--ease);
}
.pay__list li:hover { background: rgba(190, 230, 110, 0.12); }
.pay__list h3 { font-size: var(--t-lg); line-height: var(--lh-lg); }
.pay__list p { color: var(--on-dark-2); font-size: var(--t-sm); line-height: var(--lh-sm); }

@media (max-width: 1000px) { .pay__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .pay__slab { padding: var(--s-500) var(--s-300); }
  .pay__list { grid-template-columns: 1fr; }
}

/* ---------- FAQ ----------------------------------------- */

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-700);
  align-items: start;
}
.faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-200); position: sticky; top: 120px; }
.faq__aside .h-section { font-size: clamp(var(--t-2xl), 3.4vw, var(--t-4xl)); }

.faq__list { display: flex; flex-direction: column; }
.faq__list details {
  border-bottom: 1px solid var(--line);
}
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  padding-block: var(--s-300);
  cursor: pointer;
  list-style: none;
  font-size: var(--t-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
  transition: color var(--d-fast) var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--lime-deep); }
.faq__list summary i {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--surface);
  transition: background var(--d-mid) var(--ease), transform var(--d-mid) var(--ease);
}
.faq__list summary i::before,
.faq__list summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  border-radius: var(--r-full);
  transition: transform var(--d-mid) var(--ease);
}
.faq__list summary i::after { transform: rotate(90deg); }
.faq__list details[open] summary i { background: var(--lime); transform: rotate(180deg); }
.faq__list details[open] summary i::after { transform: rotate(0deg); }
.faq__list details p {
  padding-bottom: var(--s-300);
  max-width: 62ch;
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: var(--lh-base);
}
.faq__list details[open] p { animation: faq-in var(--d-mid) var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) {
  .faq__layout { grid-template-columns: 1fr; gap: var(--s-400); }
  .faq__aside { position: static; }
}

/* ---------- ФОРМА --------------------------------------- */

.booking__slab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--s-700);
  padding: var(--s-700) var(--s-600);
}
.booking__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-200); }
.booking__copy .h-section { font-size: clamp(var(--t-2xl), 3.6vw, var(--t-4xl)); }
.booking__points { display: flex; flex-direction: column; gap: var(--s-75); margin-top: var(--s-200); }
.booking__points li { display: flex; align-items: center; gap: var(--s-75); font-size: var(--t-sm); color: var(--ink-2); }

.form { display: flex; flex-direction: column; gap: var(--s-200); }
.form__row { display: flex; flex-direction: column; gap: var(--s-50); }
.form__row label { font-size: var(--t-xs); color: var(--ink-2); }
.form input[type="text"],
.form input[type="tel"],
.form select {
  width: 100%;
  padding: var(--s-100) var(--s-200);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  font-size: var(--t-base);
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-200) center;
  background-size: 16px;
  cursor: pointer;
}
.form input::placeholder { color: var(--ink-3); }
.form input:hover, .form select:hover { background: var(--surface-2); }
.form input:focus, .form select:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.form [aria-invalid="true"] { border-color: #c0442e; }

.form__err { min-height: 0; color: #c0442e; font-size: var(--t-xs); line-height: var(--lh-xs); }
.form__err:empty { display: none; }

.form__check { display: flex; gap: var(--s-75); align-items: flex-start; font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--ink-2); cursor: pointer; }
.form__check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--lime-deep); flex: none; }
.form__check a { text-decoration: underline; text-underline-offset: 2px; }

.form__submit { justify-content: center; margin-top: var(--s-100); }
.form__submit svg { width: 16px; height: 16px; }
.form__submit.is-loading { pointer-events: none; opacity: .7; }

.form__ok {
  padding: var(--s-100) var(--s-200);
  background: var(--lime);
  border-radius: var(--r-xl);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
}

@media (max-width: 900px) {
  .booking__slab { grid-template-columns: 1fr; gap: var(--s-400); padding: var(--s-500) var(--s-300); }
}

/* ---------- ФУТЕР --------------------------------------- */

.footer {
  padding-block: var(--s-800) var(--s-500);
  border-top: 1px solid var(--line);
  margin-top: var(--s-900);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: var(--s-500);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-200); }
.footer__brand p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-sm); }

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-300);
  font-style: normal;
}
.footer__label {
  display: block;
  margin-bottom: var(--s-75);
  color: var(--ink-3);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
}
.footer__contacts p { font-size: var(--t-sm); line-height: var(--lh-sm); }
.footer__contacts a { transition: color var(--d-fast) var(--ease); }
.footer__contacts a:hover { color: var(--lime-deep); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-300);
  margin-top: var(--s-600);
  padding-top: var(--s-300);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.footer__nav a:hover { color: var(--ink); }

.footer__legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-300);
  margin-top: var(--s-400);
  color: var(--ink-3);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
}
.footer__warning { color: var(--ink-2); }
.footer__demo {
  padding: var(--s-100);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { grid-template-columns: 1fr; }
}

/* ---------- STICKY BAR ---------------------------------- */

.sticky {
  position: fixed;
  left: 50%;
  bottom: var(--s-300);
  z-index: 90;
  transform: translate(-50%, calc(100% + var(--s-500)));
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lift);
  transition: transform var(--d-slow) var(--ease);
  max-width: calc(100vw - var(--s-400));
}
.sticky.is-in { transform: translate(-50%, 0); }
.sticky__text { font-size: var(--t-sm); line-height: var(--lh-sm); }
.sticky svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .sticky {
    left: var(--s-200);
    right: var(--s-200);
    bottom: var(--s-200);
    transform: translateY(calc(100% + var(--s-500)));
    justify-content: space-between;
    gap: var(--s-100);
    padding-left: var(--s-200);
    max-width: none;
  }
  .sticky.is-in { transform: translateY(0); }
  .sticky__text { font-size: var(--t-xs); line-height: var(--lh-xs); }
  .sticky .btn { padding: var(--s-75) var(--s-200); }
}
@media (max-width: 400px) {
  .sticky__text { display: none; }
  .sticky { justify-content: center; padding: var(--s-75); }
}

/* ---------- ВНУТРЕННИЕ СТРАНИЦЫ ------------------------- */

.page { padding-top: 140px; }
.page__title { font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl)); line-height: 1.06; max-width: var(--measure); }
.doc-body { max-width: 68ch; margin-top: var(--s-500); display: flex; flex-direction: column; gap: var(--s-300); }
.doc-body h2 { font-size: var(--t-xl); line-height: var(--lh-xl); margin-top: var(--s-300); }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: var(--t-base); line-height: var(--lh-base); }
.doc-body ul { display: flex; flex-direction: column; gap: var(--s-75); padding-left: var(--s-300); list-style: disc; }

.err {
  min-height: 76vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--s-300);
}
.err__code {
  font-size: clamp(var(--t-7xl), 18vw, 13rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--surface-2);
  margin-bottom: calc(-1 * var(--s-200));
}
