/* Zachowujemy istniejące style dla galerii */
.footer-gallery {
    width: 100%;
}

.footer-gallery__container {
    max-width: 1160px;
    margin: 0 auto;
}

.footer-gallery__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.footer-gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nowe style dla footera */
.site-footer {
    width: 100%;
    padding: 40px 0;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.footer-bottom__container {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom__copy {
    color: #121563;
    font-family: Nunito;
    font-size: 0.875rem; /* 14px */
    font-style: normal;
    font-weight: 700;
    line-height: 1.125rem; /* 18px */
}

.footer-menu-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    list-style-type: none;
    padding: 0;
}

.footer-menu-list li a {
    color: #35387F;
    font-family: Nunito;
    font-size: 1rem; /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem; /* 20px */
    text-decoration: none;
}

/* Możemy usunąć hover state albo dostosować kolor */
.footer-menu-list li a:hover {
    color: #121563;
}

/* Responsywność */
@media (max-width: 992px) {
    .footer-gallery__grid {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 16px;
        justify-content: center;
    }
    
    .footer-bottom__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-top: 12px;
    }
    
    .footer-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
} 

/* Dodaj na końcu pliku */
.footer-gallery__text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Style dla środkowej sekcji */
.footer-middle {
    padding: 24px 0;
    margin-top: 0;
    border-top: 1px solid #F5F5FB;
    border-bottom: 1px solid #F5F5FB;
}

.footer-middle__container {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-middle__left {
    flex: 0 0 auto;
    max-width: 450px;
}

.footer-middle__title {
    color: #121563;
    font-family: Nunito;
    font-size: 1.5rem; /* 24px */
    font-style: normal;
    font-weight: 700;
    line-height: 1.75rem; /* 28px */
    margin: 0 0 20px;
    text-wrap: balance;
}

.footer-middle__content {
    display: grid;
    grid-template-areas:
        "title title title"
        "logo contact contact";
    gap: 20px;
    grid-template-columns: auto 1fr 1fr;
}

.footer-middle__logo {
    grid-area: logo;
}

.footer-middle__title {
    grid-area: title;
    margin: 0;
}

.footer-middle__contact {
    grid-area: contact;
}

.footer-middle__logo img {
    max-width: 141px;
    max-height: 66.9px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-middle__contact a {
    color: #EB660A;
    text-decoration: none;
}

.footer-middle__contact a:hover {
    text-decoration: underline;
}

.footer-middle__menu {
    flex: 0 0 auto;
    max-width: 450px;
    margin-left: auto;
}

.footer-middle__menu-columns {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
}

.footer-middle__menu-column {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 160px;
}

.footer-middle__menu-column li {
    list-style-type: none;
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.footer-middle__menu-column li::before {
    content: "•";
    color: #EB660A;
    position: absolute;
    left: 0;
    top: 0;
}

.footer-middle__menu-column a {
    color: #121563;
    font-family: Nunito;
    font-size: 0.875rem; /* 14px */
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem; /* 20px */
    text-decoration: none;
}

.footer-middle__menu-column a:hover {
    text-decoration: underline;
}

/* Responsywność dla środkowej sekcji */
@media (max-width: 980px) {
    .footer-middle__container {
        flex-direction: column;
    }

    .footer-middle__left {
        max-width: none;
        text-align: center;
        display: grid;
        grid-template-areas:
            "logo"
            "title"
            "contact";
        gap: 0;
    }

    .footer-middle__logo {
        grid-area: logo;
    }

    .footer-middle__title {
        grid-area: title;
        text-align: start;
        margin: 0;
        padding: 0;
        font-size: 1.125rem; /* 18px */
        line-height: 1.625rem; /* 26px */
    }

    .footer-middle__contact {
        grid-area: contact;
        text-align: start;
    }

    .footer-middle__menu {
        display: none;
    }

    .footer-menu-list {
        gap: 12px;
    }

    .footer-middle {
        background-color: #F8FAFB;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .footer-middle__content {
        grid-template-areas:
            "logo"
            "title"
            "contact";
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .footer-middle__menu-columns {
        gap: 20px;
    }

    .footer-middle__menu-column {
        min-width: 140px;
    }
    
    .footer-middle__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
}

/* Style dla social media */
.footer-bottom__socials {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin-top: 0;
    margin-left: auto;
    align-items: center;
}

.footer-bottom__social-link {
    visibility: visible;
    font-family: Nucleo;
    font-size: 18px;
    display: inline-block;
    color: #121563;
    text-decoration: none;
}

.footer-bottom__social-link::before {
    content: attr(data-icon);
    visibility: visible;
    font-family: Nucleo;
    font-size: 18px;
    display: inline-block;
    color: #121563;
}

@media (max-width: 992px) {
    .footer-bottom__socials {
        justify-content: center;
        margin-left: 0;
    }
}

.footer-middle__menu-title {
    color: #121563;
    font-family: Nunito;
    font-size: 1rem; /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem; /* 20px */
    margin: 0 0 12px;
    text-align: left;
}

/* Style dla dolnej sekcji */
.footer-bottom {
    padding-top: 24px;
    border-top: none;
}

/* Górna sekcja z logami */
.footer-top {
    padding: 24px 0;
    border-top: 1px solid #F5F5FB;
    border-bottom: 1px solid #F5F5FB;
}

/* Nadpisanie stylów Divi dla menu copy */
.site-footer .footer-bottom__menu ul.footer-menu-list,
.site-footer .footer-bottom__menu .footer-menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: inherit;
}

.site-footer .footer-bottom__menu ul.footer-menu-list li,
.site-footer .footer-bottom__menu .footer-menu-list li {
    padding: 0;
    margin: 0;
}

/* Nadpisanie stylów Divi dla menu głównego */
.site-footer .footer-middle__menu ul.footer-middle__menu-column,
.site-footer .footer-middle__menu .footer-middle__menu-column {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: inherit;
}

.site-footer .footer-middle__menu ul.footer-middle__menu-column li,
.site-footer .footer-middle__menu .footer-middle__menu-column li {
    padding-left: 16px;
    margin: 0 0 12px 0;
}

/* Nadpisanie stylów Divi dla tytułu menu */
.site-footer .footer-middle__menu h3.footer-middle__menu-title,
.site-footer .footer-middle__menu .footer-middle__menu-title {
    color: #121563;
    font-family: Nunito;
    font-size: 1rem; /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem; /* 20px */
    margin: 0 0 12px;
    padding: 0;
    text-align: left;
}

@media (max-width: 980px) {
    .site-footer .footer-bottom__menu .footer-menu-list {
        gap: 12px;
    }

    .footer-gallery__text {
        text-align: start;
    }

    .site-footer {
        padding: 0;
    }
}