/* ============================================
   Stopka: dane firmy i kolumny linków (na telefonie akordeon), pasek copyright
   ============================================ */
.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.footer-main {
    display: flex;
    gap: 28px 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 1rem 28px;
}

.footer-company {
    flex: 1.3 1 0;
    min-width: 0;
}

.footer-col {
    flex: 1 1 0;
    min-width: 0;
}

.footer-logo {
    margin-bottom: 22px;
}

.footer-title {
    display: block;
    margin: 0 0 10px;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-condensed);
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.footer-list a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--color-primary-light);
}

.footer-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Strona jeszcze bez treści: tylko poza produkcją, bez linku */
.footer-list .is-placeholder {
    opacity: 0.35;
}

/* Kolumna linków: na komputerze nagłówek bez działania (footer.js), na telefonie przycisk akordeonu */
.footer-acc > summary {
    list-style: none;
    cursor: default;
}

.footer-acc > summary::-webkit-details-marker {
    display: none;
}

.footer-acc-chevron {
    display: none;
}

.footer-bottom {
    background-color: var(--color-secondary-dark);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 1rem;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1023px) {
    .footer-main {
        flex-wrap: wrap;
    }

    .footer-company,
    .footer-col {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Telefon: kolumny jedna pod drugą, kraje i grupy przed informacjami */
@media (max-width: 767px) {
    .footer-main {
        flex-direction: column;
        gap: 0;
        padding: 28px 1rem 8px;
    }

    .footer-company,
    .footer-col {
        flex: none;
    }

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

    /* Linie nad pierwszą kolumną i pod każdą; kolejność w kodzie strony jak na komputerze */
    .footer-company:not(:last-child),
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-col-countries { order: 1; }
    .footer-col-groups    { order: 2; }
    .footer-col-info      { order: 3; }

    .footer-acc > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        cursor: pointer;
    }

    .footer-acc > summary .footer-title {
        margin: 0;
    }

    .footer-acc-chevron {
        display: block;
        width: 16px;
        height: 16px;
        color: rgba(255, 255, 255, 0.7);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .footer-acc > summary:hover .footer-acc-chevron {
        color: var(--color-primary-light);
    }

    .footer-acc[open] .footer-acc-chevron {
        transform: rotate(180deg);
    }

    .footer-acc .footer-list {
        padding-bottom: 14px;
    }

    .footer-container {
        text-align: left;
    }
}