.testimonials-section {
    position: relative;
    padding: 0;
    background: transparent;
}

.testimonials-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px, 3vw, 42px);
    background:
        radial-gradient(1200px 600px at 10% 18%, rgba(0, 86, 210, 0.25) 0%, transparent 52%),
        radial-gradient(900px 520px at 88% 78%, rgba(0, 58, 143, 0.25) 0%, transparent 54%),
        linear-gradient(180deg, #020617 0%, #020617 100%);
    color: #f8f6f4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 28px 80px rgba(0, 0, 0, 0.45);
}

.testimonials-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 36%),
        radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.16) 100%);
    pointer-events: none;
    z-index: 0;
}

.testimonials-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.7px),
        radial-gradient(circle at 80% 30%, #fff 0.6px, transparent 0.7px),
        radial-gradient(circle at 50% 80%, #fff 0.6px, transparent 0.7px);
    background-size: 18px 18px, 22px 22px, 26px 26px;
}

.testimonials-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

.testimonials-glow--left {
    left: -110px;
    bottom: 120px;
    background: rgba(0, 86, 210, 0.35);
}

.testimonials-glow--right {
    right: -130px;
    top: 260px;
    background: rgba(59, 130, 246, 0.30);
}

.testimonials-head,
.testimonials-columns {
    position: relative;
    z-index: 1;
}

.testimonials-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.78fr);
    gap: clamp(24px, 2.6vw, 48px);
    align-items: start;
    margin-bottom: 30px;
}

.testimonials-title-wrap {
    max-width: 760px;
}

.testimonials-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #f5f3ff;
    color: #2d2464;
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 20px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.testimonials-title-wrap h2 {
    margin: 0;
    max-width: 640px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(54px, 5.6vw, 84px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: #fcfaf8;
}

.testimonials-intro {
    margin: 8px 0 0;
    max-width: 520px;
    font-family: "Inter", "Manrope", sans-serif;
    font-size: clamp(20px, 1.75vw, 35px);
    line-height: 1.22;
    letter-spacing: -0.035em;
    color: rgba(255, 255, 255, 0.92);
}

.testimonials-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    height: clamp(620px, 66vw, 820px);
}

.testimonial-column {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.testimonial-column::before,
.testimonial-column::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.testimonial-column::before {
    top: -14px;
    left: -8px;
    right: -8px;
    height: 118px;
    background:
        linear-gradient(180deg,
            rgba(8, 5, 7, 1) 0%,
            rgba(8, 5, 7, 0.94) 18%,
            rgba(14, 9, 18, 0.84) 34%,
            rgba(24, 14, 34, 0.52) 58%,
            rgba(36, 20, 70, 0.20) 82%,
            rgba(36, 20, 70, 0) 100%);
    filter: blur(12px);
}

.testimonial-column::after {
    bottom: -16px;
    left: -8px;
    right: -8px;
    height: 138px;
    background:
        linear-gradient(180deg,
            rgba(36, 20, 70, 0) 0%,
            rgba(36, 20, 70, 0.14) 16%,
            rgba(28, 17, 48, 0.42) 38%,
            rgba(16, 10, 20, 0.78) 68%,
            rgba(8, 5, 7, 0.96) 88%,
            rgba(8, 5, 7, 1) 100%);
    filter: blur(14px);
}

.testimonial-track {
    display: grid;
    gap: 18px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.testimonial-column:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-column--1 .testimonial-track {
    animation-name: testimonialColumnUp;
    animation-duration: 28s;
}

.testimonial-column--2 .testimonial-track {
    animation-name: testimonialColumnDown;
    animation-duration: 33s;
}

.testimonial-column--3 .testimonial-track {
    animation-name: testimonialColumnUp;
    animation-duration: 30s;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(184, 171, 255, 0.18);
    background:
            linear-gradient(180deg, rgba(0, 86, 210, 0.25), rgba(2, 6, 23, 0.9));
        border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(164, 140, 255, 0.2), transparent 42%);
    opacity: 0.9;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 207, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 22px 50px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(88, 58, 205, 0.16);
}

.testimonial-card--small {
    min-height: 110px;
}

.testimonial-card--medium {
    min-height: 230px;
}

.testimonial-card--large {
    min-height: 318px;
}

.testimonial-card--quote .testimonial-content {
    padding: 24px 22px 20px;
}

.testimonial-card--small .testimonial-content {
    padding: 18px 20px 16px;
}

.testimonial-card--photo {
    background:
        linear-gradient(180deg, rgba(86, 64, 128, 0.18) 0%, rgba(24, 14, 30, 0.42) 100%);
}

.testimonial-media {
    position: absolute;
    inset: 0;
}

.testimonial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 6, 10, 0.04) 0%, rgba(12, 6, 10, 0.16) 30%, rgba(12, 6, 10, 0.62) 100%);
    pointer-events: none;
}

.testimonial-card--photo:hover .testimonial-media img {
    transform: scale(1.045);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    min-height: 100%;
}

.testimonial-card--photo .testimonial-content {
    min-height: 318px;
    padding: 20px 20px 18px;
    justify-content: flex-end;
}

.testimonial-card-title {
    margin: 0;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(228, 222, 255, 0.72);
}

.testimonial-quote {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(15px, 1.05vw, 19px);
    line-height: 1.42;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.94);
}

.testimonial-card--small .testimonial-quote {
    font-size: 14px;
    line-height: 1.38;
}

.testimonial-card--large.testimonial-card--photo .testimonial-quote {
    max-width: 88%;
}

.testimonial-person {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.testimonial-person-meta strong {
    display: block;
    margin: 0;
    font-size: clamp(18px, 1.28vw, 26px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.testimonial-card--small .testimonial-person-meta strong {
    font-size: 15px;
}

.testimonial-person-meta span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(232, 228, 245, 0.74);
}

.testimonial-card--small .testimonial-person-meta span {
    font-size: 13px;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

@keyframes testimonialColumnUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes testimonialColumnDown {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes testimonialRowLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes testimonialRowRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 1180px) {
    .testimonials-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonials-intro {
        max-width: 760px;
    }

    .testimonials-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 700px;
    }

    .testimonial-column--3 {
        display: none;
    }
}

@media (max-width: 920px) {
    .testimonials-shell {
        padding: 22px 14px;
        border-radius: 24px;
    }

    .testimonials-pill {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .testimonials-title-wrap h2 {
        font-size: clamp(38px, 14vw, 60px);
        line-height: 0.94;
    }

    .testimonials-intro {
        margin-top: 2px;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: -0.02em;
    }

    .testimonials-columns {
        grid-template-columns: 1fr;
        height: auto;
        gap: 14px;
    }

    .testimonial-column {
        overflow: hidden;
        border-radius: 16px;
        border: 1px solid rgba(149, 170, 226, 0.08);
        background: rgba(255, 255, 255, 0.015);
        padding: 2px 0;
    }

    .testimonial-column::before,
    .testimonial-column::after {
        display: block;
        top: -6px;
        bottom: -6px;
        width: 76px;
        height: auto;
        z-index: 6;
        content: "";
        position: absolute;
        pointer-events: none;
    }

    .testimonial-column::before {
        left: -14px;
        right: auto;
        background:
            linear-gradient(90deg,
                rgba(8, 5, 7, 1) 0%,
                rgba(8, 5, 7, 0.96) 18%,
                rgba(16, 10, 20, 0.84) 34%,
                rgba(30, 18, 54, 0.54) 58%,
                rgba(62, 34, 128, 0.20) 82%,
                rgba(62, 34, 128, 0) 100%);
        filter: blur(16px);
    }

    .testimonial-column::after {
        right: -14px;
        left: auto;
        background:
            linear-gradient(270deg,
                rgba(8, 5, 7, 1) 0%,
                rgba(8, 5, 7, 0.96) 18%,
                rgba(16, 10, 20, 0.84) 34%,
                rgba(30, 18, 54, 0.54) 58%,
                rgba(62, 34, 128, 0.20) 82%,
                rgba(62, 34, 128, 0) 100%);
        filter: blur(16px);
    }

    .testimonial-track {
        display: flex;
        width: max-content;
        gap: 12px;
        animation-duration: 22s;
        animation-name: testimonialRowLeft;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        will-change: transform;
    }

    .testimonial-column--1 .testimonial-track {
        animation-name: testimonialRowLeft !important;
        animation-duration: 22s !important;
    }

    .testimonial-column--2 .testimonial-track {
        animation-name: testimonialRowRight !important;
        animation-duration: 26s !important;
    }

    .testimonial-column--3 {
        display: block !important;
    }

    .testimonial-column--3 .testimonial-track {
        animation-name: testimonialRowLeft !important;
        animation-duration: 24s !important;
    }

    .testimonial-column:hover .testimonial-track {
        animation-play-state: paused;
    }

    .testimonial-card {
        border-radius: 22px;
        width: min(82vw, 320px);
        flex: 0 0 auto;
    }

    .testimonial-card--photo .testimonial-content,
    .testimonial-card--quote .testimonial-content {
        min-height: unset;
        padding: 18px 16px 16px;
    }

    .testimonial-card--small,
    .testimonial-card--medium,
    .testimonial-card--large {
        min-height: unset;
    }

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

    .testimonial-person-meta strong {
        font-size: 18px;
    }

    .testimonial-person-meta span {
        font-size: 13px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none !important;
        transform: none !important;
    }

    .testimonial-card,
    .testimonial-media img {
        transition: none !important;
    }
}
