:root {
  --brown: #4a2c1a;
  --brown-dark: #2f1b10;
  --gold: #c8892b;
  --gold-light: #e9b25a;
  --cream: #fbf6ee;
  --cream-dark: #f3e8d6;
  --green: #3f6b3a;
  --text: #2b211a;
  --muted: #6b5d52;
  --wa: #25d366;
  --tg: #229ed9;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(74, 44, 26, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; color: var(--brown); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 32px; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: #b37820; }
.btn--ghost { border: 2px solid #fff; color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.btn--light { background: #fff; color: var(--brown); }
.btn--outline { border: 2px solid var(--brown); color: var(--brown); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 700; color: var(--brown); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo__drop { width: 18px; height: 24px; fill: var(--gold); flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name span { color: var(--gold); }
.logo small {
  margin-top: 3px; font-family: "Montserrat", Arial, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.logo--light small { color: rgba(255, 255, 255, .7); }
.logo--light { color: #fff; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--gold); }
.header__phone { font-weight: 700; text-decoration: none; color: var(--brown); white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--brown); border-radius: 2px; }

/* Первый экран */
.hero {
  color: #fff;
  background: radial-gradient(circle at 80% 30%, #6b3f1f, var(--brown-dark) 70%);
  padding: 72px 0;
}
.hero__inner { max-width: 1140px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 72%;
  border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hero__eyebrow { color: var(--gold-light); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); max-width: 820px; }
.hero__slogan { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(22px, 3vw, 28px); color: var(--gold-light); margin: -4px 0 16px; }
.hero__lead { font-size: 20px; max-width: 680px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 20px; }
.hero__ig {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 40px;
  color: rgba(255, 255, 255, .9); text-decoration: none; font-size: 16px;
}
.hero__ig strong { color: var(--gold-light); font-weight: 600; }
.hero__ig:hover strong { text-decoration: underline; }
.hero__ig svg, .header__ig svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.hero__ig svg .dot, .header__ig svg .dot { fill: currentColor; stroke: none; }
.header__ig { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--brown); }
.header__ig:hover { color: #dc2743; background: var(--cream-dark); }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.hero__facts li { font-size: 15px; opacity: .9; max-width: 200px; }
.hero__facts strong { display: block; font-size: 22px; color: var(--gold-light); }

/* Секции */
.section { padding: 80px 0; }
.section--alt { background: var(--cream-dark); }
.section__lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 40px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.card__icon { font-size: 34px; margin-bottom: 12px; }
.card--accent { border-top: 4px solid var(--gold); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; align-items: start; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.media-caption { margin: 10px 0 0; font-size: 15px; color: var(--muted); text-align: center; }

/* Клиника */
.clinic { background: #fff; }
.clinic__feature, .gallery__item {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.clinic__feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.gallery__item { position: relative; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 14px; text-align: left;
}
.apartments { margin-top: 56px; }
.apartments__title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(24px, 3vw, 30px); color: var(--brown); }
.apartments > p { max-width: 760px; color: var(--muted); }
.gallery--apartments { margin-top: 20px; }
.clinic__feature:hover img, .gallery__item:hover img { transform: scale(1.04); }
.clinic__feature:focus-visible, .gallery__item:focus-visible { outline: 3px solid var(--gold); }

/* Просмотр фото */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(20, 12, 6, .94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100% - 140px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 8px; }
.lightbox figcaption { font-size: 16px; opacity: .9; text-align: center; }
.lightbox__close, .lightbox__arrow {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14); border-radius: 50%;
}
.lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; font-size: 32px; line-height: 1; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 36px; line-height: 1; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255, 255, 255, .28); }
.clinic__eyebrow { margin: 0 0 6px; color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.clinic__name { margin: -4px 0 16px; font-weight: 600; color: var(--brown); }
.clinic .checklist { margin-top: 16px; }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 14px; }
.steps li::marker { color: var(--gold); font-weight: 700; }

/* Процедуры */
.procs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.proc {
  display: flex; flex-direction: column;
  padding: 0; border: 0; text-align: left; font: inherit; color: inherit;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.proc:hover, .proc:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(74, 44, 26, .18); }
.proc:focus-visible { outline: 3px solid var(--gold); }
.proc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.proc:hover img { transform: scale(1.05); }
.proc__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.proc__name { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; color: var(--brown); }
.proc__short { color: var(--muted); font-size: 16px; flex: 1; }
.proc__more { margin-top: 10px; color: var(--gold); font-weight: 600; font-size: 15px; }

/* Окно процедуры */
.modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--cream); color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(30, 18, 10, .7); }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--brown);
  font-size: 30px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.modal__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal__body { padding: 28px 32px 32px; }
.modal__subtitle { margin: 0; color: var(--gold); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.modal__title { font-family: "Playfair Display", serif; font-size: 32px; color: var(--brown); margin: 4px 0 12px; }
.modal h4 { margin: 20px 0 6px; font-size: 18px; color: var(--brown); }
.modal p { margin: 0; }
.modal ul { margin: 0; padding-left: 22px; }
.modal ul li::marker { color: var(--gold); }
.modal__duration { margin-top: 20px !important; padding: 12px 16px; background: var(--cream-dark); border-radius: 10px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.modal__nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--cream-dark); }
.modal__nav button { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 0; }
.modal__nav button:hover { color: var(--gold); }

/* Таймлайн */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li {
  display: flex; gap: 24px;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--gold);
  position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 26px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold);
}
.timeline__time { font-weight: 700; color: var(--gold); min-width: 56px; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline__evening { background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }

/* Вечера */
.evening { background: linear-gradient(180deg, #2f1b10, #5a3418 60%, #c8892b); color: #fff; }
.evening h2 { color: #fff; }
.evening .section__lead { color: rgba(255, 255, 255, .85); }
.tile { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__body { padding: 20px; }
.tile p { margin: 0; opacity: .85; font-size: 16px; }
.evening__pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.evening__wide { position: relative; border-radius: var(--radius); overflow: hidden; }
.evening__wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.evening__wide p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 24px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  font-family: "Playfair Display", serif; font-size: 22px;
}

/* Что входит */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(74, 44, 26, .12); position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 15px;
  display: grid; place-items: center;
}
.durations__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.duration { background: #fff; border-radius: var(--radius); padding: 20px 12px; text-align: center; box-shadow: var(--shadow); }
.duration strong { display: block; font-family: "Playfair Display", serif; font-size: 40px; color: var(--brown); line-height: 1; }
.duration span { color: var(--muted); font-size: 15px; }
.duration p { font-size: 14px; margin: 8px 0 0; color: var(--muted); }
.duration--popular { outline: 3px solid var(--gold); }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Отзывы */
.review { margin: 0; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review p { margin: 0 0 16px; font-style: italic; }
.review cite { font-style: normal; font-weight: 600; color: var(--gold); }

/* FAQ */
.faq details { background: #fff; border-radius: 12px; margin-bottom: 12px; padding: 0 24px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 20px 32px 20px 0;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { background: var(--brown); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { font-size: 19px; opacity: .9; max-width: 640px; margin: 0 auto 32px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta__phone { display: inline-block; margin-top: 28px; font-size: 26px; font-weight: 700; color: var(--gold-light); text-decoration: none; }

/* Блок «бесплатная консультация» внутри разделов */
.consult {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 40px; padding: 24px 28px;
  background: var(--cream-dark); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.consult__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; }
.consult__text strong { font-family: "Playfair Display", Georgia, serif; font-size: 22px; color: var(--brown); }
.consult__text span { color: var(--muted); }
.consult__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Как проходит поездка */
.journey { background: #fff; }
.journey__steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.journey__steps li { counter-increment: step; position: relative; padding-top: 64px; }
.journey__steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #fff; font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700;
}
.journey__steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -8px; height: 2px; background: var(--cream-dark);
}
.journey__steps h3 { margin-bottom: 6px; }
.journey__steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Панель связи на телефоне */
.mobile-bar { display: none; }

/* Подвал */
.footer { background: var(--brown-dark); color: rgba(255, 255, 255, .8); padding: 40px 0 24px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer a { color: #fff; }
.footer__note { font-size: 13px; opacity: .6; margin-top: 24px; }

/* Плавающая кнопка */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Адаптив */
/* Меню в одну строку помещается от ~1100px, уже — бургер */
@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-dark);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; border-top: 1px solid var(--cream-dark); }
  .header__phone { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .journey__steps { grid-template-columns: 1fr; gap: 0; }
  .journey__steps li { padding: 0 0 28px 68px; min-height: 48px; }
  .journey__steps li:not(:last-child)::after { top: 52px; bottom: 4px; left: 23px; right: auto; width: 2px; height: auto; }

  /* Панель «Позвонить | WhatsApp» вместо круглой кнопки */
  .float-wa { display: none; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 238, .97); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; border-radius: 14px; font-weight: 700; font-size: 18px; text-decoration: none; color: #fff;
  }
  .mobile-bar__call { background: var(--gold); }
  .mobile-bar__call svg { width: 22px; height: 22px; fill: currentColor; }
  .mobile-bar__wa { background: var(--wa); }

  /* На телефоне фото становится фоном первого экрана */
  .hero {
    background:
      linear-gradient(180deg, rgba(47, 27, 16, .82), rgba(47, 27, 16, .6) 50%, rgba(47, 27, 16, .88)),
      url("images/hero-shirodhara.jpg") center 70% / cover;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .grid--3, .split, .split--even { grid-template-columns: 1fr; }
  .split { gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .section, .cta { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .header__phone { display: none; }
  .header__ig { margin-left: auto; }
  .grid--4, .durations__list { grid-template-columns: 1fr; }
  .timeline li { flex-direction: column; gap: 4px; }
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .modal__body { padding: 24px 16px 28px; }
  .modal__title { font-size: 26px; }
  .modal__actions .btn { width: 100%; }
  .consult { padding: 20px 16px; }
  .consult__actions, .consult__actions .btn { width: 100%; }
  .evening__pair { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox figure { max-width: 100%; padding: 0 8px; }
  .lightbox__arrow { top: auto; bottom: 16px; transform: none; }
}
