@media (max-width: 1235px) {
    .header__contact {
        font-size: 10px;
        line-height: 12px;
    }
    .header__link {
        font-size: 16px;
        line-height: 19px;
    }

    .footer__social-link img {
        height: 40px;
    }
}

@media (max-width: 1110px) {
    .header__main-inner {
        height: 75px;
    }
    .logo__image {
        height: 75px !important;
    }
    .header__contact {
        font-size: 7px;
        line-height: 8px;
    }
    .header__link {
        font-size: 12px;
        line-height: 12px;
    }
    .header__inner::after {
        display: none;
    }

    .footer__inner {
        padding: 30px 45px 23px 45px;
    }
    .footer__menu-link {
        font-size: 10px;
        line-height: 11px;
    }
    .footer__social-links {
        bottom: 65px;
        left: 46px;
    }
    .footer__social-link img {
        height: 36px;
    }
}

@media (max-width: 866px) {
    .header__inner {
        height: 50px;
    }
    .header__main-inner {
        height: 60px;
        padding: 20px 0;
    }
    .logo__image {
        height: 60px !important;
    }
    .header__contact {
        font-size: 6px;
        line-height: 7px;
    }
    .header__link {
        font-size: 10px;
        line-height: 11px;
    }
    .header__item--after::after {
        height: 28px;
    }

    .footer__menu-title {
        font-size: 18px;
        line-height: 22px;
    }
    .footer__menu-link {
        font-size: 10px;
        line-height: 11px;
    }
    .footer__social-links {
        bottom: 23px;
        left: 46px;
    }
    .footer__social-link img {
        height: 36px;
    }
}

@media (max-width: 740px) {
    h1 {
        font-size: 48px;
        line-height: 55px;
    }
    .h3__contact{
        font-size: 20px !important;
    }
    h3 {
        font-size: 36px !important;
        line-height: 41px !important;
    }
    p {
        font-size: 15px !important;
        line-height: 24px !important;
    }
    .services__inner{
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
    }

    .services__box{
        aspect-ratio: 1/1;
    }
    .header__main-offer {
        height: 500px;
        background-attachment: inherit;
    }
    .offer__inner {
        height: 500px;
    }
    .offer__title-text {
        font-size: 48px;
        line-height: 55px;
        margin: 24px 0;
        margin-top: 110px;
    }
    .offer__subtitle-text {
        font-size: 24px;
        line-height: 26px;
        margin: 20px 0;
    }
    .offer__motto {
        bottom: 200px;
    }
    .offer__motto-text {
        font-size: 24px !important;
        line-height: 26px !important;
        margin: 20px 0;
    }
    .header__contact {
        font-size: 6px;
        line-height: 6px;
    }
    .header__link {
        font-size: 7px;
        line-height: 8px;
    }
    .header__item--after::after {
        height: 22px;
    }
    .header__contact--num {
        padding-right: 8px;
    }

    .footer__menu-title {
        font-size: 16px;
        line-height: 18px;
    }
    .footer__menu-link {
        font-size: 8px;
        line-height: 9px;
    }
    .footer__social-links {
        bottom: 23px;
        left: 46px;
    }
    .footer__social-link img {
        height: 32px;
    }
    .footer__menu-title:after {
        width: 75px;
    }
}

@media (max-width: 635px) {
    .header__inner {
        height: 12px;
    }
    .header__contact {
        font-size: 5px;
        line-height: 6px;
    }
    .header__link {
        font-size: 6px;
        line-height: 7px;
    }
    .header__item--after::after {
        height: 22px;
        top: 70%;
    }
    .header__contact--num {
        padding-right: 8px;
    }

    .footer__inner {
        display: flex;
        flex-wrap: wrap;
        height: 100%;
    }
    .footer__social {
        width: 100%;
    }
    .footer__social-links {
        position: inherit;
    }
    .footer__logo {
        display: block;
        width: 100%;
    }
    .footer__inner > * {
        margin-right: 5px;
        margin-bottom: 40px;
    }
    .h3__news{
        margin: 16px 0 0 0;
    }
}

@media (max-width: 570px) {
    .header__main-inner {
        height: 40px;
        padding: 10px 0;
    }
    .logo__image {
        height: 40px !important;
    }
    .header__contact {
        font-size: 4px;
        line-height: 5px;
    }
    .header__link {
        font-size: 5px;
        line-height: 6px;
    }
    .header__item--after::after {
        height: 18px;
    }
    .header__links {
        height: 120%;
    }
    .header__button-link {
        padding: 6px 6px;
        background: #1C3A77;
    }

    .footer__inner {
        flex-direction: column;
        padding: 30px 20px 23px 20px;
    }
    .footer__menu-title {
        font-size: 28px;
        line-height: 32px;
    }
    .footer__menu-link {
        font-size: 14px;
        line-height: 16px;
    }
    .footer__logo {
        margin-top: 25px;
    }
    .footer__logo img {
        height: 100% !important;
    }
    .footer__more-button {
        display: inline;
    }
    .footer__more-button img {
        width: 13px;
        height: 14px;
        padding: 7px 10px 4px 10px;
    }
    .footer__menu-links {
        display: none;
    }
    .footer__menu-contacts {
        display: block;
    }
}

@media (max-width: 471px) {
    .header__main-offer {
        height: 237px;
        background-attachment: inherit;
    }
    .offer__inner {
        height: 237px;
    }
    .header__main-inner {
        height: 33px;
        padding: 10px 0;
    }
    .header__item {
        margin-right: 0.5rem;
    }
    .logo__image {
        height: 33px !important;
    }
    .header__contact {
        font-size: 4px;
        line-height: 5px;
    }
    .header__link {
        font-size: 5px;
        line-height: 6px;
    }
    .header__item--after::after {
        height: 20px;
        top: 70%;
        right: -6px
    }
    .header__contact--num {
        padding-right: 8px;
    }
    .offer__title-text {
        font-size: 36px;
        line-height: 41px;
        margin: 12px 0;
        margin-top: 48px;
    }
    .offer__subtitle-text {
        margin: 8px 0;
        font-size: 10px;
        line-height: 11px;
    }
    .offer__motto {
        bottom: 100px;
    }
    .offer__motto-text {
        font-size: 10px !important;
        line-height: 11px !important;
    }
}