.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #dce7eb;
    background: #fff;
    color: #164361;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: min(19rem, 22vw);
    height: 2px;
    background: #93bebb;
}

.site-footer__inner {
    width: min(100%, 160rem);
    margin: 0 auto;
    padding: clamp(6.4rem, 6vw, 9.6rem) clamp(3.2rem, 5vw, 8rem) 0;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(29rem, 1.15fr) minmax(52rem, 1.75fr) minmax(27rem, 1fr);
    gap: clamp(4.2rem, 4vw, 7.2rem);
    align-items: start;
}

.site-footer h2 {
    margin: 0 0 2.2rem;
    color: #164361;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer__logo {
    display: flex;
    width: min(100%, 36rem);
    align-items: center;
    gap: 1.6rem;
    border-radius: .4rem;
}

.site-footer__logo-symbol {
    display: block;
    width: 6.6rem;
    height: auto;
    flex: 0 0 6.6rem;
}

.site-footer__logo-wordmark {
    display: block;
    width: min(27.8rem, calc(100% - 8.2rem));
    height: auto;
}

.site-footer__description {
    max-width: 34rem;
    margin: 2.8rem 0 2rem;
    color: #385d72;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
}

.site-footer__description-mobile {
    display: none;
}

.site-footer__certification {
    display: inline-flex;
    max-width: 100%;
    min-height: 3.6rem;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1.3rem;
    border: 1px solid #ccdde3;
    border-radius: 999px;
    color: #164361;
    background: #f8fbfc;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
}

.site-footer__certification svg {
    flex: 0 0 auto;
    color: #51882e;
}

.site-footer__certification:hover {
    border-color: #93bebb;
    background: #f1f7f8;
    color: #164361;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.4rem;
}

.site-footer__socials a {
    display: inline-flex;
    width: 4.2rem;
    height: 4.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccdde3;
    border-radius: 50%;
    color: #164361;
    background: #fff;
}

.site-footer__socials a:hover {
    border-color: #164361;
    color: #fff;
    background: #164361;
    transform: translateY(-2px);
}

.site-footer__navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2.8rem, 3vw, 5rem);
}

.site-footer__nav-group ul {
    display: grid;
    gap: 1.25rem;
    list-style: none;
}

.site-footer__nav-group li {
    min-width: 0;
}

.site-footer__nav-link,
.site-footer__contact a,
.site-footer__legal a {
    color: #385d72;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.45;
}

.site-footer__nav-link {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    padding: .2rem 0;
}

.site-footer__nav-link::after,
.site-footer__legal a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -.2rem;
    left: 0;
    height: 1px;
    background: #93bebb;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-footer__nav-link:hover,
.site-footer__contact a:hover,
.site-footer__legal a:hover {
    color: #164361;
}

.site-footer__nav-link:hover::after,
.site-footer__legal a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-footer__cta {
    display: inline-flex;
    min-height: 4rem;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin-top: .4rem;
    padding: .9rem 1.6rem;
    border: 1px solid #164361;
    border-radius: 999px;
    color: #fff;
    background: #164361;
    box-shadow: 0 .8rem 2rem rgba(22, 67, 97, .13);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.site-footer__cta:hover {
    border-color: #315f75;
    background: #315f75;
    color: #fff;
    transform: translateY(-1px);
}

.site-footer__contact {
    min-width: 0;
}

.site-footer__company-name {
    margin: 0 0 1.4rem;
    color: #164361;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.45;
}

.site-footer__contact address {
    display: grid;
    gap: .8rem;
    margin: 0 0 2rem;
    font-style: normal;
}

.site-footer__address {
    display: block;
    max-width: 31rem;
    overflow-wrap: anywhere;
}

.site-footer__map-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .4rem;
    color: #164361 !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
}

.site-footer__contact-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

.site-footer__contact-note {
    white-space: nowrap;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    margin-top: clamp(5.6rem, 5vw, 8rem);
    padding: 2.5rem 0 3.2rem;
    border-top: 1px solid #dce7eb;
    color: #5b7685;
    font-size: 1.35rem;
    line-height: 1.5;
}

.site-footer__legal nav {
    display: flex;
    align-items: center;
    gap: 2.8rem;
}

.site-footer__legal a {
    position: relative;
    display: inline-flex;
    color: #5b7685;
    font-size: 1.35rem;
}

.site-footer a:focus-visible {
    outline: 3px solid #8fb6d4;
    outline-offset: 4px;
    border-radius: .4rem;
}

@media (max-width: 1199px) {
    .site-footer__top {
        grid-template-areas:
            "brand contact"
            "navigation navigation";
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        gap: 5.6rem 7rem;
    }

    .site-footer__brand {
        grid-area: brand;
    }

    .site-footer__navigation {
        grid-area: navigation;
        padding-top: 4.8rem;
        border-top: 1px solid #dce7eb;
    }

    .site-footer__contact {
        grid-area: contact;
        padding-left: 4.8rem;
        border-left: 1px solid #dce7eb;
    }
}

@media (max-width: 899px) {
    .site-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4.8rem 2.8rem;
    }
}

@media (max-width: 767px) {
    .site-footer__inner {
        padding-right: 2.4rem;
        padding-left: 2.4rem;
    }

    .site-footer__top {
        grid-template-areas:
            "brand"
            "navigation"
            "contact";
        grid-template-columns: minmax(0, 1fr);
        gap: 4.8rem;
    }

    .site-footer__brand {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .site-footer__logo {
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer__description {
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .site-footer__description-desktop {
        display: none;
    }

    .site-footer__description-mobile {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .site-footer__certification {
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }

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

    .site-footer__navigation,
    .site-footer__contact {
        padding-top: 4.8rem;
        border-top: 1px solid #dce7eb;
    }

    .site-footer__contact {
        padding-left: 0;
        border-left: 0;
        text-align: center;
    }

    .site-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4.8rem 2.4rem;
        text-align: center;
    }

    .site-footer__nav-group {
        display: flex;
        min-width: 0;
        align-items: center;
        flex-direction: column;
    }

    .site-footer__nav-group ul {
        justify-items: center;
    }

    .site-footer__contact address {
        justify-items: center;
    }

    .site-footer__address {
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer__map-link,
    .site-footer__contact-link {
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer__legal {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .site-footer__legal nav {
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .site-footer__inner {
        padding-right: 1.8rem;
        padding-left: 1.8rem;
    }

    .site-footer__logo {
        gap: 1.2rem;
    }

    .site-footer__logo-symbol {
        width: 5.8rem;
        flex-basis: 5.8rem;
    }

    .site-footer__logo-wordmark {
        width: min(25rem, calc(100% - 7rem));
    }

    .site-footer__certification {
        width: fit-content;
        border-radius: 1.2rem;
    }

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

    .site-footer__legal nav {
        align-items: center;
        flex-direction: column;
        gap: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .site-footer__nav-link::after,
    .site-footer__legal a::after {
        transition: none;
    }
}
