.reviews-component-wrap {
    position: relative;
    margin: -30px -17px;
    padding: 30px 17px;
    overflow: visible;
    clip-path: inset(-9999px 0px);
    z-index: 1000;
}

.reviews-component {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.reviews-component-slider {
    overflow: visible !important;
}

.reviews-component-slider__wrapper {
    overflow: visible !important;
}

.reviews-component-slider__slide {
    height: auto !important;
    align-self: flex-start;
    overflow: visible !important;
}

.swiper-wrapper {
    overflow: visible !important;
}

.swiper-slide {
    overflow: visible !important;
}

.reviews {
    overflow: visible !important;
    min-height: 390px;
}

.reviews__wrapper {
    padding: 24px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible !important;
    min-height: 390px;
    position: relative;
}

.reviews__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 20px;
    width: 100%;
    margin: 0;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.reviews__top-col {
    display: flex;
    align-items: center;
}

.reviews__photo {
    flex-shrink: 0;
    max-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
}

.reviews__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews__user {
    max-width: 256px;
    width: 100%;
}

.reviews__name {
    font-family: "Open Sans", "sans-serif";
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    color: #0e0e0f;
    margin-bottom: 4px;
}

.reviews__date {
    font-family: "Open Sans", "sans-serif";
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    margin: 0px;
    color: #8e8e93;
    line-height: 24px;
}

.reviews__button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 12px;
    background: rgba(140, 140, 140, 0.07);
    border-radius: 500px;
    font-family: "Open Sans", "sans-serif";
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 14px;
    white-space: nowrap;
    color: #8e8e93;
    cursor: pointer;
}

.reviews__button:hover {
    color: #00a76b;
}

.reviews__bot {
    display: flex;
    justify-content: center;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    width: 100%;
}

.reviews__bot.opened {
    max-height: none !important;
    overflow: visible !important;
    z-index: 100;
}

.reviews__bot:before {
    content: url("images/mark.svg");
    max-width: 32px;
    width: 100%;
    height: 32px;
    margin: -4px 10px 0 10px;
    flex: 0 0 32px;
}

.reviews__text {
    align-self: flex-start;
    width: 100%;
}

.reviews__text p {
    max-width: 475px;
    font-family: "Open Sans", "sans-serif";
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 32px;
    color: #8e8e93;
}

.reviews__text_normal {
    display: block;
}

.reviews__text_short {
    display: none;
}

.reviews__text-more {
    margin: 8px auto 0;
    transition: border-color 0.2s;
    display: none;
    position: relative;
    z-index: 101;
    cursor: pointer;
}

.reviews__text-more.button {
    display: none;
}

.reviews__text-more svg {
    transition: fill 0.2s;
}

.reviews__text-more:hover {
    border: 1px solid #00a76b;
}

.reviews__text-more:hover svg {
    fill: #00a76b;
}

.reviews_show-button .reviews__text-more {
    display: block;
    margin-left: 52px;
    border: none;
    width: fit-content;
    font-size: 16px;
    margin-top: 0;
}

.reviews_show-button .reviews__text-more:hover {
    border: none;
}

@media screen and (max-width: 1300px) {
    .reviews-component-wrap {
        margin: 0;
        padding: 0;
        clip-path: none;
    }
}

@media screen and (max-width: 575px) {
    .reviews-component-slider__slide {
        width: 100% !important;
    }

    .reviews__wrapper {
        padding: 24px;
        width: 100%;
        min-height: 310px;
    }

    .reviews__top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .reviews__text p {
        font-family: "Open Sans", "sans-serif";
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        line-height: 22.4px;
    }

    .reviews__bot {
        max-height: 112px; /* 5 строк × 22.4px */
    }

    .reviews__bot.opened {
        max-height: none !important;
        overflow: visible !important;
    }
}

@media screen and (max-width: 480px) {
    .reviews-component-slider {
        height: 280px !important;
    }
}

.reviews-component .swiper-button-default.swiper-button-prev {
    left: -15px;
}

.reviews-component .swiper-button-default.swiper-button-next {
    right: -15px;
}
@media screen and (max-width: 768px) { 
    .reviews-component .swiper-button-default.swiper-button-prev {
        left: -8px;
    }
    .reviews-component .swiper-button-default.swiper-button-next {
        right: -8px;
    }
}
@media screen and (max-width: 480px) {
    .reviews-component .swiper-button-default.swiper-button-prev {
        top: 134px;
        left: -8px;
    }
    .reviews-component .swiper-button-default.swiper-button-next {
        top: 134px;
        right: -8px;
    }
} 