.site-footer {
    margin: 24px 0 0 !important;
    padding: 14px 16px 16px !important;
    color: #dbe7ff;
    background: rgba(0, 0, 0, .10);
    border: 0 !important;
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-strip {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none !important;
    white-space: nowrap;
}

.footer-logo {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #0b1020;
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.footer-brand-name {
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #c3d2f4 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    outline: none;
}

/* language switcher */
.footer-lang-switcher {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
}

.site-footer .footer-lang-trigger {
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    color: #eef4ff !important;
    background: rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
    cursor: pointer;
    font: inherit;
}

.site-footer .footer-lang-trigger:hover,
.site-footer .footer-lang-trigger:focus-visible {
    background: rgba(255, 255, 255, .15) !important;
    outline: none;
}

.footer-lang-trigger-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer .footer-lang-flag {
    border-radius: 999px;
    object-fit: cover;
}

.site-footer .footer-lang-flag-current {
    width: 23px !important;
    height: 23px !important;
}

.site-footer .footer-lang-trigger-text {
    font-size: 14px !important;
    font-weight: 750 !important;
    white-space: nowrap;
}

.footer-lang-chevron {
    font-size: 13px;
    line-height: 1;
    color: #b7c7ec;
}

.footer-lang-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(620px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 12px;
    background: rgba(8, 13, 24, .98);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .38);
}

.footer-lang-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-lang-popup-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
}

.footer-lang-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #dbe7ff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.footer-lang-close:hover,
.footer-lang-close:focus-visible {
    background: rgba(255, 255, 255, .14);
    outline: none;
}

.footer-lang-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.footer-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 8px;
    color: #dce7ff;
    text-decoration: none !important;
    background: transparent;
}

.footer-lang-item:hover,
.footer-lang-item:focus-visible,
.footer-lang-item.active {
    background: rgba(255, 255, 255, .09);
    outline: none;
}

.footer-lang-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

/* bottom row */
.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: #8ea0c4;
    font-size: 13px;
}

.site-footer-copy {
    color: #8ea0c4;
    white-space: nowrap;
}

.footer-features {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    color: #aebfe2;
    font-size: 13px;
    font-weight: 650;
}

.footer-features span {
    white-space: nowrap;
}

.footer-features span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(174, 191, 226, .55);
}

/* tablet */
@media (max-width: 980px) {
    .footer-strip {
        grid-template-columns: 1fr auto;
        gap: 12px 18px;
    }

    .footer-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
    }
}

/* mobile */
@media (max-width: 620px) {
    .site-footer {
        padding: 16px 14px 18px !important;
    }

    .footer-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-brand-name {
        font-size: 23px;
    }

    .footer-lang-switcher,
    .site-footer .footer-lang-trigger {
        width: 100% !important;
    }

    .site-footer .footer-lang-trigger {
        justify-content: space-between !important;
    }

    .footer-lang-popup {
        left: 0;
        right: auto;
        width: min(100%, calc(100vw - 28px));
    }

    .footer-nav {
        justify-content: flex-start;
        gap: 9px 14px;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .site-footer-copy {
        white-space: normal;
    }

    .footer-features {
        justify-content: flex-start;
    }

    .footer-lang-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* White language button + white language popup */
.site-footer .footer-lang-trigger {
    background: #ffffff !important;
    color: #0f1b33 !important;
    border: 2px solid rgba(125, 150, 230, .55) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18) !important;
}

.site-footer .footer-lang-trigger:hover,
.site-footer .footer-lang-trigger:focus-visible {
    background: #ffffff !important;
    border-color: rgba(95, 125, 220, .85) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22) !important;
    outline: none;
}

.site-footer .footer-lang-trigger-text {
    color: #0f1b33 !important;
    font-weight: 800 !important;
}

.site-footer .footer-lang-chevron {
    color: #4f6fd8 !important;
}

.site-footer .footer-lang-popup {
    background: #ffffff !important;
    color: #0f1b33 !important;
    border: 1px solid rgba(15, 27, 51, .10) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24) !important;
}

.site-footer .footer-lang-popup-title {
    color: #0f1b33 !important;
}

.site-footer .footer-lang-close {
    background: transparent !important;
    color: #4f6fd8 !important;
    font-size: 34px !important;
    font-weight: 900 !important;
}

.site-footer .footer-lang-close:hover,
.site-footer .footer-lang-close:focus-visible {
    background: rgba(79, 111, 216, .08) !important;
    color: #244fd4 !important;
    outline: none;
}

.site-footer .footer-lang-item {
    color: #18243d !important;
    background: transparent !important;
}

.site-footer .footer-lang-item:hover,
.site-footer .footer-lang-item:focus-visible,
.site-footer .footer-lang-item.active {
    background: rgba(79, 111, 216, .08) !important;
    color: #0f1b33 !important;
}

.site-footer .footer-lang-name {
    color: #18243d !important;
    font-weight: 800 !important;
}

.site-footer .footer-lang-flag {
    box-shadow: 0 0 0 1px rgba(15, 27, 51, .08) !important;
}