.home-clients {
    --clients-gap: 8px;
    --clients-card-width: 150px;
    padding-block: 32px;
    margin-block-start: 24px;
    background: #f6f7f9;
}

.home-clients > .home-clients__row {
    display: block;
    clear: both;
    direction: ltr;
    width: 100%;
    overflow: hidden;
}

.home-clients > .home-clients__row + .home-clients__row {
    margin-top: var(--clients-gap);
}

.home-clients__track {
    --clients-group-width: max(100%, calc(var(--clients-count) * (var(--clients-card-width) + var(--clients-gap))));
    display: flex;
    flex-wrap: nowrap;
    width: calc(var(--clients-group-width) * 2);
    max-width: none;
    animation: home-clients-slide var(--clients-duration) linear infinite;
}

.home-clients__row--right .home-clients__track {
    animation-direction: reverse;
}

.home-clients__group {
    display: flex;
    flex: 0 0 50%;
    flex-wrap: nowrap;
    box-sizing: border-box;
    justify-content: space-between;
    gap: var(--clients-gap);
    padding: 0 var(--clients-gap) 0 0;
    margin: 0;
    list-style: none;
}

.home-clients__card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    width: var(--clients-card-width);
    height: 120px;
    padding: 1px 6px;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    background: #fff;
    color: #242933;
    text-align: center;
    font-size: 0.75rem;
    line-height: 13px;
}

.home-clients__card span {
    display: block;
    width: 100%;
    text-align: center;
}

.home-clients__card img {
    flex-shrink: 0;
    width: 100%;
    max-width: 132px;
    height: 66px;
    object-fit: contain;
}

@keyframes home-clients-slide {
    from {
        transform: translateX(0);
    }

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

@media (prefers-reduced-motion: reduce) {
    .home-clients__track {
        width: var(--clients-group-width);
        animation: none;
    }

    .home-clients__group {
        flex-basis: 100%;
    }

    .home-clients__group--duplicate {
        display: none;
    }

    .home-clients > .home-clients__row {
        overflow-x: auto;
    }
}
