/* ----- ГЛОБАЛЬНЫЙ СБРОС И БАЗА ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    font-family: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    color: #eee;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ----- КОНТЕЙНЕР ДЛЯ ВСЕГО САЙТА ----- */
.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ----- HEADER (Лого + Навигация) ----- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 40px;
    color: #d4b68a;
    background: rgba(212, 182, 138, 0.10);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 182, 138, 0.25);
}

.logo-text {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #f0e6d8;
}
.logo-text span {
    font-weight: 600;
    color: #d4b68a;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.nav-menu a:hover {
    color: #d4b68a;
    border-bottom-color: #d4b68a;
}

.nav-menu a i {
    margin-right: 8px;
    font-size: 15px;
    color: #b89b7a;
}

/* ----- ГЕРОЙ С ПЕРЕМЕННЫМИ КАРТИНКАМИ (слайдер) ----- */
.hero-slider {
    margin: 48px 0 56px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    background: #111;
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 340px;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.15, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Декоративный градиент поверх слайдера */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, #0a0a0a 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Индикаторы (точки) слайдера */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slider-dots .dot.active-dot {
    background: #d4b68a;
    transform: scale(1.25);
    border-color: #d4b68a;
    box-shadow: 0 0 16px rgba(212, 182, 138, 0.3);
}

/* ----- СЕКЦИЯ ВИДЖЕТА БРОНИРОВАНИЯ ----- */
.booking-section {
    margin: 20px 0 70px 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    border-radius: 40px;
    padding: 48px 40px 56px 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.booking-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.booking-title span {
    color: #d4b68a;
    font-weight: 400;
}
.booking-sub {
    color: #999;
    margin-bottom: 36px;
    font-size: 17px;
    border-left: 2px solid #d4b68a;
    padding-left: 18px;
}

/* Сетка формы бронирования */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    background: rgba(0,0,0,0.3);
    padding: 30px 34px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b89b7a;
    font-weight: 300;
}

.form-group input,
.form-group select {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 14px 18px;
    border-radius: 14px;
    color: #f0f0f0;
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #d4b68a;
    box-shadow: 0 0 0 3px rgba(212, 182, 138, 0.15);
    background: #1a1a1a;
}

.form-group select option {
    background: #1a1a1a;
    color: #eee;
}

.btn-book {
    grid-column: 1 / -1;
    background: #d4b68a;
    border: none;
    padding: 18px 20px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: inherit;
}

.btn-book:hover {
    background: #e7c9a2;
    transform: scale(1.01);
    box-shadow: 0 8px 28px rgba(212, 182, 138, 0.25);
}

.btn-book i {
    font-size: 22px;
}

/* --- Футер / Контакты --- */
.footer-contacts {
    margin: 30px 0 50px 0;
    padding: 28px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #777;
    font-size: 15px;
}

.footer-contacts a {
    color: #b89b7a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contacts a:hover {
    color: #e7c9a2;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 22px;
}

.social-icons a {
    color: #888;
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: #d4b68a;
    transform: translateY(-2px);
}

/* --- АДАПТИВ --- */
@media (max-width: 820px) {
    .site-wrapper {
        padding: 0 18px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
    }
    .nav-menu a {
        font-size: 15px;
    }
    .booking-grid {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 18px;
    }
    .btn-book {
        font-size: 17px;
    }
    .hero-slider {
        aspect-ratio: 16 / 9;
        min-height: 220px;
        margin: 28px 0 32px 0;
    }
    .booking-section {
        padding: 30px 18px 36px 18px;
    }
    .booking-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    .nav-menu a {
        font-size: 14px;
    }
    .nav-menu a i {
        margin-right: 4px;
    }
}
/* ----- СХЕМА ЗАЛА ----- */
.hall-scheme {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 300px;
    position: relative;
}

/* Легенда */
.hall-scheme::before {
    content: '🟢 Свободно  🟠 Выбрано  🔴 Занято';
    position: absolute;
    top: -12px;
    right: 30px;
    background: #0a0a0a;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Каждый стол */
.table-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.15, 1);
    border: 2px solid transparent;
    position: relative;
    user-select: none;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

/* Состояния стола */
.table-item.free {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    color: #4CAF50;
}

.table-item.free:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
    background: rgba(76, 175, 80, 0.25);
}

.table-item.selected {
    background: rgba(255, 193, 7, 0.2);
    border-color: #FFC107;
    color: #FFC107;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.15);
}

.table-item.booked {
    background: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
    color: #F44336;
    cursor: not-allowed;
    opacity: 0.5;
}

.table-item.booked::after {
    content: '✕';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    color: #F44336;
}

.table-item .table-number {
    font-size: 20px;
    font-weight: 700;
}

.table-item .table-seats {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* --- МОДАЛЬНОЕ ОКНО (КОМПАКТНАЯ ВЕРСИЯ) --- */
/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block !important;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 24px 28px;
    max-width: 360px;
    width: 92%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Поля формы в модалке */
.modal-content .form-group {
    margin-bottom: 12px;
}

.modal-content .form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b89b7a;
    font-weight: 300;
    margin-bottom: 4px;
    display: block;
}

.modal-content .form-group input,
.modal-content .form-group select {
    width: 100%;
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 10px 14px;
    border-radius: 12px;
    color: #f0f0f0;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    border-color: #d4b68a;
    box-shadow: 0 0 0 3px rgba(212, 182, 138, 0.15);
    background: #1a1a1a;
}

.modal-content .btn-book {
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    margin-top: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 26px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #d4b68a;
    transform: rotate(90deg);
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
/* ----- СПИСОК БРОНЕЙ ----- */
.reservations-list {
    padding: 10px 0;
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.reservation-item .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reservation-item .info .table {
    font-weight: 600;
    font-size: 18px;
    color: #d4b68a;
}

.reservation-item .info .details {
    font-size: 14px;
    color: #999;
}

.reservation-item .actions {
    display: flex;
    gap: 10px;
}

.reservation-item .actions button {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

.btn-cancel:hover {
    background: rgba(244, 67, 54, 0.25);
}

.btn-arrived {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.btn-arrived:hover {
    background: rgba(76, 175, 80, 0.25);
}

.no-reservations {
    text-align: center;
    color: #888;
    padding: 30px;
}
/* Стили для заблокированных опций в select */
#modalTime option:disabled {
    opacity: 0.4;
    color: #666;
    background: #2a2a2a;
    cursor: not-allowed;
}

#modalTime option:disabled::before {
    content: '🔒 ';
}

/* Стили для select во время загрузки */
#modalTime:disabled {
    opacity: 0.6;
    cursor: wait;
}
/* --- ОТОБРАЖЕНИЕ МЕСТ НА СТОЛЕ --- */
.table-item .table-seats-label {
    font-size: 9px;
    opacity: 0.6;
    margin-top: 1px;
    display: block;
}

/* Увеличиваем размер для лучшей читаемости */
.table-item {
    width: 80px;
    height: 80px;
    min-width: 80px;
}

@media (max-width: 600px) {
    .table-item {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    .table-item .table-seats-label {
        font-size: 7px;
    }
}
/* ============================================================
   КАРТА НА СТРАНИЦЕ КОНТАКТОВ (АДАПТИВ)
   ============================================================ */

/* Контейнер карты */
.contacts-map {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
    display: block;
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 992px) {
    .contacts-map {
        min-height: 320px;
        aspect-ratio: 16 / 9;
        width: 100%;
    }
    .contacts-map iframe {
        min-height: 100% !important;
        height: 100% !important;
    }
}

/* Для маленьких телефонов — квадрат или 4:3 */
@media (max-width: 600px) {
    .contacts-map {
        aspect-ratio: 1 / 1;
        min-height: unset;
    }
}

/* Для очень узких экранов */
@media (max-width: 400px) {
    .contacts-map {
        aspect-ratio: 4 / 3;
    }
}

/* Чтобы карта не вылезала за пределы */
.contacts-map > div {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit;
}
/* Возрастное ограничение 18+ */
.age-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Должен быть выше всего на сайте */
    opacity: 1;
    transition: opacity 0.5s ease;
    font-family: 'Segoe UI', sans-serif;
}

.age-modal.hidden {
    opacity: 0;
    pointer-events: none; /* Чтобы нельзя было кликнуть сквозь прозрачное окно */
}

.age-modal-content {
    background: #1a1a1a;
    border: 1px solid #d4b68a;
    padding: 40px 50px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.age-modal-content h2 {
    font-size: 28px;
    color: #d4b68a;
    margin-bottom: 10px;
}

.age-modal-content p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 30px;
}

.age-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-btn {
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.age-btn-yes {
    background: #d4b68a;
    color: #0a0a0a;
}
.age-btn-yes:hover {
    background: #e7c9a2;
    transform: scale(1.02);
}

.age-btn-no {
    background: transparent;
    color: #888;
    border: 1px solid #333;
}
.age-btn-no:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}
/* ============================================================
   КОНТАКТЫ + КАРТА — РОВНО 50/50 (ПРИНУДИТЕЛЬНО)
   ============================================================ */

.contacts-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 50px;
    margin: 40px 0 60px 0;
    min-height: 500px;
    width: 100%;
}

.contacts-info {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contacts-map {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
    min-height: 400px;
    position: relative;
    box-sizing: border-box;
}

/* Адаптив — на мобилках столбиком */
@media (max-width: 992px) {
    .contacts-main {
        flex-direction: column !important;
        gap: 30px;
    }
    .contacts-info,
    .contacts-map {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .contacts-map {
        min-height: 320px;
        aspect-ratio: 16 / 9;
        width: 100%;
    }
}
/* ============================================================
   PLAYSTATION 5 — АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
    .ps5-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .ps5-card {
        padding: 20px 16px !important;
    }
    .ps5-card .price {
        font-size: 20px !important;
    }
    .ps5-card .title {
        font-size: 16px !important;
    }
    .ps5-card .icon {
        font-size: 30px !important;
    }
    .ps5-card .desc {
        font-size: 13px !important;
    }
    .ps5-card .highlight {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    .ps5-card .feature {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
}

@media (max-width:768px){
    .ps5-grid{grid-template-columns:1fr !important;}
    .ps5-section{padding:30px 18px 36px!important;border-radius:24px!important;}
    .ps5-title{font-size:24px!important;}
    .ps5-subtitle{font-size:14px!important;}
    .ps5-card{padding:20px 16px!important;}
}


.ps5-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
@media(max-width:768px){.ps5-grid{grid-template-columns:1fr!important}.ps5-section{margin:30px 0!important;padding:20px!important;border-radius:20px!important}.ps5-card{padding:18px!important}}
