/* =========================================
   DB Hounds Grooming & Spa - Premium Styles
   ========================================= */

/* CSS Custom Properties */
:root {
  /* Brand Core Colors */
  --db-hounds-gold: #c39a6b;
  --db-hounds-beige: #e1d3b7;
  --db-hounds-black: #1a1a1a;
  --db-hounds-dark-tan: #8b6b4e;

  /* UI/Functional Colors */
  --bg-primary: var(--db-hounds-black);
  --bg-secondary: #252525;
  --text-primary: var(--db-hounds-beige);
  --text-secondary: var(--db-hounds-gold);
  --accent-primary: var(--db-hounds-gold);
  --accent-secondary: var(--db-hounds-dark-tan);
  --border-color: #3d3d3d;

  /* Buttons & Links */
  --link-color: var(--db-hounds-gold);
  --link-hover-color: var(--db-hounds-beige);
  --btn-primary-bg: var(--db-hounds-gold);
  --btn-primary-text: var(--db-hounds-black);
  --btn-secondary-bg: var(--db-hounds-dark-tan);
  --btn-secondary-text: var(--db-hounds-beige);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}


/* ─── No scroll ───────────────────────────────────── */
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;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--link-hover-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Section Padding */
.section-padding {
  padding: 100px 0;
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 15px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 36px;
  }
}

/* =========================================
   Navigation
   ========================================= */
#mainNav {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all var(--transition-medium);
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-logo {
  height: 50px;
  width: auto;
  transition: transform var(--transition-fast);
  border-radius: 50%;
  border: 2px solid var(--db-hounds-gold);
  transform: scale(1.3);
}

.nav-logo:hover {
  transform: scale(1.35);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler i {
  font-size: 28px;
  color: var(--accent-primary);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 10px 20px;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-primary);
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--db-hounds-gold)!important;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid var(--btn-primary-bg);
  border-radius: 0;
  transition: all var(--transition-fast);
}

.btn-book:hover {
  background: transparent;
  color: var(--btn-primary-bg);
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding-top: 20px;
    text-align: center;
  }

  .btn-book {
    margin-top: 15px;
    width: 100%;
  }
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('https://dbhounds.erphy.me/resources/img/slide_1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.85) 40%,
    rgba(26, 26, 26, 0.4) 70%,
    rgba(26, 26, 26, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-overtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
  position: relative;
  padding-left: 50px;
}

.hero-overtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 35px;
  height: 1px;
  background: var(--accent-primary);
  transform: translateY(-50%);
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid var(--btn-primary-bg);
  border-radius: 0;
  transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--btn-primary-bg);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-bg);
  border-radius: 0;
  transition: all var(--transition-fast);
}

.btn-secondary-custom:hover {
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
}

.btn-secondary-custom i {
  font-size: 20px;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 768px) {
  .hero-section {
    /* min-height: unset; */
    /* max-height: 80vh; */
  }
  .hero-section .container.hero-content .row.align-items-center.min-vh-100  {
    min-height: 90vh!important;
  } 
}

/* =========================================
   About Section
   ========================================= */
.about-section {
  background: var(--bg-primary);
  overflow: hidden;
}

.about-image-wrapper {
  position: relative;
  height: 500px;
}

.about-accent-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.about-accent-circle {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.about-content {
  padding-left: 30px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-cta {
  font-weight: 500;
  color: var(--accent-primary);
}

.about-signature {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--accent-primary);
  margin-top: 25px;
}

.paw-icon {
  display: inline-block;
  margin: 0 2px;
}

.bubble-icon {
  display: inline-block;
  margin: 0 2px;
}

@media (max-width: 991px) {
  .about-image-wrapper {
    height: 300px;
    margin-bottom: 40px;
  }

  .about-content {
    padding-left: 0;
  }
}

/* ==========================================================================
  Visit (business) card section
   ========================================================================== */

/* Обертка и рамка */
.about-image-wrap {
  padding: 1.25rem;
  position: relative;
}

.about-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 3rem 2.5rem;
  position: relative;
}

/* Декоративные уголки для рамки */
.about-frame:before,
.about-frame:after {
  content: "";
  border: 1px solid var(--accent-primary);
  width: 60px;
  height: 60px;
  position: absolute;
  transition: border-color var(--transition-medium); /* На случай, если будет ховер */
}

.about-frame:before {
  border-bottom: none;
  border-right: none;
  top: -12px;
  left: -12px;
}

.about-frame:after {
  border-top: none;
  border-left: none;
  bottom: -12px;
  right: -12px;
}

/* Текст и разделители */
.eyebrow {
  font-family: var(--font-body); /* Переключено на 'Lato' */
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 500;
}

.about-quote {
  font-family: var(--font-heading); /* Изменено с var(--font-display) на ваш 'Playfair Display' */
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

.section-divider {
  background: var(--accent-primary);
  width: 60px;
  height: 1px;
  margin: 1.25rem 0 2rem;
}

/* Стили для мини-колонок с характеристиками */
.service-price {
  font-family: var(--font-heading); /* Изменено с var(--font-display) на ваш 'Playfair Display' */
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.service-duration {
  font-family: var(--font-body); /* Принудительно задаем Lato, чтобы шрифт не наследовался от заголовков */
  color: var(--text-primary);   /* Используем вашу функциональную переменную цвета текста вместо хардкода */
  opacity: 0.75;                /* Слегка приглушаем для эффекта muted */
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .business-card-additional-info {
    display: none;
  }
}

/* =========================================
   Services Section
   ========================================= */
.services-section {
  background: var(--bg-secondary);
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 50%;
  transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: 32px;
  color: var(--bg-primary);
}

.service-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.service-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 20px;
}

.service-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.service-duration i {
  font-size: 16px;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .service-card {
    padding: 30px 20px;
  }
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-section {
  background: var(--bg-primary);
}

.gallery-grid {
  margin-top: 30px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform var(--transition-slow);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(195, 154, 107, 0) 0%,
    rgba(195, 154, 107, 0) 100%
  );
  z-index: 1;
  transition: background var(--transition-medium);pointer-events: none;
}

.gallery-item::after {
  content: '\eaeb';
  font-family: 'boxicons' !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 30px;
  color: var(--text-primary);
  z-index: 2;
  transition: transform var(--transition-medium);
  pointer-events: none;
}

.gallery-item:hover::before {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(195, 154, 107, 0.5) 100%
  );
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Gallery Modal */
.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background-color: var(--btn-primary-bg);
  opacity: 1;
  padding: 12px;
}

.modal-close-btn:hover {
  background-color: var(--btn-secondary-bg);
}

.modal-img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonialsSwiper {
  padding-bottom: 50px;
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px;
  height: 100%;
  text-align: center;
  transition: all var(--transition-medium);
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
}

.testimonial-stars {
  margin-bottom: 20px;
}

.testimonial-stars i {
  font-size: 18px;
  color: var(--accent-primary);
  margin: 0 2px;
}

.testimonial-text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 25px;
}

.testimonial-author .author-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--border-color);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent-primary);
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 30px 20px;
  }
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
  background: var(--bg-primary);
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  height: 100%;
  text-align: center;
  transition: all var(--transition-medium);
}

.contact-card:hover {
  border-color: var(--accent-primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 50%;
}

.contact-icon i {
  font-size: 26px;
  color: var(--bg-primary);
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.contact-text {
  font-size: 15px;
  color: var(--text-primary);
  opacity: 0.85;
  margin-bottom: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-primary);
}

.contact-link:hover {
  color: var(--link-hover-color);
}

.contact-link i {
  font-size: 18px;
}

.contact-email {
  word-break: break-all;
}

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

/* =========================================
   Footer
   ========================================= */
.footer-section {
  background: var(--bg-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--db-hounds-gold);
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 0.7;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-primary);
  opacity: 0.7;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.social-link:hover {
  opacity: 1;
  color: var(--accent-primary);
}

.social-link i {
  font-size: 24px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.5;
  margin: 0;
}

/* =========================================
   Utility Classes
   ========================================= */
.overflow-hidden {
  overflow-x: hidden;
}

/* Smooth scroll offset for fixed navbar */
html {
  scroll-padding-top: 80px;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ---------- 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: 770px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 0px;
  border: 2px solid #8b6b4e;
  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 15px;
  background: #1a1a1a;
  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: #c39a6b;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 0px;
  color: #1a1a1a;
  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: #e1d3b7;
}

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

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

.booking-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #252525;
  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: calc(100% + 1px);
  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: 770px;
    max-height: 85vh;
  }
  
  .booking-modal__close-text {
    display: inline;
  }
  
  .booking-modal__header {
    padding: 14px 15px;
    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);
    border: 0;
  }
  
  .booking-modal__header {
    padding: 12px 15px;
    padding-top: max(12px, env(safe-area-inset-top));
    min-height: 52px;
    background: #1a1a1a;
    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);
  }
}