.footer__brands {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    padding: 32px 0 44px;
}

.footer__brand-group {
    min-width: 0;
}

.footer__brand-title {
    margin: 0 0 16px;
    color: #657180;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.dark-theme .footer__brand-title {
    color: #9dafc1;
}

.footer__payment-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__payment-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary, #0e2b49);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.footer__payment-brand img {
    display: block;
    flex-shrink: 0;
}

.footer__partner-list {
    display: grid;
    grid-template-columns: 154px 172px;
    align-items: center;
    gap: 28px;
}

.footer__partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    border-radius: 4px;
    transition: opacity .2s ease;
}

.footer__partner-link:hover {
    opacity: .8;
}

.footer__partner-link:focus-visible {
    outline: 2px solid #0177fc;
    outline-offset: 6px;
}

.footer__partner-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer__partner-logo--dark,
.dark-theme .footer__partner-logo--light {
    display: none;
}

.dark-theme .footer__partner-logo--dark {
    display: block;
}

@media only screen and (max-width: 1199px) {
    .footer__brands {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 28px 0 0;
        text-align: center;
    }

    .footer__brand-title {
        margin-bottom: 14px;
    }

    .footer__payment-list {
        justify-content: center;
        gap: 16px 20px;
    }

    .footer__payment-brand {
        gap: 8px;
        font-size: 16px;
    }

    .footer__payment-brand img {
        width: 28px;
        height: 28px;
    }

    .footer__partner-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 354px;
        margin: 0 auto;
    }
}
