/* testimonials-hm */
.testimonials-hm {
    background: #F3F1EC;
    padding: 80px 0 0;
    position: relative;
}
.testimonials-hm .swiper:before{
    content: '';
    display: block;
    width: 120px;
    height: 100%;
    background: linear-gradient(270deg, #F3F1EC 0%, rgba(243, 241, 236, 0) 84.68%);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    rotate: 180deg;
}

.testimonials-hm .swiper:after {
    content: '';
    display: block;
    width: 120px;
    height: 100%;
    background: linear-gradient(270deg, #F3F1EC 0%, rgba(243, 241, 236, 0) 84.68%);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.testimonials-hm__title {
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    text-align: center;
    margin-bottom: 24px;
}

.testimonials-hm .swiper-button-next,
.testimonials-hm .swiper-button-prev {
    width: 80px !important;
    height: 80px !important;
    background: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: transparent;
    z-index: 30;
    /* Видаляємо сірий ховер на мобільних пристроях */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    border: none;
}

.testimonials-hm .swiper-button-prev {
    left: 0;
    top: 272px
}

.testimonials-hm .swiper-button-next {
    right: 0;
    top: 300px;
}

.testimonials-hm .swiper-button-next {
    background-image: url('../../img/swiper-arrow.png');
    right: 0;
}

.testimonials-hm .swiper-button-prev {
    background-image: url('../../img/swiper-arrow.png');
    left: 0;
    transform: rotate(180deg);
}

.testimonials-hm .swiper-button-next:after, 
.testimonials-hm .swiper-button-prev:after {
    display: none;
}

.testimonials-hm .swiper-slide {
    width: 454px !important;
    border-radius: 24px;
    padding: 40px 32px 8px;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 24px;
}

.testimonials-hm .swiper-wrapper{
    padding-bottom: 60px;
    margin-top: 50px;
}

.swiper-pagination {
    top: 0 !important;
}

.testimonials-hm .swiper-slide__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    margin-bottom: 24px;
}

.testimonials-hm .swiper-pagination-bullet {
    border-radius: 8px !important;
    width: 27px !important;
    height: 6px !important;
    background: #D8D8D8;
    opacity: 1;
}

.testimonials-hm .swiper-pagination-bullet-active {
    background: #FF6D12 !important;
}

.testimonial__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 24px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #D8D8D8;
}

.testimonial__avatar {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
}

.testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__name {
    font-weight: 500;
    font-size: 18px;
    line-height: 32px;
}

.testimonial__position {
    font-size: 16px;
    line-height: 120%;
}

@media screen and (max-width: 1000px) {
    .testimonials-hm {
        padding: 32px 0 12px;
    }
    .testimonials-hm .testimonials-hm__title {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .testimonials-hm .swiper-slide {
        width: 312px !important;
    }

    .testimonials-hm .swiper-slide__title {
        font-weight: 700;
        font-size: 16px;
        line-height: 130%;
    }

    .testimonials-hm .testimonial__text {
        font-size: 14px;
    }

    .testimonial__name,
    .testimonial__position {
        font-size: 14px;
    }

    .testimonials-hm .swiper:before,
    .testimonials-hm .swiper:after {
        display: none;
    }
}