/* ════════════════════════════════════════════════════════════════
   МИРСААТОВ МУЗАФАР · ПЛАСТИЧЕСКИЙ ХИРУРГ
   style.css · v3 «IMBA» — editorial luxury
════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:       #E8EAE6;
  --sage-deep:  #DDE0D9;
  --cream:      #F3F4F0;
  --olive:      #B2AC88;
  --olive-dark: #847E59;
  --olive-deep: #5F5A3E;
  --ink:        #23251F;
  --ink-deep:   #161812;
  --ink-soft:   #585A50;
  --line:       rgba(35,37,31,.10);
  --line-soft:  rgba(35,37,31,.06);
  --o-line:     rgba(178,172,136,.35);
  --on-dark:    rgba(232,234,230,.72);
  --on-dark-2:  rgba(232,234,230,.45);
  --r:          22px;
  --r-lg:       34px;
  --px:         clamp(1.25rem, 5vw, 4rem);
  --nav-h:      76px;
  --ease:       cubic-bezier(.22,.7,.25,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--sage);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--olive); color: var(--ink-deep); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--sage-deep); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--olive-dark); }

section { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ════════ ЗЕРНО ПЛЁНКИ ════════ */
.grain {
  position: fixed; inset: -50%; z-index: 9998; pointer-events: none;
  width: 200%; height: 200%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-10%) }
  20% { transform: translate(-15%,5%) } 30% { transform: translate(7%,-25%) }
  40% { transform: translate(-5%,25%) } 50% { transform: translate(-15%,10%) }
  60% { transform: translate(15%,0) } 70% { transform: translate(0,15%) }
  80% { transform: translate(3%,35%) } 90% { transform: translate(-10%,10%) }
}

/* ════════ ПРЕЛОАДЕР ════════ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; transition: transform 1s var(--ease-out);
}
.loader.done { transform: translateY(-101%); }
.loader__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 8vw, 5rem); font-weight: 500;
  color: var(--sage); letter-spacing: .04em; display: flex; overflow: hidden;
}
.loader__name span {
  display: inline-block; transform: translateY(110%);
  animation: lriser .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms);
}
.loader__name span.it { font-style: italic; color: var(--olive); }
@keyframes lriser { to { transform: translateY(0); } }
.loader__sub {
  font-size: .7rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--on-dark-2); opacity: 0; animation: lfade .8s .6s forwards;
}
@keyframes lfade { to { opacity: 1; } }
.loader__bar {
  width: min(280px, 60vw); height: 1px; background: rgba(232,234,230,.15);
  overflow: hidden; position: relative;
}
.loader__bar i {
  position: absolute; inset: 0; background: var(--olive);
  transform-origin: left; transform: scaleX(0); transition: transform .3s linear;
}
.loader__pct {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; color: var(--olive); min-height: 1.4em;
}

/* ════════ КАСТОМНЫЙ КУРСОР ════════ */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive-dark); transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--olive-dark); opacity: .55;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), opacity .3s, background .3s;
}
.cursor-ring.hot { width: 64px; height: 64px; opacity: .9; background: rgba(178,172,136,.12); }
.cursor-ring.drag { width: 80px; height: 80px; background: rgba(178,172,136,.18); border-color: var(--olive); }
.cursor-ring.drag::after {
  content: '◂ ▸'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--olive-deep); letter-spacing: .2em;
}
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ════════ ПРОГРЕСС СКРОЛЛА ════════ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001;
  background: transparent;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--olive), var(--olive-dark));
  transform-origin: left; transform: scaleX(0);
}

/* ════════ НАВИГАЦИЯ-ПИЛЮЛЯ ════════ */
.nav {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: min(calc(100% - 2rem), 1080px);
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .75rem .65rem 1.5rem;
  background: rgba(232,234,230,.65);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(35,37,31,.08);
  border-radius: 100px;
  box-shadow: 0 14px 40px -18px rgba(22,24,18,.25);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.nav.hide { transform: translateX(-50%) translateY(calc(-100% - 1.25rem)); }
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; letter-spacing: .01em;
}
.nav__logo i { font-style: italic; color: var(--olive-dark); }
.nav__links { display: flex; gap: 1.9rem; list-style: none; }
.nav__links a {
  font-size: .76rem; font-weight: 500; letter-spacing: .03em;
  color: var(--ink-soft); position: relative; transition: color .25s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--olive-dark);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: .62rem 1.45rem; background: var(--ink); color: var(--sage) !important;
  font-size: .74rem; font-weight: 500; border-radius: 100px;
  transition: background .3s, transform .3s;
}
.nav__cta:hover { background: var(--olive-dark); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════ КНОПКИ ════════ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.05rem 2.3rem; border-radius: 100px; border: 0; cursor: pointer;
  font-size: .82rem; font-weight: 500; letter-spacing: .03em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  will-change: transform;
}
.btn--dark { background: var(--ink); color: var(--sage); }
.btn--dark:hover { background: var(--olive-dark); box-shadow: 0 16px 34px -16px rgba(22,24,18,.55); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--olive { background: var(--olive); color: var(--ink-deep); font-weight: 600; }
.btn--olive:hover { background: var(--sage); }
.btn--light { background: var(--sage); color: var(--ink); font-weight: 500; }
.btn--light:hover { background: var(--olive); }
.btn__arr { transition: transform .3s var(--ease); }
.btn:hover .btn__arr { transform: translateX(4px); }

/* ════════ ТИПОГРАФИКА ════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive-dark); margin-bottom: 1.3rem;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--olive); }
.h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem); font-weight: 500;
  line-height: .99; letter-spacing: -.015em; color: var(--ink);
}
.h2 em { font-style: italic; color: var(--olive-dark); }
.dark .eyebrow { color: var(--olive); }
.dark .h2 { color: var(--cream); }
.dark .h2 em { color: var(--olive); }

/* split-reveal слов */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(115%); transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--wi) * 60ms);
}
.split.go .w > i { transform: translateY(0); }

/* reveal-блоки */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.rv-img.in { clip-path: inset(0 0 0 0); }

/* ════════ HERO ════════ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr;
  overflow: clip; background: var(--sage);
}
.hero__ghost {
  position: absolute; bottom: -2%; left: -2%; z-index: 0;
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(7rem, 22vw, 19rem); line-height: .8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(132,126,89,.16);
  user-select: none; pointer-events: none; will-change: transform;
}
.hero__left {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 4rem) var(--px) 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive-dark); margin-bottom: 2.2rem;
}
.hero__eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--olive); }
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 500;
  line-height: .96; letter-spacing: -.02em; margin-bottom: 1.6rem;
}
.hero__title em { font-style: italic; color: var(--olive-dark); }
.hero__desc {
  font-size: 1.02rem; font-weight: 300; line-height: 1.8;
  color: var(--ink-soft); max-width: 460px; margin-bottom: 2.6rem;
}
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 3.6rem; padding-top: 2.4rem; border-top: 1px solid var(--line);
}
.hstat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600;
  color: var(--olive-dark); line-height: 1;
}
.hstat__num sup { font-size: .55em; }
.hstat__label { font-size: .73rem; color: var(--ink-soft); margin-top: .45rem; }

.hero__right { position: relative; overflow: clip; background: var(--ink); border-radius: 0 0 0 var(--r-lg); }
.hero__right::before {
  content: ''; position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; z-index: 1;
  background: radial-gradient(circle, rgba(178,172,136,.3) 0%, transparent 68%);
}
.hero__photo-wrap {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
}
.hero__photo {
  width: 92%; height: 94%; object-fit: cover; object-position: center 18%;
  position: relative; z-index: 2; filter: grayscale(18%) contrast(1.04);
  will-change: transform;
}
.hero__tag {
  position: absolute; top: calc(var(--nav-h) + 2rem); right: 2.2rem; z-index: 3;
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--olive);
}
.hero__chip {
  position: absolute; bottom: 2.4rem; left: 2.2rem; z-index: 3;
  background: rgba(232,234,230,.92); backdrop-filter: blur(12px);
  padding: 1.05rem 1.4rem; border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.4);
}
.hero__chip-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; line-height: 1; }
.hero__chip-label { font-size: .67rem; color: var(--ink-soft); margin-top: .2rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: var(--px); z-index: 3;
  display: flex; align-items: center; gap: .8rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll i {
  width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--olive-dark); animation: sline 1.8s var(--ease) infinite;
}
@keyframes sline { 0% { top: -50% } 100% { top: 110% } }

/* ════════ БЕГУЩАЯ СТРОКА ════════ */
.marquee {
  background: var(--ink); padding: 1.6rem 0; overflow: clip;
  white-space: nowrap; position: relative; z-index: 2;
}
.marquee__track { display: inline-flex; align-items: baseline; animation: mq 36s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee b {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3rem); color: var(--sage); margin: 0 1.6rem;
}
.marquee b.o {
  color: transparent; -webkit-text-stroke: 1px var(--olive); font-style: italic;
}
.marquee b::after { content: '✦'; font-size: .5em; color: var(--olive); margin-left: 3.2rem; vertical-align: middle; -webkit-text-stroke: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ════════ СЕКЦИИ ════════ */
.sec { padding: clamp(4.5rem, 9vw, 8rem) var(--px); position: relative; }
.sec--dark {
  background: var(--ink); color: var(--sage);
  border-radius: var(--r-lg);
  margin: 0 .6rem;
}
.sec--cream { background: var(--cream); }

/* ════════ О ВРАЧЕ ════════ */
.about__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 400;
  line-height: 1.25; color: var(--cream); max-width: 880px; margin-top: 2.6rem;
}
.about__quote em { font-style: italic; color: var(--olive); }
.about__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 6rem); margin-top: 4rem; align-items: start;
}
.about__text { font-size: .95rem; font-weight: 300; line-height: 1.85; color: var(--on-dark); }
.about__text strong { color: var(--olive); font-weight: 500; }
.about__chips { display: flex; gap: .9rem; margin-top: 2.4rem; flex-wrap: wrap; }
.achip {
  flex: 1; min-width: 150px;
  background: rgba(178,172,136,.09); border: 1px solid rgba(178,172,136,.22);
  border-radius: 18px; padding: 1.3rem 1.5rem;
  transition: background .3s, transform .3s;
}
.achip:hover { background: rgba(178,172,136,.16); transform: translateY(-3px); }
.achip__num { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; color: var(--olive); line-height: 1; }
.achip__label { font-size: .7rem; color: var(--on-dark); margin-top: .35rem; }
.spec { list-style: none; }
.spec li {
  display: flex; gap: .9rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid rgba(232,234,230,.08);
  font-size: .89rem; font-weight: 300; color: var(--on-dark);
  transition: color .25s, padding-left .3s var(--ease);
}
.spec li:hover { color: var(--cream); padding-left: .5rem; }
.spec li::before { content: counter(list-item, decimal-leading-zero); font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--olive); font-size: .95rem; }

/* ════════ УСЛУГИ · СТОПКА ════════ */
.stack { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 3.4rem; }
.scard {
  position: sticky; top: calc(var(--nav-h) + var(--i) * 16px + 12px);
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  box-shadow: 0 -14px 44px -28px rgba(22,24,18,.28);
}
.scard:nth-child(even) { background: var(--sage-deep); }
.scard__num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem); color: var(--olive); line-height: 1;
}
.scard__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.02;
  margin-bottom: .7rem;
}
.scard__desc { font-size: .92rem; font-weight: 300; line-height: 1.7; color: var(--ink-soft); max-width: 560px; }
.scard__meta { display: flex; flex-direction: column; gap: .9rem; align-items: flex-end; text-align: right; }
.scard__rehab {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: var(--olive-deep); background: rgba(178,172,136,.18);
  padding: .5rem 1rem; border-radius: 100px; white-space: nowrap;
}
.scard__link {
  font-size: .78rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.scard__link span { transition: transform .3s var(--ease); }
.scard__link:hover span { transform: translateX(4px); }

/* ════════ ДО / ПОСЛЕ · ГАЛЕРЕЯ ════════ */
.ba__lead {
  max-width: 46ch; margin-top: 1.5rem;
  font-size: .86rem; font-weight: 300; line-height: 1.7; color: var(--on-dark);
}

/* все карточки одного размера -> сетка ложится ровно, без рваных колонок */
.bagrid {
  margin-top: 3.2rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.bacard {
  overflow: hidden; cursor: zoom-in;
  border-radius: var(--r); border: 1px solid rgba(232,234,230,.10);
  background: rgba(232,234,230,.04);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.bacard:hover { border-color: var(--o-line); transform: translateY(-4px); }

.bacard__media { position: relative; display: block; }
.bacard__media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1606 / 1000; object-fit: cover;
}

/* метки «До» / «После»: левая половина снимка — до, правая — после */
.bacard__tag {
  position: absolute; top: .7rem; z-index: 2;
  font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 9px; color: var(--sage);
  background: rgba(12,13,10,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(232,234,230,.14);
}
.bacard__tag--before { left: .7rem; }
.bacard__tag--after  { right: .7rem; }

.bacard figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; padding: .85rem 1.05rem 1rem;
  border-top: 1px solid rgba(232,234,230,.08);
}
.bacard figcaption b { font-size: .83rem; font-weight: 500; color: var(--sage); }
.bacard figcaption i {
  font-family: 'Cormorant Garamond', serif; font-size: .92rem;
  color: var(--olive); white-space: nowrap;
}

.bacard__zoom {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%; background: rgba(12,13,10,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(232,234,230,.2);
  opacity: 0; transform: scale(.85); transition: all .35s var(--ease);
}
.bacard__zoom::before, .bacard__zoom::after { content: ''; position: absolute; background: var(--sage); }
.bacard__zoom::before { left: 50%; top: 14px; width: 1px; height: 14px; transform: translateX(-50%); }
.bacard__zoom::after  { top: 50%; left: 14px; height: 1px; width: 14px; transform: translateY(-50%); }
.bacard:hover .bacard__zoom { opacity: 1; transform: scale(1); }

/* ════════ ЛАЙТБОКС ════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12,13,10,.94); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; animation: lbIn .3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }

.lightbox__body { max-width: min(100%, 980px); max-height: 100%; text-align: center; }
.lightbox__body img {
  max-width: 100%; max-height: calc(100vh - 9rem);
  object-fit: contain; border-radius: 14px;
}
.lightbox__body figcaption {
  margin-top: 1rem; font-size: .84rem; color: var(--on-dark);
}
.lightbox__body figcaption i {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--olive); margin-left: .6rem;
}

.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  background: rgba(232,234,230,.08); border: 1px solid rgba(232,234,230,.16);
  color: var(--sage); cursor: pointer; border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(178,172,136,.22); border-color: var(--o-line);
}
.lightbox__close {
  top: 1.2rem; right: 1.2rem; width: 46px; height: 46px;
  font-size: 1.7rem; line-height: 1;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
  font-size: 2rem; line-height: 1; padding-bottom: 5px;
}
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ════════ ВИДЕО · РЕЛЬС ════════ */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.rail-hint { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: .7rem; }
.rail-hint::after { content: '⟶'; font-size: 1rem; color: var(--olive-dark); }
.rail {
  display: flex; gap: 1.2rem; margin-top: 2.8rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .2rem 1.4rem; cursor: grab;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.grabbing { cursor: grabbing; scroll-snap-type: none; }
.vcard {
  flex: 0 0 clamp(220px, 24vw, 300px); scroll-snap-align: start;
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.vcard:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(22,24,18,.3); }
.vcard__media { position: relative; }
.vcard__media video { width: 100%; aspect-ratio: 9/14; object-fit: cover; display: block; background: var(--ink-deep); pointer-events: none; }
.vcard__ovl {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(22,24,18,.45));
  transition: opacity .3s; cursor: pointer;
}
.vcard.playing .vcard__ovl { opacity: 0; }
.vplay {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(232,234,230,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s;
}
.vcard:hover .vplay { transform: scale(1.12); background: var(--olive); }
.vplay::after {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 15px solid var(--ink);
}
.vcard__info { padding: 1rem 1.2rem 1.15rem; }
.vcard__title { font-size: .87rem; font-weight: 500; }
.vcard__sub { font-size: .7rem; color: var(--ink-soft); margin-top: .2rem; }

/* ════════ ПУТЬ ПАЦИЕНТА ════════ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3.4rem; counter-reset: st; }
.step {
  position: relative; background: var(--cream); border-radius: var(--r);
  padding: 2.2rem 1.8rem 2rem; border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s;
  overflow: hidden;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(22,24,18,.25); }
.step::before {
  counter-increment: st; content: '0' counter(st);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 4.6rem; line-height: 1; color: rgba(178,172,136,.28);
  position: absolute; top: .6rem; right: 1rem;
}
.step__name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; margin: 2.2rem 0 .6rem; position: relative; }
.step__txt { font-size: .85rem; font-weight: 300; line-height: 1.7; color: var(--ink-soft); position: relative; }

/* ════════ ПОДГОТОВКА ════════ */
.tips__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 3.2rem; }
.tip { display: flex; gap: 1.3rem; align-items: flex-start; background: rgba(178,172,136,.1); border: 1px solid rgba(178,172,136,.2); border-radius: 18px; padding: 1.5rem 1.7rem; margin-bottom: 1rem; transition: transform .35s var(--ease), background .3s; }
.tip:hover { transform: translateX(8px); background: rgba(178,172,136,.16); }
.tip__n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 2.2rem; color: var(--olive); line-height: .9; }
.tip__txt { font-size: .9rem; font-weight: 300; line-height: 1.7; color: var(--on-dark); }
.rehab__label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: 1.4rem; }
.rehab { width: 100%; border-collapse: collapse; }
.rehab th { text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); padding: .85rem 0; border-bottom: 1px solid rgba(178,172,136,.3); }
.rehab td { padding: .9rem 0; font-size: .88rem; font-weight: 300; color: var(--on-dark); border-bottom: 1px solid rgba(232,234,230,.07); transition: color .25s, padding-left .3s; }
.rehab td:first-child { color: var(--cream); font-weight: 400; }
.rehab tr:hover td { color: var(--cream); padding-left: .4rem; }
.rehab td:last-child { text-align: right; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--olive); }
.rehab tr:hover td:last-child { padding-left: 0; }

/* ════════ ОТЗЫВЫ · ЛЕНТА ════════ */
.rev-belt { overflow: clip; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.rev-row { display: flex; gap: 1.2rem; width: max-content; animation: mq 46s linear infinite; }
.rev-row--rev { animation-direction: reverse; }
.rev-belt:hover .rev-row { animation-play-state: paused; }
.rev {
  width: clamp(290px, 30vw, 400px); flex-shrink: 0;
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 1.8rem;
}
.rev__stars { display: flex; gap: 3px; margin-bottom: .9rem; }
.rev__star { width: 12px; height: 12px; background: var(--olive); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.rev__text { font-size: .85rem; font-weight: 300; line-height: 1.72; color: var(--ink-soft); margin-bottom: 1.2rem; }
.rev__author { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.rev__ava { width: 38px; height: 38px; border-radius: 50%; background: var(--olive); color: var(--ink-deep); display: flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 600; }
.rev__name { font-size: .83rem; font-weight: 600; }
.rev__op { font-size: .7rem; color: var(--ink-soft); margin-top: .1rem; }

/* ════════ FAQ / МИФЫ ════════ */
.faq { max-width: 860px; margin: 3rem auto 0; }
.fitem { border-bottom: 1px solid var(--line); }
.fitem__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.7rem .2rem; text-align: left;
}
.fitem__q h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 500; color: var(--ink);
  transition: color .3s;
}
.fitem__q:hover h3 { color: var(--olive-dark); }
.fitem__ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); position: relative;
  transition: background .3s, border-color .3s, transform .45s var(--ease);
}
.fitem__ic::before, .fitem__ic::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--ink); transition: background .3s;
}
.fitem__ic::before { width: 14px; height: 1.5px; transform: translate(-50%,-50%); }
.fitem__ic::after  { width: 1.5px; height: 14px; transform: translate(-50%,-50%); }
.fitem.open .fitem__ic { background: var(--ink); border-color: var(--ink); transform: rotate(135deg); }
.fitem.open .fitem__ic::before, .fitem.open .fitem__ic::after { background: var(--sage); }
.fitem__a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.fitem__a p { padding: 0 .2rem 1.7rem; font-size: .93rem; font-weight: 300; line-height: 1.8; color: var(--ink-soft); max-width: 700px; }

/* ════════ ЗАПИСЬ ════════ */
.booking__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 3.2rem; align-items: start; }
.booking__info p { font-size: .97rem; font-weight: 300; line-height: 1.85; color: var(--on-dark); margin-bottom: 1.4rem; }
.booking__info strong { color: var(--olive); font-weight: 500; }
.bcs { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.2rem; }
.bc {
  display: flex; align-items: center; gap: 1.05rem;
  padding: 1.05rem 1.3rem; border-radius: 16px;
  background: rgba(178,172,136,.08); border: 1px solid rgba(178,172,136,.18);
  transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.bc:hover { background: rgba(178,172,136,.15); transform: translateX(6px); border-color: var(--o-line); }
.bc__ic { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bc__ic svg { width: 19px; height: 19px; fill: var(--olive); }
.bc__label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); display: block; }
.bc__value { font-size: .92rem; color: var(--cream); margin-top: .12rem; display: block; }

.bform { background: var(--cream); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.7rem, 4vw, 2.7rem); box-shadow: 0 40px 90px -50px rgba(0,0,0,.6); }
.bform__title { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 600; margin-bottom: .3rem; }
.bform__sub { font-size: .82rem; font-weight: 300; color: var(--ink-soft); margin-bottom: 1.8rem; }
.fg { margin-bottom: 1.1rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flabel { font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); display: block; margin-bottom: .45rem; text-transform: uppercase; }
.finput, .fselect, .ftextarea {
  width: 100%; background: var(--sage); border: 1px solid var(--line);
  color: var(--ink); font-family: 'Inter', sans-serif; font-size: .92rem;
  padding: .9rem 1.05rem; border-radius: 13px; outline: 0;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.finput:focus, .fselect:focus, .ftextarea:focus { border-color: var(--olive-dark); background: var(--cream); box-shadow: 0 0 0 4px rgba(178,172,136,.18); }
.finput::placeholder, .ftextarea::placeholder { color: var(--ink-soft); opacity: .55; }
.ftextarea { resize: vertical; min-height: 90px; }
.fselect { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23847E59'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.05rem center; }
.fsubmit {
  width: 100%; padding: 1.1rem; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--ink); color: var(--sage);
  font-size: .86rem; font-weight: 500; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: background .3s, transform .3s; margin-top: .4rem;
}
.fsubmit:hover:not(:disabled) { background: var(--olive-dark); }
.fsubmit:disabled { opacity: .5; cursor: not-allowed; }
.fsubmit.is-sending:disabled { cursor: wait; opacity: .65; }

/* согласие на обработку персональных данных */
.fcheck {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 1.3rem 0 1.1rem; cursor: pointer; user-select: none;
}
.fcheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.fcheck__box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--o-line); border-radius: 6px;
  background: rgba(232,234,230,.05); position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.fcheck__box::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .25s var(--ease);
}
.fcheck:hover .fcheck__box { border-color: var(--olive); }
.fcheck input:checked + .fcheck__box { background: var(--olive); border-color: var(--olive); }
.fcheck input:checked + .fcheck__box::after { transform: rotate(45deg) scale(1); }
.fcheck input:focus-visible + .fcheck__box { outline: 2px solid var(--olive); outline-offset: 3px; }
.fcheck__text { font-size: .76rem; font-weight: 300; line-height: 1.55; color: var(--on-dark); }
.fcheck__text a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.fcheck.shake { animation: shk .4s; }
.fdisc { font-size: .67rem; font-weight: 300; color: var(--ink-soft); margin-top: .85rem; line-height: 1.5; }
.fok { display: none; text-align: center; padding: 2.6rem 1rem; }
.fok.show { display: block; }
.fok__ic { width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--olive); display: flex; align-items: center; justify-content: center; animation: pop .5s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.fok__ic svg { width: 30px; height: 30px; stroke: var(--ink-deep); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fok__title { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; }
.fok__sub { font-size: .87rem; font-weight: 300; color: var(--ink-soft); line-height: 1.65; margin-top: .5rem; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(232,234,230,.3); border-top-color: var(--sage); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ════════ ФУТЕР ════════ */
.footer { background: var(--ink-deep); color: var(--on-dark); padding: 5rem var(--px) 2rem; margin-top: .6rem; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: clip; }
.footer__giant {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(3.4rem, 13.5vw, 12rem); line-height: .85; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px rgba(178,172,136,.4);
  white-space: nowrap; text-align: center; user-select: none;
  transition: color .6s, -webkit-text-stroke .6s;
}
.footer__giant:hover { color: rgba(178,172,136,.16); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; border-bottom: 1px solid rgba(178,172,136,.14); }
.footer__tag { font-size: .9rem; font-weight: 300; line-height: 1.75; max-width: 340px; }
.footer__clock { margin-top: 1.6rem; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; color: var(--olive); }
.footer__clock span { color: var(--on-dark-2); font-family: 'Inter'; font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-right: .7rem; }
.footer h4 { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: 1.2rem; }
.footer__grid a { display: block; font-size: .88rem; font-weight: 300; margin-bottom: .65rem; transition: color .25s, padding-left .3s; }
.footer__grid a:hover { color: var(--cream); padding-left: .35rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .72rem; color: var(--on-dark-2); }

/* ════════ АДАПТИВ ════════ */
@media (max-width: 1100px) {
  .scard { grid-template-columns: auto 1fr; }
  .scard__meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__right { order: -1; min-height: 54svh; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero__left { padding-top: 3rem; }
  .hero__scroll { display: none; }
  .about__grid, .booking__layout, .tips__grid { grid-template-columns: 1fr; }
  .bagrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; position: absolute; top: calc(100% + .6rem); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(232,234,230,.96); backdrop-filter: blur(24px); border: 1px solid rgba(35,37,31,.08); border-radius: 24px; padding: .9rem; box-shadow: 0 24px 50px -22px rgba(22,24,18,.35); }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: .85rem 1rem; font-size: .95rem; border-radius: 14px; }
  .nav__links a:hover { background: rgba(178,172,136,.16); }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 640px) {
  :root { --px: 1.15rem; --r-lg: 26px; }
  .sec--dark { margin: 0 .4rem; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-wrap: wrap; gap: 1.3rem 1.8rem; }
  .hero__chip { left: 1rem; bottom: 1rem; padding: .8rem 1rem; }
  .hero__tag { right: 1rem; }
  .marquee b { font-size: 1.5rem; margin: 0 .9rem; }
  .marquee b::after { margin-left: 1.8rem; }
  .scard { grid-template-columns: 1fr; gap: .9rem; padding: 1.6rem 1.4rem; position: sticky; top: calc(var(--nav-h) + var(--i) * 10px); }
  .scard__num { font-size: 2rem; }
  .scard__meta { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .bagrid { grid-template-columns: 1fr; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .frow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__bottom { flex-direction: column; }
  .rev { width: 86vw; }
  .vcard { flex-basis: 72vw; }
  .fitem__q { padding: 1.3rem .1rem; }
}
@media (max-width: 380px) {
  .hstat__num { font-size: 1.8rem; }
}

/* ════════ REDUCED MOTION ════════ */
@media (prefers-reduced-motion: reduce) {
  .grain, .cursor, .cursor-ring { display: none !important; }
  .marquee__track, .rev-row { animation: none !important; }
  .rv, .rv-img, .split .w > i { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .loader { display: none !important; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .15s !important; }
}
