/* Файл: static/css/style.css */
/* Стили для главной страницы и меню */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* ==================== ГЛАВНАЯ СТРАНИЦА ==================== */

.main-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
}

.video-section {
  width: 50%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Фоновое изображение */
.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.left {
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

/* Логотип по центру всего экрана */
.logo-overlay-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  max-width: 95vw;
}

/* Контейнер для логотипа и названия */
.logo-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--logo-spacing, 20px);
}

/* Обертка для текста */
.site-name-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Подзаголовок сайта */
.site-subtitle {
  font-size: clamp(16px, 3vw, 40px);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
}

.site-name {
  font-size: clamp(30px, 12vw, 200px);
  font-weight: 900;
  color: #4169e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(65, 105, 225, 0.5);
  animation: pulse 2s ease-in-out infinite;
  max-width: 95vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  padding: 0 20px;
}

/* Логотип-картинка */
.site-logo-image {
  max-width: clamp(100px, 30vw, 400px);
  max-height: clamp(100px, 30vh, 400px);
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(65, 105, 225, 0.5));
  animation: pulse 2s ease-in-out infinite;
}

/* ==================== ПОЗИЦИИ ЛОГОТИПА ==================== */

/* Логотип сверху */
.logo-position-top .logo-name-container {
  flex-direction: column;
}

/* Логотип снизу */
.logo-position-bottom .logo-name-container {
  flex-direction: column-reverse;
}

/* Логотип слева */
.logo-position-left .logo-name-container {
  flex-direction: row;
}

/* Логотип справа */
.logo-position-right .logo-name-container {
  flex-direction: row-reverse;
}

/* Адаптация для очень длинных названий */
@media (max-width: 1400px) {
  .site-name {
    font-size: clamp(25px, 10vw, 150px);
    letter-spacing: 0.03em;
  }
}

@media (max-width: 1200px) {
  .site-name {
    font-size: clamp(22px, 9vw, 120px);
    letter-spacing: 0.02em;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Футер с адресом */
.footer-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 100;
}

.address {
  color: #4169e1;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.address:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(65, 105, 225, 0.8);
}

/* Кнопка меню */
.menu-button {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 15px 40px;
  background: #4169e1;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 100;
}

.menu-button:hover {
  background: #fff;
  color: #4169e1;
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.6);
  transform: translateY(-2px);
}

/* ==================== СТРАНИЦА МЕНЮ ==================== */

.menu-page {
  overflow: auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.menu-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(65, 105, 225, 0.1);
  position: relative;
  padding-bottom: 60px;
}

.menu-column {
  background: #000;
  padding: 40px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  min-height: calc(100vh - 60px);
}

/* Оверлей для читаемости текста на фоне */
.menu-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.menu-column > * {
  position: relative;
  z-index: 1;
}

.menu-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #4169e1;
}

.menu-header h2 {
  font-size: 48px;
  font-weight: 900;
  color: #4169e1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Кнопка закрыть в фиксированной позиции справа вверху */
.close-button-fixed {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 10px 30px;
  background: transparent;
  color: #4169e1;
  border: 2px solid #4169e1;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  z-index: 1001;
}

.close-button-fixed:hover {
  background: #4169e1;
  color: #fff;
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.6);
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu-category h3 {
  font-size: 24px;
  color: #4169e1;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.menu-item:hover {
  padding-left: 10px;
  border-bottom-color: #4169e1;
}

.item-info {
  flex: 1;
}

.item-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.item-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.item-price {
  font-size: 28px;
  font-weight: 900;
  color: #4169e1;
  margin-left: 20px;
  white-space: nowrap;
}

.menu-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 15px 40px;
  text-align: center;
  border-top: 1px solid rgba(65, 105, 225, 0.3);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.menu-footer .address {
  font-size: 16px;
}

/* ==================== АДАПТИВ ==================== */

/* Планшеты */
@media (max-width: 1024px) {
  .site-name {
    font-size: clamp(20px, 8vw, 100px);
    letter-spacing: 0.02em;
    max-width: 96vw;
  }

  .menu-header h2 {
    font-size: 36px;
  }

  .item-info h4 {
    font-size: 18px;
  }

  .item-price {
    font-size: 24px;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .site-name {
    font-size: clamp(18px, 7vw, 80px);
    letter-spacing: 0.01em;
    max-width: 96vw;
    padding: 0 15px;
  }

  .site-logo-image {
    max-width: clamp(80px, 25vw, 200px);
    max-height: clamp(80px, 25vh, 200px);
  }

  /* На мобильных всегда вертикально */
  .logo-position-left .logo-name-container,
  .logo-position-right .logo-name-container {
    flex-direction: column;
  }

  .logo-overlay-center {
    max-width: 98vw;
  }

  .site-subtitle {
    font-size: clamp(12px, 2.5vw, 24px);
    letter-spacing: 0.15em;
  }

  /* Главная страница */
  .main-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .video-section {
    width: 100%;
    height: 50vh;
  }

  .left {
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }

  .menu-button {
    top: 20px;
    right: 20px;
    padding: 12px 30px;
    font-size: 16px;
  }

  .footer-info {
    bottom: 20px;
    left: 20px;
  }

  .address {
    font-size: 12px;
  }

  /* Страница меню */
  .menu-container {
    grid-template-columns: 1fr;
    padding-bottom: 100px;
  }

  .menu-column {
    padding: 20px;
  }

  .menu-header {
    margin-bottom: 30px;
  }

  .menu-header h2 {
    font-size: 28px;
  }

  .close-button-fixed {
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    font-size: 12px;
  }

  .menu-category h3 {
    font-size: 20px;
  }

  .item-info h4 {
    font-size: 16px;
  }

  .item-description {
    font-size: 13px;
  }

  .item-price {
    font-size: 20px;
  }

  .menu-footer {
    padding: 15px 20px;
  }

  .menu-footer .address {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-name {
    font-size: clamp(16px, 6vw, 60px);
    letter-spacing: 0.01em;
    max-width: 98vw;
    padding: 0 10px;
  }

  .site-logo-image {
    max-width: clamp(60px, 20vw, 150px);
    max-height: clamp(60px, 20vh, 150px);
  }

  .menu-header h2 {
    font-size: 24px;
  }

  .item-info h4 {
    font-size: 14px;
  }

  .item-price {
    font-size: 18px;
  }
}
