.objects-item.inside .top .block-top_justify-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.objects-item.inside .top .block-top_justify-start .left_justify-start {
    display: flex;
    align-items: center;
    gap: 44px;
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
}

.objects-item.inside .top .employee-sort-controls p {
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.objects-item.inside .top .employee-sort-controls a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.objects-item.inside .top .employee-sort-controls__direction {
    font-size: 0.8em;
    line-height: 1;
}

.objects-item.inside .top .block-top_justify-start .right_d-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
}

.objects-item.inside .top .block-top_justify-start .right_d-flex > p {
    margin: 0;
    white-space: nowrap;
}

.objects-item.inside .middle .item-price > a {
    display: block;
}

.objects-item.inside .middle .item-price,
.objects-item.inside .middle .item-price .block,
.objects-item.inside .middle .item-price .employee-offer-card__image,
.objects-item.inside .middle .item-price .employee-offer-card__photo,
.objects-item.inside .middle .item-price .text-item,
.objects-item.inside .middle .item-price .price-text {
    box-sizing: border-box;
}

.objects-item.inside .middle .item-price .block {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr) 165px;
    align-items: stretch;
    min-height: 273px;
}

.objects-item.inside .middle .item-price .block:after {
    z-index: 2;
}

.objects-item.inside .middle .item-price .block:before {
    z-index: 3;
}

.objects-item.inside .middle .item-price .block > * {
    position: relative;
    z-index: 1;
}

.objects-item.inside .middle .item-price .employee-offer-card__image {
    display: block;
    width: 252px;
    max-width: 100%;
}

.objects-item.inside .middle .item-price .employee-offer-card__image p {
    height: 100%;
    margin: 0;
}

.objects-item.inside .middle .item-price .employee-offer-card__photo {
    display: block;
    width: 252px;
    height: 273px;
    object-fit: cover;
    background-color: #f4f4f4;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.objects-item.inside .middle .item-price .employee-offer-card__photo--stub {
    object-fit: contain;
    background-image: url("/local/templates/der/images/stub.png");
    background-size: 112px 112px;
}

.objects-item.inside .middle .item-price .text-item {
    min-width: 0;
}

.objects-item.inside .middle .item-price .price-text {
    min-width: 0;
    align-content: space-between;
}

.objects-item.inside .middle .item-price .price-text .bottom-price-text {
    margin-top: auto;
}

@media (max-width: 767px) {
    .objects-item.inside .top .block-top_justify-start {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start;
        gap: 12px;
    }

    .objects-item.inside .top .block-top_justify-start .left_justify-start {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: flex-start !important;
        gap: 16px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .objects-item.inside .top .employee-sort-controls p {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    .objects-item.inside .top .block-top_justify-start .right_d-flex {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .objects-item.inside .top .employee-sort-controls a {
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    .objects-item.inside .top .block-top_justify-start .right_d-flex > p {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .objects-item.inside .middle .row-objects-item {
        display: block;
    }

    .objects-item.inside .middle .col-left-objects-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .objects-item.inside .middle .item-price {
        width: 100%;
        max-width: 100%;
    }

    .objects-item.inside .middle .item-price .block {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .objects-item.inside .middle .item-price .block:after,
    .objects-item.inside .middle .item-price .block:before {
        display: none;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__image {
        display: block;
        width: 100%;
        max-width: none;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__photo {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 230px;
        background-size: contain;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__photo--stub {
        background-size: 82px 82px;
    }

    .objects-item.inside .middle .item-price .text-item {
        padding: 14px 14px 4px;
    }

    .objects-item.inside .middle .item-price .text-item .head-item {
        font-size: 22px;
        line-height: 1.15;
        padding-bottom: 8px;
    }

    .objects-item.inside .middle .item-price .text-item > p:not(.head-item) {
        font-size: 15px;
        line-height: 1.2;
    }

    .objects-item.inside .middle .item-price .text-item .opacity {
        font-size: 14px;
        line-height: 1.15;
        padding-top: 8px;
    }

    .objects-item.inside .middle .item-price .price-text {
        display: grid;
        gap: 8px;
        padding: 8px 14px 12px;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text {
        margin-right: 0;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .top-price {
        font-size: 26px;
        line-height: 1.1;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .bottom-price {
        font-size: 17px;
        line-height: 1.1;
        margin-bottom: 0;
    }

    .objects-item.inside .middle .item-price .price-text .bottom-price-text {
        align-items: center;
        gap: 12px;
        margin-top: 0;
    }

    .objects-item.inside .middle .item-price .price-text .bottom-price-text .eye,
    .objects-item.inside .middle .item-price .price-text .bottom-price-text .calendar {
        margin-right: 0;
        font-size: 12px;
        line-height: 1.2;
        padding-left: 24px;
        background-size: 13px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .objects-item.inside .middle .item-price .block {
        grid-template-columns: 34% minmax(0, 1fr) 150px;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__image {
        width: 100%;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__photo {
        width: 100%;
        height: 100%;
        min-height: 250px;
    }

    .objects-item.inside .middle .item-price .text-item {
        padding: 14px 18px;
    }

    .objects-item.inside .middle .item-price .text-item .head-item {
        font-size: 24px;
        line-height: 1.15;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .top-price {
        font-size: 24px;
        line-height: 1.1;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .bottom-price {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .objects-item.inside .top .block-top_justify-start {
        gap: 6px;
    }

    .objects-item.inside .top .block-top_justify-start .left_justify-start {
        gap: 14px;
    }

    .objects-item.inside .top .employee-sort-controls a {
        font-size: 11px !important;
    }

    .objects-item.inside .top .block-top_justify-start .right_d-flex > p {
        font-size: 10px !important;
    }

    .objects-item.inside .middle .item-price .block {
        padding-right: 0;
    }

    .objects-item.inside .middle .item-price .employee-offer-card__photo {
        max-height: 210px;
    }

    .objects-item.inside .middle .item-price .text-item {
        padding: 12px 12px 4px;
    }

    .objects-item.inside .middle .item-price .text-item .head-item {
        font-size: 20px;
    }

    .objects-item.inside .middle .item-price .price-text {
        padding: 8px 12px 12px;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .top-price {
        font-size: 24px;
    }

    .objects-item.inside .middle .item-price .price-text .top-price-text .bottom-price {
        font-size: 16px;
    }
}
