/* ═══════════════════════════════════════════════════
   Секция меню — табы, галерея, лайтбокс
═══════════════════════════════════════════════════ */
.menu-section {
    background:
        radial-gradient(circle at 30% 20%, rgba(214, 175, 107, 0.06), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(214, 175, 107, 0.04), transparent 36%),
        linear-gradient(180deg, var(--surface-dark) 0%, #14100c 100%);
}

.menu-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.menu-heading h2::after {
    margin-left: auto;
    margin-right: auto;
}

.menu-lead {
    font-size: 1rem;
    color: rgba(255, 244, 233, 0.55);
}

/* ── Табы категорий ── */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    margin-bottom: 44px;
}

.menu-tab {
    padding: 10px 22px;
    border: 1px solid rgba(214, 175, 107, 0.18);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 244, 233, 0.6);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}

.menu-tab:hover {
    color: rgba(255, 244, 233, 0.9);
    border-color: rgba(214, 175, 107, 0.4);
    background: rgba(214, 175, 107, 0.06);
}

.menu-tab.is-active {
    color: #1a130f;
    background: linear-gradient(135deg, #f0ca7a 0%, #d4944a 100%);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(214, 148, 74, 0.3);
}

/* ── Галерея страниц меню ── */
.menu-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

.menu-gallery-item {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 248, 234, 0.04);
    border: 1px solid rgba(214, 175, 107, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
    aspect-ratio: 3 / 4;
}

.menu-gallery-item:hover,
.menu-gallery-item:focus-visible {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(214, 175, 107, 0.2);
    border-color: rgba(214, 175, 107, 0.3);
    outline: none;
}

.menu-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
    contain: layout style;
}

.menu-gallery-item:hover img {
    transform: scale(1.05);
}

.menu-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 18px 14px;
    background: linear-gradient(0deg, rgba(10, 7, 5, 0.82) 0%, transparent 100%);
    color: rgba(255, 244, 233, 0.88);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-gallery-item:hover .menu-gallery-label {
    opacity: 0;
}

.menu-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 10, 7, 0.5);
    color: rgba(255, 244, 233, 0.9);
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}

.menu-gallery-item:hover .menu-gallery-zoom,
.menu-gallery-item:focus-visible .menu-gallery-zoom {
    opacity: 1;
}

/* ── Лайтбокс ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 6, 4, 0.92);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: zoom-out;
}

.lightbox-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 880px);
    max-height: 90vh;
    padding: 0 64px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-img.is-loading {
    opacity: 0.3;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 244, 226, 0.16);
    border-radius: 50%;
    background: rgba(255, 244, 226, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 244, 226, 0.18);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 244, 226, 0.14);
    border-radius: 50%;
    background: rgba(255, 244, 226, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-nav:hover {
    background: rgba(214, 175, 107, 0.22);
}

.lightbox-nav:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: rgba(255, 244, 226, 0.6);
    background: rgba(10, 6, 4, 0.5);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 244, 226, 0.1);
    white-space: nowrap;
    user-select: none;
}

