@media(min-width: 1920px){
    #preim, #documents, #organization{
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .preim_conus{
        right: auto;
        padding-left: 1400px;
    }
    .preim_bike{
        left: auto;
        padding-right: 2000px;
    }
    .documents_bike{
        left: auto;
        padding-right: 1600px;
    }
    .organization_bike{
        padding-right: 1200px;
        left: auto;
    }
}
@media(max-width: 1500px){
    .container{
        max-width: 1280px;
    }
    #main{
        padding-left: calc(50% - 1280px / 2 + 10px);
    }
    .about_text p{
        max-width: 730px;
    }
    .preim_conus{
        right: 0;
    }
    .preim_bike{
        left: -40%;
    }
    .title::before{
        height: 28px;
        width: 28px;
    }
}

@media(max-width: 1440px){
    .modal_content{
        padding: 30px;
        gap: 10px;
    }
    .modal_title{
        font-size: 24px;
    }
    .modal_subtitle{
        font-size: 16px;
    }
    input, select{
        padding: 12px 15px;
    }
    label, .wpcf7-not-valid-tip{
        font-size: 12px;
    }
    .wpcf7-form-control.btn_main{
        font-size: 16px;
        padding: 12px 20px;
    }
    .wpcf7-list-item{
        margin: 15px 0px;
    }
    img.toggle_modal{
        height: 18px;
    }
}

@media(max-width: 1300px){
    .container{
        max-width: 1100px;
    }
    #main{
        padding-left: calc(50% - 1100px / 2 + 10px);
    }
    .logo{
        gap: 20px;
    }
    .logo img{
        max-width: 200px;
    }
    .tel{
        margin-right: 20px;
    }
    .main_logo img, #zayavka img{
        max-width: 180px;
    }
    #main h1, #zayavka .container h2{
        font-size: 36px;
    }
    .title{
        font-size: 28px;
    }
    .main_div p, .tel_text a{
        font-size: 20px;
    }
    p, #preim_table table th p, #preim_table table td p, footer h4{
        font-size: 18px;
    }
    .btn_main, a.btn_main{
        font-size: 18px;
    }
    .about_text p{
        max-width: 660px;
    }
    .preim_conus{
        height: 140px;
        right: 3%;
    }
    #program .col-lg-12{
        padding: 50px 80px;
    }
    .program_div.stretched .program_bg{
        left: -4%;
    }
    #video .title{
        text-align: left;
    }
    .instructor_text h3{
        text-align: center;
    }
    .director_div p.numb{
        margin-bottom: 44px;
    }
    .nav a{
        font-size: 16px;
    }
    .submenu{
        top: 36px;
    }
}

@media(max-width: 1140px){
    .container{
        max-width: 1000px;
    }
    #main{
        padding-left: calc(50% - 1000px / 2 + 10px);
    }
    .tel{
        margin: 0;
    }
    .tel a,.about_text p, .program_quote{
        font-size: 18px;
    }
    .program_quote{
        max-width: 80%;
    }
    .tel p{
        display: none;
    }
    .social img{
        height: 34px;
    }
    .logo p{
        font-size: 14px;
        max-width: 180px;
    }
    .btn_main, a.btn_main{
        font-size: 16px;
    }
    #about .container{
        gap: 60px;
    }
    .about_text p{
        max-width: 600px;
    }
    p, #preim_table table th p, #preim_table table td p, footer h4{
        font-size: 16px;
    }
    #preim_table table td img{
        width: 24px;
    }
    .preim_div h3, .moto_descr h3{
        font-size: 20px;
    }
    #program .col-lg-12 p{
        font-size: 24px;
    }
    .video_div{
        width: 48%;
    }
    .swiper_motorcycles .swiper-slide img{
        height: auto;
        width: 70%;
    }
    .moto_descr{
        position: relative;
        width: 30%;
    }
    .swiper_motorcycles .swiper-slide{
        flex-direction: row-reverse;
    }
    #motorcycles .swiper-navigation{
        margin-top: -10px;
    }
    .documents_bike{
        left: -40%;
    }
    .organization_bike{
        left: -20%;
    }
    .organization_div p.numb, .director_div p.numb{
        font-size: 28px;
    }
    .ava img{
        width: 220px;
        height: 220px;
    }
    .form_check label{
        font-size: 12px;
    }
}

@media(max-width: 1024px){
    .container{
        max-width: 900px;
    }
    .logo p{
        display: none;
    }
    .burger{
        gap: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--main);
        width: 44px;
        height: 44px;
        border-radius: 5px;
    }
    .burger span{
        width: 28px;
        height: 2px;
        display: block;
        background: #fff;
        transition: .3s;
    }
    .burger_active span:first-child{
        transform: translate(0,8px) rotate(45deg);
    }
    .burger_active span:nth-child(2){
        opacity: 0;
    }
    .burger_active span:last-child{
        transform: translate(0,-8px) rotate(-45deg);
    }
    .secret_menu{
        padding: 120px 0px;
        position: fixed;
        top: 0;
        left: -110%;
        height: 110vh;
        width: 100%;
        background: #fff;
        display: block;
        z-index: 100;
        transition: .3s;
    }
    .secret_menu.secret_menu_active{
        left: 0;
    }
    .header_bottom{
        display: none;
    }
    .secret_menu .nav{
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 10px;
    }
    .secret_menu .nav li a{
        color: var(--dark);
        font-size: 18px;
    }
    .secret_menu .header_end{
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 20px;
        margin-top: 40px;
    }
    .submenu{
        position: relative;
        top: auto;
        background: #fff;
        border: 1px solid #cdcdcd;
        margin-top: 20px;
    }
    .main_row{
        flex-direction: column-reverse;
        gap: 40px;
        align-items: center;
        justify-content: center;
    }
    .main_bg{
        width: 100%;
        height: 480px;
        position: relative;
        bottom: auto;
        right: auto;
    }
    #main{
        margin-top: 100px;
    }
    .main_text{
        align-items: center;
        justify-content: center;
        padding: 0px;
        margin-bottom: 60px;
        width: 100%;
    }
    #main h1{
        text-align: center;
    }
    #preim .col-lg-4{
        width: 48%;
    }
    #preim .col-lg-4:first-child{
        margin-left: 100px;
    }
    #preim .row{
        justify-content: end;
        gap: 30px;
    }
    #preim{
        justify-content: end;
    }
    .preim_bike{
        bottom: auto;
        top: 0%;
    }
    #program .col-lg-8, #program .col-lg-4{
        width: 100%;
    }
    #program .col-lg-12{
        padding: 50px;
    }
    .program_bg{
        display: none;
    }
    .program_div.stretched{
        flex-direction: column;
    }
    .program_div.stretched .program_text{
        width: 100%;
        background: #fff;
        padding: 40px;
        max-width: 100%;
        gap: 30px;
    }
    .program_div.stretched .program_img{
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 7 / 3;
    }
    .program_text h2{
        font-size: 24px;
    }
    .news_div_text h3{
        font-size: 20px;
    }
    #cont .row{
        gap: 40px;
    }
    #cont .col-lg-4{
        width: 47%;
    }
    #cont .col-lg-4:last-child{
        flex-direction: row;
        align-items: start;
        justify-content: start;
        gap: 30px;
        width: 100%;
    }
    .adress_title h4{
        font-size: 18px;
        margin-bottom: 10px;
    }
    footer p{
        font-size: 14px;
    }
    .program_div.stretched .program_bg{
        display: none;
    }
    .main_div{
        width: 100%;
        max-width: 500px;
    }
    .story-content-overlay__title{
        font-size: 18px !important;
    }
}

@media(max-width: 991px){
    section{
        padding-top: 80px;
    }
    #about, #zayavka, #partners, #instructor{
        padding: 80px 0px;
        margin-top: 80px;
    }
    .container, .main_text{
        max-width: 700px;
    }
    header .btn_main{
        display: none;
    }
    #about .container{
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 40px;
    }
    .about_img{
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        gap: 40px;
    }
    .about_img img{
        height: 180px;
    }
    .about_img_name{
        justify-content: start;
        align-items: start;
    }
    #preim_table table th{
        white-space: nowrap;
    }
    #preim_table table td, #preim_table table th{
        width: 60%;
    }
    #preim .col-lg-4{
        width: 100%;
    }
    #preim .col-lg-4:first-child{
        width: 60%;
    }
    .preim_bike{
        top: 4%;
        left: -55%;
        height: 500px;
    }
    #program .col-lg-12 p, .instructor_text h3,
    .about_img_name p.name{
        font-size: 20px;
    }
    .program_div{
        width: 100%;
    }
    #zayavka .container h2{
        font-size: 32px;
    }
    .video_capture h3{
        font-size: 16px;
    }
    .video_capture{
        width: 80%;
    }
    .instructor_div img{
        width: 120px;
    }
    .swiper_motorcycles .swiper-slide{
        flex-direction: column;
        gap: 40px;
    }
    .moto_descr, .swiper_motorcycles .swiper-slide img{
        width: 100%;
        height: auto;
    }
    .moto_descr .btn_main{
        margin-top: 40px;
    }
    .documents_row, #organization .row_stretch{
        padding-left: 0;    
    }
    #documents{
        padding-bottom: 0px;
    }
    .documents_bike{
        height: 500px;
        left: -30%;
    }
    .documents_div:nth-child(5),
    .documents_div:last-child{
        margin-left: 51.5%;
    }
    #partners img, .director_div{
        width: 45%;
    }
    .organization_bike{
        position: relative;
        margin-left: -30%;
        margin-top: 30px;
        width: auto;
        left: auto;
        max-width: 100%;
        max-height: 500px;
    }
    .preim_bike{
        height: 100%;
        max-height: 500px;
        left: -40%;
        width: auto;
    }
    .otz_div{
        padding: 40px 80px 120px 80px;
    }
    #oplata .row{
        gap: 50px;
    }
    #oplata .col-lg-3{
        padding: 40px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: start;
        flex-direction: row;
        gap: 50px;
    }
    #oplata .col-lg-3 img{
        max-width: 200px;
    }
    .text_oplata{
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 40px;
    }
    .main_div p, .tel_text a{
        font-size: 18px;
    }
    footer .row{
        gap: 30px;
    }
    .archive_row .news_div{
        width: 100%;
    }
    #archive, #page_text{
        padding-top: 120px;
    }
}

@media(max-width: 770px){
    .container, .main_text{
        max-width: 500px;
    }
    .social{
        display: none;
    }
    .documents_bike, .preim_bike{
        position: relative;
        left: auto;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin-top: 30px;
    }
    .tel a, .about_text p, .program_quote{
        font-size: 16px;
    }
    .logo img{
        max-width: 160px;
    }
    .header_top{
        padding: 20px 0px;
    }
    #main{
        margin-top: 80px;
    }
    .main_bg{
        height: auto;
        aspect-ratio: 3/2;
    }
    #preim_table table td:first-child, #preim_table table th:first-child{
        min-width: 300px;
    }
    #preim .col-lg-4:first-child, .video_div, .documents_div,
    .organization_div, .director_div, #cont .col-lg-4{
        width: 100%;
    }
    .preim_conus{
        display: none;
    }
    .program_text, .program_div.stretched .program_text,
    #program .col-lg-12, #oplata .col-lg-3, .organization_div,
    .director_div, .documents_div, .instructor_div, .news_div_text{
        padding: 30px;
    }
    #video .title{
        margin-bottom: 30px;
    }
    .documents_div:nth-child(5), .documents_div:last-child{
        margin: 0;
    }
    .ava img{
        width: 180px;
        height: 180px;
    }
    #oplata .col-lg-3 img{
        max-width: 140px;
    }
    #oplata .col-lg-3 p{
        margin: 0;
        margin-bottom: 30px;
    }
    #cont .col-lg-4:last-child{
        flex-direction: column;
    }
    iframe{
        height: 300px !important;
    }
    .motorcycles_bg{
        height: 400px;
    }
    .main_text{
        margin-bottom: 0;
    }
    #preim_table table td:first-child, #preim_table table th:first-child{
        min-width: 180px;
        width: calc(100% - 240px);
    }
    #preim_table table td, #preim_table table th{
        padding: 10px;
    }
    #preim_table table th p, #preim_table table td p{
        font-size: 12px;
    }
    #preim_table table td, #preim_table table th{
        width: 120px;
    }
    .documents_bike, .preim_bike, .organization_bike{
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: contain;
        margin-left: -30%;
    }
    .documents_bike{
        margin-left: -20%;
    }
    #single_page h1, #archive h1, #page_text h1{
        font-size: 24px;
    }
}

@media(max-width: 500px){
    .container, .main_text{
        padding: 0px 20px;
    }
    .tel a{
        font-size: 14px;
    }
    .social{
        display: flex;
    }
    header .tel{
        display: none;
    }
    .main_logo img{
        height: 120px;
    }
    #main h1{
        font-size: 28px;
    }
    .main_div p, .tel_text a{
        font-size: 16px;
    }
    .btn_row{
        flex-direction: column;
        align-items: start;
        justify-content: start;
        width: 100%;
        gap: 15px;
    }
    .btn_row .btn_main, .btn_row a.btn_main{
        width: 100%;
    }
    .title, #zayavka .container h2{
        font-size: 24px;
    }
    .main_logo img, #zayavka img{
        height: 120px;
    }
    .preim_conus{
        display: none;
    }
    .preim_bike{
        position: relative;
        width: 100%;
        left: 0;
    }
    #program .col-lg-8 img{
        bottom: 10px;
        right: 10px;
    }
    .program_name, .program_price span{
        font-size: 20px;
    }
    .program_text{
        gap: 20px;
    }
    #zayavka .container p{
        font-size: 18px;
    }
    .otz_div{
        padding: 30px;
    }
    .ava img{
        width: 120px;
        height: 120px;
    }
    .swiper-navigation button{
        padding: 10px 35px;
    }
    #otz .swiper-navigation{
        position: relative;
        top: auto;
        margin-top: 40px;
        bottom: auto;
    }
    .otz_text{
        margin: 20px 0px;
        gap: 4px;
    }
    .otz_text h3, #program .col-lg-12 p{
        font-size: 18px;
    }
    .title{
        margin-bottom: 40px;
    }
    #cont{
        padding-bottom: 60px;
    }
    .secret_menu{
        padding: 100px 0px;
    }
    .secret_menu .nav li a{
        font-size: 16px;
    }
    .submenu{
        width: 100%;
        padding: 20px;
    }
    #oplata .col-lg-3{
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 20px;
    }
    .prev{
        margin-right: -9px;
    }
    .next{
        margin-left: -9px;
    }
    .title::before{
        display: none;
    }
    #program .col-lg-8 img{
        height: 40px;
    }
    .program_text h2{
        font-size: 20px;
    }
    #preim_table table td:first-child, #preim_table table th:first-child{
        min-width: 180px;
        width: calc(100% - 160px);
    }
    #preim_table table td, #preim_table table th{
        width: 80px;
    }
    #preim_table thead tr th img{
        height: 40px;
        width: 40px;
        object-fit: contain;
    }
    #preim_table table th{
        white-space: inherit;
    }
    #error h1{
        font-size: 84px;
    }
    #error p{
        max-width: 80%;
        font-size: 16px;
        text-align: center;
    }
    #error .container{
        gap: 30px;
    }
    .web-stories-list .story-content-overlay__title{
        font-size: 16px !important;
    }
}

@media(max-width: 400px){
    .program_text, .program_div.stretched .program_text, #program .col-lg-12, 
    #oplata .col-lg-3, .organization_div, .director_div, .documents_div, 
    .instructor_div, .news_div_text, .preim_div{
        padding: 20px;
    }
    .news_div_text p.date{
        font-size: 14px;
    }
    .news_div_text h3{
        font-size: 18px;
    }
    .about_img{
        flex-direction: column;
    }
     #preim_table table td:first-child, #preim_table table th:first-child{
        min-width: 180px;
        width: calc(100% - 120px);
    }
    #preim_table table td, #preim_table table th{
        width: 60px;
    }
    #single_page h1{
        font-size: 20px;
    }
}