/* Базовые настройки страницы */
.menu-page {
    background-color: #131313;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Навигация */
.menu-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, #050505, transparent);
}

.back-link {
    color: #c5a059;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.nav-logo-small {
    height: 110px;
}

/* Декоративные линии */
.menu-decor-line {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(197, 160, 89, 0.1);
    z-index: 1;
}
.line-left { left: 4%; }
.line-right { right: 4%; }

/* Контент */
.menu-container {
    margin: 50px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.menu-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: 10px;
    font-weight: 300;
    margin: 10px 0;
}

.gold-separator {
    width: 60px;
    height: 1px;
    background: #c5a059;
    margin: 20px auto;
}

/* Секция с 2 фото меню */
.main-menu-photos {
    margin: 40px 240px 0px 240px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.photo-frame {
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 10px;
    transition: transform 0.4s ease;
}

.photo-frame:hover {
    transform: translateY(-5px);
    border-color: #c5a059;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #c5a059;
    text-transform: uppercase;
}

/* Секция Галереи Кухни */
.menu-section-title {
    text-align: center;
    margin: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

.menu-section-title span {
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
}

.kitchen-gallery {
    display: flex;
    margin: 40px 100px 0 100px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-single {
    margin: 40px 400px 0 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay span {
    border: 1px solid #c5a059;
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* Простой Lightbox на CSS */
.full-size {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    cursor: zoom-out;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px); /* Размытие заднего плана */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(197, 160, 89, 0.3); /* Золотистая рамка */
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #c5a059;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #fff;
}

#lightbox-caption {
    margin-top: 20px;
    color: #c5a059;
    letter-spacing: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Добавляем курсор лупы на изображения */
.zoomable, .menu-img, .card-img-wrap img {
    cursor: zoom-in !important;
}



.no-scroll { overflow: hidden; }

/* Адаптивность */
@media (max-width: 768px) {
    .main-menu-photos {
        grid-template-columns: 1fr;
        margin: 40px 0 0 0;
    }
    .menu-decor-line { display: none; }
    .menu-nav { padding: 1rem 5%; }
    .nav-logo-small {
    height: 40px;
}
.kitchen-gallery {
    flex-direction: column;
    margin: 40px 10px 0 10px;
}
.gallery-item-single {
    margin: 0;
}
}