html {
  scroll-behavior: smooth;
}
 /* Сброс отступов и рамок */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
 
   /* Базовые стили */
 body {
     font-family: 'Courier New', sans-serif;
     font-size: 16px;
     color: #333;
     background: #fafafa;
     line-height: 1.6;
     margin-top: 80px;
 }
 
 a {
     text-decoration: none;
     color: inherit;
 }
 
   /* Контейнер */
 .container {
     width: 90%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px 0;
 }
   /* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
 header {
    height: 100px;
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    background-color: #fff; 
    z-index: 1000;
    transition: background-color 0.3s ease; 
}
header {
    background-color: #fff; /* Белый фон по умолчанию */
    color: black;
}

/* Стиль для хедера в темной теме */
.dark header {
    background-color: #000; /* Черный фон для темной темы */
    color: white; /* Белый текст в темной теме */
}
 .logo img {
     height: 70px;
     left: 20px;
     border-radius: 50%;
     border: 3px solid #fff;
     background-color: #fff;
     box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
     transition: border 0.3s, background 0.3s;
 }
.dark .logo img {
     border: 3px solid #444;
     background-color: #444;
     box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
 }
 
 nav ul {
     list-style: none;
     display: flex;
     gap: 15px;
     flex-wrap: wrap;
 }
 
 nav ul li a {
     padding: 8px 12px;
     color: #333;
     font-weight: 500;
     transition: background 0.3s, color 0.3s;
 }
 
 nav ul li a:hover,
 nav ul li.active a {
     background: #333;
     color: #fff;
     border-radius: 5px;
 }
 nav ul li .theme-toggle {
  margin-left: 10px;
  padding: 6px 12px;
}
.dropdown {
  position: relative;
}
.dropdown-content {
      display: none;
      position: absolute;
      background-color: #444;
      min-width: 160px;
      top: 30px;
      z-index: 10000;
    }
    .dropdown-content a {
      color: #fff;
      padding: 10px;
      text-decoration: none;
      display: block;
    }
    .dropdown:hover .dropdown-content {
      display: block;
    }
   /* Hero */
 .hero {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 30px;
     padding: 40px 0;
 }
 
 .hero--info {
     flex: 1 1 300px;
 }
 
 .hero--info h2 {
     font-size: 22px;
     margin-bottom: 10px;
 }
 
 .hero--info h1 {
     font-size: 32px;
     margin-bottom: 15px;
 }
 
 .hero--info p {
     margin-bottom: 20px;
 }
 
 .hero--info .btn {
     background: #333;
     color: #fff;
     padding: 12px 24px;
     border: none;
     border-radius: 30px;
     cursor: pointer;
     transition: background 0.3s;
 }
 
 .hero--info .btn:hover {
     background: #555;
 }
 
 .hero img {
     flex: 1 1 300px;
     max-width: 400px;
     border-radius: 10px;
 }
 
   /* Портфолио */
 #portfolio h3 {
     margin-bottom: 15px;
     font-size: 24px;
     text-align: center;
 }
#portfolio h2 {
     margin-bottom: 15px;
     font-size: 24px;
     text-align: center;
 }
 .carousel {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 10px;
    }
    .carousel img {
      width: 300px;
      height: 400px;
      object-fit: cover;
      scroll-snap-align: center;
      border-radius: 10px;
    }
    .carousel::-webkit-scrollbar {
      display: none;
    }


   /* Про нас */
 .big-text h3 {
     margin-bottom: 10px;
     font-size: 24px;
 }
 
 .big-text p {
     font-size: 16px;
 }
 
   /* Цены */
 .cards-section {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 15px;
     margin-top: 15px;
 }
 
 .card {
     background: #fff;
     border-radius: 8px;
     padding: 15px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
     text-align: center;
 }
 
 .card h4 {
     margin-bottom: 8px;
     font-size: 18px;
 }
 
 .card p {
     font-size: 16px;
     color: #555;
 }
 
   /* Запись онлайн */
 #booking h3 {
     margin-bottom: 15px;
     font-size: 24px;
     text-align: center;
 }
 
   /* Контакты */
 #contacts h3 {
     margin-bottom: 10px;
     font-size: 24px;
     text-align: center;
 }
 
 #contacts p {
     margin-bottom: 10px;
     text-align: center;
 }
 
 .social-buttons {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-bottom: 20px;
 }
 
 .social-buttons a {
     padding: 8px 16px;
     border-radius: 20px;
     background: #333;
     color: #fff;
     font-weight: 500;
     transition: background 0.3s;
 }
 
 .social-buttons a:hover {
     background: #555;
 }
 
   /* Footer */
 footer {
     text-align: center;
     padding: 15px 0;
     background: #eee;
     color: #666;
     margin-top: 30px;
     border-radius: 30px;
 }
   /* Адаптив */
 @media (max-width: 768px) {
     .hero {
         flex-direction: column;
         text-align: center;
     }
 
     nav ul {
         flex-wrap: wrap;
         justify-content: center;
     }
     }
 .booking-wrapper {
         position: relative;
         display: flex;
         flex-direction: column;
         gap: 10px;
 }
 
 #calendar-button {
         align-self: flex-start;
         margin-bottom: 10px;
 }
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  border: none;
  background: #333;
  color: white;
  border-radius: 50%;
  font-size: 20px;
  display: none;
  cursor: pointer;
}
.dark #backToTop {
  background: #f0f0f0;
  color: #121212;
}

