/* ==========================================================================
   PORTAL FOOTER — стеклянный коричнево-золотой подвал
   ========================================================================== */

body footer.portal-footer {
    --pf-gold: #d8b46a;
    --pf-gold-2: #f1d9a4;
    --pf-ink: #f3ecdf;
    --pf-muted: #b7a487;
    --pf-line: rgba(216, 180, 106, 0.24);
    margin-top: 30px;
    border-top: 1px solid rgba(216, 180, 106, 0.34);
    background:
        radial-gradient(900px 320px at 15% 0%, rgba(216, 180, 106, 0.08), transparent 65%),
        linear-gradient(180deg, rgba(58, 39, 24, 0.56), rgba(16, 10, 6, 0.86));
    box-shadow:
        0 -18px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 230, 170, 0.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.05);
    backdrop-filter: blur(16px) saturate(1.05);
    color: var(--pf-muted);
}

body .portal-footer__inner {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(320px, 1.5fr) auto;
    gap: 30px;
    align-items: start;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 22px 26px;
}

body .portal-footer__brand,
body .portal-footer__nav,
body .portal-footer__meta,
body .portal-footer__col {
    min-width: 0;
}

body .portal-footer__brand-text,
body .portal-footer__copy,
body .portal-footer__col a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body .portal-footer a {
    color: var(--pf-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

body .portal-footer a:hover {
    color: var(--pf-gold-2);
}

body .portal-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

body .portal-footer__mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 180, 106, 0.5);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 30%, rgba(216, 180, 106, 0.24), rgba(24, 15, 9, 0.72) 72%);
    color: var(--pf-gold-2);
    font-size: 22px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 230, 170, 0.1);
}

body .portal-footer__brand-text b {
    display: block;
    margin-bottom: 5px;
    color: var(--pf-ink);
    font-family: "Philosopher", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

body .portal-footer__brand-text p {
    max-width: 280px;
    margin: 0;
    color: var(--pf-muted);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.6;
}

body .portal-footer__nav {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: auto;
}

body .portal-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

body .portal-footer__col > span {
    margin-bottom: 3px;
    color: var(--pf-gold);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body .portal-footer__col a {
    position: relative;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

body .portal-footer__col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--pf-gold);
    transition: width 0.18s ease;
}

body .portal-footer__col a:hover::after {
    width: 100%;
}

body .portal-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    text-align: right;
}

body .portal-footer__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(216, 180, 106, 0.5);
    border-radius: 12px;
    background: rgba(216, 180, 106, 0.08);
    color: var(--pf-gold-2);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body .portal-footer__copy {
    color: var(--pf-muted);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.6;
}

body .portal-footer__copy a {
    color: var(--pf-gold);
}

body .portal-footer__note {
    padding: 4px 10px;
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    color: var(--pf-muted);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    body .portal-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 24px;
    }

    body .portal-footer__meta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 18px;
        border-top: 1px solid var(--pf-line);
        text-align: left;
    }
}

@media (max-width: 760px) {
    body .portal-footer__inner {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 24px 18px 22px;
    }

    body .portal-footer__brand-text p {
        max-width: none;
    }

    body .portal-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    body .portal-footer__meta {
        grid-column: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
        padding-top: 18px;
        border-top: 1px solid var(--pf-line);
        text-align: left;
    }
}

@media (max-width: 460px) {
    body .portal-footer__inner {
        padding: 22px 14px 20px;
    }

    body .portal-footer__nav {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body .portal-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    body .portal-footer__copy {
        font-size: 10px;
    }
}
