#footer.redesign-footer {
    --footer-ink: #fafcfd;
    --footer-muted: rgb(255 255 255 / 70%);
    --footer-subtle: rgb(255 255 255 / 50%);
    --footer-rule: rgb(255 255 255 / 10%);
    --footer-accent: #00b5b8;
    background: #061d2b;
    color: var(--footer-muted);
    font: 400 14px/20px "Manrope", sans-serif;
}

#footer.redesign-footer .footer-container {
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: 0 auto;
}

#footer.redesign-footer .footer-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 44px 0 32px;
}

#footer.redesign-footer .footer-section,
#footer.redesign-footer .footer-meta-slot {
    min-width: 0;
}

#footer.redesign-footer .footer-brand { grid-area: brand; }
#footer.redesign-footer .footer-navigation { grid-area: navigation; }
#footer.redesign-footer .footer-contacts { grid-area: contacts; }
#footer.redesign-footer .footer-partners { grid-area: partners; }

#footer.redesign-footer .footer-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 0 16px;
}

#footer.redesign-footer .footer-description {
    max-width: 360px;
    margin: 0;
    color: var(--footer-muted);
}

#footer.redesign-footer .footer-heading {
    margin: 0 0 16px;
    color: var(--footer-ink);
    font: 600 14px/20px "Manrope", sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

#footer.redesign-footer .footer-nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 8px 24px;
    margin: 0;
    padding: 0;
}

#footer.redesign-footer .footer-nav-link {
    padding: 0;
    color: var(--footer-muted);
    font: inherit;
    line-height: 20px;
    text-decoration: none;
}

#footer.redesign-footer a:hover,
#footer.redesign-footer a:focus-visible {
    color: var(--footer-ink);
}

#footer.redesign-footer .footer-contact-list,
#footer.redesign-footer .footer-social-list,
#footer.redesign-footer .footer-partner-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer.redesign-footer .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#footer.redesign-footer .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#footer.redesign-footer .footer-contact-list a,
#footer.redesign-footer .footer-contact-list li > span:last-child {
    min-width: 0;
    color: var(--footer-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#footer.redesign-footer .footer-contact-icon,
#footer.redesign-footer .footer-contact-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

#footer.redesign-footer .footer-contact-icon {
    flex: 0 0 16px;
    margin-top: 2px;
    color: var(--footer-accent);
}

#footer.redesign-footer .footer-worktime {
    margin: 12px 0 0 24px;
    color: var(--footer-muted);
}

#footer.redesign-footer .footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 0 -8px;
}

#footer.redesign-footer .footer-social-list a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--footer-muted);
}

#footer.redesign-footer .footer-social-list a:hover {
    background: rgb(255 255 255 / 6%);
    color: var(--footer-ink);
}

#footer.redesign-footer .footer-social-list span,
#footer.redesign-footer .footer-social-list svg,
#footer.redesign-footer .footer-social-list img {
    display: block;
    width: 18px;
    height: 18px;
}

#footer.redesign-footer .footer-social-list img {
    filter: brightness(0) invert(1);
    opacity: .7;
}

#footer.redesign-footer .footer-partner-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#footer.redesign-footer .footer-partner-link {
    display: flex;
    min-height: 32px;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--footer-rule);
    border-radius: 16px;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#footer.redesign-footer .footer-partner-link:hover {
    border-color: var(--footer-accent);
    background: rgb(255 255 255 / 4%);
}

#footer.redesign-footer .footer-bottom {
    display: flex;
    min-height: 58px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid var(--footer-rule);
    color: var(--footer-subtle);
    font-size: 12px;
    line-height: 18px;
}

#footer.redesign-footer .footer-copyright-name {
    text-transform: uppercase;
}

#footer.redesign-footer a:focus-visible,
#footer.redesign-footer button:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

/* The legacy client replaces only this menu. Other footer navigation stays visible. */
#footer.redesign-footer .footer-meta-slot {
    display: none;
    grid-area: meta;
}

#footer.redesign-footer .footer-meta-slot:has(.losb-block) {
    display: block;
}

#footer.redesign-footer .losb-block {
    --secondary-color: rgb(255 255 255 / 25%);
    --accent-color: #fafcfd;
    --accent-text-color: #061d2b;
    --font-size: 14px;
}

#footer.redesign-footer .losb-head {
    gap: 8px;
    margin: 0 0 16px;
}

#footer.redesign-footer .losb-head button {
    min-height: 36px;
    padding: 6px 16px;
    font: 500 14px/20px "Manrope", sans-serif;
}

#footer.redesign-footer .losb-tab,
#footer.redesign-footer .losb-tab + .losb-tab {
    width: 100%;
    min-width: 0;
}

#footer.redesign-footer .losb-tab:not(.active) {
    display: none;
}

#footer.redesign-footer .footer-meta-menu,
#footer.redesign-footer .losb-requests {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px 24px;
}

#footer.redesign-footer .footer-meta-slot .nav-link {
    padding: 0 !important;
    color: var(--footer-muted);
    font: 400 14px/22px "Manrope", sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
}

#footer.redesign-footer .footer-contact-list a:hover,
#footer.redesign-footer .footer-contact-list a:focus-visible,
#footer.redesign-footer .footer-meta-slot .nav-link:hover,
#footer.redesign-footer .footer-meta-slot .nav-link:focus-visible {
    color: var(--footer-ink);
}

@media (min-width: 768px) {
    #footer.redesign-footer .footer-sections {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "brand partners" "navigation contacts";
        gap: 40px;
        padding: 48px 32px 40px;
    }

    #footer.redesign-footer .footer-sections:has(.losb-block) {
        grid-template-areas: "brand partners" "meta meta" "navigation contacts";
    }

    #footer.redesign-footer .footer-nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #footer.redesign-footer .footer-bottom {
        min-height: 88px;
        justify-content: space-between;
        gap: 16px;
        padding: 24px 32px 32px;
    }
}

@media (min-width: 1100px) {
    #footer.redesign-footer .footer-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas: "brand navigation contacts partners";
    }

    #footer.redesign-footer .footer-sections:has(.losb-block) {
        grid-template-areas: ". meta meta ." "brand navigation contacts partners";
    }
}
