/* Сброс отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные цветов (потом легко поменять всё разом) */
:root {
    --primary: #c9a96e;    /* золотой */
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
    --font: 'Arial', sans-serif;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
}

/* Шапка */
header {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
}

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../img/hero-bg.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-address {
    font-size: 1rem;
    margin-top: 1.5rem;
    opacity: 0.85;
}

.hero-hours {
    font-size: 0.90rem;
    margin-top: -1rem;
    opacity: 0.75;
}

/* Кнопка */
.btn-call {
    background: #b8944e;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1.2rem 2.5rem;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.3s;
    border-radius: 8px;
}

.btn-call:hover {
    background: #b8944e;
    transform: scale(1.05);
}


    

/* Сетка меню */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== ТАБЫ МЕНЮ ===== */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.tab-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
}

/* ===== КАРТОЧКИ БЛЮД ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    
    

}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Карточка — простая */
.menu-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.menu-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.menu-item .weight {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.menu-item .price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: auto;
}

.menu-item.hidden {
    display: none;
}

/* ===== ФОН СЕКЦИИ МЕНЮ ===== */
#menu {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
                url('../img/bg-menu.webp') center/cover fixed no-repeat;
    padding-bottom: 4rem;
}

#menu h2 {
    color: var(--white);
    padding-top: 4rem;
    text-align: center;
    font-size: 2rem;
}

/* Табы на тёмном фоне — чуть ярче */
#menu .tab-btn {
    color: var(--white);
    border-color: var(--white);
}

#menu .tab-btn:hover,
#menu .tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Карточки оставляем белыми для контраста */
#menu .menu-item {
    background: var(--white);
    color: var(--dark);
}

#menu .menu-item h3 {
    color: var(--dark);
}

#menu .menu-item .price {
    color: var(--primary);
}

section h2 {
    text-align: center;
    padding-top: 4rem;
    font-size: 2rem;
}

/* ===== АКЦИИ И АФИША ===== */
#events {
    padding: 4rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../img/events-bg.jpeg') center/cover fixed no-repeat;
}

#events h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
    padding-top: 0;
}

/* Сетка карточек */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточка */
.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-6px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Плашка-бейдж */
.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    z-index: 2;
}

.event-live .event-badge {
    background: #e74c3c;
    color: var(--white);
}

.event-master .event-badge {
    background: #2ecc71;
    color: var(--white);
}

/* Текстовая часть */
.event-info {
    padding: 1.2rem;
}

.event-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.tag-sale {
    background: #ffeaa7;
    color: #d68910;
}

.tag-event {
    background: #dfe6e9;
    color: #636e72;
}

.event-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.event-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.event-date {
    font-size: 0.8rem !important;
    color: #999 !important;
}

/* Отключение параллакса на мобильных */
@media (max-width: 768px) {
    #events {
        background-attachment: scroll;
    }
}

/* Форма */
#booking-form {
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#booking-form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    #booking-form select {
    padding: 0.8rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

#booking-form select:invalid {
    color: #888;
}
}

/* Контакты и футер */
#contacts {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

/* Контакты — телефон */
.contact-phone {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-phone:hover {
    text-decoration: underline;
}

/* Соцсети */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s, opacity 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-icon {
    font-size: 1.2rem;
}

.social-btn.yandex {
    background: #fc3f1d;
    color: var(--white);
}

.social-btn.vk {
    background: #0077ff;
    color: var(--white);
}

footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 1rem;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Отключение параллакса на мобильных */
@media (max-width: 768px) {
    #menu {
        background-attachment: scroll;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.modal-weight {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-ingredients {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
}

.modal-ingredients h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: #555;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

/* Запрет скролла при открытом окне */
body.no-scroll {
    overflow: hidden;
}

/* Плашка-дисклеймер */
.menu-disclaimer {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    padding: 1rem 1rem 0;
    margin: 0;
}

/* Карточка без фото — компактная */
.menu-item:not(:has(img)) {
    padding: 0.8rem 1.2rem;
}
