#brands .partners__content {
    --brands-marquee-gap: 18px;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 18px;
}

#brands .partners__row {
    overflow: hidden;
    width: 100%;
}

#brands .brands-marquee__viewport {
    overflow: hidden;
    width: 100%;
}

#brands .brands-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: var(--brands-marquee-gap);
    will-change: transform;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

#brands .brands-marquee__slide {
    width: auto !important;
    flex-shrink: 0;
}

#brands .brands-marquee--row-1 .brands-marquee__track,
#brands .brands-marquee--row-3 .brands-marquee__track {
    animation-name: brands-marquee-right;
    animation-duration: 38s;
}

#brands .brands-marquee--row-2 .brands-marquee__track {
    animation-name: brands-marquee-left;
    animation-duration: 38s;
}

#brands .partners__column {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

#brands .partners__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    width: 180px;
    height: 84px;
    padding: 14px 18px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
}

#brands .partners__image picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#brands .partners__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

@media screen and (max-width: 767px) {
    #brands .partners__content {
        --brands-marquee-gap: 12px;
        gap: 12px;
    }

    #brands .partners__image {
        min-width: 144px;
        width: 144px;
        height: 72px;
        padding: 12px 14px;
        border-radius: 10px;
    }
}

@keyframes brands-marquee-left {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-50% - (var(--brands-marquee-gap) / 2)), 0, 0);
    }
}

@keyframes brands-marquee-right {
    from {
        transform: translate3d(calc(-50% - (var(--brands-marquee-gap) / 2)), 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}