/* ======= ЗАГАЛЬНІ СТИЛІ ======= */
body {
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ======= АНІМАЦІЇ ======= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= HERO СЕКЦІЯ ======= */
.sauna-hero {
  height: 50vh;
  min-height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/placeholder.svg?height=800&width=1200");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.sauna-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.sauna-hero .container {
  position: relative;
  z-index: 2;
}

.sauna-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sauna-category {
  font-size: 1.2rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 8px 20px;
  background-color: rgba(52, 152, 219, 0.8);
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

/* ======= ГАЛЕРЕЯ ЗОБРАЖЕНЬ ======= */
.sauna-gallery {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.gallery-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-image-container:hover .image-navigation {
  opacity: 1;
}

.nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background-color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn i {
  color: #2c3e50;
  font-size: 1.5rem;
}

.thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.thumbnail {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  border: 3px solid transparent;
}

.thumbnail.active {
  opacity: 1;
  border-color: #3498db;
  transform: scale(1.05);
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

/* ======= ДЕТАЛІ БАНІ ======= */
.sauna-details {
  padding: 80px 0;
  background-color: white;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

/* Покращені стилі для опису */
.sauna-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sauna-description h2 {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.sauna-description h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.sauna-description p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.sauna-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Покращені стилі для характеристик */
.spec-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.spec-item h4 {
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spec-item h4 i {
  color: #3498db;
  font-size: 1.2rem;
}

.spec-item p {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* Покращені стилі для особливостей */
.sauna-features {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px;
  border-radius: 15px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sauna-features h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sauna-features h3 i {
  color: #f39c12;
  font-size: 1.5rem;
}

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
}

.feature-item {
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 60px;
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #27ae60;
  font-size: 1.3rem;
  width: 25px;
  height: 25px;
  background-color: #e8f5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-features {
  text-align: center;
  padding: 40px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.no-features p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0;
}

/* ======= СЕКЦІЯ "СЛІДКУЙ ЗА НАМИ" ======= */
.follow-us {
  background-color: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.follow-us h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.follow-us p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #7f8c8d;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #2980b9;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.social-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-icon:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -30px;
}

/* ======= СТАН ПОМИЛКИ ======= */
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.error-content {
  text-align: center;
  padding: 60px 40px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.error-content i {
  font-size: 4rem;
  color: #e74c3c;
  margin-bottom: 20px;
}

.error-content h1 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.error-content p {
  color: #7f8c8d;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary {
  background-color: #3498db;
}

/* ======= АДАПТИВНІ СТИЛІ ======= */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sauna-hero h1 {
    font-size: 2.8rem;
  }

  .sauna-specs {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .sauna-hero {
    height: 40vh;
    min-height: 300px;
  }

  .sauna-hero h1 {
    font-size: 2.2rem;
  }

  .sauna-category {
    font-size: 1rem;
  }

  .thumbnails-container {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .sauna-specs {
    grid-template-columns: 1fr;
  }

  .sauna-features ul {
    grid-template-columns: 1fr;
  }

  .nav-btn {
    width: 50px;
    height: 50px;
  }

  .nav-btn i {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  header nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  header nav ul.active {
    right: 0;
  }

  header nav ul li a {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .sauna-hero h1 {
    font-size: 1.8rem;
  }

  .sauna-category {
    font-size: 0.9rem;
    padding: 6px 15px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ======= СТИЛІ ДЛЯ ШАПКИ ======= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

header.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #3498db;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

header nav ul li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
  width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #3498db;
}

/* Гамбургер меню для мобільних пристроїв */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #2c3e50;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Адаптивність для шапки */
@media (max-width: 992px) {
  header nav ul {
    gap: 20px;
  }

  header nav ul li a {
    font-size: 0.95rem;
  }
}

/* ======= СТИЛІ ДЛЯ ФУТЕРА ======= */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 30px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #3498db, #2ecc71, #f1c40f, #e74c3c);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #3498db;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #ecf0f1;
}

.footer-contact i {
  margin-right: 10px;
  color: #3498db;
  min-width: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #3498db;
  transform: translateY(-5px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  grid-column: 1 / -1;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Адаптивність */
@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 15px;
    padding-left: 50px;
  }

  .feature-item::before {
    left: 15px;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
  }

  .sauna-description {
    padding: 25px;
  }

  .sauna-description h2 {
    font-size: 1.8rem;
  }

  .sauna-description p {
    font-size: 1.1rem;
  }
}
