.section-what-people-say {
    width: 100%;
    padding: 85px 0 63px;
    overflow: hidden;
    background: #ECE9E8;
}

.section-what-people-say__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    width: min(100% - 72px, 1368px);
    margin: 0 auto 58px;
}

.section-what-people-say__title {
    margin: 0;
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0;
    color: #191919;
}

.section-what-people-say__controls {
    display: flex;
    gap: 50px;
    padding-right: 19px;
}

.section-what-people-say__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #191919;
    border-radius: 3px;
    background: transparent;
    color: #191919;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
    transition: color 220ms ease, transform 220ms ease;
}

.section-what-people-say__button::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 26px;
    border-radius: 999px;
    background: #171717;
    transform: translateY(-50%) scale(0);
    transition: transform 260ms ease, width 260ms ease, height 260ms ease;
}

.section-what-people-say__button--prev::before {
    right: -8px;
    transform-origin: right center;
}

.section-what-people-say__button--next::before {
    left: -8px;
    transform-origin: left center;
}

.section-what-people-say__button span {
    position: relative;
    z-index: 1;
}

.section-what-people-say__button:hover,
.section-what-people-say__button:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
}

.section-what-people-say__button:hover::before,
.section-what-people-say__button:focus-visible::before {
    width: 72px;
    height: 72px;
    transform: translateY(-50%) scale(1);
}

.section-what-people-say__viewport {
    display: grid;
    grid-auto-columns: 430px;
    grid-auto-flow: column;
    gap: 0;
    width: min(100% - 72px, 1368px);
    margin-left: max(36px, calc((100vw - 1368px) / 2));
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.section-what-people-say__viewport::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-height: 298px;
    padding: 0 48px 0 48px;
    border-left: 1px solid rgba(23, 23, 23, 0.04);
    scroll-snap-align: start;
}

.testimonial-card__meta {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0.04em;
    color: #191919;
    text-transform: uppercase;
}

.testimonial-card__text,
.testimonial-card__text p {
    margin: 0;
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.03em;
    color: #191919;
}

.testimonial-card__icon {
    display: block;
    width: 36px;
    height: 36px;
    margin-top: auto;
    object-fit: contain;
    opacity: 0.85;
}

@media (max-width: 980px) {
    .section-what-people-say {
        padding: 48px 0 54px;
    }

    .section-what-people-say__header {
        width: calc(100% - 48px);
        margin-bottom: 38px;
    }

    .section-what-people-say__controls {
        gap: 16px;
        padding-right: 0;
    }

    .section-what-people-say__viewport {
        grid-auto-columns: min(78vw, 360px);
        width: calc(100% - 24px);
        margin-left: 24px;
    }

    .testimonial-card {
        min-height: 270px;
        padding: 0 28px;
    }
}

@media (max-width: 560px) {
    .section-what-people-say__title {
        font-size: 22px;
        line-height: 24px;
    }

    .section-what-people-say__button {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .section-what-people-say__viewport {
        grid-auto-columns: min(82vw, 310px);
    }

    .testimonial-card {
        padding: 0 22px;
    }

    .testimonial-card__text,
    .testimonial-card__text p {
        font-size: 18px;
        line-height: 21px;
    }
}
