/* ============================================================
   POLISA EDUKACJA — GLOBAL FOOTER v0.8.0
   ============================================================ */

#pe-site-footer {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--pe-ink);
    color: var(--pe-white);
}

#pe-site-footer .pe-footer__main {
    padding: 72px 0 28px;
}

#pe-site-footer .pe-footer__top {
    display: grid;
    grid-template-columns: 1.25fr .75fr .8fr;
    gap: 64px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--pe-line-dark);
}

#pe-site-footer .pe-footer__wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--pe-white);
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.035em;
    text-decoration: none;
}

#pe-site-footer .pe-footer__wordmark-bar {
    flex: 0 0 5px;
    width: 5px;
    height: 29px;
    background: var(--pe-marker);
}

#pe-site-footer .pe-footer__about {
    max-width: 470px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: 14px;
    line-height: 1.7;
}

#pe-site-footer .pe-footer__column h2 {
    margin: 0 0 17px;
    color: var(--pe-white);
    font-family: var(--pe-font-sans);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#pe-site-footer .pe-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

#pe-site-footer .pe-footer__links li + li {
    margin-top: 10px;
}

#pe-site-footer .pe-footer__links a,
#pe-site-footer .pe-footer__cookie-button {
    color: rgba(255, 255, 255, .73);
    font-family: var(--pe-font-sans);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .15s ease;
}

#pe-site-footer .pe-footer__links a:hover,
#pe-site-footer .pe-footer__cookie-button:hover {
    color: var(--pe-white);
}

#pe-site-footer .pe-footer__cookie-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

#pe-site-footer .pe-footer__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--pe-line-dark);
}

#pe-site-footer .pe-footer__trust-card {
    min-height: 176px;
    display: grid;
    grid-template-columns: 116px 1fr;
    align-items: center;
    gap: 24px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--pe-radius);
    background: rgba(255, 255, 255, .055);
}

#pe-site-footer .pe-footer__logo-box {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    background: var(--pe-white);
}

#pe-site-footer .pe-footer__pzu-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

#pe-site-footer .pe-footer__ube-logo {
    width: 102px;
    height: auto;
    object-fit: contain;
}

#pe-site-footer .pe-footer__trust-copy small {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#pe-site-footer .pe-footer__trust-copy strong {
    display: block;
    margin-bottom: 8px;
    color: var(--pe-white);
    font-size: 18px;
    line-height: 1.25;
}

#pe-site-footer .pe-footer__trust-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.65;
}

#pe-site-footer .pe-footer__agent {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--pe-line-dark);
}

#pe-site-footer .pe-footer__agent-kicker {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#pe-site-footer .pe-footer__agent strong {
    display: block;
    color: var(--pe-white);
    font-size: 17px;
}

#pe-site-footer .pe-footer__agent-meta {
    margin-top: 5px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

#pe-site-footer .pe-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

#pe-site-footer .pe-footer__contact a {
    color: var(--pe-white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#pe-site-footer .pe-footer__legal {
    padding-top: 24px;
}

#pe-site-footer .pe-footer__legal-copy {
    max-width: 940px;
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: 11.5px;
    line-height: 1.75;
}

#pe-site-footer .pe-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .48);
    font-size: 11.5px;
}

#pe-site-footer .pe-footer__bottom a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
}

#pe-site-footer .pe-footer__bottom a:hover {
    color: var(--pe-white);
}

@media (max-width: 980px) {
    #pe-site-footer .pe-footer__top {
        grid-template-columns: 1.25fr .75fr .75fr;
        gap: 34px;
    }

    #pe-site-footer .pe-footer__trust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    #pe-site-footer .pe-footer__main {
        padding-top: 58px;
    }

    #pe-site-footer .pe-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
    }

    #pe-site-footer .pe-footer__brand-block {
        grid-column: 1 / -1;
    }

    #pe-site-footer .pe-footer__trust-card {
        grid-template-columns: 92px 1fr;
        gap: 18px;
        padding: 20px;
    }

    #pe-site-footer .pe-footer__logo-box {
        min-height: 78px;
    }

    #pe-site-footer .pe-footer__pzu-logo {
        width: 58px;
        height: 58px;
    }

    #pe-site-footer .pe-footer__ube-logo {
        width: 78px;
    }

    #pe-site-footer .pe-footer__agent {
        grid-template-columns: 1fr;
    }

    #pe-site-footer .pe-footer__contact {
        justify-content: flex-start;
    }

    #pe-site-footer .pe-footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #pe-site-footer .pe-footer__top {
        grid-template-columns: 1fr;
    }

    #pe-site-footer .pe-footer__brand-block {
        grid-column: auto;
    }

    #pe-site-footer .pe-footer__trust-card {
        grid-template-columns: 1fr;
    }

    #pe-site-footer .pe-footer__logo-box {
        width: 118px;
    }
}
