:root {
    --ui-footer-bg: #07172d;
    --ui-footer-bar-bg: #03152d;
    --ui-footer-card-bg-1: #102c52;
    --ui-footer-card-bg-2: #0a1f3d;
    --ui-footer-text: #dce8ff;
    --ui-footer-muted: #c7d7ef;
    --ui-footer-white: #ffffff;
    --ui-footer-blue: #58a6ff;
    --ui-footer-border: rgba(132, 181, 255, 0.18);
    --ui-footer-border-strong: rgba(132, 181, 255, 0.28);
    --ui-footer-width: 1124px;
    --ui-footer-left: 480px;
    --ui-footer-right: 600px;
    --ui-footer-gap: 44px;
}

.site-footer,
.site-footer .footer-widgets,
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets,
.ui-footer {
    background: var(--ui-footer-bg);
    color: var(--ui-footer-text);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after,
.ui-footer *,
.ui-footer *::before,
.ui-footer *::after {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    overflow: hidden;
}

.site-footer .footer-widgets {
    width: 100%;
    padding: 46px 0 34px;
}

.site-footer .footer-widgets-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-widgets .inside-footer-widgets {
    width: min(var(--ui-footer-width), calc(100% - 32px)) !important;
    max-width: var(--ui-footer-width) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, var(--ui-footer-left)) minmax(0, var(--ui-footer-right)) !important;
    gap: var(--ui-footer-gap) !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.site-footer .inside-footer-widgets > div,
.site-footer .inside-footer-widgets .footer-widget-1,
.site-footer .inside-footer-widgets .footer-widget-2 {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .inside-footer-widgets .footer-widget-3,
.site-footer .inside-footer-widgets .footer-widget-4,
.site-footer .inside-footer-widgets .footer-widget-5 {
    display: none !important;
}

.site-footer .widget {
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.ui-footer {
    width: 100%;
    margin-top: 56px;
    font-family: inherit;
}

.ui-footer-wrap {
    width: min(var(--ui-footer-width), calc(100% - 32px));
    max-width: var(--ui-footer-width);
    margin: 0 auto;
    padding: 36px 0 20px;
}

.ui-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--ui-footer-left)) minmax(0, var(--ui-footer-right));
    gap: var(--ui-footer-gap);
    justify-content: center;
    align-items: stretch;
}

.ui-footer-card {
    width: 100% !important;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--ui-footer-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ui-footer-card-bg-1) 0%, var(--ui-footer-card-bg-2) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.ui-footer-title {
    margin: 0 0 18px;
    color: var(--ui-footer-white);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ui-footer-subtitle {
    margin: 22px 0 10px;
    color: var(--ui-footer-white);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}

.ui-footer-nav {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ui-footer-nav a,
.ui-footer-contacts a {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    color: var(--ui-footer-text);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ui-footer-nav a::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ui-footer-blue);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.ui-footer-nav a:hover,
.ui-footer-contacts a:hover {
    color: var(--ui-footer-white);
    transform: translateX(3px);
}

.ui-footer-contacts {
    display: grid;
    gap: 8px;
}

.ui-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ui-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--ui-footer-white);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ui-footer-socials a:hover {
    transform: translateY(-3px);
    background: rgba(88, 166, 255, 0.24);
    border-color: rgba(88, 166, 255, 0.46);
}

.ui-footer-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ui-footer-disclaimer {
    display: grid;
    gap: 14px;
}

.ui-footer-disclaimer p {
    margin: 0;
    color: var(--ui-footer-text);
    font-size: 15px;
    line-height: 1.65;
}

.ui-footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ui-footer-sponsors a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 70px;
    padding: 12px 18px;
    border-radius: 16px;
    color: var(--ui-footer-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(132, 181, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ui-footer-sponsors a:hover {
    transform: translateY(-3px);
    background: rgba(88, 166, 255, 0.16);
    border-color: rgba(132, 181, 255, 0.42);
    box-shadow: none;
}

.ui-footer-sponsors img {
    display: block;
    width: auto;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

.ui-footer-sponsors a:nth-child(1) img {
    max-width: 120px;
}

.ui-footer-sponsors a:nth-child(2) img {
    max-width: 135px;
}

.ui-footer-sponsors a:nth-child(3) img {
    max-width: 145px;
}

.site-info,
.ui-footer-bar {
    background: var(--ui-footer-bar-bg);
    color: var(--ui-footer-white);
}

.site-info {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.site-info a {
    color: var(--ui-footer-white);
    text-decoration: none;
}

.ui-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.ui-footer-bar-text {
    color: var(--ui-footer-muted);
    font-size: 14px;
    line-height: 1.4;
}

.ui-footer-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ui-footer-white);
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1180px) {
    :root {
        --ui-footer-width: 100%;
        --ui-footer-left: 1fr;
        --ui-footer-right: 1.15fr;
        --ui-footer-gap: 28px;
    }

    .site-footer .footer-widgets .inside-footer-widgets,
    .ui-footer-wrap {
        width: calc(100% - 32px) !important;
        max-width: 1124px !important;
    }

    .site-footer .footer-widgets .inside-footer-widgets,
    .ui-footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
    }
}

@media (max-width: 900px) {
    .site-footer .footer-widgets {
        padding: 32px 0 26px;
    }

    .site-footer .footer-widgets .inside-footer-widgets,
    .ui-footer-grid {
        width: min(680px, calc(100% - 24px)) !important;
        max-width: 680px !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .ui-footer-wrap {
        width: min(680px, calc(100% - 24px)) !important;
        max-width: 680px !important;
    }

    .ui-footer-card {
        padding: 22px;
        border-radius: 18px;
    }

    .ui-footer-sponsors {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ui-footer-sponsors a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .ui-footer {
        margin-top: 40px;
    }

    .site-footer .footer-widgets .inside-footer-widgets,
    .ui-footer-grid,
    .ui-footer-wrap {
        width: min(520px, calc(100% - 20px)) !important;
        max-width: 520px !important;
    }

    .ui-footer-title {
        font-size: 20px;
    }

    .ui-footer-sponsors {
        grid-template-columns: 1fr;
    }

    .ui-footer-sponsors a {
        min-height: 66px;
    }

    .ui-footer-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}