.footer__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.2rem;
    margin-bottom: 3.2rem;
}

.footer__nav > .footer__nav-group--link {
    margin-bottom: 1.6rem;
}

.footer__nav > .footer__nav-group--link:last-child {
    margin-bottom: 0;
}

.footer__details-group {
    min-width: 0;
}

.footer__details-group--address {
    font-style: normal;
}

.footer__details-group > p {
    margin-bottom: .8rem;
    color: #6e788a;
    font: 400 12px/16px "Nunito", sans-serif;
}

.footer__details-group a {
    transition: color .2s ease;
}

.footer__details-group a:hover,
.footer__details-group a:focus-visible {
    color: #052b8c;
}

.footer__details-title {
    margin-bottom: 1.2rem;
    letter-spacing: .02em;
    color: #12141b;
    font: 700 12px/16px "Nunito", sans-serif;
    text-transform: uppercase;
}

.footer__suggestion-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    margin-top: .4rem;
    padding: .8rem 1.2rem;
    border-radius: 4px;
    background-color: #052b8c;
    color: #fff;
    font: 700 12px/16px "Nunito", sans-serif;
}

.footer__suggestion-link:hover,
.footer__suggestion-link:focus-visible {
    background-color: #052b8c;
    color: #fff;
    opacity: .75;
    transform: scale(1.05);
}

.footer__details-group > .footer__suggestion-link {
    transition: opacity .25s ease, transform .25s ease;
}

.footer__details-group > .footer__suggestion-link:hover,
.footer__details-group > .footer__suggestion-link:focus-visible {
    background-color: #052b8c;
    color: #fff;
    opacity: .75;
    transform: scale(1.05);
}

.footer__social-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    list-style: none;
}

.footer__social-list > li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    padding: 1.2rem;
    border-radius: .4rem;
    background-color: #041638;
}

.footer__social-list > li > a,
.footer__social-list > li > a > img {
    display: block;
    width: 100%;
    height: 100%;
}

.footer__social-list > li > a > img {
    object-fit: contain;
}

@media (max-width: 1024px) {
    .footer__top {
        flex-direction: row;
        align-items: center;
        gap: 1.6rem;
    }

    .footer__top > .footer__social-list > li {
        flex-basis: 4rem;
        width: 4rem;
        height: 4rem;
        padding: 1.2rem;
    }

    .footer__top > div {
        min-width: 0;
    }

    .footer__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.4rem 1.6rem;
    }

    .footer__nav > .footer__nav-group--link {
        margin-bottom: 1.6rem;
    }

    .footer__nav > .footer__nav-group--link:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 520px) {
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__top > .footer__social-list > li {
        flex-basis: 3.2rem;
        width: 3.2rem;
        height: 3.2rem;
        padding: .8rem;
    }

    .footer__details {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

.footer__suggestion-email {
    display: block;
    margin-top: 1.2rem;
    padding: 0;
    color: #052b8c;
    font: 700 12px/16px "Nunito", sans-serif;
    text-decoration: underline;
}

.footer__suggestion-email:hover,
.footer__suggestion-email:focus-visible {
    color: #3a3fb8;
}

.footer-modal[hidden] {
    display: none;
}

.footer-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
    background-color: rgba(4, 22, 56, .62);
}

.footer-modal__dialog {
    position: relative;
    width: min(100%, 48rem);
    max-height: calc(100vh - 3.2rem);
    overflow-y: auto;
    padding: 3.2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2rem 5rem rgba(4, 22, 56, .28);
}

.footer-modal__dialog h2 {
    margin-bottom: .8rem;
    color: #12141b;
    font: 800 24px/29px "Nunito", sans-serif;
}

.footer-modal__dialog > p {
    margin-bottom: 2rem;
    color: #6e788a;
    font: 400 14px/20px "Nunito", sans-serif;
}

.footer-modal__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 3.2rem;
    height: 3.2rem;
    color: #6e788a;
    font: 400 28px/32px "Nunito", sans-serif;
}

.footer-modal__form {
    width: 100%;
}

.footer-modal__form .wpcf7-form {
    display: grid;
    gap: .8rem;
}

.footer-modal__form .wpcf7-form-control-wrap {
    display: block;
    margin-top: .4rem;
}

.footer-modal__form label {
    color: #12141b;
    font: 700 12px/16px "Nunito", sans-serif;
}

.footer-modal__form input,
.footer-modal__form textarea {
    width: 100%;
    min-height: 4.4rem;
    padding: 1rem 1.2rem;
    border: 1px solid #cfd5df;
    border-radius: 4px;
    color: #12141b;
    font: 400 14px/20px "Nunito", sans-serif;
}

.footer-modal__form textarea {
    height: 12rem;
    min-height: 12rem;
    resize: vertical;
}

.footer-modal__form input:focus,
.footer-modal__form textarea:focus,
.footer-modal__close:focus-visible,
.footer-modal__form button:focus-visible {
    outline: 2px solid #052b8c;
    outline-offset: 2px;
}

.footer-modal__form input[type="submit"] {
    min-height: 4.4rem;
    margin-top: .8rem;
    padding: 1rem 1.6rem;
    border: 0;
    border-radius: 4px;
    background-color: #052b8c;
    color: #fff;
    font: 700 12px/16px "Nunito", sans-serif;
    transition: opacity .25s ease, transform .25s ease;
}

.footer-modal__form input[type="submit"]:hover,
.footer-modal__form input[type="submit"]:focus-visible {
    opacity: .75;
    transform: scale(1.02);
}

@media (max-width: 520px) {
    .footer-modal__dialog {
        padding: 2.4rem 1.6rem;
    }
}
