.testimonials-page {
    --stories-ink: #17283d;
    --stories-blue: #2d5577;
    --stories-blue-deep: #10263e;
    --stories-muted: #667789;
    --stories-paper: #fbf8f3;
    --stories-line: #e8e2da;
    --stories-rose: #c77f69;
    color: var(--stories-ink);
    overflow: hidden;
}

.testimonials-hero {
    position: relative;
    padding: clamp(54px, 8vw, 112px) 0 clamp(58px, 8vw, 112px);
    background:
        radial-gradient(ellipse at 1% 12%, rgb(199 127 105 / 9%), transparent 27rem),
        linear-gradient(180deg, #fcfaf6 0%, #f8f5ef 100%);
}

.testimonials-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: clamp(44px, 8vw, 112px);
    align-items: center;
}

.testimonials-hero-copy {
    max-width: 660px;
    padding-block: 16px;
}

.testimonials-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--stories-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.testimonials-eyebrow > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--stories-rose);
    box-shadow: 0 0 0 5px rgb(199 127 105 / 14%);
}

.testimonials-hero h1,
.testimonials-section-heading h2,
.testimonials-share-copy h2 {
    margin: 0;
    font-family: var(--company-font-serif);
    font-weight: 500;
    letter-spacing: -.045em;
}

.testimonials-hero h1 {
    max-width: 730px;
    color: var(--stories-ink);
    font-size: clamp(48px, 6.8vw, 82px);
    line-height: .99;
}

.testimonials-hero-description {
    max-width: 540px;
    margin: 26px 0 0;
    color: var(--stories-muted);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.85;
}

.testimonials-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
}

.testimonials-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.testimonials-button:hover {
    transform: translateY(-2px);
}

.testimonials-button:focus-visible,
.testimonials-text-link:focus-visible,
.testimonials-form :focus-visible {
    outline: 3px solid rgb(199 127 105 / 55%);
    outline-offset: 3px;
}

.testimonials-button-primary {
    color: #fff;
    background: var(--stories-blue-deep);
    box-shadow: 0 9px 22px rgb(16 38 62 / 16%);
}

.testimonials-button-primary:hover {
    color: #fff;
    background: var(--stories-blue);
    box-shadow: 0 12px 26px rgb(16 38 62 / 22%);
}

.testimonials-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--stories-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration-color: rgb(199 127 105 / 60%);
    text-underline-offset: 5px;
}

.testimonials-hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 42px 0 0;
    color: var(--stories-muted);
    font-size: 12px;
}

.testimonials-hero-note > span {
    color: var(--stories-rose);
    font-size: 18px;
}

.testimonials-hero-visual {
    position: relative;
    min-height: 490px;
    margin: 0;
    isolation: isolate;
}

.testimonials-hero-visual::before {
    position: absolute;
    z-index: -1;
    top: -28px;
    right: -24px;
    width: 42%;
    height: 43%;
    border: 1px solid rgb(199 127 105 / 48%);
    border-radius: 48% 52% 43% 57%;
    content: '';
    transform: rotate(17deg);
}

.testimonials-hero-visual > img {
    display: block;
    width: 100%;
    height: 490px;
    border-radius: 47% 47% 12px 12px;
    background: #e9e2d9;
    object-fit: cover;
    object-position: 62% center;
}

.testimonials-hero-visual figcaption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 12px;
    color: #fff;
    background: rgb(16 38 62 / 78%);
    backdrop-filter: blur(12px);
}

.testimonials-hero-visual figcaption span:first-child {
    color: #f0c5a9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.testimonials-hero-visual figcaption span:last-child {
    font-family: var(--company-font-serif);
    font-size: 15px;
    font-style: italic;
}

.testimonials-hero-stamp {
    position: absolute;
    top: 15%;
    left: -40px;
    display: grid;
    width: 96px;
    aspect-ratio: 1;
    align-content: center;
    justify-items: center;
    gap: 3px;
    border: 1px solid rgb(199 127 105 / 45%);
    border-radius: 50%;
    color: var(--stories-blue-deep);
    background: #fbf6ed;
    box-shadow: 0 10px 28px rgb(23 40 61 / 11%);
    transform: rotate(-12deg);
}

.testimonials-hero-stamp span:first-child {
    font-family: var(--company-font-serif);
    font-size: 22px;
    font-weight: 700;
}

.testimonials-hero-stamp span:nth-child(2) {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .15em;
}

.testimonials-hero-stamp span:last-child {
    color: var(--stories-rose);
    font-size: 15px;
}

.testimonials-stories {
    padding: clamp(76px, 10vw, 128px) 0 clamp(78px, 10vw, 128px);
    background: #fff;
    scroll-margin-top: 24px;
}

.testimonials-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.testimonials-section-heading .testimonials-eyebrow {
    margin-bottom: 17px;
}

.testimonials-section-heading h2,
.testimonials-share-copy h2 {
    color: var(--stories-ink);
    font-size: clamp(39px, 5.2vw, 60px);
    line-height: 1.02;
}

.testimonials-section-heading h2 em,
.testimonials-share-copy h2 em {
    color: var(--stories-rose);
    font-weight: 400;
}

.testimonials-section-heading > p {
    max-width: 360px;
    margin: 0 0 5px;
    color: var(--stories-muted);
    font-size: 14px;
    line-height: 1.8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.testimonial-story {
    position: relative;
    display: flex;
    min-height: 286px;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 24px 25px 22px;
    overflow: hidden;
    border: 1px solid var(--stories-line);
    border-radius: 5px 24px 5px 24px;
    background: var(--stories-paper);
    transition: transform .22s ease, box-shadow .22s ease;
}

.testimonial-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgb(23 40 61 / 9%);
}

.testimonial-story:first-child {
    grid-column: span 2;
    min-height: 310px;
    padding: clamp(26px, 4vw, 42px);
    border-color: var(--stories-blue-deep);
    color: #fff;
    background:
        radial-gradient(ellipse at 97% 10%, rgb(199 127 105 / 21%), transparent 20rem),
        var(--stories-blue-deep);
}

.testimonial-story:first-child::after {
    position: absolute;
    right: -18px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.testimonial-story-topline {
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.testimonial-story-index {
    color: #9b796b;
    font-family: var(--company-font-serif);
    font-size: 17px;
    font-style: italic;
}

.testimonial-story:first-child .testimonial-story-index {
    color: #e8b39b;
}

.testimonial-rating {
    color: #bb8353;
    font-size: 13px;
    letter-spacing: .16em;
    white-space: nowrap;
}

.testimonial-rating span {
    color: #d8c9b8;
}

.testimonial-story:first-child .testimonial-rating {
    color: #f2c08e;
}

.testimonial-story:first-child .testimonial-rating span {
    color: rgb(255 255 255 / 28%);
}

.testimonial-quote-mark {
    height: 43px;
    margin-top: 15px;
    color: rgb(199 127 105 / 48%);
    font-family: Georgia, serif;
    font-size: 68px;
    line-height: 1;
}

.testimonial-story:first-child .testimonial-quote-mark {
    color: #db977d;
}

.testimonial-story blockquote {
    z-index: 1;
    margin: 2px 0 25px;
    color: var(--stories-ink);
    font-family: var(--company-font-serif);
    font-size: 17px;
    line-height: 1.72;
}

.testimonial-story:first-child blockquote {
    max-width: 760px;
    margin-bottom: 29px;
    color: #fff;
    font-size: clamp(21px, 2.7vw, 31px);
    line-height: 1.52;
}

.testimonial-story figcaption {
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgb(23 40 61 / 9%);
}

.testimonial-story:first-child figcaption {
    border-color: rgb(255 255 255 / 18%);
}

.testimonial-avatar {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(199 127 105 / 35%);
    border-radius: 50%;
    color: var(--stories-blue-deep);
    background: #f0e3d7;
    font-family: var(--company-font-serif);
    font-size: 17px;
}

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

.testimonial-author {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.testimonial-author strong {
    color: var(--stories-ink);
    font-size: 12px;
    font-weight: 700;
}

.testimonial-author small {
    color: var(--stories-muted);
    font-size: 10px;
}

.testimonial-story:first-child .testimonial-author strong,
.testimonial-story:first-child .testimonial-author small {
    color: #fff;
}

.testimonial-author .testimonial-sample-label {
    color: #9b796b;
    font-size: 9px;
    letter-spacing: .03em;
}

.testimonial-story:first-child .testimonial-author .testimonial-sample-label {
    color: #e8b39b;
}

.testimonial-author-check {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    margin-inline-start: auto;
    border: 1px solid rgb(199 127 105 / 35%);
    border-radius: 50%;
    color: var(--stories-rose);
    font-size: 12px;
}

.testimonial-story:first-child .testimonial-author-check {
    border-color: rgb(255 255 255 / 27%);
    color: #f0bd99;
}

.testimonials-grid + .pagination {
    justify-content: center;
    margin-top: 34px;
}

.testimonials-empty {
    display: grid;
    justify-items: center;
    padding: 64px 24px;
    border: 1px solid var(--stories-line);
    border-radius: 6px 28px 6px 28px;
    background: var(--stories-paper);
    text-align: center;
}

.testimonials-empty > span {
    margin-bottom: 16px;
    color: var(--stories-rose);
    font-size: 25px;
}

.testimonials-empty h3 {
    margin: 0;
    color: var(--stories-ink);
    font-family: var(--company-font-serif);
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 500;
}

.testimonials-empty p {
    max-width: 430px;
    margin: 12px 0 22px;
    color: var(--stories-muted);
    font-size: 14px;
}

.testimonials-share {
    position: relative;
    padding: clamp(68px, 9vw, 108px) 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 100%, rgb(199 127 105 / 17%), transparent 34rem),
        var(--stories-blue-deep);
    scroll-margin-top: 24px;
}

.testimonials-share::after {
    position: absolute;
    top: -160px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.testimonials-share-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(400px, 1fr);
    gap: clamp(45px, 8vw, 112px);
    align-items: center;
}

.testimonials-eyebrow-light {
    color: #e5bca6;
}

.testimonials-eyebrow-light > span {
    background: #e5b18f;
    box-shadow: 0 0 0 5px rgb(229 177 143 / 13%);
}

.testimonials-share-copy h2 {
    color: #fff;
    font-size: clamp(40px, 5vw, 60px);
}

.testimonials-share-copy h2 em {
    color: #e8b39b;
}

.testimonials-share-copy > p:not(.testimonials-eyebrow) {
    max-width: 440px;
    margin: 24px 0 0;
    color: rgb(255 255 255 / 73%);
    font-size: 14px;
    line-height: 1.9;
}

.testimonials-share-footnote {
    display: flex;
    max-width: 390px;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 17%);
    color: rgb(255 255 255 / 72%);
    font-size: 11px;
    line-height: 1.7;
}

.testimonials-share-footnote span:first-child {
    color: #e8b39b;
    font-size: 18px;
    line-height: 1;
}

.testimonials-form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgb(255 255 255 / 64%);
    border-radius: 6px 28px 6px 28px;
    background: #fffdf9;
    box-shadow: 0 24px 65px rgb(5 18 31 / 20%);
}

.testimonials-field {
    display: grid;
    gap: 8px;
}

.testimonials-form label {
    color: var(--stories-ink);
    font-size: 12px;
    font-weight: 700;
}

.testimonials-form :is(input, select, textarea) {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e7dfd6;
    border-radius: 9px;
    color: var(--stories-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.testimonials-form :is(input, select, textarea):focus {
    border-color: var(--stories-blue);
    box-shadow: 0 0 0 3px rgb(45 85 119 / 12%);
    outline: 0;
}

.testimonials-form textarea {
    min-height: 140px;
    resize: vertical;
}

.testimonials-form input::placeholder,
.testimonials-form textarea::placeholder {
    color: #9a9b98;
}

.testimonials-form-note {
    margin: -2px 0 0;
    color: var(--stories-muted);
    font-size: 11px;
    line-height: 1.7;
}

.testimonials-button-submit {
    width: 100%;
    color: #fff;
    background: var(--stories-rose);
}

.testimonials-button-submit:hover {
    color: #fff;
    background: #a96150;
}

.testimonials-success {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #b9dfc6;
    border-radius: 8px;
    color: #22613b;
    background: #f0faf3;
    font-size: 13px;
}

.testimonials-form .form-error {
    color: #ad3b36;
    font-size: 11px;
}

html[dir="rtl"] .testimonials-eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] .testimonials-story-index,
html[dir="rtl"] .testimonial-rating,
html[dir="rtl"] .testimonials-hero-stamp {
    direction: ltr;
}

html[dir="rtl"] .testimonial-story blockquote {
    text-align: right;
}

@media (max-width: 900px) {
    .testimonials-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
        gap: 42px;
    }

    .testimonials-hero-visual,
    .testimonials-hero-visual > img {
        min-height: 410px;
        height: 410px;
    }

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

    .testimonials-share-grid {
        grid-template-columns: minmax(0, .8fr) minmax(340px, 1fr);
        gap: 38px;
    }
}

@media (max-width: 680px) {
    .testimonials-page .container {
        width: min(100% - 36px, 520px);
    }

    .testimonials-hero {
        padding: 58px 0 54px;
    }

    .testimonials-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .testimonials-hero-copy {
        padding: 0;
    }

    .testimonials-eyebrow {
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .testimonials-hero h1 {
        max-width: 520px;
        font-size: clamp(45px, 12vw, 66px);
    }

    .testimonials-hero-description {
        margin-top: 18px;
        font-size: 14px;
    }

    .testimonials-hero-actions {
        gap: 16px;
        margin-top: 25px;
    }

    .testimonials-button {
        min-height: 48px;
        padding-inline: 19px;
    }

    .testimonials-hero-note {
        margin-top: 25px;
        font-size: 11px;
    }

    .testimonials-hero-visual {
        min-height: 330px;
        margin-inline: 10px 4px;
    }

    .testimonials-hero-visual > img {
        height: 330px;
        min-height: 330px;
        border-radius: 42% 42% 10px 10px;
        object-position: 60% center;
    }

    .testimonials-hero-visual::before {
        top: -13px;
        right: -11px;
    }

    .testimonials-hero-stamp {
        top: 12%;
        left: -20px;
        width: 75px;
    }

    .testimonials-hero-stamp span:first-child {
        font-size: 18px;
    }

    .testimonials-hero-visual figcaption {
        right: 10px;
        bottom: 10px;
        left: 10px;
        min-height: 54px;
        padding: 10px 12px;
    }

    .testimonials-hero-visual figcaption span:last-child {
        font-size: 13px;
    }

    .testimonials-stories {
        padding: 66px 0 72px;
    }

    .testimonials-section-heading {
        display: grid;
        gap: 14px;
        margin-bottom: 27px;
    }

    .testimonials-section-heading .testimonials-eyebrow {
        margin-bottom: 13px;
    }

    .testimonials-section-heading h2,
    .testimonials-share-copy h2 {
        font-size: clamp(38px, 10vw, 50px);
    }

    .testimonials-section-heading > p {
        max-width: 440px;
        font-size: 13px;
    }

    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .testimonial-story,
    .testimonial-story:first-child {
        grid-column: auto;
        min-height: 260px;
        padding: 22px 21px 19px;
    }

    .testimonial-story:first-child blockquote {
        font-size: 22px;
    }

    .testimonials-share {
        padding: 66px 0;
    }

    .testimonials-share-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .testimonials-share-copy > p:not(.testimonials-eyebrow) {
        margin-top: 18px;
        font-size: 13px;
    }

    .testimonials-share-footnote {
        margin-top: 24px;
    }

    .testimonials-form {
        gap: 16px;
        padding: 21px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-story,
    .testimonials-button {
        transition: none;
    }
}
