:root {
    --primary-yellow: #FFD700;
    --primary-black: #1A1A1A;
    --dark-yellow: #E6C200;
    --light-black: #2D2D2D;
    --gray-dark: #333333;
    --gray-light: #555555;
    --text-light: #F5F5F5;
    --text-gray: #AAAAAA;
    --telegram-color: #0088cc;
    --success-color: #32CD32;
    --warning-color: #FFA500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Arial', sans-serif; }

body {
    background-color: var(--primary-black);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    position: relative !important;
    overflow-x: hidden !important;
}

/* === БОКОВАЯ ПАНЕЛЬ === */
.sidebar {
    width: 280px;
    background-color: var(--light-black);
    border-right: 2px solid var(--primary-yellow);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 9999 !important;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5) !important;
}

.sidebar.active { transform: translateX(0); }

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-dark);
}

.min-order {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.min-order i, .min-order strong { color: var(--primary-yellow); }

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav { padding: 1rem; }
.nav-section { margin-bottom: 1.5rem; }

.nav-section h3 {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 0.5rem;
}

.nav-section ul { list-style: none; }
.nav-section li { margin-bottom: 0.5rem; }

.nav-section a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-section a:hover, .nav-section a.active {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border-left: 3px solid var(--primary-yellow);
}

.nav-section a i { width: 20px; text-align: center; }

/* === ОСНОВНОЙ КОНТЕНТ === */
.main-content {
    flex: 1;
    transition: margin-left 0.3s ease;
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh !important;
    width: 100%;
}

.main-header {
    background-color: var(--light-black);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-yellow);
    position: sticky;
    top: 0;
    z-index: 100 !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--primary-yellow);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover { background-color: var(--primary-yellow); color: var(--primary-black); }

.logo { text-align: center; }
.logo h1 { font-size: 2.5rem; }
.tagline { font-size: 0.8rem; letter-spacing: 3px; color: var(--text-gray); }

.header-right { display: flex; align-items: center; gap: 1.5rem; }

.cart {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
}

.cart-count {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.cart-total { color: var(--primary-yellow); font-weight: 600; }

.reserve-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reserve-btn:hover { background-color: var(--dark-yellow); }

/* === ЗАГОЛОВОК И СЕКЦИИ === */
.reservation-header {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-yellow);
}

.reservation-header h1 { font-size: 3rem; color: var(--primary-yellow); margin-bottom: 1rem; }
.reservation-info { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.reservation-info span { background: rgba(255,215,0,0.1); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.reservation-info i { color: var(--primary-yellow); margin-right: 5px; }

.food-reservation-section { padding: 2rem; border-bottom: 1px solid var(--gray-dark); }
.container { max-width: 1400px; margin: 0 auto; }
.food-reservation-section h2 { color: var(--primary-yellow); text-align: center; margin-bottom: 2rem; font-size: 2rem; }

/* === КОРЗИНА === */
.food-cart {
    background-color: var(--light-black);
    border-radius: 15px;
    border: 2px solid var(--primary-yellow);
    overflow: hidden;
}

.empty-cart { padding: 3rem; text-align: center; color: var(--text-gray); }
.empty-cart i { font-size: 4rem; color: var(--primary-yellow); margin-bottom: 1rem; }

.cart-header { padding: 1.5rem; background: rgba(255,215,0,0.05); display: flex; justify-content: space-between; }
.cart-header h3, .cart-total strong { color: var(--primary-yellow); font-size: 1.2rem; }

.cart-item { display: flex; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-dark); align-items: center; }
.cart-item h4 { color: var(--text-light); }
.cart-item-price { color: var(--text-gray); font-size: 0.9rem; }

.quantity-controls { display: flex; align-items: center; background: rgba(255,255,255,0.05); border-radius: 5px; }
.quantity-btn { background: none; border: none; color: var(--primary-yellow); width: 30px; height: 30px; cursor: pointer; }
.quantity { width: 30px; text-align: center; }
.item-total { color: var(--primary-yellow); font-weight: bold; margin: 0 1rem; }
.remove-item { color: #ff6b6b; background: none; border: none; cursor: pointer; }

.cart-actions { padding: 1.5rem; display: flex; gap: 1rem; justify-content: flex-end; }

/* === ФОРМА И ПЕРЕКЛЮЧАТЕЛЬ === */
.reservation-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem 3rem; }
.reservation-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }

.reservation-form { background: var(--light-black); padding: 2rem; border-radius: 15px; border: 2px solid var(--primary-yellow); }
.reservation-form h2 { color: var(--primary-yellow); margin-bottom: 1.5rem; font-size: 1.8rem; }

.service-toggle-container { margin-bottom: 2rem; }
.service-toggle { display: flex; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 5px; border: 1px solid var(--gray-dark); }
.service-btn {
    flex: 1; padding: 1rem; border: none; background: none; color: var(--text-gray); font-size: 1.1rem;
    font-weight: 600; cursor: pointer; border-radius: 8px; transition: all 0.3s; display: flex; justify-content: center; gap: 10px;
}
.service-btn:hover { color: var(--text-light); }
.service-btn.active { background-color: var(--primary-yellow); color: var(--primary-black); box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2); }

#address-group, #table-group, #guests-group { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: flex; gap: 0.5rem; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 600; }
.form-group label i { color: var(--primary-yellow); }

.date-input, .phone-input, .name-input, .telegram-input, .special-input {
    width: 100%; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--gray-dark);
    border-radius: 8px; color: var(--text-light); font-size: 1rem;
}
.date-input:focus, .phone-input:focus, .name-input:focus { border-color: var(--primary-yellow); outline: none; }

.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.time-slot { padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--gray-dark); color: var(--text-light); cursor: pointer; border-radius: 8px; }
.time-slot.active { background: var(--primary-yellow); color: var(--primary-black); border-color: var(--primary-yellow); }

.guests-selector { display: flex; gap: 1.5rem; align-items: center; background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 8px; width: fit-content; }
.guest-btn { background: none; border: none; color: var(--primary-yellow); font-size: 1.2rem; cursor: pointer; }
.guest-count { font-size: 1.5rem; font-weight: 700; color: var(--primary-yellow); min-width: 30px; text-align: center; }

.table-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.table-type label { display: flex; flex-direction: column; align-items: center; padding: 1rem; border: 1px solid var(--gray-dark); border-radius: 8px; cursor: pointer; height: 100%; text-align: center; }
.table-type input:checked + label { background: rgba(255,215,0,0.1); border-color: var(--primary-yellow); }
.table-type input { display: none; }

.reservation-summary { background: rgba(255,215,0,0.05); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--gray-dark); margin-top: 2rem; }
.summary-item { display: flex; justify-content: space-between; border-bottom: 1px solid var(--gray-dark); padding-bottom: 0.8rem; margin-bottom: 0.8rem; }
.summary-item span:last-child { color: var(--primary-yellow); font-weight: 600; }

/* === TELEGRAM PANEL & CONTACT LINK === */
.telegram-panel { 
    text-align: center; 
    background: var(--light-black); 
    border: 2px solid var(--telegram-color); 
    padding: 2rem; 
    border-radius: 15px; 
}

.telegram-icon { 
    font-size: 4rem; 
    color: var(--telegram-color); 
    margin-bottom: 1rem; 
}

/* Обновленная кнопка отправки (без flex-column, чтобы текст был по центру) */
.telegram-btn { 
    width: 100%; 
    padding: 1.5rem; 
    background: var(--telegram-color); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; /* Центрируем текст */
    align-items: center;
    gap: 10px; 
    font-size: 1.1rem; 
    transition: 0.3s;
    margin-bottom: 0; 
}

.telegram-btn:hover { 
    background: #0077b3; 
    transform: translateY(-2px); 
}

.telegram-btn:disabled { 
    background: gray; 
    cursor: not-allowed; 
}

/* НОВАЯ ССЫЛКА НА КОНТАКТ */
.contact-link {
    display: block;
    margin-top: 15px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--telegram-color);
    text-decoration: underline;
}

/* Buttons */
.btn-gold { background: var(--primary-yellow); color: var(--primary-black); padding: 1rem 2rem; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; }
.btn-outline { background: transparent; color: var(--primary-yellow); border: 2px solid var(--primary-yellow); padding: 1rem 2rem; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; }

/* Info */
.restaurant-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.info-section { background: var(--light-black); padding: 2rem; border: 1px solid var(--gray-dark); border-radius: 15px; }
.hour-item { display: flex; justify-content: space-between; border-bottom: 1px solid var(--gray-dark); padding: 0.5rem 0; }

/* Modal */
.modal { display: none; position: fixed; z-index: 10000 !important; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
.modal-content { background: var(--light-black); margin: 10% auto; padding: 2rem; border: 2px solid var(--success-color); width: 90%; max-width: 500px; border-radius: 15px; text-align: center; }
.success-icon { font-size: 4rem; color: var(--success-color); margin-bottom: 1rem; }
.close { position: absolute; right: 20px; top: 15px; font-size: 2rem; color: white; cursor: pointer; background: none; border: none; }

.notification { position: fixed; top: 20px; right: 20px; background: var(--light-black); border: 1px solid var(--primary-yellow); padding: 1rem; z-index: 99999; border-radius: 8px; }

/* ADAPTIVE */
@media (max-width: 992px) {
    .reservation-content { grid-template-columns: 1fr; }
    .restaurant-info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { width: 100%; }
    .cart-actions { flex-direction: column; }
    .cart-item { flex-direction: column; gap: 10px; align-items: flex-start; }
    .item-total { margin: 0; }
    .main-header { padding: 1rem; }
    .logo h1 { font-size: 1.5rem; }
    .reservation-header h1 { font-size: 2rem; }
    .phone-text { display: none; }
    .time-slots { grid-template-columns: repeat(2, 1fr); }
}