@media screen and (max-width: 1600px) {
    
}

@media screen and (max-width: 1200px) {
    h1 {
        font-size: 64px;
        line-height: 96px;
    }

    .wrapper {
        padding: 0 30px;
    }


    .about {
        padding: 144px 0 80px;
    }

    .about__text {
        margin-top: 32px;
    }

    .about-agreements {
        margin: 129px 0 0 auto;
    }


    .partners {
        padding: 80px 0 40px;
    }

    .partners__title {
        margin-bottom: 28px;
    }


    .agreement__inner {
        display: block;
    }

    .agreement__title {
        text-align: center;
    }

    .agreement__block {
        margin-top: 20px;
        justify-content: center;
    }

    .agreement__link {
        margin: 0;
    }

    .agreement__link_2 {
        margin: 0 16px;
    }


    .contact {
        padding: 80px 0 87px;
    }

    .contact__subtitle {
        margin: 25px 0;
    }
}

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

    .header-navigation__link {
        font-size: 13px;
        line-height: 19px;
    }


    .button_agreement {
        height: 28px;
        padding: 0 44px 0 16px;
        font-size: 13px;
        line-height: 20px;
    }

    .button_agreement::after {
        width: 20px;
        height: 20px;
        top: calc(50% - 10px);
        right: 16px;
    }


    .about__text {
        font-size: 16px;
        line-height: 24px;
    }


    .about-agreements__link_small,
    .contact__link_small  {
        width: 185px;
    }
    
    .about-agreements__link_large,
    .contact__link_large  {
        width: 274px;
    }


    .partners__inner {
        display: block;
    }

    .partners-card {
        width: 100%;
        margin-bottom: 28px;
    }

    .partners-card__image-bg {
        display: none;
    }

    .partners-card__image-bg_tablet {
        display: block;
    }
    

    .contact-form__button {
        margin: 25px auto 0;
    }
}
@media screen and (max-width: 800px) {
    .about-us{margin-bottom: 30px;}
    .about-us__content{
        flex-direction: column;
    }
    
    .about-us__photo-container{
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    .about-us__text-container{
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .header-navigate {
        display: block;
        width: 100%;
        max-width: 450px;
        height: 100%;
        position: fixed;
        top: 0;
        right: -100%;
        background: #F1F1F1;
        padding: 60px 28px;
        z-index: 1000;
        overflow-y: auto;
    }

    .header-burger {
        display: block;
    }

    .header-navigation {
        display: block;
    }

    .header-navigation__item {
        margin: 0 0 30px;
    }

    .header-navigation__close {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .header-navigation__close div:nth-child(1),
    .header-navigation__close div:nth-child(2) {
        content: '';
        position: absolute;
        top: 50%;
        display: block;
        width: 100%;
        height: 1px;
        background-color: #1C1B1F;
    }

    .header-navigation__close div:nth-child(1) {
        transform: rotate(45deg);
    }
    .header-navigation__close div:nth-child(2) {
        transform: rotate(-45deg);
    }

    
    .agreement__block {
        display: block;
        width: 100%;
        max-width: 229px;
        margin: 20px auto 0;
    }

    .agreement__link {
        width: 100%;
        justify-content: flex-start;
        font-size: 13px;
        line-height: 19px;
    }

    .agreement__link_2 {
        margin: 16px 0;
    }
}

@media screen and (max-width: 575px) {
    h1 {
        font-size: 32px;
        line-height: 48px;
    }

    h2,
    h3 {
        font-size: 17px;
        line-height: 26px;
    }

    .wrapper {
        padding: 0 28px;
    }


    .header__logo {
        width: 30px;
        min-width: 30px;
    }

    .header__logo-image_desktop {
        display: none;
    }

    .header__logo-image_mobile {
        display: inline;
    }


    .about {
        padding: 94px 0 52px;
        background-position: 100% 50%;
    }

    .about__content {
        width: 100%;
    }

    .about__text {
        margin-top: 24px;
        font-size: 14px;
        line-height: 18px;
    }

    .about-agreements {
        margin: 368px 0 0 auto;
    }


    .partners {
        padding: 40px 0;
    }

    .partners__title {
        margin-bottom: 34px;
        text-align: center;
    }

    .partners-card__image-bg {
        display: block;
    }

    .partners-card__image-bg_tablet {
        display: none;
    }


    .agreement__inner {
        padding: 17px 18px 21px;
    }

    .agreement__block {
        margin: 16px auto 0;
    }


    .contact {
        padding: 47px 0 54px;
    }

    .wrapper_contract {
        padding: 0;
    }

    .contact__inner {
        padding: 24px 28px 41px;
        border: none;
        border-radius: 0;
        background-color: #243855;
    }

    .contact__title,
    .contact__subtitle {
        color: #F1F1F1;
    }

    .contact__subtitle {
        margin: 8px 0 20px;
        font-size: 13px;
        line-height: 19px;
    }

    .contact-form__fieldset {
        margin-bottom: 16px;
    }

    .contact-form__field {
        height: 34px;
        font-family: Poppins;
        font-size: 12px;
        line-height: 18px;
    }

    .contact-form__button {
        width: 143px;
        height: 36px;
        margin: 24px auto 0;
        font-size: 13px;
        line-height: 19.5px;
    }

    .contact__agreements {
        display: block;
        max-width: 274px;
    }

    .contact__link {
        margin: 0;
    }

    .contact__link_large {
        margin-top: 16px;
    }
}

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

    .wrapper_contract {
        padding: 0;
    }
}


@media screen and (min-width: 767px) {
    .substrate {
        display: none !important;
    }
}
