

/* Start:/local/components/custom/banner/templates/.default/style.css?17900752942142*/
.banner-wrapper {
    position: relative;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center; /* фокусируем правый край */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: #fff;
    background-color: #0000009e;
}

.banner-overlay {
    width: 100%;
    height: 100%;
/*    background: rgba(0,0,0,0.4);*/
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    box-sizing: border-box;
}

.banner-text {
    max-width: 50%;
    font-size: 1.2em;
    color: #fff;
    padding-left: 10%;
}

.banner-text * {
    color: #fff !important;
}

.banner-text a {
    color: #fff !important;
    text-decoration: underline;
}

.banner-text ul,
.banner-text ol {
    color: #fff !important;
    padding-left: 20px;
}

.banner-text li {
    color: #fff !important;
    margin-bottom: 5px;
}

ul>li::before {
    background-color: #fff !important;
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
    .banner-text {
        max-width: 75%;
    }

    .banner-overlay {
        padding: 30px;
    }
    .banner-text {
    padding-left: unset;
    }
}

/* Мобильная картинка из "Подробнее" — скрыта на десктопе */
.banner-mobile-detail {
    display: none;
}

/* Мобильные */
@media (max-width: 767px) {
    .banner-text {
        max-width: 100%;
    }

    .banner-overlay {
        padding: 20px;
    }
    .banner-wrapper {
    height: auto !important;
    background-size: unset;
    }
    .banner-text {
    padding-left: unset;
    }

    /* Если есть картинка из "Подробнее" — скрываем основной баннер, показываем детальную картинку */
    .banner-wrapper ~ .banner-mobile-detail {
        display: block;
    }
    .banner-wrapper:has(~ .banner-mobile-detail) {
        display: none;
    }
    .banner-mobile-detail img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* End */


/* Start:/local/components/custom/photo.gallery/templates/.default/style.css?17901107905351*/
/* ==================== Slider ==================== */
.pg {
    position: relative;
    width: 100%;
    padding: 0 44px;
}

.pg__track {
    display: flex;
    gap: var(--pg-gap, 8px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none;
}

.pg__track::-webkit-scrollbar {
    display: none;
}

.pg__item {
    flex: 0 0 auto;
    width: var(--pg-iw, 280px);
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    scroll-snap-align: start;
}

.pg__item:hover .pg__img {
    transform: scale(1.05);
}

.pg__item:hover .pg__title {
    opacity: 1;
}

.pg__img {
    width: 100%;
    height: var(--pg-h, 250px);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.pg__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Slider arrows (desktop) --- */
.pg__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, opacity 0.2s;
    padding: 0;
}

.pg__arrow:hover {
    background: #fff;
}

.pg__arrow--prev {
    left: 4px;
}

.pg__arrow--next {
    right: 4px;
}

.pg__arrow--hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Empty --- */
.gallery-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* ==================== Mobile portrait ==================== */
@media (max-width: 768px) and (orientation: portrait) {
    .pg {
        padding: 0;
    }

    .pg__item {
        width: 85vw;
        flex: 0 0 85vw;
        border-radius: 0;
    }

    .pg__img {
        height: 60vw;
    }

    .pg__title {
        opacity: 1;
        font-size: 14px;
    }

    .pg__arrow {
        width: 32px;
        height: 56px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.35);
        color: #fff;
        font-size: 28px;
        box-shadow: none;
    }

    .pg__arrow:hover {
        background: rgba(0, 0, 0, 0.5);
    }

    .pg__arrow--prev {
        left: 0;
        border-radius: 0 4px 4px 0;
    }

    .pg__arrow--next {
        right: 0;
        border-radius: 4px 0 0 4px;
    }
}

/* ==================== Tablet ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .pg__item {
        width: 220px;
    }
}

/* ==================== Lightbox ==================== */
.pg-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.pg-lb--active {
    display: flex;
}

.pg-lb__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 70px 40px;
    min-height: 0;
}

.pg-lb__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

.pg-lb__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pg-lb__close:hover {
    opacity: 1;
}

.pg-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    z-index: 2;
    padding: 12px 16px;
    line-height: 1;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.pg-lb__nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.pg-lb__nav--prev {
    left: 12px;
}

.pg-lb__nav--next {
    right: 12px;
}

.pg-lb__caption {
    text-align: center;
    color: #ddd;
    font-size: 14px;
    padding: 0 20px 6px;
}

.pg-lb__counter {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding-bottom: 16px;
}

/* --- Lightbox mobile --- */
@media (max-width: 768px) {
    .pg-lb__stage {
        padding: 50px 10px 30px;
    }

    .pg-lb__nav {
        font-size: 32px;
        padding: 8px 10px;
    }

    .pg-lb__nav--prev {
        left: 4px;
    }

    .pg-lb__nav--next {
        right: 4px;
    }

    .pg-lb__close {
        font-size: 28px;
        top: 8px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .pg-lb__nav {
        display: none;
    }

    .pg-lb__stage {
        padding: 44px 4px 24px;
    }
}

/* End */
/* /local/components/custom/banner/templates/.default/style.css?17900752942142 */
/* /local/components/custom/photo.gallery/templates/.default/style.css?17901107905351 */
