/* Основные цвета */
:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --secondary: #8e44ad;
  --light: #fef5e7;
  --dark: #2c3e50;
  --gray: #7f8c8d;
  --wood: #a05a2c;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* СТИЛИ HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #a05a2c;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-hide {
  transform: translateY(-100%) !important;
}

.header.scrolled {
  background-color: rgba(160, 90, 44, 0.95);
  backdrop-filter: blur(5px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--wood);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.logo img {
  height: 50px;
  margin-right: 12px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin: 0 10px;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: white;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
}

.main-nav a i {
  margin-right: 8px;
}

.main-content {
    margin-top: 15px;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
  background-color: var(--primary);
}

.header-contacts {
  display: flex;
  align-items: center;
}

.phone-link {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 500;
  margin-right: 20px;
}

.phone-link i {
  margin-right: 8px;
}

.working-hours {
  display: flex;
  align-items: center;
  color: white;
}

.working-hours i {
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Герой секция */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: url('../images/Главная/sauny-scaled.jpg') center/cover no-repeat;
  margin-top: -10px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-hero {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* Секции */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  color: var(--wood);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Особенности */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-wrapper {
  text-align: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.branches-section {
    margin-top: 15px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.branch-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
}

.branch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.branch-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-image: url(..\images\sauny-scaled.jpg);
}

.branch-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: red;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.branch-info {
  padding: 20px;
}

.branch-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--wood);
}

.branch-address {
  display: flex;
  align-items: center;
  color: var(--gray);
  margin-bottom: 12px;
}

.branch-address i {
  margin-right: 8px;
  color: var(--primary);
}

.branch-desc {
  margin-bottom: 15px;
}

.branch-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 0.9rem;
}

.branch-meta i {
  margin-right: 5px;
  color: var(--primary);
}

/* О компании */
.about-section {
  background-color: white;
  margin-top: 15px;
}

.about-section .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: var(--light);
  border-radius: 8px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Страница филиала */
.branch-hero {
  height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0px;
  background-size: cover;
  background-position: center;
}

.branch-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.branch-title {
  font-size: 3rem;
  color: white;
  position: relative;
  z-index: 2;
}

.branch-subtitle {
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.branch-about {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.branch-about .container {
  display: flex;
  gap: 50px;
}

.branch-about-content {
  flex: 1;
}

.branch-image-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.gallery-item:first-child {
  grid-column: span 2;
  height: 300px;
}

.branch-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.branch-features .feature-item {
  align-items: flex-start;
  text-align: left;
  padding: 20px;
}

.branch-features .feature-item i {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Номера */
.branch-rooms {
  padding: 40px 0;
  background-color: var(--light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.room-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.room-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.room-info {
  padding: 20px;
}

.room-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--wood);
}

.room-desc {
  margin-bottom: 15px;
  color: var(--gray);
}

.room-features {
  margin-bottom: 15px;
  margin-left: 15px;
}

.room-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  color: var(--dark);
}

.room-features i {
  margin-right: 8px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.room-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Как добраться */
.branch-location {
  padding: 30px 0;
  background-color: white;
}

.location-content {
  display: flex;
  gap: 50px;
}

.location-info {
  flex: 1;
  margin-top: 150px;
}

.location-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.location-info i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.location-map {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder {
  height: 300px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Подвал */
.footer {
  background-color: var(--wood);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: white;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-menu {
  list-style: none;
}

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

.footer-menu a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  text-decoration: none;
}

.footer-menu a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-menu i {
  margin-right: 8px;
  color: var(--primary);
  font-size: 0.8rem;
}

.footer-contacts {
  list-style: none;
}

.footer-contacts li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contacts i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* Кнопка "Наверх" */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.site-name {  
  font-size: 24px;  
  font-weight: bold;  
  color: #fff;  
  text-decoration: none;  
  font-family: Arial, sans-serif;  
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-main-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  cursor: zoom-in;
}

/* Стили модальных окон */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  top: 50%;
  transform: translateY(-50%);
}

.slides-container {
  position: relative;
  width: 100%;
  height: 80vh;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: contain;
}

.slide.active {
  opacity: 1;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  padding: 10px;
  position: absolute;
  bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.thumbnail.active, .thumbnail:hover {
  opacity: 1;
  border-color: white;
}

/* Стиль кнопки */
.sauna-more-btn {
  width: 100%;
  padding: 14px 0;
  background-color: #FF8C00;
  color: #FFF;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 18px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sauna-more-btn:hover {
  background-color: #E67E00;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.sauna-more-btn:active {
  transform: translateY(0);
}

/* Модальное окно */
.sauna-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: saunaFadeIn 0.3s;
}

@keyframes saunaFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.sauna-modal-inner {
  background-color: #FFF9F0;
  margin: 4% auto;
  padding: 25px;
  border-radius: 10px;
  width: 85%;
  max-width: 850px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.sauna-modal-close {
  position: absolute;
  right: 25px;
  top: 15px;
  color: #FF8C00;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.sauna-modal-close:hover {
  color: #FF6B00;
}

/* Галерея */
.sauna-gallery-container {
  margin: 25px 0;
}

.sauna-main-photo {
  width: 100%;
  height: 533px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #FFEDD8;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #FFD8A8;
}

.sauna-main-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.5s;
}

.sauna-thumbnails-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sauna-thumb {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.8;
  transition: all 0.3s;
}

.sauna-thumb:hover, .active-thumb {
  border-color: #FF8C00;
  opacity: 1;
  transform: scale(1.05);
}

/* Описание товара */
.sauna-full-description {
  padding: 20px;
  background-color: #FFF4E6;
  border-radius: 8px;
  color: #4A2C12;
  line-height: 1.6;
  white-space: pre-line;
}

.sauna-features-list {
  padding-left: 25px;
  margin-top: 15px;
}

.sauna-features-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.sauna-features-list li::before {
  content: "•";
  color: #FF8C00;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Сетка товаров */
.sauna-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.sauna-product-card {
  background: #FFF9F0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #FFE4C4;
}

.sauna-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sauna-product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid #FFD8A8;
}

.sauna-product-title {
  color: #5C3A21;
  font-size: 18px;
  margin: 15px 15px 5px;
}

.sauna-product-price {
  color: #E67E22;
  font-weight: bold;
  font-size: 20px;
  margin: 0 15px 15px;
}

.sauna-product-excerpt {
  padding: 0 15px 15px;
  color: #5C3A21;
  font-size: 14px;
  line-height: 1.4;
  min-height: 40px;
  margin-bottom: 10px;
}

.sauna-product-excerpt p {
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.open-btn {
  background-color: rgb(255, 166, 0);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.open-btn:hover {
  background-color: rgb(230, 149, 0);
}

.kontakts {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.kontakts-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s;
}

.kontakts-header {
  background-color: orange;
  color: white;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.kontakts-header h3 {
  margin: 0;
  font-size: 18px;
  text-align: center;
  flex: 1;
}

.close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.close:hover {
  color: #ff4757;
}

.kontakts-body {
  padding: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.contact-item:hover {
  background-color: #f8f9fa;
}

.contact-icon {
  font-size: 20px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sauna-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.sauna-nav-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sauna-prev-button {
  left: 15px;
}

.sauna-next-button {
  right: 15px;
}

.sauna-main-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стили для мобильного увеличения и навигации */
.sauna-main-img {
  transition: opacity 0.5s ease-in-out, transform 0.3s ease;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: pointer;
  touch-action: manipulation;
}

/* Состояние увеличенного изображения */
.sauna-main-img.zoomed {
  transform: scale(2);
  cursor: grab;
}

.sauna-main-img.zoomed:active {
  cursor: grabbing;
}

/* Кнопка закрытия масштаба */
.sauna-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 15;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Индикатор свайпа для мобильных */
.swipe-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: none;
  z-index: 12;
}

/* Анимация для индикатора */
@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Предотвращаем выделение текста при касании */
.sauna-main-photo {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle i {
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

/* Предотвращение скачков контента */
body.menu-open {
  overflow: hidden;
}

/* Улучшение touch-целей для мобильных */
.nav-link {
  padding: 15px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.header-x {
    position: relative;
    background-color: #a05a2c;
    padding: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.header-x .container-x {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-x .logo-wrapper-x {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.header-x .site-name-x {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.header-x .header-bottom-x {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.header-x .main-nav-x {
    flex-grow: 1;
}

.header-x .nav-list-x {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 5px;
}

.header-x .nav-item-x {
    margin: 0 5px;
}

.header-x .nav-link-x {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: block;
    font-size: 14px;
}

.header-x .nav-link-x:hover, 
.header-x .nav-link-x.active-x {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-x .header-contacts-x {
    display: flex;
    align-items: center;
    color: white;
}

.header-x .working-hours-x {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.header-x .working-hours-x i {
    margin-right: 8px;
}

.header-x .menu-toggle-x {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0;
    /* Убираем любые отступы */
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Сбрасываем все стили для иконок внутри кнопки */
.header-x .menu-toggle-x i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    font-size: 24px;
    line-height: 1;
    margin: 0;
    /* Убираем отступы у иконок */
}

/* Иконка бургер-меню (по умолчанию видна) */
.header-x .menu-toggle-x .fa-bars {
    opacity: 1;
    visibility: visible;
}

/* Иконка крестика (по умолчанию скрыта) */
.header-x .menu-toggle-x .fa-times {
    opacity: 0;
    visibility: hidden;
}

/* Когда меню открыто - показываем крестик, скрываем бургер */
.header-x .menu-toggle-x.active-x .fa-bars {
    opacity: 0;
    visibility: hidden;
}

.header-x .menu-toggle-x.active-x .fa-times {
    opacity: 1;
    visibility: visible;
}

.header-x .header-toggle-btn-x {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
    margin: 0;
    /* Убираем отступы */
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.header-x .header-toggle-btn-x:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Стили для hero-y */
.hero-y {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: url('/images/Главная/sauny-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-y .container-y {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-y .hero-content-y {
    max-width: 800px;
    margin: 0 auto;
}

.hero-y .hero-title-y {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-y .hero-subtitle-y {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-y .btn-y {
    display: inline-block;
    padding: 15px 30px;
    background-color: #a05a2c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 1.1rem;
}

.hero-y .btn-y:hover {
    background-color: #8a4c23;
}

.hero-y .hero-overlay-y {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .header-x {
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .header-x.header-x-hidden {
        transform: translateY(-100%);
    }
    
    .header-x .container-x {
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .header-x .header-bottom-x {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .header-x .logo-wrapper-x {
        margin-bottom: 10px;
        width: 100%;
        order: 1;
        flex: 0 0 100%;
    }
    
    .header-x .header-toggle-btn-x {
        display: block;
        order: 2;
        margin-right: 10px;
        flex: 0 0 auto;
    }
    
    .header-x .menu-toggle-x {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        flex: 0 0 auto;
    }
    
    .header-x .header-contacts-x {
        display: none;
    }
    
    .header-x .main-nav-x {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #8a4c23;
        order: 4;
        flex: 0 0 100%;
    }
    
    .header-x .main-nav-x.open-x {
        max-height: 500px;
    }
    
    .header-x .nav-list-x {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        margin: 0;
    }
    
    .header-x .nav-item-x {
        margin: 0;
        width: 100%;
    }
    
    .header-x .nav-link-x {
        padding: 15px;
        text-align: center;
        border-radius: 0;
        font-size: 16px;
        margin: 0;
    }
    
    .header-x .mobile-contacts {
        display: block;
        text-align: center;
        padding: 15px;
        color: white;
        border-top: 1px solid rgba(255,255,255,0.2);
        margin: 0;
    }
    
    body {
        padding-top: 0;
    }

    .hero-y {
        height: 60vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-y .hero-title-y {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-y .hero-subtitle-y {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .hero-y .btn-y {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Десктопные стили */
@media (min-width: 769px) {
    .header-x {
        position: relative;
        padding: 15px 0;
    }
    
    .header-x .header-toggle-btn-x,
    .header-x .menu-toggle-x {
        display: none;
    }
    
    .header-x .mobile-contacts {
        display: none !important;
    }
    
    .header-x .header-contacts-x {
        display: flex;
    }
    
    .hero-y {
        margin-top: 0;
        height: 80vh;
    }
}

/* Дополнительные исправления для кросбраузерности */
.header-x * {
    box-sizing: border-box;
}

.header-x .menu-toggle-x:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Сброс стандартных отступов для кнопок */
button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}