.reviews-section {
    padding-top: 124px;
    overflow: hidden;
}

.featured-quote {
    max-width: 980px;
    margin: 0 auto 54px;
    padding: 56px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 243, 0.72)),
        radial-gradient(circle at top right, rgba(231, 169, 173, 0.32), transparent 22rem);
    box-shadow: var(--shadow-soft);
}

.featured-quote blockquote {
    margin: 12px auto 18px;
    max-width: 760px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.04;
}

.featured-quote cite {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.reviews-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.reviews-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 5vw, 4.1rem);
    line-height: 1;
}

.btn-preply-reviews {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(120, 83, 164, 0.24);
    border-radius: 999px;
    color: #5d4382;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(0) scale(1);
    transition:
        transform 180ms var(--button-ease),
        background 180ms var(--button-ease),
        color 180ms var(--button-ease),
        box-shadow 180ms var(--button-ease);
    white-space: nowrap;
    will-change: transform;
}

.btn-preply-reviews:hover {
    color: #fff;
    background: var(--signature-gradient);
    box-shadow: 0 18px 38px rgba(120, 83, 164, 0.22);
    transform: translateY(-2px) scale(1.012);
}

.btn-preply-reviews:active {
    transform: translateY(0) scale(0.975);
    transition-duration: 90ms;
}

.btn-preply-reviews:focus-visible,
.review-more:focus-visible,
.review-modal-close:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.24);
}

.reviews-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 10px 0 30px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reviews-marquee-track {
    display: flex;
    width: max-content;
    gap: 22px;
    padding-left: max(24px, calc((100vw - 1140px) / 2));
    animation: reviewMarquee 78s linear infinite;
}

.stars {
    color: #b94872;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
}

.review-card {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 390px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(54, 39, 73, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.review-card:hover,
.review-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 26px 62px rgba(54, 39, 73, 0.12);
}

.review-card:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.24),
        0 26px 62px rgba(54, 39, 73, 0.12);
}

.review-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: var(--signature-gradient);
    text-transform: uppercase;
    flex: 0 0 auto;
}

.review-person strong,
.review-person span {
    display: block;
}

.review-person span {
    color: var(--muted);
}

.review-card p {
    margin: 18px 0 0;
    color: #4d4657;
    font-size: 1rem;
    line-height: 1.65;
    overflow: hidden;
}

.review-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    color: #7853a4;
    font-weight: 800;
    background: transparent;
    transition: color 160ms var(--button-ease), transform 160ms var(--button-ease);
}

.review-more:hover {
    color: #b94872;
    transform: translateY(-1px);
}

.review-more:active {
    transform: translateY(0) scale(0.97);
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.review-modal.is-open {
    display: flex;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 31, 0.42);
    backdrop-filter: blur(10px);
}

.review-modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, 88vh);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.9)),
        radial-gradient(circle at top right, rgba(231, 169, 173, 0.24), transparent 18rem);
    box-shadow: 0 32px 90px rgba(23, 18, 31, 0.26);
}

.review-modal-card p {
    margin: 22px 0 0;
    color: #3f374a;
    font-size: 1.08rem;
    line-height: 1.75;
}

.review-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(120, 83, 164, 0.2);
    border-radius: 999px;
    color: #5d4382;
    font-size: 1.15rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.76);
    transform: translateY(0) scale(1);
    transition:
        transform 160ms var(--button-ease),
        background 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease);
}

.review-modal-close:hover {
    background: #fff;
    box-shadow: 0 14px 32px rgba(54, 39, 73, 0.12);
    transform: translateY(-1px) scale(1.03);
}

.review-modal-close:active {
    transform: translateY(0) scale(0.94);
}

@keyframes reviewMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 11px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-marquee-track {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .reviews-heading {
        display: block;
    }

    .btn-preply-reviews {
        width: 100%;
        margin-top: 22px;
    }
}

@media (max-width: 575.98px) {
    .reviews-section {
        padding-top: 70px;
    }

    .featured-quote {
        padding: 32px 20px;
        text-align: left;
        border-radius: 22px;
    }

    .featured-quote blockquote {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
    }

    .reviews-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: rgba(120, 83, 164, 0.36) rgba(255, 255, 255, 0.42);
        -webkit-overflow-scrolling: touch;
    }

    .reviews-marquee-track {
        gap: 16px;
        padding-left: 18px;
        padding-right: 18px;
        animation-duration: 92s;
    }

    .review-card {
        flex: 0 0 82vw;
        width: 82vw;
        height: 380px;
        padding: 24px;
        border-radius: 20px;
        scroll-snap-align: center;
    }

    .review-modal {
        padding: 14px;
    }
}
