.testimonials-section {
    background: #f8f8f8;
}

.testimonials-section .container-site {
    padding: 90px 0 110px;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 65px;
}

.testimonials-section .section-header h2 {
    margin: 0;
    font-family: 'Cardo', serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
    color: #202020;
}

.testimonials-section .section-header .divider {
    display: block;
    width: 28px;
    height: 1px;
    margin: 16px auto 0;
    background: #1a1d72;
}

.testimonials-slider {
    position: relative;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 36px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.testimonial-card {
    position: relative;
    flex: 0 0 calc((100% - 72px) / 3);
    padding-top: 38px;
    box-sizing: border-box;
}

.testimonial-card-inner {
    position: relative;
    background: #ffffff;
    min-height: 315px;
    padding: 78px 34px 34px;
    text-align: center;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover .testimonial-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.testimonial-quote-icon {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #000000;
    border: 8px solid #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.testimonial-quote-icon span {
    display: block;
    color: #ffffff;
    font-size: 140px;
    line-height: 1;
    font-family: Georgia, serif;
    transform: translateY(36px);
}

.testimonial-name {
    margin: 0 0 18px;
    font-family: 'Assistant', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: #111111;
}

.testimonial-text-wrap {
    max-width: 100%;
}

.testimonial-text {
    margin: 0;
    font-family: 'Assistant', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    color: #6b6b6b;
}

.testimonial-read-more {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1d72;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.testimonial-read-more:hover {
    opacity: 0.75;
}

.testimonials-nav {
    position: absolute;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #3a3a3a;
    font-size: 52px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.25s ease, color 0.25s ease;
}

.testimonials-prev {
    left: -48px;
}

.testimonials-next {
    right: -48px;
}

.testimonials-nav:hover {
    opacity: 0.75;
}

.testimonials-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.testimonial-modal.is-open {
    display: block;
}

.testimonial-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.testimonial-modal-dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 760px;
    margin: 80px auto;
    background: #ffffff;
    padding: 42px 34px 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #222222;
    cursor: pointer;
}

.testimonial-modal-name {
    margin: 0 0 18px;
    font-family: 'Cardo', serif;
    font-size: 36px;
    font-weight: 400;
    color: #111111;
}

.testimonial-modal-content {
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

body.testimonial-modal-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .testimonial-card-inner {
        min-height: 340px;
        padding: 74px 28px 30px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .testimonials-prev {
        left: 0;
    }

    .testimonials-next {
        right: 0;
    }
}

@media (max-width: 991px) {
    .testimonials-section .container-site {
        padding: 75px 0 90px;
    }

    .testimonials-track {
        gap: 24px;
    }

    .testimonial-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .testimonials-prev {
        left: 0;
    }

    .testimonials-next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .testimonials-section .container-site {
        padding: 70px 0 85px;
    }

    .testimonials-section .section-header {
        margin-bottom: 50px;
    }

    .testimonials-section .section-header h2 {
        font-size: 34px;
    }

    .testimonials-viewport {
        overflow: hidden;
        width: 100%;
    }

    .testimonials-track {
        gap: 0;
        align-items: flex-start;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding-top: 34px;
        align-self: flex-start;
    }

    .testimonial-card-inner {
        min-height: 0 !important;
        height: auto !important;
        padding: 74px 32px 28px;
    }

    .testimonial-name {
        font-size: 21px;
    }

    .testimonial-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .testimonials-nav {
        width: 34px;
        height: 34px;
        font-size: 42px;
        top: 165px;
        transform: translateY(-50%);
    }

    .testimonials-prev {
        left: -1px;
    }

    .testimonials-next {
        right: -1px;
    }

    .testimonial-quote-icon {
        width: 78px;
        height: 78px;
    }

    .testimonial-quote-icon span {
        font-size: 130px;
    }

    .testimonial-modal-dialog {
        margin: 40px auto;
        padding: 38px 22px 24px;
    }

    .testimonial-modal-name {
        font-size: 24px;
    }

    .testimonial-modal-content {
        font-size: 17px;
    }
}

@media (max-width: 575.98px) {
    .testimonials-nav {
        width: 34px;
        height: 34px;
        font-size: 42px;
        top: 165px;
        transform: translateY(-50%);
    }

    .testimonials-prev {
        left: 0;
    }

    .testimonials-next {
        right: 0;
    }
}