/* ==========================================================================
   LeArt Stomatology — Premium Minimal Design System
   ========================================================================== */

:root {
  /* Colors */
  --c-white:       #ffffff;
  --c-bg-soft:      #f7f5f1;
  --c-bg-soft-2:    #efece5;
  --c-ink:          #1b1a17;
  --c-ink-soft:     #6b6660;
  --c-ink-faint:    #9a958c;
  --c-gold:         #a6813c;
  --c-gold-light:   #c9a968;
  --c-gold-pale:    #ecdfc2;
  --c-dark:         #14130f;
  --c-dark-2:       #201e18;
  --c-line:         #e6e1d6;
  --c-line-dark:    rgba(255,255,255,0.12);

  /* Type */
  --f-display: 'Cormorant Garamond', serif;
  --f-body: 'Manrope', sans-serif;

  /* Layout */
  --container-w: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-s: .35s;
  --dur-m: .6s;
  --dur-l: 1s;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-gold);
  display: inline-block;
}
.eyebrow--light { color: var(--c-gold-light); }

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--c-ink);
}
.section-title--light { color: var(--c-white); }
.section-title em { font-style: italic; color: var(--c-gold); font-weight: 500; }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--c-gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(-1px) scale(.97); transition-duration: .15s; }

.btn--gold {
  background: var(--c-gold);
  color: var(--c-white);
}
.btn--gold:hover {
  background: var(--c-gold-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px -8px rgba(166,129,60,.5);
}
.btn--gold:active { background: var(--c-gold); }

.btn--outline-light {
  border: 1px solid rgba(255,255,255,.5);
  color: var(--c-white);
  background: transparent;
}
.btn--outline-light:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px) scale(1.03);
}

.btn--sm { padding: 10px 22px; font-size: 12px; }

.section-cta { text-align: center; padding: 0 32px; margin-top: 56px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--c-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s cubic-bezier(.4,0,.2,1), visibility .4s cubic-bezier(.4,0,.2,1);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: 132px;
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: preloaderLogo 700ms cubic-bezier(.4,0,.2,1) forwards;
  will-change: opacity, transform;
}
@keyframes preloaderLogo {
  0%   { opacity: 0; transform: scale(0.92); }
  55%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo { animation: none; opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .preloader__logo { width: 104px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), padding var(--dur-s) var(--ease);
  padding: 22px 0;
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}

.header__logo { display: inline-flex; align-items: center; height: 128px; flex-shrink: 0; justify-self: start; }
.header__logo-img {
  height: 128px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--dur-s) ease, filter var(--dur-s) ease;
  filter: saturate(1.45) contrast(1.12) brightness(1.02)
          drop-shadow(0 2px 10px rgba(0,0,0,.5))
          drop-shadow(0 0 14px rgba(0,0,0,.28))
          drop-shadow(0 0 10px rgba(230,196,130,.22));
}
.header__logo-img--dark {
  display: none;
  filter: saturate(1.15) contrast(1.05) drop-shadow(0 2px 8px rgba(0,0,0,.1));
}

.nav { justify-self: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__list a {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--dur-s) ease;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width var(--dur-s) var(--ease);
}
.nav__list a:hover { color: var(--c-gold-light); }
.nav__list a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; flex-shrink: 0; justify-self: end; }

.header__cta { padding: 13px 26px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  transition: all var(--dur-s) var(--ease);
}

/* Scrolled state */
.header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px -12px rgba(0,0,0,.12);
  padding: 14px 0;
}
.header.is-scrolled .header__logo-img--light { display: none; }
.header.is-scrolled .header__logo-img--dark { display: block; }
.header.is-scrolled .nav__list a { color: var(--c-ink); }
.header.is-scrolled .nav__list a:hover { color: var(--c-gold); }
.header.is-scrolled .burger span { background: var(--c-ink); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 86vw);
  height: 100vh;
  background: var(--c-dark);
  z-index: 600;
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 22px; }
.mobile-nav a { color: var(--c-white); font-size: 19px; font-family: var(--f-display); }
.mobile-nav .btn { width: 100%; white-space: normal; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: kenburns 6s ease-out forwards;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,.55) 0%, rgba(20,19,15,.35) 40%, rgba(20,19,15,.85) 100%);
  z-index: 2;
  transition: background 1.6s ease;
}
.hero.hero--slide-bright .hero__overlay {
  background: linear-gradient(180deg, rgba(20,19,15,.28) 0%, rgba(20,19,15,.16) 40%, rgba(20,19,15,.8) 100%);
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: 120px;
  max-width: 780px;
}
.hero__content .eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero__content .eyebrow::before { display: none; }
.hero__title {
  font-family: var(--f-display);
  color: var(--c-white);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--c-gold-light); }
.hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 20px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.hero__trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-gold-light);
  box-shadow: 0 0 6px rgba(201,169,104,.7);
  flex-shrink: 0;
}
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero__actions .btn { padding: 18px 40px; font-size: 14px; letter-spacing: .06em; }
.hero__actions .btn--gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px -10px rgba(166,129,60,.55); }
.hero__actions .btn--outline-light:hover { transform: translateY(-3px) scale(1.03); background: rgba(255,255,255,.12); }

.hero__dots {
  position: absolute;
  right: 32px;
  bottom: 130px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: transparent;
  transition: all var(--dur-s) ease;
}
.hero__dot.is-active { background: var(--c-gold-light); border-color: var(--c-gold-light); transform: scale(1.3); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 4;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--c-gold-light);
  border-radius: 50%;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 140px 0; background: var(--c-white); }
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.about__img { border-radius: var(--radius-m); object-fit: cover; width: 100%; height: 520px; }

.about__lead { font-size: 19px; color: var(--c-ink); margin-bottom: 22px; line-height: 1.7; }
.about__text p:not(.about__lead) { color: var(--c-ink-soft); margin-bottom: 22px; line-height: 1.7; }
.about__text p:last-of-type { margin-bottom: 0; }
.about__text .section-title { margin-bottom: 26px; }

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--c-line);
}
.about__stat { display: flex; flex-direction: column; }
.about__stat-num {
  font-family: var(--f-display);
  font-size: 40px;
  color: var(--c-gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}
.about__stat-label { font-size: 13px; color: var(--c-ink-soft); max-width: 130px; }

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantages { padding: 120px 0; background: var(--c-bg-soft); }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.advantage-card {
  background: var(--c-bg-soft);
  padding: 48px 40px;
  transition: background var(--dur-s) ease, transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
  position: relative;
  z-index: 1;
}
.advantage-card:hover {
  background: var(--c-white);
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 46px -24px rgba(27,26,23,.2), 0 0 0 1px rgba(166,129,60,.1);
}
.advantage-card__icon {
  width: 48px; height: 48px;
  color: var(--c-gold);
  margin-bottom: 24px;
}
.advantage-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.advantage-card p { color: var(--c-ink-soft); font-size: 15px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 140px 0; background: var(--c-white); overflow: hidden; }

.services__slider { position: relative; max-width: var(--container-w); margin: 0 auto; padding: 0 32px; }

.services__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 14px;
}
.services__track::-webkit-scrollbar { display: none; }

.services__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  display: flex;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 36px 30px;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.service-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 28px 52px -22px rgba(27,26,23,.2), 0 0 0 1px rgba(166,129,60,.14);
  border-color: transparent;
}
.service-card__icon { width: 38px; height: 38px; color: var(--c-gold); margin-bottom: 22px; }
.service-card h3 {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.25;
  color: var(--c-ink);
}
.service-card__prices {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card__prices li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 14.5px;
  line-height: 1.5;
}
.service-card__prices li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.service-card__name { color: var(--c-ink); font-weight: 500; }
.service-card__value {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--c-gold);
  white-space: nowrap;
}

.services__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 12px 28px -14px rgba(27,26,23,.18);
  transition: all var(--dur-s) ease;
}
.services__arrow:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.services__arrow--prev { left: -8px; }
.services__arrow--next { right: -8px; }

.services__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.services__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
  background: transparent;
  transition: all var(--dur-s) ease;
  padding: 0;
}
.services__dot.is-active { background: var(--c-gold); transform: scale(1.3); }

/* ==========================================================================
   Doctors
   ========================================================================== */
.doctors { padding: 60px 0 140px; background: var(--c-white); }

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: 0 20px 50px -32px rgba(27,26,23,.18);
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.doctor-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 32px 60px -26px rgba(27,26,23,.24), 0 0 0 1px rgba(166,129,60,.14);
}

.doctor-card__photo { aspect-ratio: 4/5; overflow: hidden; }
.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.doctor-card:hover .doctor-card__photo img { transform: scale(1.04); }

.doctor-card__info { padding: 28px 30px 32px; text-align: center; }
.doctor-card__name {
  font-family: var(--f-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: 8px;
}
.doctor-card__role {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-soft);
  letter-spacing: .01em;
  line-height: 1.5;
}

/* ==========================================================================
   Promo
   ========================================================================== */
.promo { padding: 120px 0; background: var(--c-dark); overflow: hidden; }
.promo .section-head { margin-bottom: 60px; }
.promo__slider { position: relative; }
.promo__track {
  display: flex;
  gap: 24px;
  padding: 0 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promo__track::-webkit-scrollbar { display: none; }
.promo__slide {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}
.promo__card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,.55);
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.promo__card:hover,
.promo__card:focus-visible {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 32px 64px -22px rgba(0,0,0,.65), 0 0 0 1px rgba(201,169,104,.2);
}
.promo__card-photo { position: absolute; inset: 0; }
.promo__card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter var(--dur-m) ease;
}
.promo__card:hover .promo__card-photo img,
.promo__card:focus-visible .promo__card-photo img {
  transform: scale(1.06);
  filter: brightness(.7);
}
.promo__card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,0) 32%, rgba(20,19,15,.6) 65%, rgba(20,19,15,.94) 100%);
}
.promo__card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.promo__card-eyebrow {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 8px;
}
.promo__card-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 10px;
}
.promo__card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 18px;
}
.promo__card-btn {
  padding: 10px 22px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.promo__card:hover .promo__card-btn,
.promo__card:focus-visible .promo__card-btn {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .promo__card-btn { opacity: 1; transform: none; }
}

.promo__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-s) ease;
  z-index: 5;
}
.promo__arrow:hover { background: var(--c-gold); border-color: var(--c-gold); }
.promo__arrow--prev { left: 20px; }
.promo__arrow--next { right: 20px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 140px 0; background: var(--c-bg-soft); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: row dense;
  gap: 20px;
}
.gallery__item {
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
  opacity: 0;
  transition: opacity var(--dur-s) ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* ==========================================================================
   Reviews (carousel)
   ========================================================================== */
.reviews { padding: 140px 0; background: var(--c-bg-soft); overflow: hidden; }

.reviews__slider { position: relative; max-width: var(--container-w); margin: 0 auto; padding: 0 32px; }

.reviews__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 14px;
}
.reviews__track::-webkit-scrollbar { display: none; }

.reviews__slide {
  flex: 0 0 calc(50% - 14px);
  scroll-snap-align: start;
  display: flex;
}

.review-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: 44px 44px 38px;
  border: 1px solid var(--c-line);
  position: relative;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 32px;
  font-family: var(--f-display);
  font-size: 100px;
  line-height: 1;
  color: var(--c-gold-pale);
  font-weight: 600;
  pointer-events: none;
  z-index: 0;
  transition: color var(--dur-s) ease;
}
.review-card:hover {
  transform: translateY(-7px) scale(1.02);
  border-color: var(--c-gold-light);
  box-shadow:
    0 28px 52px -26px rgba(27,26,23,.2),
    0 0 0 1px rgba(166,129,60,.14),
    0 0 30px -14px rgba(201,169,104,.4);
}
.review-card:hover::before { color: var(--c-gold-pale); }

.review-card__stars {
  color: var(--c-gold);
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.review-card__text {
  font-size: 15.5px;
  color: var(--c-ink);
  line-height: 1.75;
  margin: 0 0 26px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.review-card__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--c-ink);
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 12px 28px -14px rgba(27,26,23,.18);
  transition: all var(--dur-s) ease;
}
.reviews__arrow:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.reviews__arrow--prev { left: -8px; }
.reviews__arrow--next { right: -8px; }

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.reviews__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
  background: transparent;
  transition: all var(--dur-s) ease;
  padding: 0;
}
.reviews__dot.is-active { background: var(--c-gold); transform: scale(1.3); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 140px 0; background: var(--c-white); }

.faq__list {
  max-width: 820px;
  margin: 64px auto 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-white);
}
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item:last-child { border-bottom: none; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 26px 30px;
  font-family: var(--f-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--c-ink);
  transition: color .28s ease, background .28s ease;
}
.faq__question:hover { color: var(--c-gold); background: var(--c-bg-soft); }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--c-gold);
  transform: translate(-50%, -50%);
  transition: transform .28s ease;
}
.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq__item.is-open .faq__icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }
.faq__answer-inner p {
  padding: 0 30px 26px;
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
}
.faq__answer-inner p.faq__note {
  padding-top: 0;
  padding-bottom: 26px;
  margin-top: -14px;
  font-size: 13px;
  color: var(--c-ink-faint);
}
.faq__answer-inner p:last-child { padding-bottom: 26px; }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts { padding: 120px 0; background: var(--c-dark); color: var(--c-white); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.contacts__info { display: flex; flex-direction: column; }
.contacts__lead { color: rgba(255,255,255,.65); font-size: 16px; margin-bottom: 36px; max-width: 440px; }
.contacts__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contacts__list li { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.85); font-size: 15px; }
.contacts__list svg { color: var(--c-gold); flex-shrink: 0; }
.contacts__list a:hover { color: var(--c-gold-light); }

.contacts__list-sub { display: inline-block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 13px; }
.contacts__map { border-radius: var(--radius-l); overflow: hidden; height: 100%; min-height: 360px; filter: grayscale(.25) contrast(1.05); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; }

.contact-form { margin-top: 0; max-width: 480px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form__row { margin-bottom: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 14px;
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--c-gold); background: rgba(255,255,255,.08); }
.contact-form textarea { resize: vertical; min-height: 84px; font-family: var(--f-body); }
.contact-form__submit { width: 100%; justify-content: center; margin-top: 2px; }

.contact-form__success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  max-width: 440px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: rgba(166,129,60,.12);
  border: 1px solid rgba(166,129,60,.35);
  color: var(--c-gold-light);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.contact-form__success.is-visible { display: flex; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--c-dark-2); color: rgba(255,255,255,.7); padding: 80px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--c-line-dark);
}
.footer__logo { height: 44px; width: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,.5); }
.footer__col h4 {
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li { font-size: 14px; }
.footer__col a:hover { color: var(--c-gold-light); }
.footer__bottom {
  padding: 26px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,8,.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-s) ease, visibility var(--dur-s) ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-s);
  transform: scale(.95);
  transition: transform var(--dur-m) var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-s) ease;
}
.lightbox__close:hover { background: var(--c-gold); border-color: var(--c-gold); }

/* ==========================================================================
   Scroll top
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur-s) var(--ease);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.35);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--c-gold-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services__slide { flex: 0 0 calc((100% - 24px) / 2); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__images { order: -1; }
  .contacts__grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews__arrow--prev { left: 6px; }
  .reviews__arrow--next { right: 6px; }
  .services__arrow--prev { left: 6px; }
  .services__arrow--next { right: 6px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__cta { display: none; }
  .header__actions { gap: 16px; }
  .header__logo,
  .header__logo-img { height: 88px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header { padding: 16px 0; }
  .header__logo,
  .header__logo-img { height: 64px; }
  .hero__content { padding-bottom: 80px; }
  .hero__dots { right: 16px; bottom: 100px; }
  .about, .advantages, .services, .doctors, .promo, .gallery, .reviews, .faq, .contacts { padding: 80px 0; }
  .about__images { grid-template-columns: 1fr; }
  .about__img { height: 280px; }
  .about__stats { flex-direction: column; gap: 20px; }
  .advantages__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer__col ul { align-items: center; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .promo__slide { width: 240px; }
  .doctors__grid { grid-template-columns: 1fr; max-width: 340px; gap: 28px; }
  .contacts__map { height: 320px; }
  .reviews__slide { flex: 0 0 100%; }
  .reviews__slider { padding: 0 8px; }
  .review-card { padding: 34px 28px 28px; min-height: 260px; }
  .review-card::before { font-size: 68px; right: 22px; top: 6px; }
  .reviews__arrow { width: 44px; height: 44px; }
  .reviews__arrow--prev { left: -2px; }
  .reviews__arrow--next { right: -2px; }
  .services__slide { flex: 0 0 100%; }
  .services__slider { padding: 0 8px; }
  .service-card { padding: 30px 24px; }
  .services__arrow { width: 44px; height: 44px; }
  .services__arrow--prev { left: -2px; }
  .services__arrow--next { right: -2px; }
  .faq__list { margin-top: 40px; }
  .faq__question { padding: 20px 20px; font-size: 15.5px; gap: 14px; }
  .faq__answer-inner p { padding: 0 20px 22px; font-size: 14px; }
  .faq__answer-inner p.faq__note { padding-bottom: 22px; }
  .section-cta { margin-top: 40px; padding: 0 20px; }
  .section-cta .btn { width: 100%; }
}

/* ==========================================================================
   Custom cursor ring (desktop only, premium micro-interaction)
   ========================================================================== */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%) scale(.6);
  border: 1px solid rgba(201,169,104,.9);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity .25s ease, transform .25s var(--ease), box-shadow .25s ease;
  will-change: transform, opacity;
}
.cursor-ring.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 14px rgba(201,169,104,.32);
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring { display: none !important; }
}
