/* Klin nad stopką (shape-2 z Figmy) — trójkąt wznoszący się w prawo.
   Wysokość trzyma proporcję z projektu (72/1440 = 19.5/390 = 5%), więc nachylenie
   jest identyczne na każdej szerokości. Sam element jest przezroczysty — kolor
   ma tylko trójkąt w ::before, więc nad skosem prześwituje sekcja powyżej. */
.site-footer-wedge {
    position: relative;
    height: 5vw;
    pointer-events: none;
}

.site-footer-wedge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    overflow: hidden;
    isolation: isolate;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-48);
    padding-block: var(--space-32);
}

/* Pięciokąt dekoracyjny — ten sam kształt co w hero, obrócony, 40% krycia. */
.site-footer__shape {
    position: absolute;
    top: var(--space-48);
    left: 58%;
    width: 634px;
    height: 658px;
    background: var(--footer-border);
    opacity: 0.4;
    transform: rotate(-88.22deg);
    clip-path: polygon(50% 0, 0 38.21%, 19.1% 100%, 80.93% 100%, 100% 38.41%);
    pointer-events: none;
    z-index: -1;
}

/* ---------- Logo + menu ---------- */

.site-footer__masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-32);
    min-height: 74px;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-white);
}

.site-footer__logo a,
.site-footer__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.site-footer__logo svg {
    display: block;
    width: 124px;
    height: 40px;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 40px;
}

.site-footer__nav {
    display: flex;
    justify-content: flex-end;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2xl);
}

.site-footer__menu .menu-item {
    margin: 0;
}

.site-footer__menu a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    position: relative;
    font-family: var(--font-button-secondary);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.06;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--footer-link);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out);
}

.site-footer__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--duration-base) var(--ease-out);
}

.site-footer__menu a:hover::after,
.site-footer__menu .current-menu-item>a::after {
    width: 100%;
}

/* ---------- Dane firmy: 3 kolumny ---------- */

.site-footer__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-32) var(--space-24);
    padding-bottom: var(--space-32);
}

.site-footer__col {
    min-width: 0;
    margin: 0;
    color: var(--footer-text);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 300;
}

/* Treść z edytora (WYSIWYG) — akapity bez własnych marginesów, odstęp między nimi. */
.site-footer__col>* {
    margin: 0;
}

.site-footer__col>*+* {
    margin-top: var(--space-16);
}

/* Telefony i e-maile (linkowane automatycznie) — podkreślenie na hover. */
.site-footer__col a {
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 0 transparent;
    transition: color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
}

.site-footer__col a:hover {
    color: var(--footer-link);
    box-shadow: inset 0 -1px 0 0 currentColor;
}

/* ---------- Dolny pasek ---------- */

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 300;
}

.site-footer__copyright {
    margin: 0;
    color: var(--footer-text);
}

.site-footer__privacy {
    margin: 0;
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out);
}

.site-footer__privacy:hover {
    color: var(--footer-link);
}

/* ---------- Mobile (Figma 3596:6960) ---------- */

@media (max-width: 991px) {
    .site-footer__masthead {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-32);
    }

    .site-footer__logo {
        justify-content: center;
    }

    .site-footer__nav {
        justify-content: flex-start;
    }

    .site-footer__menu {
        gap: var(--space-32);
    }

    .site-footer__info {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .site-footer__col {
        font-size: 15px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .site-footer__shape {
        left: auto;
        right: -40%;
        width: 420px;
        height: 436px;
    }
}