.client-slider {
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1rem, calc((100vw - 80rem) / 2));
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    mask-image: linear-gradient(to right,
            transparent,
            #000 5%,
            #000 95%,
            transparent);

    -webkit-mask-image: linear-gradient(to right,
            transparent,
            #000 5%,
            #000 95%,
            transparent);
}


.client-slider::-webkit-scrollbar {
    display: none;
}


.client-track {
    animation: client-scroll 38s linear infinite;
    will-change: transform;
}


.client-slider:hover .client-track,
.client-slider:focus-within .client-track {
    animation-play-state: paused;
}


.client-card {
    position: relative;
    width: min(78vw, 340px);
    height: 390px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #504845;
    box-shadow: 0 18px 42px rgba(80, 72, 69, 0.16);
}


.client-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}


.client-card:hover .client-image {
    transform: scale(1.045);
}


.client-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(to top,
            rgba(31, 26, 24, 0.96) 0%,
            rgba(31, 26, 24, 0.18) 72%);
}


.client-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    color: #ffffff;
}


.client-content i {
    color: #f08300;
    font-size: 1.9rem;
}


.client-content h3 {
    margin-top: 0.45rem;
    font-size: 1.35rem;
    font-weight: 600;
}


.client-content p {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.55;
}


@keyframes client-scroll {

    from {
        transform: translateX(0);
    }

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

}


@media (prefers-reduced-motion: reduce) {

    .client-track {
        animation: none;
    }

    .client-image {
        transition: none;
    }

}