:root {
  --primary-color: #2563eb;
  --accent-color: #dc2626;
  --light-color: #f8fafc;
  --text-color: #1e293b;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--light-color) 0%, #e0f2fe 100%);
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  max-height: 65px;
}

/* Бургер‑меню — скрыто на десктопе */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Навигация */
.nav-menu {
  flex: 1;
  margin: 0 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-list a.active {
  color: white;
  background: var(--primary-color);
}

.header-contacts a {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}


/* === МОБИЛЬНЫЕ УСТРОЙСТВА (до 1023px) === */
@media (max-width: 1023px) {
  .burger-menu {
    display: flex; /* Показываем бургер на мобильных */
  }

  /* Скрываем основное меню по умолчанию */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
    padding: 2rem 1.2rem; /* Увеличенные отступы по краям меню */
    overflow-y: auto;
  }

  /* Чекбокс для управления меню */
  #menu-toggle {
    display: none; /* Скрываем сам чекбокс */
  }

  /* При активации чекбокса показываем меню */
  #menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  /* Стили для метки, которая будет выступать в роли кнопки */
  .burger-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
  }

  .burger-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* Анимация бургер‑кнопки при активации */
  #menu-toggle:checked ~ .burger-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu-toggle:checked ~ .burger-label span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked ~ .burger-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem; /* Большой отступ между пунктами меню (≈32px) */
  }

  .nav-list li {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0; /* Убираем лишние отступы, так как используем gap */
  }

  .nav-list a {
    width: 100%;
    text-align: left;
    padding: 1.8rem 1.4rem; /* Значительно увеличенные отступы вокруг текста */
    border-radius: 0;
    font-size: 1.15rem; /* Немного увеличиваем размер шрифта */
    font-weight: 600; /* Делаем текст чуть жирнее */
  }

  /* Скрываем контакты на мобильных */
  .header-contacts {
    display: none;
  }
}
.horizontal-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: thin;
}

.horizontal-gallery::-webkit-scrollbar {
  height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.horizontal-gallery::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.gallery-item {
  flex: 0 0 auto;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.gallery-caption {
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
}
/* Адаптация галереи для мобильных устройств */
@media (max-width: 768px) {
  .horizontal-gallery {
    gap: 12px;
    padding: 8px 0;
  }

  .gallery-item {
    width: 220px; /* Уменьшаем ширину карточек */
    flex: 0 0 220px;
  }

  .gallery-item img {
    border-radius: 10px; /* Немного уменьшаем радиус скругления */
  }

  .gallery-caption {
    font-size: 0.9rem; /* Уменьшаем размер шрифта подписи */
    margin-top: 8px;
  }
}

/* Для очень маленьких экранов (смартфоны в портретной ориентации) */
@media (max-width: 480px) {
  .horizontal-gallery {
    gap: 8px;
    padding: 6px 0;
  }

  .gallery-item {
    width: 160px; /* Ещё уменьшаем ширину */
    flex: 0 0 160px;
  }

  .gallery-item img {
    border-radius: 8px; /* Минимальный радиус скругления */
  }

  .gallery-caption {
    font-size: 0.8rem; /* Самый маленький размер шрифта */
    margin-top: 6px;
  }
}

/* Для смартфонов в альбомной ориентации */
@media (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
  .gallery-item {
    width: 260px; /* Увеличиваем ширину для альбомного режима */
    flex: 0 0 260px;
  }
}
.gallery-item img {
  width: 100%;
  height: 250px; /* Фиксированная высота для ПК */
  object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item img:hover {
  transform: scale(1.03);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#caption {
  color: #ccc;
  text-align: center;
  margin-top: 10px;
  font-size: 1.1rem;
}
input[type="checkbox"] {
  display: none;
}

.footer {
   width: 100%;
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
} 
