.footer {
    margin: -40px auto 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #176ea8 0%, #378dcd 100%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -7px 22px rgba(11, 83, 128, .14);
}

.footerd1,
.footerd1 * {
    box-sizing: border-box;
}

.footerd1 {
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.4fr) minmax(260px, 1fr);
    gap: 28px;
    max-width: 1180px;
    padding: 24px 22px 20px;
    align-items: start;
}

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

.site-footer__brand-link,
.site-footer__brand-link:visited {
    display: inline-block;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .02em;
}

.site-footer__brand-link:hover,
.site-footer__brand-link:focus {
    color: #dff5ff;
}

.site-footer__tagline {
    display: block;
    max-width: 240px;
    margin-top: 7px;
    color: #d9f1ff;
    font-size: 13px;
    line-height: 1.45;
}

.footerd2 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.65;
}

.footerd2 a,
.footerd2 a:visited {
    color: #fff !important;
    font-weight: 700;
}

.footerd2 a:hover,
.footerd2 a:focus {
    color: #dff5ff !important;
}

.footerd2 img {
    width: 20px;
    max-height: 20px;
    vertical-align: middle;
}

.site-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin: 0;
}

.site-footer__links a,
.site-footer__links a:visited {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: #dff5ff;
    text-decoration: underline;
}

.site-footer__legal {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    padding-top: 14px;
    color: #ccecff;
    border-top: 1px solid rgba(255, 255, 255, .24);
    font-size: 12px;
}

.site-footer__legacy-counters {
    display: none;
}

@media (max-width: 820px) {
    .footerd1 {
        grid-template-columns: 1fr 1.4fr;
    }

    .site-footer__links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer {
        border-radius: 14px 14px 0 0;
    }

    .footerd1 {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px 18px;
    }

    .site-footer__links {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .site-footer__legal {
        grid-column: auto;
    }
}
