/* Premium shared footer. Loaded after style.css, so it upgrades the old footer safely. */

.footer {
    width: calc(100% - 32px);
    max-width: 1040px;
    margin: 44px auto 28px;
    padding: 0;
    overflow: hidden;
    background: #f9fbff;
    border: 1px solid rgba(15, 23, 48, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15, 23, 48, 0.12);
}

.footer *,
.footer *::before,
.footer *::after {
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    justify-items: center;
    gap: 28px 54px;
    max-width: none;
    margin: 0;
    padding: 36px 40px 28px;
    background: #f9fbff;
}

.footer-section {
    width: 100%;
    max-width: 220px;
}

.footer-section h4 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin: 0 0 7px;
}

.footer-section ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 0;
    color: #5c667a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-section ul li a:hover {
    color: #005bff;
    text-decoration: none;
    transform: translateX(2px);
}

.footer-bottom {
    max-width: none;
    margin: 0;
    padding: 24px 40px 26px;
    background: #f9fbff;
    border-top: 1px solid rgba(15, 23, 48, 0.08);
    color: #6b7280;
    text-align: center;
}

.footer-bottom p:first-child {
    margin: 0 0 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.pb-footer__disclaimer {
    max-width: 760px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.65;
}

.pb-footer__rg {
    display: flex;
    align-items: center;
    gap: 18px 22px;
    margin: 0;
    padding: 24px 34px;
    background: #0b1228;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-footer__rg-badge {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: #0f1730;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pb-footer__rg-text {
    flex: 1 1 auto;
    min-width: 0;
}

.pb-footer__rg-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.pb-footer__rg-body {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.55;
}

.pb-footer__ga-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-footer__ga-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pb-footer__ga-img {
    display: block;
    width: auto;
    max-width: 140px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.language-switcher {
    max-width: 1040px;
    margin: 20px auto 0;
    padding: 28px 34px;
    background: #f9fbff;
    border: 1px solid rgba(15, 23, 48, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 42px rgba(15, 23, 48, 0.1);
}

.language-switcher__title {
    margin: 0 0 18px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.language-switcher__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 38px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 48, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 48, 0.08);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.language-switcher__link:hover {
    border-color: rgba(0, 91, 255, 0.28);
    color: #005bff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 48, 0.12);
}

@media (max-width: 760px) {
    .footer {
        width: calc(100% - 20px);
        margin-top: 32px;
        border-radius: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 26px 24px;
        text-align: center;
    }

    .footer-section {
        max-width: none;
    }

    .footer-section ul li a {
        justify-content: center;
    }

    .footer-section ul li a:hover {
        transform: none;
    }

    .footer-bottom {
        padding: 22px 24px 24px;
    }

    .pb-footer__rg {
        flex-direction: column;
        align-items: center;
        padding: 26px 24px;
        text-align: center;
    }

    .pb-footer__rg-body {
        max-width: none;
    }

    .pb-footer__ga-link {
        width: 100%;
        max-width: 260px;
        margin-left: 0;
    }

    .language-switcher {
        width: calc(100% - 20px);
        margin-top: 18px;
        padding: 24px 20px;
        border-radius: 20px;
        text-align: center;
    }

    .language-switcher__list {
        justify-content: center;
    }

    .language-switcher__link {
        min-width: 82px;
    }
}
