.footer {
    padding: 2rem 0 1rem;
    background-color: #4a6671;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-right: -15px;
    margin-left: -15px;
}

.footer__buttons {
    padding-right: 15px;
    padding-left: 15px;
}

.footer__logo,
.footer-menu {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.footer__logo img {
    width: 72px;
    height: 72px;
}

.footer__menu,
.footer__contacts {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.footer__socials {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.footer__socials-wrapper {
    display: flex;
    gap: 0.5rem;
}

.footer-menu .footer__socials-wrapper a {
    margin-top: 0;
}

.footer__buttons {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.footer__menu-heading {
    margin-bottom: 1rem;
    color: #cdcdcd;
}


.footer-menu ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-menu a {
    color: #dff8eb!important;
    text-decoration: none!important;
    font-size: .9rem;
    transition: all 0.3s ease;
}

footer .menu-item a {
    width: fit-content;
}

.footer-menu a,
.footer-menu li{
    display: block;
}

.footer-menu a,
.footer-menu li:not(:first-child){
    margin-top: .6rem;
}


.footer-menu li a {
    margin-top: 0;
}

.footer-menu a:hover {
    color: red!important;
}



.footer__contacts a{
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.footer__contacts a:first-of-type {
    margin-top: 0;
}

.footer__contacts a:not(:first-of-type) {
    margin-top: 0.8rem;
}

.footer__contacts svg {
    width: 22.5px;
    height: 22.5px;
    flex-shrink: 0;
}

.footer__bottom p {
    margin-bottom: 0;
    text-align: center;
    color: #cdcdcd;
    font-size: .9rem;
}

@media screen and (max-width: 1199.98px) {
    .footer__logo img {
        width: 68px;
        height: 68px;
    }

    .footer {
        padding: 1rem 0;
    }

    .footer__contacts svg {
        width: 21.25px;
        height: 21.25px;
    }

    .footer__top {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 30px;
    }

    .footer__top .footer__logo,
    .footer__top .footer-menu,
    .footer__logo .footer__buttons{
         flex-basis: calc((100% - 30px) / 2) !important;
        max-width: 100% !important;
    }

    .footer__logo {
        order: 1;
    }

    .footer__buttons {
        order: 2;
    }

    .footer__contacts {
        order: 3;
    }

    .footer__socials{
        order: 4;
    }

    .footer__menu.footer-menu {
        order: 5;
    }

    .footer__buttons {
        justify-content: flex-start;
        gap: .25rem;
    }
}

@media screen and (max-width: 991.98px) {
    .footer__top {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 767.98px) {
    .footer__logo img {
        width: 64px;
        height: 64px;
    }

    .footer__menu-heading {
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 599.98px) {
    .footer__top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer__top .footer__logo,
    .footer__top .footer-menu,
    .footer__logo .footer__buttons{
        flex-basis: 100% !important;
        gap: 1.5rem;
    }

    .footer__logo {
        order: 5;
       text-align: center;
    }

    .footer__buttons {
        order: 1;
    }

    .footer__contacts {
        order: 2;
    }

    .footer__socials{
        order: 3;
    }

    .footer__menu.footer-menu {
        order: 4;
    }
}