.rewiews-wrapper {
    display: flex;
    gap: 32px;
}

.rewies-form-sidebar {
    width: 484px;
    max-width: 100%;
    position: sticky;
    top: 10px;
}

.reviews .testimonials-list {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    margin-bottom: 48px;
    flex-grow: 1;
}

.testimonials-list__item {    
    display: flex;
    flex-direction: column;    
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08);
    max-width: 530px;    
}

.reviews .wpcf7.js {
    flex-grow: 3;
}

.testimonial-top {
    position: relative;
    padding: 32px;
}

.testimonial-date {
    font-weight: 600;
    font-size: 12px;
    line-height: 120%;
    margin-bottom: 10px;
    color: #28313D;
}

.testimonial-text {
    max-width: 420px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

.testimonial-top::after {
    position: absolute;
    content: '';
    background: url('/wp-content/themes/sk-karkashome/assets/images/citate.svg') no-repeat center center;
    background-size: contain;
    width: 59px;
    height: 34px;
    top: 32px;
    right: 32px;
}

.testimonial-bottom {
    margin-top: auto;
    padding: 32px;
    background-color: #a0acb9;
    padding: 24px 32px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.author-name {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    color: #fff;
}

.author-decor {
    width: 96px;
    height: 96px;
    border-radius: 50px;
    background: url('/wp-content/themes/sk-karkashome/assets/images/avatar.png') no-repeat center/cover;
}

.testimonial-bottom {
    display: flex;
    align-items: center;
    gap: 32px;

}

.reviews-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-height: 496px;
    margin: 0 auto;
    position: sticky;
    top: 20px;
}

.reviews-form input {
    width: 100%;
    height: 49px;
    border: 1px solid #28313D;
    box-shadow: none;
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 5px;
    outline: none;
}

.reviews-form textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #28313D;
    box-shadow: none;
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 5px;
    resize: none;
    outline: none;
}

.reviews-form input[type='submit'] {
    border: none;
    outline: none;
    cursor: pointer;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.pagination-wrapper a {
    color: #a6aeb8;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #F6F6F7;
    text-decoration: none;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:  .4s;
}

.pagination-wrapper a:hover {
    background: #eac113;
    color: #fff;
}

.pagination-wrapper .page-numbers.current {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /* border: 1px solid #28313D; */
    background: #eac113;
    text-decoration: none;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.prev.page-numbers img  {
    transform: rotate(180deg);
}


@media(max-width: 1440px) {
    .testimonial-top::after {
        width: 35px;
        height: 20px;
        top: 20px;
        right: 20px;
    }
}

@media(max-width: 1200px) {
    .rewiews-wrapper {
        flex-direction: column;
    }
    .rewiews-wrapper .wpcf7.js {
        width: 450px;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media(max-width: 1024px) {
    .reviews .testimonials-list {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 16px;
    }

    .testimonial-top {
        padding: 21px;
    }

    .testimonial-date {
        margin-bottom: 11px;
    }

    .testimonial-bottom {
        padding: 15px;
    }

    .author-decor {
        width: 50px;
        height: 50px;
    }
}

@media(max-width: 768px) {
    .reviews .testimonials-list {
        grid-template-columns: repeat(1, minmax(280px, 1fr));
        gap: 16px;
    }


    .reviews .testimonials-list .testimonial-text {
        max-width: 100%;
    }
}


/* Main page testimonials-style_2 */

.testimonials.testimonials-style_2 .testimonials-list {
    display: flex;
    gap: 32px;
}

.testimonials.testimonials-style_2 .testimonials-list.slick-initialized.slick-slider button {
    display: none;
}

.testimonials-style_2 {
    margin-bottom: 120px;
}

.testimonials-slider .testimonials-style_2 .testimonials-list {
    display: flex;
    justify-content: space-between;
}

.testimonials-style_2 .testimonials-list__item {
    display: flex;
    flex-direction: column;
    width: 544px;
    max-width: 100%;
    padding: 24px;
    border: 1px solid #d7e1ec;
    border-radius: 12px;    
    box-shadow: 0 5px 14px 0 rgba(8, 15, 52, 0.04);
    background: #f6f6f7;
}

.testimonials-style_2 .testimonial-text{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 31px;
    min-height: 72px;
}

.testimonials-style_2 .author-name {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    color: #28313d;
}

.testimonials-style_2 .testimonial-author {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: auto;
}
.testimonials-style_2 .author-decor {
    width: 64px;
    height: 64px;
    color: #28313d;
}

@media (max-width: 600px) {
    .testimonials-style_2 .testimonials-list {
        grid-template-columns: repeat(1, minmax(280px, 1fr));
        gap: 24px;
    }

    .testimonials-style_2 .author-decor {
        width: 50px;
        height: 50px;
    }

}

@media (max-width: 425px) {
    .testimonials-style_2 .title-h3-style2 {
        font-size: 24px;
        line-height: 133%;
    }

    .testimonials-style_2 .section-top a {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 130%;
    }
}

.testimonials-style_2 .slick-slide {
    margin: 0 10px; /* Измените отступы между слайдами на 20 пикселей */
}