/* cut/uncut отзыв */
.text-item .item-js {
    position: relative;
    overflow: hidden;
    height: 14.1em;
}

.text-item.uncut .item-js {
    height: unset;
    overflow: auto;
}

.text-item.uncut .text-btn {
    display: none;
}

.text-item .item-js.opened {
    height: unset;
    overflow: auto;
}

.text-item.cut .item-js::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--background) 100%);
}

.text-btn {
    display: block;
    font: 400 14px var(--text-font);
    color: var(--title-color);
    cursor: pointer;
    opacity: 0;
}

.text-btn:hover {
    border-bottom: 1px solid transparent;
}

.text-item.cut .text-btn {
    opacity: 1;
}

@media screen and (min-width: 1300px) {
    .text-item.cut .text-btn {
        display: none;
    }

    .text-item .item-js {
        height: 100%;
    }

    .text-item.cut .item-js::after {
        content: none;
    }
}

@media screen and (max-width: 640px) {
    .text-item .item-js {
        height: 8.2em;
    }
}

/* end cut/uncut отзыв */

.feedback .info-text {
    font: 400 16px/150% var(--text-font);
    color: var(--dark-grey-color);
    text-align: start;
}

.feedback .h4 {
    font: 600 18px/130% var(--title-font);
    color: var(--text-color);
    margin: 11px 0 19px;
}

.feedback .video-feedback {
    position: relative;
    top: 0;
    left: 0;
}

.feedback .video-feedback img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.pic-wrapper {
    position: relative;
}

.feedback .video-feedback .info-text {
    color: var(--text-color);
    margin-top: 20px;
}

.feedback .video-button {
    width: 60px;
    height: 60px;
    bottom: 50.5%;
}

.feedback .video-button:before {
    content: none;
}

.feedback .video-button svg {
    left: 0;
    bottom: 0;
}

.feedback .video-button:hover svg path {
    fill: var(--main-color);
}

/* video-links */

.feedback .video-links {
    width: 95%;
    position: absolute;
    bottom: 4.6%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: auto;
}

.feedback .video-links__item {
    width: fit-content;
    display: flex;
    align-items: center;
    background-color: #FFFFFFD9;
    font-family: IBM Plex Sans;
    font-weight: 500;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 0.8px;
    border-radius: 100px;
    text-transform: uppercase;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    transition: all 0.1s ease;

}

.feedback .video-links__wrapper {
    height: 36px;
    display: flex;
    align-items: center;
}

.feedback .video-links__item:hover {
    background-color: #FFFFFF;
    padding: 8px 18px 8px 8px;
}

.feedback .video-links__text {
    display: inline-block;
    padding-top: 1px;
}

.feedback .video-links__item .video-links__logo {
    width: 20px;
    height: 20px;
    padding-right: 8px;
}

@media screen and (max-width: 1000px) {
    .feedback .video-links {
        bottom: 4.9%;
        gap: 30px;
    }

    .feedback .video-links__item {
        font-size: 12px;
        padding: 8px 16px 8px 8px;
    }

    .feedback .video-links__item:hover {
        padding: 10px 18px 10px 10px;
    }

    .feedback .video-links__text {
        padding-top: 2px;
    }

    .feedback .video-links__item .video-links__logo {
        width: 24px;
        height: 24px;
        padding-right: 10px;
    }

    .feedback .video-links__wrapper {
        height: 44px;
    }
}

@media screen and (max-width: 640px) {
    .feedback .video-links {
        bottom: 6.2%;
        gap: 10px;
    }

    .feedback .video-links__item {
        font-size: 9px;
        padding: 6px 11px 6px 6px;
    }

    .feedback .video-links__item:hover {
        padding: 8px 13px 8px 8px;
    }

    .feedback .video-links__text {
        padding-top: 0;
    }

    .feedback .video-links__item .video-links__logo {
        width: 20px;
        height: 20px;
        padding-right: 8px;
    }

    .feedback .video-links__wrapper {
        height: 36px;
    }
}

/* end video-links */

.feedback .feedback-container .text-item {
    background-color: var(--block-background);
    border-radius: 4px;
    margin-bottom: 60px;
}

.feedback .text-item .info-text {
    margin-bottom: 30px;
}

.feedback .text-item .house-link {
    display: block;
    width: fit-content;
    font-size: 16px;
    color: var(--title-color);
    border-bottom: none;
    background-image: -webkit-gradient(linear, left top, right top, color-stop(0, var(--title-color)), to(var(--title-color)));
    background-image: linear-gradient(to right, var(--title-color) 0, var(--title-color) 100%);
    background-repeat: repeat-x;
    background-position: 0 94%;
    background-size: 100% 1px;
    margin-bottom: 0;
}

.feedback .text-item .house-link:hover {
    color: var(--title-color);
    border-bottom: none;
    background-image: none;
}

/* pagination */
.otzyvy-pagination {
    text-align: center;
}

.pagination-otzyvy .pagination-otzyvy__item {
    padding: 0 10px;
    margin: 0;
    color: var(--main-color);
    border-right: 1px solid #B2B2B2;
}

.pagination-otzyvy .pagination-otzyvy__item._move:last-child {
    border: none;
}

.block-otzyvy__pagination {
    text-align: center;
    font: 400 12px/18px var(--text-font);
    letter-spacing: 0;
    margin-top: 60px;
}

.block-otzyvy__pagination__item {
    display: inline-block;
    padding: 4px 9px 2px 8px;
    border-radius: 2px;
    color: var(--dark-grey-color);
    background: var(--block-background);
    margin-right: 7px;
}

.block-otzyvy__pagination__item._active {
    background: var(--grey-color);
    color: var(--background);
}

.block-otzyvy__pagination__item._dots {
    width: 13px;
}

.block-otzyvy__pagination__arrow {
    padding: 5px 8px 4px;
    margin: 0 8px 0 0;
}

.block-otzyvy__pagination__arrow.next {
    margin: 0 0 0 1px;
}

.block-otzyvy__pagination__arrow.disabled {
    pointer-events: none;
}

.disabled svg path {
    stroke: var(--border-color);
}

/* end pagination */

@media screen and (min-width: 1300px) {
    .feedback-container {
        margin-left: -40px;
    }

    .feedback-container>.item:last-child {
        margin-bottom: 55px;
    }

    .feedback-container.l-col-2>.item {
        float: left;
        width: calc(50% - 35px);
        margin-left: 40px;
    }

    .feedback-container.l-col-2>.text-item {
        width: calc(50% - 45px);
        padding: 40px;
    }

    .feedback .video-feedback img {
        max-height: 400px;
    }
}

@media screen and (min-width: 320px) {
    .feedback-container div.text-item {
        height: unset;
    }
}

@media screen and (max-width: 1299px) {
    .feedback .item {
        margin-bottom: 30px;
    }

    .feedback .video-button {
        bottom: 43.3%;
    }

    .feedback .video-feedback img {
        aspect-ratio: 1 / 0.63;
    }

    .feedback .video-feedback .info-text {
        display: none;
    }

    .feedback .feedback-container .text-item {
        background-color: var(--background);
        padding: 0;
        margin-bottom: 80px;
    }

    .feedback .text-item .info-text {
        margin-bottom: 12px;
    }

    .feedback .text-item .house-link {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .feedback .text-item.cut .house-link {
        margin-top: 31px;
    }

}

@media screen and (max-width: 640px) {
    .feedback .item {
        margin-bottom: 18px;
    }

    .feedback .video-button {
        bottom: 38.3%;
    }

    .feedback .video-button,
    .feedback .video-button svg {
        width: 50px;
        height: 50px;
    }

    .feedback .feedback-container .text-item {
        margin-bottom: 60px;
    }

    .feedback .h4 {
        font-size: 16px;
        margin: 10px 0 20px;
    }

    .feedback .text-item .info-text.item-js {
        font-size: 14px;
    }
}