/* Isolated responsive footer. Existing page and service-block styles are untouched. */
#main-footer.top-footer,
#main-footer.top-footer * {
    box-sizing: border-box;
}

#main-footer.top-footer {
    position: relative;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 7px solid #006a9e;
    background: linear-gradient(180deg, #eaf7fc 0%, #b7dfed 38%, #80bdd7 68%, #3595bf 100%);
    color: #12344b;
    font: 13px/1.5 Verdana, Arial, sans-serif;
    text-align: left;
}

#main-footer.top-footer .top-footer__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px 16px;
}

#main-footer.top-footer .top-footer__grid {
    display: grid;
    grid-template-columns: 1.65fr 1.05fr 1fr 1fr;
    align-items: start;
    gap: 28px;
}

#main-footer.top-footer .top-footer__section {
    min-width: 0;
    margin: 0;
    padding: 0;
    font-style: normal;
    overflow-wrap: anywhere;
}

#main-footer.top-footer p {
    margin: 0;
    padding: 0;
}

#main-footer.top-footer a {
    color: inherit;
    text-decoration: none;
    text-shadow: none;
}

#main-footer.top-footer a:hover {
    text-decoration: underline;
}

#main-footer.top-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

#main-footer.top-footer .top-footer__copyright {
    margin-bottom: 3px;
    font-size: 11px;
}

#main-footer.top-footer .top-footer__legal {
    line-height: 1.5;
}

#main-footer.top-footer .top-footer__legal strong {
    font-size: 15px;
}

#main-footer.top-footer .top-footer__tagline {
    margin-top: 6px;
    font-size: 12px;
}

#main-footer.top-footer .top-footer__contact + .top-footer__contact {
    margin-top: 7px;
}

#main-footer.top-footer .top-footer__contact-label,
#main-footer.top-footer .top-footer__contact-link {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

#main-footer.top-footer .top-footer__contact-link {
    white-space: nowrap;
}

#main-footer.top-footer .top-footer__address {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .45);
}

#main-footer.top-footer .top-footer__studio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

#main-footer.top-footer .top-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 190px;
}

#main-footer.top-footer .top-footer__brand-label {
    font-size: 10px;
    line-height: 1.25;
}

#main-footer.top-footer .top-footer__brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 230px;
}

#main-footer.top-footer .top-footer__credits {
    color: #12344b;
    font-size: 11px;
    line-height: 1.5;
}

#main-footer.top-footer .top-footer__credits a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#main-footer.top-footer #footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 0 0 24px;
}

#main-footer.top-footer #footer-widgets .footer-widget {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

@media only screen and (max-width: 1099px) {
    #main-footer.top-footer .top-footer__grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 28px 32px;
    }

    #main-footer.top-footer .top-footer__inner {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    #main-footer.top-footer .top-footer__address {
        padding-left: 0;
        border-left: 0;
    }

    #main-footer.top-footer #footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    #main-footer.top-footer {
        background: linear-gradient(180deg, #eaf7fc 0%, #b4deed 30%, #69b4d3 62%, #00679f 100%);
        text-align: center;
    }

    #main-footer.top-footer .top-footer__inner {
        width: 100%;
        max-width: 500px;
        padding: 30px 24px 38px;
    }

    #main-footer.top-footer .top-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #main-footer.top-footer .top-footer__section + .top-footer__section {
        position: relative;
        margin-top: 24px;
        padding-top: 24px;
    }

    #main-footer.top-footer .top-footer__section + .top-footer__section::before {
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: rgba(0, 106, 158, .32);
        content: '';
    }

    #main-footer.top-footer .top-footer__copyright {
        margin-bottom: 4px;
        font-size: 11px;
    }

    #main-footer.top-footer .top-footer__legal {
        font-size: 12px;
    }

    #main-footer.top-footer .top-footer__legal strong {
        font-size: 14px;
    }

    #main-footer.top-footer .top-footer__tagline {
        margin-top: 7px;
        font-size: 11px;
    }

    #main-footer.top-footer .top-footer__contact + .top-footer__contact {
        margin-top: 12px;
    }

    #main-footer.top-footer .top-footer__contacts {
        display: grid;
        justify-content: center;
        text-align: left;
    }

    #main-footer.top-footer .top-footer__contact-label,
    #main-footer.top-footer .top-footer__contact-link {
        font-size: 20px;
        line-height: 1.3;
    }

    #main-footer.top-footer .top-footer__address {
        align-items: center;
        font-size: 13px;
    }

    #main-footer.top-footer .top-footer__studio {
        align-items: center;
        gap: 20px;
        color: #fff;
    }

    #main-footer.top-footer .top-footer__brand-label {
        font-size: 12px;
    }

    #main-footer.top-footer .top-footer__brand {
        max-width: 230px;
    }

    #main-footer.top-footer .top-footer__brand-logo {
        filter: brightness(0) invert(1);
    }

    #main-footer.top-footer .top-footer__credits {
        color: #fff;
        font-size: 12px;
        line-height: 1.65;
    }

    #main-footer.top-footer #footer-widgets {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Show the logo caption on mobile only. */
@media only screen and (min-width: 768px) {
    #main-footer.top-footer .top-footer__brand-label { display: none; }
}
