/* Montserrat Regular (400) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* Запобігає затримці показу тексту під час завантаження */
  src: url('fonts/Montserrat-Regular.woff2') format('woff2');
}

/* Montserrat SemiBold (600) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Montserrat-SemiBold.woff2') format('woff2');
}

/* Montserrat Bold (700) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Montserrat-Bold.woff2') format('woff2');
}

html, body {
  max-width: 100%;
  overflow-x: hidden; /* Забігає виходу висувного меню за межі екрана */
  position: relative;
}

:root {
  --bg-color: #121212;
  --bg-card: #1c1815;
  --bg-darker: #0a0908;
  --accent: #d97706; /* Бурштиновий */
  --accent-hover: #b45309;
  --text-main: #e5e5e5;
  --text-muted: #a3a3a3;
  --border-color: #332821;
  --font-main: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-main);}
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Кнопка зміни теми */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
}

/* Світла тема (перевизначення змінних) */
/* Повний виправлений блок для світлої теми */
body.light-theme {
  --bg-color: #f8f9fa;
  --bg-card: #ffffff;
  --bg-darker: #f1f3f5;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
}

/* 1. Виправлення шапки та номера телефону */
body.light-theme .header {
  background: rgba(255, 255, 255, 0.92);
}

body.light-theme .logo {
  color: #1f2937;
}

body.light-theme .phone {
  color: #1f2937; /* Телефон у шапці стає темним */
}

/* 2. Виправлення кнопок та Hero-секції */
body.light-theme .btn-outline {
  color: #1f2937;
  border-color: #d1d5db;
  background: #ffffff;
}

body.light-theme .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.light-theme .hero {
  background: linear-gradient(rgba(248, 249, 250, 0.88), rgba(248, 249, 250, 0.95)), 
              url('https://xn--80ab1b7d.org/wp-content/uploads/2021/01/2021-01-20_17-38-03.png') center/cover;
}

/* 3. Виправлення блоку цін у картках */
body.light-theme .prices {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

body.light-theme .prices span {
  color: #4b5563;
}

/* 4. Виправлення плашок-тегів (badges) */
body.light-theme .tag {
  background: #fff7ed; /* Теплий кремовий фон */
  color: #292524;      /* Темно-коричневий/деревний колір тексту */
  border-color: #fed7aa;
  font-weight: 600;
}

body.light-theme .tag::before {
  color: #c2410c; /* Темніший бурштиновий для галочки */
}

body.light-theme .tag:hover {
  background: #ffedd5;
  border-color: var(--accent);
  color: #000000;
}

/* 5. Виправлення модальних вікон та полів вводу */
body.light-theme .modal-content {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme form input, 
body.light-theme form textarea {
  background: #f9fafb;
  color: #1f2937;
  border-color: #d1d5db;
}

body.light-theme form input::placeholder, 
body.light-theme form textarea::placeholder {
  color: #9ca3af;
}

/* 6. Виправлення мобільної плаваючої панелі */
body.light-theme .mobile-sticky-bar {
  background: rgba(255, 255, 255, 0.95);
}

/* Акценти на заголовках */
h1, h2, h3, h4, .logo {  font-weight: 700;  letter-spacing: -0.02em; /* Зменшений міжлітерний інтервал додає сучасності */}

h1 {  font-weight: 800;}

/* Шапка */
.header { background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.header-flex { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 0.8rem; font-weight: bold; color: #f2f2f2; text-decoration: none; }
.logo span { color: var(--accent); }
.nav a { color: var(--text-main); text-decoration: none; margin: 0 12px; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.phone { color: #fff; text-decoration: none; font-weight: bold; margin-right: 15px; }

/* Покращена шапка */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Мобільні стилі (до 768px) */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }

  .phone-text {
    display: none; /* Ховаємо текстовий номер на мобільних, залишаємо іконку трубки */
  }

.nav {
    position: fixed;
    top: 0;
    right: -100%; /* Меню заховане за правим краєм екрана */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    display: flex !important; /* Гарантує відображення при відкритті */
    flex-direction: column;
    padding: 80px 25px 30px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }

  /* Клас, який додається через JS при кліку */
  .nav.active {
    right: 0 !important; /* Висуває меню на екран */
  }

  /* Показуємо кнопку бургера на мобільних */
  .burger-btn {
    display: flex !important;
  }

  .nav a {
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
  }

  /* Анімація іконки гамбургера в хрестик */
  .burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Кнопки */
.btn { padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: #fff; text-transform: uppercase;}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.full-width { width: 100%; }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; background: linear-gradient(rgba(18,18,18,0.85), rgba(18,18,18,0.95)), url('/image/main.jpg') center/cover; }
.badge { background: rgba(217, 119, 6, 0.2); color: var(--accent); border: 1px solid var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; }
.hero h1 { font-size: 2.8rem; margin: 15px 0; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 25px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* Акція */
.promo-bar { background: var(--accent); color: #fff; text-align: center; padding: 10px 0; font-size: 0.95rem; }

/* Секції */
.section { padding: 80px 0; }
.bg-darker { background: var(--bg-darker); }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 40px; }
.section-title.text-left { text-align: left; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }

/* Картки лазень */
.sauna-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* На мобільних пристроях та планшетах переходимо в 1 колонку */
@media (max-width: 768px) {  .sauna-grid {    grid-template-columns: 1fr;  }}
.sauna-card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; }
.sauna-info { padding: 20px; }
.capacity { color: var(--accent); font-size: 0.9rem; margin-bottom: 15px; }
.prices { display: flex; justify-content: space-between; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 6px; margin-bottom: 15px; }
/* Блок зручностей у вигляді плашок-тегів */
.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag {
  background: rgba(217, 119, 6, 0.12); /* Напівпрозорий бурштиновий */
  color: #e5e5e5;
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.tag::before {
  content: "✓";
  color: var(--accent);
  margin-right: 5px;
  font-weight: bold;
  font-size: 0.85rem;
}

.tag:hover {
  border-color: var(--accent);
  background: rgba(217, 119, 6, 0.22);
  color: #fff;
}

/* Слайдер */
.slider-container { position: relative; width: 100%; height: 330px; overflow: hidden; }
.slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.3s ease-in-out; }
.slide { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: #fff; border: none; padding: 10px; cursor: pointer; border-radius: 4px; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Про нас */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-item { background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }

/* Відгуки */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card { background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.review-card h4 { color: var(--accent); margin-bottom: 10px; }

/* Модалки та Форми */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); padding: 30px; border-radius: 12px; width: 100%; max-width: 450px; border: 1px solid var(--border-color); position: relative; }
.close-btn { position: absolute; right: 20px; top: 15px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
form input, form textarea { background: #121212; border: 1px solid var(--border-color); color: #fff; padding: 12px; border-radius: 6px; width: 100%; }
.form-row { display: flex; gap: 10px; }

/* Футер */
.footer { background: var(--bg-darker); padding: 50px 0; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-muted); text-decoration: none; }

@media (max-width: 768px) {
  .nav, .header-contacts { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* Додаткові стилі для Контактів та Карти */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contacts-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.phone-list {
  margin: 20px 0;
}

.phone-link {
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.text-center {
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contacts-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Стилізація логотипу з іконкою */
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Відступ між іконкою та текстом */
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo-img {
  width: 36px;       /* Оптимальна висота іконки для шапки */
  height: 36px;
  object-fit: contain;
  border-radius: 6px; /* Легке заокруглення кутів іконки */
}

/* Кнопка Вгору */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Щоб не клікалась, коли прихована */
  transition: all 0.3s ease-in-out;
  z-index: 99;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Активуємо кліки при появі */
}

/* Фіксована панель для мобільних */
.mobile-sticky-bar {
  display: none; /* Прихована на десктопі */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 15px;
  border-top: 1px solid var(--border-color);
  z-index: 98;
  gap: 10px;
}

.mobile-btn {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  padding: 12px 5px;
}

/* Відображення тільки на смартфонах та планшетах */
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
  
  /* Трохи піднімаємо кнопку "Вгору", щоб вона не перекривала мобільну панель */
  .scroll-top-btn {
    bottom: 75px;
    right: 15px;
  }

  /* Додаємо нижній відступ футеру, щоб панель не закривала текст */
  .footer {
    padding-bottom: 80px;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  transition: transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

.slide {
  cursor: zoom-in; /* Показує курсор лупи при наведенні на фото */
}

/* Кнопки навігації в Lightbox */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  z-index: 2001;
}

.lightbox-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

@media (max-width: 768px) {
  .lightbox-btn {
    padding: 10px 14px;
    font-size: 1.2rem;
  }
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
}

.lang-switch {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-switch a:hover {
  color: var(--accent);
}
.lang-active {
  color: var(--accent);
}