/* ==========================================================================
   Мероприятия (Celebrations) - Hero, вместимость, пакеты, галерея.
   ========================================================================== */

/* --- Hero --- */
.celebrations-plain-header {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--header-height) + 4rem) var(--container-padding) 3rem;
}
.celebrations-plain-header h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 1rem; max-width: 22ch; }
.celebrations-plain-subtitle { font-size: 1.2rem; max-width: 55ch; margin: 0 0 1.75rem; color: #555; }
.celebrations-plain-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Вместимость: факты по пространствам --- */
.celebrations-capacity {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem var(--container-padding) 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.celebrations-capacity-card {
    border: 1px solid var(--color-stone-line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}
.celebrations-capacity-card h3 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.celebrations-capacity-card p { font-size: 1.05rem; color: var(--color-teal); font-weight: 600; margin: 0; }
@media (max-width: 700px) {
    .celebrations-capacity { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* Пакеты (Wedding/Birthday/Corporate/Cocktail/Musical evening) рендерятся
   как шахматные блоки .restaurant-block - тот же компонент, что на странице
   Ресторан (restaurant.css, подключён отдельно в layout.php для этой
   страницы). Так на лендинге нет проблемы с "рваной" сеткой карточек при
   нечётном количестве пунктов, и не плодим второй похожий компонент. */
.celebrations-packages-anchor { scroll-margin-top: var(--header-height); }
.celebrations-package-cta { display: inline-block; margin-top: 1.25rem; }
/* Если галерея ещё не заполнена (нет реальных фото событий), последний
   блок пакета оказывается прямо перед подвалом - выравниваем отступ под
   остальные страницы (5rem), не трогая базовый .restaurant-block padding,
   чтобы не задеть межблочные отступы на самой странице Ресторан. */
.celebrations-packages-anchor > .restaurant-block:last-child { padding-bottom: 5rem; }

/* --- Галерея (общий компонент масонри+лайтбокс, как на странице "О нас" -
   классы .about-gallery* переиспользуются намеренно: JS хардкодит имя
   класса колонки при раскладке, так что имя не меняем между страницами) --- */
.about-gallery {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--container-padding) 5rem;
}
.about-gallery-masonry {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.about-gallery-masonry-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.about-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.about-gallery-item img { width: 100%; height: auto; display: block; }

.about-gallery-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.9);
    padding: 3rem;
}
.about-gallery-lightbox.is-open { display: flex; }
.about-gallery-lightbox img {
    max-width: 100%; max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.about-gallery-lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.about-gallery-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.about-gallery-lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.about-gallery-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.about-gallery-lightbox-prev { left: 1.5rem; }
.about-gallery-lightbox-next { right: 1.5rem; }
