.site-footer {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
}

.footer-container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
    padding: 65px 0 55px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-section h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    width: 200px;
    justify-self: end;
    margin-right: 70px;
}

.footer-contact {
    justify-self: center;
}

.footer-map {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    justify-self: start;
    margin-left: 70px;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 10px;
}

.footer-map .map-link {
    margin-top: 4px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-bottom {
    width: min(90%, var(--max-width));
    margin: 0 auto;
    padding: 20px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
}

@media screen and (max-width: 1200px) {
    .footer-container {
        gap: 45px;
    }

    .footer-links {
        width: auto;
    }

    .footer-map {
        max-width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .footer-container {
        width: 88%;
        grid-template-columns: repeat(2, 1fr);
        gap: 45px;
    }

    .footer-links {
        width: auto;
        justify-self: start;
    }

    .footer-contact {
        justify-self: start;
    }

    .footer-map {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .footer-map iframe {
        height: 220px;
    }
}

@media screen and (max-width: 600px) {
    .footer-container {
        width: 88%;
        grid-template-columns: 1fr;
        padding: 50px 0 40px;
        gap: 40px;
    }

    .footer-links,
    .footer-contact,
    .footer-map {
        width: 100%;
        grid-column: auto;
        justify-self: stretch;
        align-items: center;
        text-align: center;
    }

    .footer-map {
        max-width: 100%;
    }

    .footer-map iframe {
        height: 220px;
    }

    .footer-map .map-link {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        width: 88%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

@media screen and (max-width: 1250px) {
    .footer-map {
        width: 280px;
        max-width: 100%;
        margin-left: 0;
    }

    .footer-map iframe {
        width: 100%;
        height: 150px;
    }

    .footer-links {
        margin-right: 0;
    }
}