

/* Start:/local/templates/landingnch/components/bitrix/news.list/projects-list/style.css?17719386466822*/
.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.popup_project {
    position: relative;
    width: min(1120px, 100%);
    height: min(88dvh, 680px);
    max-height: 100dvh;
    background: #fff;
    border-radius: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.left_block {
    background: #f4f4f4;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.gallery_wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 16px;
}

.gallery_main {
    width: 100%;
    min-width: 0;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background-color: #ddd;
}

.main_pic {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.main_pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image-description-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    background: #6cba5c;
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    z-index: 8;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}


.project-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 12;
}

.project-gallery-nav-prev {
    left: 12px;
}

.project-gallery-nav-next {
    right: 12px;
}

.project-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.58);
}

.gallery_thumbs {
    width: 88px;
    min-width: 0;
    height: 100%;
}

.gallery_thumbs .swiper-wrapper {
    width: 100%;
}

.thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    opacity: 0.62;
    transition: opacity .25s ease, transform .25s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery_thumbs .swiper-slide-thumb-active {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px #6cba5c;
}


.right_block {
    padding: 38px 46px 30px 34px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    background-color: #f9f9f9;
    min-height: 0;
}

.right_block-header {
    margin-bottom: 18px;
    flex-shrink: 0;
}

.project_name {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project_badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-status-badge {
    margin-bottom: 0;
}

.project-status-badge.is-ready {
    background: #6cba5c;
    color: #fff;
}

.project-status-badge.is-pending {
    background: #dedede;
    color: #111;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #6cba5c;
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.project_name h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.14;
    color: #111;
    font-weight: 700;
}

.right_block-description {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    color: #444;
    line-height: 1.58;
    font-size: 15px;
}

.right_block-description p {
    margin: 0 0 12px;
}

.right_block-description::-webkit-scrollbar {
    width: 6px;
}

.right_block-description::-webkit-scrollbar-track {
    background: #eee;
}

.right_block-description::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 999px;
}

body.project-popup-open {
    overflow: hidden;
}

.fancybox__container {
    z-index: 12050 !important;
}

@media (max-width: 900px) {
    .popup-overlay {
        padding: 0;
        align-items: stretch;
    }

    .popup_project {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .left_block {
        border-radius: 0;
        height: 450px;
        flex: 0 0 450px;
    }

    .gallery_wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 14px;
        height: auto;
    }

    .gallery_main {
        border-radius: 18px;
        height: clamp(220px, 42vh, 340px);
    }

    .gallery_thumbs {
        width: 100%;
        height: auto;
    }

    .thumb {
        width: 64px;
        border-radius: 12px;
    }

    .gallery_thumbs .swiper-slide-thumb-active {
        transform: none;
    }

    .project-gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .project-gallery-nav-prev {
        left: 10px;
    }

    .project-gallery-nav-next {
        right: 10px;
    }

    .project-image-description-badge {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        width: fit-content;
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 12px;
    }

    .right_block {
        padding: 14px 16px 16px;
        height: auto;
        min-height: auto;
        flex: 0 0 auto;
    }

    .project_name h2 {
        font-size: 22px;
    }

    .right_block-description {
        font-size: 14px;
        padding-right: 2px;
        overflow: visible;
        min-height: auto;
        flex: initial;
    }

    .close-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 12020;
    }

    .project_badges {
        margin-bottom: 10px;
        gap: 8px;
    }

    .category-badge {
        padding: 7px 11px;
        font-size: 11px;
    }
}

.projects {
    margin-bottom: 8rem;
}

/* End */
/* /local/templates/landingnch/components/bitrix/news.list/projects-list/style.css?17719386466822 */
