.work {
    margin-bottom: 48px;
    grid-template-columns: 680px auto;
    gap: 24px;
    display: none;
}

.work.active {
    display: grid;
}

.work-slider.swiper {
    max-width: 100%;
    max-height: 576px;
}

.work-slider__slide {
    display: flex;
    position: relative;
    cursor: pointer;
}

.work-slider__slide svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.work-slider__slide img {
    border-radius: 8px;
    object-fit: cover;
}

[data-fancybox-video] {
    cursor: pointer;
}

.work-detail__title {
    font-size: 20px;
    line-height: 24px;
    font-family: "HelveticaNeueCyr-Medium", Helvetica, Arial, sans-serif;
    margin-bottom: 16px;
}

.work-detail__subtitle {
    margin-bottom: 8px;
    font-weight: 700;
}

.work-detail-spec {
    margin-bottom: 32px;
}

.work-detail-spec__item {
    color: #919399;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    line-height: 16px;
}

.work-detail-spec__item:nth-child(n + 12) {
    display: none;
}

.props-modal .work-detail-spec__item:nth-child(n + 12) {
    display: flex;
}

.work-detail-spec__item-price {
    text-align: right;
    white-space: nowrap;
}

.work-detail-spec__item:not(:last-child) {
    margin-bottom: 16px;
}

.work-detail__price {
    color: #E91A23;
    font-size: 24px;
    font-family: "HelveticaNeueCyr-Medium", Helvetica, Arial, sans-serif;
    margin-bottom: 4px;
}

.work-detail__address {
    color: #919399;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
}

.work-detail__footer {
    margin-bottom: 16px;
}

.work-detail__btn {
    width: 100%;
    max-width: 352px;
    height: 40px;
}

.work-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px 28px;
    margin-bottom: 32px;
}

.primary-section {
    margin-bottom: 64px;
}

.work-item {
    transition: 0.3s;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
}

.work-item:hover {
    box-shadow: 0px 5px 11px 0px #0000004A, 0px 19px 19px 0px #00000042, 0px 44px 26px 0px #00000026, 0px 78px 31px 0px #0000000A, 0px 122px 34px 0px #00000003;
    opacity: 0.5;
}

.work-item::after {
    border-radius: 8px;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    background: linear-gradient(180deg, rgba(44, 45, 46, 0.16) 64.89%, rgba(44, 45, 46, 0.88) 96.63%);
}

.work-item__cover {
    border-radius: 8px;
}

.work-item-footer {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: calc(100% - 32px);
    font-size: 15px;
    line-height: 20px;
    color: #FFF;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.work-item-footer__right {
    text-align: right;
}

.work-item__price {
    white-space: nowrap;
}

.work-item__address,
.work-item__date {
    font-size: 13px;
    line-height: 18px;
}

.show-more {
    font-size: 16px;
    border: 1px solid #E31E24;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    max-width: 352px;
    margin: 0 auto;
    border-radius: 4px;
    cursor: pointer;
}

.work-head,
.work-more,
.work-hide {
    display: none;
}


.balcony-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
}

.balcony-modal.open {
    display: flex;
}

.balcony-modal::after,
.balcony-modal::before {
    content: "";
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto
}

.balcony-modal-wrap {
    margin-top: 55px;
    max-height: calc(100vh - 55px);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px
}

.balcony-modal-close {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    z-index: 3;
    cursor: pointer;
}

.balcony-modal-layer {
    background: rgba(0, 0, 0, 0.48);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0
}

.balcony-modal-content {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    overflow: auto;
    height: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
}

.props-modal .balcony-modal-wrap {
    margin: 16px 0;
    max-height: calc(100vh - 32px);
    max-width: 496px;
}

.props-modal .balcony-modal-content {
    display: block;
    padding: 32px;
}

.props-modal .work-detail__btn {
    width: 121px;
}

.props-modal .work-detail-spec {
    margin-bottom: 16px;
}

.show-modal-props {
    display: block;
    margin-bottom: 8px;
    color: #30C2FF;
    font-size: 15px;
    line-height: 16px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .work {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .work-slider.swiper {
        max-height: 416px;
    }

    .work-list {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .work-detail-spec {
        margin-bottom: 16px;
    }

    .work-detail__subtitle {
        border-bottom: 1px solid #BFC1C7;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .work-detail-spec__item:not(:last-child) {
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #BFC1C7;
    }

    .work-detail-spec__item:nth-child(n + 7) {
        display: none;
    }

    .work-detail__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .work-detail__price {
        font-size: 22px;
        margin-bottom: 0;
    }

    .work-detail__address {
        text-align: right;
    }
}

@media (max-width: 767px) {
    .work {
        margin-bottom: 32px;
        display: grid;
        grid-template-columns: 1fr;
        padding: 16px;
        border: 1px solid #BFC1C7;
        border-radius: 8px;
    }

    .work-slider__slide.swiper-slide {
        width: 160px;
        max-height: 320px;
    }

    .work-detail {
        display: none;
    }

    .work-detail__title {
        display: none;
    }

    .work-detail__footer {
        display: none;
    }

    .work-detail__btn {
        max-width: 100%;
    }

    .work-head {
        display: block;
    }

    .work-head__row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .work-head__row > span:last-child {
        white-space: nowrap;
    }

    .work-head__row:last-child {
        color: #919399;
    }

    .work-head__title {
        font-family: "HelveticaNeueCyr-Medium", Helvetica, Arial, sans-serif;
    }

    .work-more,
    .work-hide {
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        color: #008CDB;
    }

    .work-hide {
        justify-content: flex-end;
        color: #919399;
        margin-bottom: 16px;
    }

    .work-list {
        display: none;
    }

    .show-modal-props {
        display: none;
    }

    .work-detail-spec__item:nth-child(n + 7) {
        display: flex;
    }
}