.footer {
    background-color: var(--black);
    color: #fff;
}

.footer__grid {
    padding: 50px 0 20px;
    display: grid;
    grid-template-columns: 330px 530px 330px;
    column-gap: 50px;
    row-gap: 20px;
    justify-content: space-between;
    align-items: start;
}

.footer__mobile {
    display: none;
}

@media screen and (max-width: 1700px) {
    .footer__grid {
        grid-template-columns: 330px 455px 330px;
    }
}

@media screen and (max-width: 1400px) {
    .footer__grid {
        grid-template-columns: 330px 1fr 330px;
    }
}

@media screen and (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 300px 1fr 300px;
        column-gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 50px;
        row-gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 100%;
        gap: 30px;
    }
}

@media screen and (max-width: 576px) {
    .footer__grid {
        display: none;
    }

    .footer__mobile {
        display: flex;
        flex-direction: column;
        padding: 40px 25px 20px;
    }
}

.footer__column {
    min-width: 0;
}

.footer__column_left {
    grid-column: 1;
}

.footer__column_center {
    grid-column: 2;
    padding: 82px 8% 0;
}

.footer__column_right {
    grid-column: 3;
    padding-top: 82px;
}

@media screen and (max-width: 992px) {
    .footer__column_left {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .footer__column_center {
        grid-column: 2;
        grid-row: 1;
        padding-top: 82px;
    }

    .footer__column_right {
        grid-column: 2;
        grid-row: 2;
        padding-top: 0;
    }
}

@media screen and (max-width: 768px) {
    .footer__column_left,
    .footer__column_center,
    .footer__column_right {
        grid-column: 1;
        grid-row: auto;
        padding: 0;
    }
}

.footer__logo {
    display: block;
    width: 100%;
}

.footer__logo img {
    width: 100%;
    object-fit: contain;
}

.footer__btns {
    margin-top: 45px;
}

.footer__btn {
    margin-bottom: 10px;
}

.footer__btn:last-child {
    margin-bottom: 0;
}

.footer__btn.shadow-btn {
    max-width: 370px;
    width: 100%;
    box-shadow: none;
    border: none;
    animation: none;
}

.footer__btn_gray.shadow-btn {
    background-color: var(--dark-blue);
}

.footer__btn_gray.shadow-btn::after {
    background-color: var(--blue);
}

.footer__gray-text {
    color: var(--white-30);
}

.footer__gray-text_requisites {
    margin-top: 30px;
}

.footer__gray-text_not-public-offer {
    margin-top: 30px;
}

.footer__grid .footer-menu {
    width: 100%;
}

.footer__licenses.onest-16 {
    width: 100%;
    margin: 74px 0 0;
    color: var(--light-blue);
    font-weight: 700;
    text-transform: uppercase;
}

.footer__disclaimer {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--onest), sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 4.2px;
    text-transform: uppercase;
}

@media screen and (max-width: 1700px) {
    .footer__disclaimer {
        font-size: 26px;
    }
}

@media screen and (max-width: 1400px) {
    .footer__disclaimer {
        font-size: 21px;
    }
}

@media screen and (max-width: 1200px) {
    .footer__disclaimer {
        font-size: 16px;
    }
}

@media screen and (max-width: 992px) {
    .footer__disclaimer {
        letter-spacing: 2.4px;
    }
}

.footer-phones-block {
    grid-area: contacts;
    width: 100%;
    padding: 25px;
    border-radius: 30px;
    background-color: var(--dark-blue);
    display: flex;
    flex-direction: column;
}

.footer-phones-block__item {
    margin-bottom: 0;
}

.footer-phones-block__link {
    color: #fff;
    text-decoration: none;
    font-family: var(--onest), sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 130%;
}

@media screen and (hover: hover) {
    .footer-phones-block__link:hover,
    .footer-phones-block__link:focus-visible,
    .footer-phones-block__contact:hover,
    .footer-phones-block__contact:focus-visible {
        color: var(--red);
    }
}

.footer-phones-block__name {
    margin: 10px 0 0;
    font-family: var(--onest), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}

.footer-phones-block__contacts {
    margin-top: 24px;
    display: grid;
    gap: 15px;
}

.footer-phones-block__contact {
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--onest), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-phones-block__contact-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-phones-block .socials {
    margin-top: auto;
    padding-top: 35px;
}

.footer-phones-block .social {
    margin-right: 12px;
}

.footer-phones-block .social__link {
    width: 50px;
    height: 50px;
}

.footer-phones-block .social__icon {
    width: 27px;
    max-height: 27px;
}

@media screen and (max-width: 1200px) {
    .footer-phones-block {
        padding: 22px;
    }

    .footer-phones-block__link {
        font-size: 23px;
    }
}

@media screen and (max-width: 768px) {
    .footer-phones-block {
        width: 100%;
    }
}

.footer__cities {
    padding: 13px 0;
    background-color: var(--dark-blue);
}

.footer__bottom {
    padding: 10px 0;
}

@media screen and (max-width: 992px) {
    .footer__bottom {
        padding: 15px 0;
    }
}

.footer__bottom-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 576px) {
    .footer__grid > .footer__column_left,
    .footer__grid > .footer__column_center,
    .footer__grid > .footer__column_right {
        display: contents !important;
    }

    .footer__logo {
        order: 0 !important;
        display: block;
    }

    .footer__mobile .footer__logo {
        width: 100%;
        max-width: 340px;
        margin-right: auto;
        margin-left: auto;
    }

    .footer__mobile .footer__logo img {
        display: block;
        margin: 0 auto;
    }

    .footer__btns {
        order: 1 !important;
        width: 100%;
        margin-top: 40px;
    }

    .footer__btn.shadow-btn {
        max-width: none;
    }

    .footer__grid .footer-menu,
    .footer__mobile .footer-menu {
        order: 2 !important;
        margin-top: 40px;
        padding: 0 20px;
    }

    .footer-phones-block {
        order: 3;
        margin-top: 28px;
        padding: 22px 20px;
        border-radius: 18px;
    }

    .footer-phones-block__link {
        font-size: 21px;
    }

    .footer-phones-block__name {
        margin-top: 6px;
        font-size: 14px;
    }

    .footer-phones-block__contacts {
        margin-top: 18px;
        gap: 14px;
    }

    .footer-phones-block__contact {
        gap: 8px;
        font-size: 12px;
    }

    .footer-phones-block__contact-icon {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .footer-phones-block .socials {
        padding-top: 28px;
    }

    .footer-phones-block .social__link {
        width: 40px;
        height: 40px;
    }

    .footer-phones-block .social__icon {
        width: 22px;
        max-height: 22px;
    }

    .footer__gray-text_requisites {
        order: 4;
        margin-top: 34px;
    }

    .footer__gray-text_not-public-offer {
        order: 5;
        margin-top: 30px;
    }

    .footer__licenses.onest-16 {
        order: 6;
        display: block;
        margin: 36px 0 0;
    }

    .footer__disclaimer {
        order: 7;
        display: block;
        margin-top: 30px;
        font-size: 16px;
        line-height: 2;
        letter-spacing: 3px;
    }

    .footer__bottom-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer__bottom-flex p,
.footer__bottom-flex a {
    margin: 0 30px 10px 0;
    font-family: var(--onest), sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: var(--white-30);
    display: block;
}

.footer__bottom-flex a {
    text-decoration: underline;
}

.footer__bottom-flex a:last-child {
    color: var(--red);
    display: inline;
}
.footer__bottom-flex span {
    margin: 0 0 0 auto;
    color: var(--red);
    font-size: 12px;
}
@media screen and (max-width: 1200px) {
    .footer__bottom-flex a:last-child {
        margin: 0;
        margin-bottom: 10px;
    }
    .footer__bottom-flex span{
        margin: 0;
    }
}

@media screen and (max-width: 576px) {
    .footer__bottom-flex p,
    .footer__bottom-flex a {
        margin-right: 0;
    }
}
