

/* Start:/local/components/bitrix/breadcrumb/templates/.default/style.css?1782705470776*/
.breadcrumbs {
    margin-top: 40px;
    margin-bottom: 20px
}

.breadcrumbs {
    width: 100%;
    max-width: -moz-max-content;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    flex-wrap: wrap;
    vertical-align: center;
    grid-row-gap: 20px;
    margin-top: 50px;
    margin-bottom: 30px
}

@media(max-width:360px) {
    .breadcrumbs {
        /* width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 0; */
        max-width: none;
        margin-top: 40px;
        margin-bottom: 20px
    }
    .product__details {
        padding: 20px !important;
    }
}

@media(min-width:361px) {
    .breadcrumbs {
        max-width: max-content;
    }
}
/* End */


/* Start:/local/components/profmaster/objects/templates/.default/style.css?17888530946071*/
:root {
    --space-content: 100px;
}
/* Затемненный фон */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

/* Контент попапа */
.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* Изображение */
.popup-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    padding: 5px;
    background-color: white;
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #fccb06;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin: 20px;
}

.popup-close:hover {
    background-color: white;
}

.our-projects {
    margin-top: var(--space-content);
}

@media (max-width: 1279.5px) {
    .our-projects .project-card__body {
        min-height: 0;
    }

    .our-projects .project-card__content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .our-projects .project-card__content h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .our-projects .project-card__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .our-projects .project-card__body > .button {
        flex-shrink: 0;
    }
}

@media (max-width: 999.5px) {
    .our-projects .project-card__text {
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
}

/* Для мобильных устройств */
@media (max-width: 1279.5px) {
    :root {
        --space-content: 80px;
    }
}
@media (max-width: 768px) {
    .popup-close {
        top: -50px;
        right: 10px;
    }
}

@media (max-width: 999.5px) {
    :root {
        --space-content: 64px;
    }
}

/* Текст описания в карточке объекта не обрезается на уровне PHP,
   а визуально «уходит» в белый градиент только на мобильной версии
   (<=767.5px — мобильный брейкпоинт сайта).
   Полный текст остаётся в DOM (доступен в модальном окне). */
@media (max-width: 767.5px) {
    .project-card__text {
        position: relative;
        height: 112px;
        overflow: hidden;
    }

    .project-card__text::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 48px;
        background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }
}

/* Модальное окно объекта */
.object-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(35, 31, 32, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.object-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 30px 50px 30px 30px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.object-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #231f20;
}

.object-modal-content {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
    max-height: calc(90vh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
}

.object-modal-col1 {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.object-modal-col2 {
    flex: 0 0 min(500px, 45%);
    min-width: 0;
}

.object-modal-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    border-radius: 10px;
}

.object-modal-col3 {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.object-modal-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.object-modal-description {
    margin: 0 0 auto;
    color: #231f2080;
    overflow-wrap: break-word;
    word-break: break-word;
}

.object-modal__cta {
    display: flex;
    width: 100%;
    margin-top: 20px;
    text-decoration: none;
}

.object-modal__cta .button__text {
    width: 100%;
    text-align: center;
}

.object-modal-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 10px;
    opacity: 0.5;
}

.object-modal-thumb.is-active {
    opacity: 1;
}

@media (max-width: 999.5px) {
    .object-modal {
        padding: 24px 44px 24px 20px;
    }

    .object-modal-content {
        flex-direction: column;
    }

    .object-modal-col1 {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
    }

    .object-modal-col2 {
        flex: none;
        width: 100%;
    }

    .object-modal-img {
        max-height: 280px;
    }
}

@media (max-width: 767.5px) {
    .object-modal-overlay {
        padding: 12px;
    }

    .object-modal {
        width: 100%;
        padding: 20px 40px 20px 16px;
        border-radius: 16px;
    }

    .object-modal-title {
        font-size: 20px;
    }

    .object-modal-close {
        top: 12px;
        right: 12px;
    }
}

/* End */
/* /local/components/bitrix/breadcrumb/templates/.default/style.css?1782705470776 */
/* /local/components/profmaster/objects/templates/.default/style.css?17888530946071 */
