/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #111;
  color: white;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   PARALLAX SECTION / ПАРАЛЛАКС СЕКЦИЯ
   ========================================================================== */

.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('/image/sky-lounge/sky-lounge-main.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Оверлей с текстом */
.overlay-description {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
  backdrop-filter: blur(2px);
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-description h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.overlay-description p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ==========================================================================
   MENU SECTION / СЕКЦИЯ МЕНЮ
   ========================================================================== */
.menu-section {
  padding: 60px 20px;
  background-color: #000;
  position: relative;
  z-index: 3;
}

.menu-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-description {
  text-align: center;
  margin-bottom: 40px;
}

.menu-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0 0 10px 0;
}

.menu-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.menu-trio {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.menu-section {
  padding: 60px 20px;
  background-color: #000;
}

.menu-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Три карточки меню */
.menu-trio {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.menu-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
}

/* Изображения меню с lazy loading оптимизацией */
.menu-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

/* Центральное фото больше */
.menu-item.center img {
  height: 500px;
}

/* Боковые фото */
.menu-item.left img,
.menu-item.right img {
  height: 400px;
}

/* Эффект увеличения при наведении */
.menu-item.center img:hover,
.menu-item.left img:hover,
.menu-item.right img:hover {
  transform: scale(1.05);
  will-change: transform;
}

/* Кнопки меню */
.menu-btn {
  display: block;
  background: linear-gradient(135deg, #e6b450, #aa8855);
  color: white;
  text-align: center;
  padding: 15px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  z-index: 2;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Эффект свечения для кнопки */
.menu-btn:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  z-index: -1;
  transition: all 0.6s ease;
}

.menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffcc70, #bb9966);
  border-color: rgba(255, 255, 255, 0.3);
}

.menu-btn:hover:before {
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
}

.menu-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   RESPONSIVE / АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 1024px) {

  /* Оптимизация для планшетов */
  .menu-trio {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .menu-item.center img,
  .menu-item.left img,
  .menu-item.right img {
    height: 350px;
  }
}

@media (max-width: 768px) {

  /* Оптимизация для мобильных устройств */
  .header {
    flex-direction: column;
    gap: 15px;
    min-height: auto;
    padding: 15px;
  }

  .header-left,
  .header-right {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }

  .logo-link {
    position: static;
    transform: none;
    order: -1;
  }

  .logo {
    height: 80px;
  }

  .menu-trio {
    grid-template-columns: 1fr;
  }

  .description-section .container,
  .menu-section .container,
  .gallery-section .container {
    padding: 0 15px;
  }

  .nav-btn {
    padding: 8px 15px;
    font-size: 20px;
  }

  .overlay-description {
    padding: 20px;
    margin: 0 15px;
  }

  .overlay-description h2 {
    font-size: 2rem;
  }

  .overlay-description p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  /* Дополнительные оптимизации для маленьких экранов */
  .menu-title {
    font-size: 2.2rem;
  }

  .menu-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 20px;
  }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS / ОПТИМИЗАЦИИ ПРОИЗВОДИТЕЛЬНОСТИ
   ========================================================================== */

/* Отключаем анимации для пользователей с настройками доступности */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Оптимизация для темной темы ОС */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
  }
}

/* Оптимизация для печати */
@media print {

  .header,
  .parallax-container,
  .menu-section,
  .gallery-section,
  .map-section,
  .footer {
    display: none !important;
  }

  body {
    color: #000;
    background: white;
  }
}