/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f4ec;
  --fg: #1e2b26;
  --card: #ffffff;
  --muted: #efeadf;
  --muted-fg: #6b7772;
  --border: #e2dccf;
  --primary: #1f3a2e;         /* deep emerald */
  --primary-fg: #f7f4ec;
  --accent: #4e7a5f;
  --gold: #c8a24a;
  --gold-2: #a8842f;

  --shadow-soft: 0 20px 50px -25px rgba(30, 43, 38, 0.25);
  --shadow-luxe: 0 30px 80px -30px rgba(31, 58, 46, 0.35);

  --gradient-gold: linear-gradient(135deg, #d9b862 0%, #a8842f 100%);
  --gradient-hero: linear-gradient(180deg, rgba(20,30,25,0.15) 0%, rgba(15,25,20,0.78) 100%);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  width: 100%;
  overflow-x: hidden;
}


/* ─── No scroll on mockup's iframe ───────────────────────────────────── */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}



img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section {  
  width: 100%;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.text-accent { color: var(--accent); }
.text-gold {
  background-image: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.2rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.eyebrow--light { color: rgba(255,255,255,0.8); }
.eyebrow--gold { color: var(--gold); }

.h-lg { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-family: var(--font-body);
}
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { opacity: 0.9; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.8rem; }
.btn--block { width: 100%; margin-top: 1.75rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 220, 207, 0.6);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav__brand { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  font-size: 1.25rem; 
  z-index: 60;
}

.nav__logo { 
  height: 3.25rem; 
  width: auto; 
}

/* Десктопное меню */
.nav__links--desktop {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
}

.nav__links--desktop a:hover { 
  color: var(--primary); 
}

/* Мобильное меню (скрыто на десктопе) */
.nav__links--mobile {
  display: none;
}

.nav__burger {
  display: none;
}

.nav__cta { 
  display: inline-flex; 
}

/* ---------- Burger Menu (Mobile) ---------- */
@media (max-width: 767px) {
  .nav__links--desktop {
    display: none !important;
  }
  
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
  }
  
  .nav__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  .nav__burger.active .nav__burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .nav__burger.active .nav__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .nav__burger.active .nav__burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .nav__cta {
    display: none !important;
  }
  
  .nav__mobile-wrapper {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 55;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.4s ease;
  }
  
  .nav__mobile-wrapper.active {
    pointer-events: auto;
    visibility: visible;
  }
  
  .nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .nav__mobile-wrapper.active .nav__overlay {
    opacity: 1;
  }
  
  .nav__links--mobile {
    display: flex !important;
    position: absolute;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border);
  }
  
  .nav__mobile-wrapper.active .nav__links--mobile {
    right: 0;
  }
  
  .nav__links--mobile a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--fg);
    padding: 0.5rem;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
  }
  
  .nav__mobile-wrapper.active .nav__links--mobile a {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(1) { transition-delay: 0.05s; }
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(2) { transition-delay: 0.10s; }
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(3) { transition-delay: 0.15s; }
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(4) { transition-delay: 0.20s; }
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(5) { transition-delay: 0.25s; }
  .nav__mobile-wrapper.active .nav__links--mobile a:nth-child(6) { transition-delay: 0.30s; }
  
  .nav__links--mobile a:hover {
    color: var(--accent);
  }
  
  .nav__links--mobile .nav__mobile-cta {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--primary-fg);
    border-radius: 999px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .nav__links--mobile .nav__mobile-cta:hover {
    opacity: 0.85;
  }
}
/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* По умолчанию центр */
}
/* На мобильных показываем правую часть изображения */
@media (max-width: 767px) {
  .hero__bg {
    object-position: 70% center; /* Смещаем вправо (70% от левого края) */
  }
}

/* Для очень маленьких экранов можно сместить еще больше */
@media (max-width: 480px) {
  .hero__bg {
    object-position: 80% center; /* Еще больше вправо */
  }
}
.hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero__content { position: relative; z-index: 1; padding: 8rem 1.5rem 6rem;  }
.hero__title {
  font-size: 7rem;
  color: #fff;
  line-height: 1.00;
}
.hero__lede {
  margin-top: 2rem;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  max-width: 32rem;
  font-size: 1.05rem;
  margin: 0 auto;
}
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; 
  justify-content: center;}
.transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
}
/* Базовые стили для кнопок в Hero */
.btn-hero {
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-width: 1px;
}

/* Первичная кнопка (залитая) */
.btn-hero--primary {
  background-color: #123825; /* Твой темно-зеленый цвет */
  border-color: #123825;
  color: #ffffff;
}

.btn-hero--primary:hover,
.btn-hero--primary:focus,
.btn-hero--primary:active {
  background-color: #123825 !important;
  border-color: #123825 !important;
  color: #ffffff !important;
  opacity: 0.85;
}

/* Вторичная кнопка (контурная) */
.btn-hero--ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-hero--ghost:hover,
.btn-hero--ghost:focus,
.btn-hero--ghost:active {
  /* 10% прозрачности белого фона */
  background-color: rgba(255, 255, 255, 0.1) !important; 
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  opacity: 0.9;
}
/* ---------- Hero Responsive ---------- */
@media (max-width: 991px) {
  .hero__title {
    font-size: 5rem !important;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 4.5rem !important;
  }
  
  .eyebrow--light {
    font-size: 0.7rem !important;
  }
  
  .hero__lede {
    font-size: 0.95rem !important;
    max-width: 100% !important;
  }
  
  .hero__content {
    padding: 6rem 1rem 4rem !important;
  }
  
  .hero__actions {
    gap: 0.75rem !important;
  }
  
  .hero__actions .btn-hero {
    font-size: 0.85rem !important;
    padding: 0.7rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 3.8rem !important;
    line-height: 1.05 !important;
  }
  
  .hero__actions {
    flex-direction: column !important;
  }
  
  .hero__actions .btn-hero {
    width: 100% !important;
    justify-content: center !important;
  }
}
/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
@media (min-width: 768px) { .section { padding: 10rem 0; } }
.section--muted { background: rgba(239, 234, 223, 0.5); }
.section--dark { background: var(--primary); color: var(--primary-fg); overflow: hidden; }
.section__head { text-align: center; max-width: 36rem; margin: 0 auto 4rem; }
.section__head--left { text-align: left; margin: 0 0 4rem; max-width: 36rem; }
.section__lede { color: var(--muted-fg); margin-top: 1.25rem; }
.section--dark .section__lede { color: rgba(247,244,236,0.7); }

.grid-2 {
  display: grid;
  gap: 4rem;
  align-items: center;
}
.grid-2--top { align-items: start; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.prose p { color: var(--muted-fg); margin: 0 0 1.25rem; }
.prose__p { color: var(--muted-fg); margin: 1.5rem 0 0; max-width: 28rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat__n { font-size: 1.9rem; color: var(--primary); }
.stat__l { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-fg); margin-top: 0.25rem; }

/* ---------- Services ---------- */
/* ---------- Services ---------- */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 122, 95, 0.4);
  box-shadow: var(--shadow-luxe);
}

.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.service-card__duration {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.service-card__name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.service-card:hover .service-card__name {
  color: var(--accent);
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.service-card__variant {
  font-size: 0.75rem;
  background: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card__variant-price {
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card__name {
    font-size: 1.25rem;
  }
  
  .service-card__variants {
    gap: 0.4rem;
  }
  
  .service-card__variant {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .service-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .service-card__price {
    font-size: 1.25rem;
  }
}

/* ---------- Therapists ---------- */
.therapists-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .therapists-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .therapists-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .therapists-grid { grid-template-columns: repeat(5, 1fr); } }

.therapist {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.therapist__imgwrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.therapist__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.therapist:hover .therapist__img { transform: scale(1.05); }
.therapist__bio {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(31,58,46,0.92), rgba(31,58,46,0.15) 60%, transparent);
  color: var(--primary-fg);
  opacity: 0;
  transition: opacity 0.5s ease;
  font-size: 0.9rem;
  line-height: 1.5;
}@media (max-width: 480px) {
  .therapist__bio {
    font-size: 0.7rem;
  }
}
.therapist:hover .therapist__bio { opacity: 1; }
.therapist__foot { padding: 1.25rem; text-align: center; }
.therapist__name { font-size: 1.5rem; }
.therapist__role {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-top: 0.25rem;
}
/* Центрирование карточек терапевтов */
#therapists-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#therapists-grid > div {
  flex: 0 0 calc(50% - 0.5rem);
  max-width: 280px;
}

@media (min-width: 640px) {
  #therapists-grid > div {
    flex: 0 0 calc(33.333% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  #therapists-grid > div {
    flex: 0 0 calc(20% - 0.8rem);
  }
}

@media (max-width: 480px) {
  #therapists-grid > div {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
/* ---------- Testimonials ---------- */
.testimonials-swiper { padding-bottom: 4rem !important; }
.quote {
  background: rgba(247,244,236,0.05);
  border: 1px solid rgba(247,244,236,0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  height: 100%;
  backdrop-filter: blur(4px);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.quote__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(247,244,236,0.95);
  margin: 0;
}
.quote__foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247,244,236,0.1);
}
.quote__name { font-weight: 500; }
.quote__loc { font-size: 0.85rem; color: rgba(247,244,236,0.6); }

.swiper-pagination-bullet {
  background: var(--gold) !important;
  opacity: 0.4 !important;
  width: 10px !important;
  height: 10px !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 32px !important;
  border-radius: 5px !important;
  transition: all 0.3s ease;
}

/* ---------- Contact ---------- */
.section--contact {
  padding: 5rem 0;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.contact-info-card .prose__p {
  color: var(--muted-fg);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.contact-list { 
  margin: 0; 
  padding: 0; 
}

.contact-list > div {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-list > div:last-child {
  border-bottom: none;
}

.contact-list dt {
  width: 7rem; 
  flex-shrink: 0;
  font-size: 0.7rem; 
  letter-spacing: 0.2em; 
  text-transform: uppercase;
  color: var(--muted-fg); 
  padding-top: 0.35rem;
}

.contact-list dd { 
  margin: 0; 
  font-size: 1rem;
  font-weight: 500;
}
/* -Contact Booking Button -*/
.contact__booking-btn {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact__booking-btn .btn {
  padding: 0.75rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.contact__booking-btn .btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 767px) {
  .contact__booking-btn .btn {
    width: 100%;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}
/* Карта */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-luxe);
  border: 1px solid var(--border);
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Удаляем старые стили для формы */
.card,
.card__title,
.reserve-form,
.reserve-form label,
.reserve-form input,
.reserve-form select,
.reserve-form input:focus,
.reserve-form select:focus {
  /* Эти стили больше не используются */
}

/* Адаптив */
@media (max-width: 991px) {
  .map-wrapper {
    min-height: 350px;
  }
}

@media (max-width: 767px) {
  .section--contact {
    padding: 3rem 0;
  }
  
  .contact-info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-info-card .prose__p {
    font-size: 0.9rem;
  }
  
  .contact-list > div {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0.75rem;
  }
  
  .contact-list dt {
    width: auto;
    padding-top: 0;
    font-size: 0.6rem;
  }
  
  .contact-list dd {
    font-size: 0.95rem;
  }
  
  .map-wrapper {
    min-height: 300px;
    border-radius: 0.75rem;
  }
}

@media (max-width: 480px) {
  .map-wrapper {
    min-height: 250px;
  }
}
/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer__inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--muted-fg);
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; } }
.footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.footer__brand img { height: 3.5rem; width: auto; }
.footer__brand span { color: var(--fg); font-size: 1rem; }


/* ---------- Booking Modal ---------- */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* dynamic viewport height */
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-modal.active {
  display: flex;
  opacity: 1;
}

.booking-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.booking-modal__container {
  position: relative;
  width: 90%;
  max-width: 480px;
  height: 85vh;
  max-height: 700px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.booking-modal.active .booking-modal__container {
  transform: scale(1) translateY(0);
}

.booking-modal__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  min-height: 56px;
  z-index: 2;
  /* Учет безопасной зоны */
  padding-top: env(safe-area-inset-top, 12px);
}

.booking-modal__close {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg, #1e2b26);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.booking-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.booking-modal__close svg {
  width: 20px;
  height: 20px;
}

.booking-modal__close-text {
  display: none;
}

.booking-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
  min-height: 0;
}

/* Спиннер загрузки */
.booking-modal__body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--accent, #4e7a5f);
  border-radius: 50%;
  animation: booking-spinner 0.8s linear infinite;
  z-index: 0;
}

@keyframes booking-spinner {
  to { transform: rotate(360deg); }
}

.booking-modal__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* Скрываем спиннер после загрузки iframe */
.booking-modal__iframe.loading {
  opacity: 0;
}

.booking-modal__iframe.loaded {
  opacity: 1;
}

.booking-modal__iframe.loaded ~ .booking-modal__body::before {
  display: none;
}

/* Десктопная версия */
@media (min-width: 768px) {
  .booking-modal__container {
    width: 90%;
    max-width: 480px;
    height: 85vh;
    max-height: 700px;
  }
  
  .booking-modal__close-text {
    display: inline;
  }
  
  .booking-modal__header {
    padding: 14px 20px;
    min-height: 60px;
  }
}

/* Мобильная версия — во весь экран */
@media (max-width: 767px) {
  .booking-modal {
    height: 100dvh; /* dynamic viewport height */
  }
  
  .booking-modal__container {
    width: 100%;
    max-width: 100%;
    height: 100dvh; /* dynamic viewport height */
    max-height: 100dvh;
    border-radius: 0;
    transform: scale(1) translateY(0);
  }
  
  .booking-modal__header {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    min-height: 52px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
  }
  
  .booking-modal__close-text {
    display: inline;
  }
  
  .booking-modal__body {
    min-height: 0;
    flex: 1;
    height: calc(100dvh - 52px); /* вычитаем высоту хедера */
  }
  
  .booking-modal__close svg {
    width: 22px;
    height: 22px;
  }
  
  .booking-modal__close {
    padding: 8px 12px;
  }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
  .booking-modal__container {
    max-width: 420px;
    height: 80vh;
    max-height: 600px;
  }
}

/* Дополнительно: для браузеров, которые не поддерживают dvh */
@supports not (height: 100dvh) {
  .booking-modal {
    height: 100vh;
  }
  .booking-modal__container {
    height: 100vh;
  }
  .booking-modal__body {
    height: calc(100vh - 52px);
  }
}