/* ==========================================================================
   NBC Fest — страница «Родина борща» (/fest/)
   ========================================================================== */

.nbc-fest-page {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
}

body.nbc-hide-page-title .entry-header,
body.nbc-hide-page-title .page-header,
body.nbc-hide-page-title h1.entry-title,
body.nbc-hide-page-title .elementor-widget-theme-page-title,
body.nbc-hide-page-title .elementor-page-title,
body.nbc-hide-page-title .page-header .entry-title {
    display: none !important;
}

.nbc-fest-section {
    padding: 20px 0 40px;
}

.nbc-fest-logo-section {
    padding-top: 30px;
    padding-bottom: 0;
    text-align: center;
}

.nbc-fest-logo {
    display: inline-block;
    max-width: 200px;
    width: 100%;
}

.nbc-fest-logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Карусель
   -------------------------------------------------------------------------- */

.nbc-fest-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.nbc-fest-slider-track {
    display: flex;
    transition: transform 0.35s ease-in-out;
    will-change: transform;
}

.nbc-fest-slide {
    flex: 0 0 33.333333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.nbc-fest-menu-slider .nbc-fest-slide {
    flex: 0 0 100%;
    padding: 0 60px;
}

.nbc-fest-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.nbc-fest-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 43px;
    height: 43px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nbc-fest-arrow:hover {
    opacity: 1;
}

.nbc-fest-arrow svg {
    width: 100%;
    height: 100%;
}

.nbc-fest-arrow-prev {
    left: 10px;
}

.nbc-fest-arrow-next {
    right: 10px;
}

/* Белые стрелки (карусель борщей) */
.nbc-fest-slider[data-arrows="white"] .nbc-fest-arrow {
    color: #fff;
}

/* Чёрные стрелки (карусель меню) */
.nbc-fest-slider[data-arrows="black"] .nbc-fest-arrow {
    color: #000;
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .nbc-fest-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .nbc-fest-section {
        padding: 30px 10px 20px;
    }

    .nbc-fest-logo {
        max-width: 200px;
    }

    .nbc-fest-slide {
        flex: 0 0 100%;
        padding: 0 5px;
    }

    .nbc-fest-menu-slider .nbc-fest-slide {
        padding: 0 40px;
    }

    .nbc-fest-arrow {
        width: 36px;
        height: 36px;
    }

    .nbc-fest-arrow-prev {
        left: 2px;
    }

    .nbc-fest-arrow-next {
        right: 2px;
    }
}
