* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #f5f3ef; color: #2c2c2c; line-height: 1.6; }

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease, padding 0.4s ease;
}
.main-nav.scrolled {
  background-color: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(5px);
  padding: 10px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-logo {
  font-weight: 700;
  font-size: 1.4em;
  color: #fff;
  text-decoration: none;
  z-index: 10;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  position: relative;
  padding-bottom: 5px;
}
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #926c42;
  transition: width 0.3s ease;
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.mobile-controls { display: none; align-items: center; gap: 15px; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1003;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.menu-toggle:hover { background-color: rgba(255, 255, 255, 0.1); }
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.nav-links-overlay { display: none; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .mobile-controls { display: flex; }
  .nav-links-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    gap: 30px;
    display: flex;
    z-index: 1001;
  }
  .nav-links-overlay.active { transform: translateY(0); }
  .nav-links-overlay a { font-size: 1.5em; color: #fff; text-decoration: none; }
  .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* ===== HERO ===== */
header {
  background-image: url('https://banya.pp.ua/img/Баня-1.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 0;
}
header h1, header p, header .btn-group { position: relative; z-index: 1; }
header h1 {
  font-size: clamp(2.5em, 5vw, 4.5em);
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
header p {
  font-size: clamp(1.2em, 2vw, 1.5em);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  margin-bottom: 30px;
}
.btn-group,
p.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn, .btn-call, .btn-booking, .btn-map, .btn-outline,
.btn-telegram, .btn-viber {
  padding: 15px 30px;
  font-size: 1.2em;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0;
  font-weight: 700;
  display: inline-block;
}
.btn:hover, .btn-call:hover, .btn-booking:hover, .btn-map:hover, .btn-outline:hover,
.btn-telegram:hover, .btn-viber:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn { background: #926c42; color: #fff; border-color: #926c42; }
.btn:hover { background: #a47e54; border-color: #a47e54; color: #fff; }
.btn-call { background: #28a745; color: #fff; border-color: #28a745; }
.btn-call:hover { background: #218838; border-color: #218838; }
.btn-map { background: #4285F4; color: #fff; border-color: #4285F4; }
.btn-map:hover { background: #3367D6; border-color: #3367D6; }
.btn-telegram { background: #0088cc; color: #fff; border-color: #0088cc; }
.btn-telegram:hover { background: #006daa; border-color: #006daa; }
.btn-viber { background: #7360f2; color: #fff; border-color: #7360f2; }
.btn-viber:hover { background: #5b4ad4; border-color: #5b4ad4; }

.addr-actions .btn,
.addr-actions .btn-call,
.addr-actions .btn-map,
.addr-actions .btn-telegram,
.addr-actions .btn-viber {
  padding: 12px 20px;
  font-size: 1em;
}

.btn-outline.btn-nav {
  padding: 8px 18px;
  font-size: 1em;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.btn-outline.btn-nav:hover {
  background: #fff;
  color: #2c2c2c;
}

/* ===== LAYOUT & ANIMATIONS ===== */
section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.is-visible { opacity: 1; transform: translateY(0); }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.feature {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  text-align: center;
}

/* ===== GALLERY ===== */
.gallery {
  position: relative;
  max-width: 100%;
  height: 65vh;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 30px;
  background: #2c2c2c;
}
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.7);
  transform: scale(1.1);
  transition: background-image 0.8s ease-in-out;
}
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2;
}
.gallery img.active { opacity: 1; }
.gallery .hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .9em;
  z-index: 3;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
}
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }

/* ===== FOOTER ===== */
footer { background: #2c2c2c; color: #fff; text-align: center; padding: 30px 10px; }
footer a { color: #fff; text-decoration: underline; margin: 0 10px; }
.footer-messengers { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-messengers a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 700;
}

/* ===== ADDRESS & MAP ===== */
.address { display:grid; grid-template-columns: 1.1fr 1.4fr; gap:28px; align-items: stretch; }
@media (max-width: 900px){ .address{ grid-template-columns:1fr; } }
.addr-card{ background:#fff; border-radius:14px; padding:22px; box-shadow:0 10px 24px rgba(0,0,0,.08); }
.addr-item,
p.addr-item { display:flex; gap:10px; align-items:flex-start; margin:10px 0; }
.addr-item .emoji{ flex:0 0 24px; }
.addr-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.map-wrap{ background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.08); min-height: 320px; }
.map-embed{ width:100%; height: 100%; min-height: 320px; border:0; display:block; }

/* ===== TESTIMONIALS ===== */
.testimonials h2 { text-align: center; }
.testimonials-intro {
  text-align: center;
  color: #6b6b6b;
  max-width: 640px;
  margin: 10px auto 24px;
  font-size: 0.95em;
}
.reviews-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.review-card .review-stars { color: #f5a623; font-size: 1.1em; margin-bottom: 8px; letter-spacing: 2px; }
.review-card .review-text { margin-bottom: 12px; font-style: italic; }
.review-card .review-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #6b6b6b;
}
.review-card .review-author { font-weight: 700; color: #5d4037; }
.review-card .review-source {
  color: #926c42;
  text-decoration: none;
  font-weight: 700;
}
.review-card .review-source:hover { text-decoration: underline; }

.ts-track {
  position: relative;
  height: 120px;
  max-width: 720px;
  margin: 0 auto;
  background:#fff;
  border-radius:12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding: 10px;
}
.ts-track img {
  position:absolute;
  max-height: 100px;
  width:auto;
  opacity:0;
  transition: opacity .4s ease;
}
.ts-track img.active { opacity:1; }
.ts-caption { text-align:center; margin-top: 10px; color:#6b6b6b; font-size:.95em; }
.ts-source-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.9em;
}
.ts-source-link a { color: #926c42; font-weight: 700; }

/* ===== PROMO ===== */
.vr-promo, .game-promo {
  background-size: cover;
  padding: 60px 25px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
.vr-promo h2, .game-promo h2 { font-size: 2.5em; margin-bottom: 15px; }
.vr-promo p, .game-promo p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 30px auto;
}
.vr-promo .btn-group, .game-promo .btn-group { justify-content: center; }
.vr-promo {
  background: linear-gradient(rgba(20, 20, 50, 0.6), rgba(20, 20, 50, 0.6)), url('https://banya.pp.ua/img/vr.webp');
  background-position: center top;
}
.game-promo {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://banya.pp.ua/img/fon_game_main.webp');
  background-position: center;
}
.vr-promo .btn { background-color: #4285F4; border-color: #4285F4; }
.vr-promo .btn:hover { background-color: #3367D6; border-color: #3367D6; }
.game-promo .btn { background-color: #28a745; border-color: #28a745; }
.game-promo .btn:hover { background-color: #218838; border-color: #218838; }
.vr-promo .btn-outline, .game-promo .btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.vr-promo .btn-outline:hover, .game-promo .btn-outline:hover {
  background: #fff;
  color: #2c2c2c;
}

/* ===== PRICES ===== */
.prices-new { background-color: #fff; padding: 40px 25px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.prices-new h2 { text-align: center; margin-bottom: 30px; }
.prices-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.price-card { border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px; text-align: center; background-color: #fafafa; }
.price-card.main-service { background-color: #fff; border-color: #926c42; transform: scale(1.02); }
.price-card h3 { margin-bottom: 15px; color: #5d4037; }
.price-amount { font-size: 2.5em; font-weight: 700; color: #926c42; margin-bottom: 5px; }
.price-amount span { font-size: 0.4em; font-weight: 400; color: #6b6b6b; }
.price-condition { font-size: 0.9em; color: #6b6b6b; }
.rentals ul { list-style: none; text-align: left; }
.rentals li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.rentals li:last-child { border-bottom: none; }
.prices-notes { display: flex; flex-direction: column; gap: 15px; }
.note { padding: 15px; border-radius: 8px; font-size: 0.95em; }
.note.warning { background-color: #fffbe6; border-left: 4px solid #facc15; }
.note.info { background-color: #eef2ff; border-left: 4px solid #6366f1; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s ease;
  text-align: center;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2.2em;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 5px;
  z-index: 10;
}
.modal-close:hover { color: #333; }
.modal-content h2 { margin-bottom: 15px; color: #5d4037;}
.modal-content p { margin-bottom: 25px; }
.modal-content .btn-group { justify-content: center; }

.booking-form h2 { text-align: center; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #555; }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: #fff;
}
.form-group small { font-size: 0.8em; color: #777; margin-top: 4px; display: block; }
.total-price { text-align: center; font-size: 1.2em; margin-top: 20px; font-weight: 700; }
.total-price span { color: #926c42; }
.btn-booking { width: 100%; background-color: #28a745; color: #fff; }
.btn-booking:hover { background-color: #218838; }
.btn-booking:disabled { background-color: #aaa; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== FLOATING CONTACT ===== */
.fab-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fab-group.hidden-fab { opacity: 0; transform: scale(0.5); pointer-events: none; }
.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.fab-call { background: #28a745; }
.fab-telegram { background: #0088cc; }
.fab-viber { background: #7360f2; }
.fab-btn svg { width: 24px; height: 24px; stroke: #fff; fill: none; }

@media (max-width: 850px) { .fab-group { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section { opacity: 1; transform: none; transition: none; }
}
