@media (max-width:1360px) {
    .pabs {
        width: auto;
        margin-left: 0;
    }
    .cost span {
        text-align: center;
        padding-right: 35px;
        line-height: 13px;
    }
    .cost b {
        line-height: 38px;
    }
}
@media (max-width:1200px) {
    .container {
        max-width: 98%;
    }
    #education .carousel-control-prev {
        left: 0px;
    }
    #education .carousel-control-next {
        right: 0px;
    }
}
@media (max-width:1150px) {
    #videos .container .tab-content .tab-pane > .d-flex,
    .wrap_news {
        justify-content: center!important;
    }
    .wrap_news .news {
        margin: 0 15px 30px!important;
    }
    #videos .news:nth-child(5) {
        margin-left: 0;
        margin-right: 0;
    }
    #videos .news:nth-child(2n) {
        margin-left: 15px;
        margin-right: 15px;
    }
    #tasks h3 {
        white-space: normal;
        min-width: 300px;
    }
    .bgfoot .pfoot {
        margin-top: 0;
        max-width: 100%;
        padding-right: 0;
    }
}
@media (max-width:1100px) {
    header nav a {
        font-size: 16px;
    }
    #facts .d-block .d-flex {
        flex-wrap: wrap;
    }
    #facts .d-block .d-flex .quotes {
        margin-bottom: 20px;
        max-width: 500px;
    }
    .quotes0 img,
    .quotes1 img {
        max-width: 100%;
    }
    #carouselExampleIndicators2 {
        margin-top: 14px;
    }
    .wrap_slide {
        max-width: 335px;
        overflow: hidden;
    }
    #education .d-flex.justify-content-end {
        margin-top: 0;
        justify-content: flex-start!important;
        align-items: flex-start;
    }
    .block_preview {
        max-width: 750px;
    }
    .cost {
        padding-top: 15px;
    }
    .cost_bot {
        padding-top: 18px;
    }
}
@media (max-width:1098px) {
    #facts .d-block .d-flex .quotes {
        max-width: 500px;
        margin: 0 8px 20px!important;
    }
    .content {
        max-width: 650px;
    }
    #sdo .content {
        max-width: 100%;
    }
}
@media (max-width:1083px) {
    #facts .d-block .d-flex .quotes {
        max-width: 460px;
    }
}
@media (max-width:1050px) {
    footer img {
        margin-right: 26px;
    }
}
@media (max-width:1024px) {
    .cost_bot {
        padding-left: 100px;
    }
    .cost_bot b {
        line-height: 50px;
    }
}
@media (max-width:1010px) {
    header img.mr-5 {
        margin-right: 20px!important;
    }
    header nav a {
        font-size: 15px;
    }
    .wrap_slide {
        max-width: 275px;
        overflow: hidden;
    }
    .carousel.mb-4 {
        margin-bottom: 1.1em!important;
    }
    #videos .d-flex.justify-content-end {
        margin-top: 0px;
        justify-content: flex-start!important;
    }
    .block_tags.justify-content-between {
        justify-content: center!important;
    }
    .block_tags span {
        margin: 0 5px 10px;
    }
    .info {
        max-width: 550px;
    }
    .block_preview {
        max-width: 650px;
    }
    .facts {
        padding-top: 0!important;
    }
}
@media (max-width:1003px) {
    #facts .d-block .d-flex .quotes {
        max-width: 430px;
    }
    #tasks h3 {
        min-width: 200px;
    }
}
@media (max-width:950px) {
    header nav.d-flex {
        display: none!important;
    }
    /*#sdo header nav.d-flex {*/
    /*    display: flex!important;*/
    /*}*/
    nav.navbar {
        display: block;
        margin-left: 10px;
    }
    .navbar-toggler {
        display: inline-block;
        cursor: pointer;
    }
    footer img {
        margin-right: 50px;
    }
    .cost {
        padding-top: 10px;
    }
    .cost b {
        font-size: 26px;
        line-height: 30px;
    }
    .cost_bot b {
        font-size: 26px;
    }
    .cost_bot {
        padding-left: 90px;
        padding-top: 10px;
    }
}
@media (max-width:940px) {
    #facts .d-block .d-flex .quotes {
        max-width: 400px;
    }
    #qualifications .position-absolute img {
        width: 120px;
    }
    .wrap_nav nav ul {
        flex-wrap: wrap;
        padding-left: 0;
    }
    .wrap_nav nav ul li {
        margin-bottom: 10px;
    }
}
@media (max-width:900px) {
    .line {
        align-items: flex-start;
    }
    .block_preview {
        flex-wrap: wrap;
        max-width: 590px;
        justify-content: center;
    }
    #content > .d-flex {
        flex-wrap: wrap;
    }
    .content, aside {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }
    .content {
        padding-left: 10px;
        padding-right: 10px;
    }
    #registration .container > .d-flex {
        flex-flow: column-reverse;
        justify-content: center;
        width: 50%;
        margin: 0 25%;
    }
    #registration .col-3, #registration .col-6 {
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }
    .cost {
        max-width: 300px;
        padding-top: 20px;
        margin: 0 auto;
    }
    .cost b {
        display: block;
        font-size: 32px;
        line-height: 42px;
    }
    .cost_bot {
        max-width: 300px;
        padding-left: 120px;
        padding-top: 23px;
    }
    .cost_bot b {
        font-size: 30px;
        line-height: 55px;
    }
    #registration input[type="submit"] {
        margin-bottom: 30px;
    }
    .pabs {
        margin-top: 0;
    }
}
@media (max-width:880px) {
    #facts .d-block .d-flex .quotes {
        max-width: 380px;
    }
    #sdo #nav-panel ul {
        flex-wrap: wrap;
    }
    #sdo #nav-panel ul li {
        margin-bottom: 10px;
    }
}
@media (max-width:850px) {
    #news_big > .d-flex {
        flex-wrap: wrap;
    }
    .wrap_slide {
        max-width: 377px;
        overflow: hidden;
        margin: 40px auto 0;
    }
    .news_big.mr-4 {
        margin: 0 auto!important;
    }
    .news:nth-child(2), .news:nth-child(5) {
        margin: 0;
    }
    .info {
        max-width: 450px;
    }
    .calendar {
        min-width: 220px;
    }
    .calendar img {
        max-width: 100%;
    }
    .wrap_partners {
        flex-wrap: wrap;
        justify-content: center!important;
    }
    .wrap_partners img {
        margin-bottom: 20px;
    }
    #tasks .container > .d-flex {
        flex-wrap: wrap;
    }
    .electr_info {
        background: none;
        padding-left: 0;
    }
    #task h3 {
        margin-bottom: 30px;
        min-width: 100%;
        text-align: center;
    }

}
@media (max-width:830px) {
    #facts .d-block .d-flex .quotes {
        max-width: 100%;
    }
}
@media  (max-width:816px)  {
    #education .nav-tabs .nav-link {
        margin-bottom: 10px;
    }
    .info a.but {
        margin-top: 0;
    }
    .block_tags {
        justify-content: center;
    }
    .courses_sidebar {
        text-align: center;
    }
    .courses_sidebar h2 {
        float: none!important;
        margin: 0 auto 20px;
    }
    .courses_sidebar #accordion {
        float: none;
        margin: 0 auto;
        text-align: left;
    }
    .courses_content .blockwhite {
        padding: 0;
    }
}
@media  (max-width:770px)  {
    .news:nth-child(2), .news:nth-child(5) {
        margin: 0;
    }
    #qualifications .position-absolute img {
        width: 100px;
    }
    .list_search .col-3,
    .list_search .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media  (max-width:750px)  {
    #videos .tab-pane > .d-flex {
        justify-content: center!important;
    }
    #news .news {
        margin-bottom: 20px;
    }
    .wrap_news {
        justify-content: center!important;
    }
    #education .carousel-item > .d-flex {
        flex-wrap: wrap;
        justify-content: center!important;
    }
    .info {
        max-width: 470px;
        margin-left: 0;
    }
    #education .carousel-item img {
        margin-bottom: 20px;
        max-width: 100%;
    }
    #education .carousel-control-prev, #education .carousel-control-next {
        top: calc(50% - 24px / 2);
        width: 5%;
    }
    .panel_auth .phone {
        font-size: 12px;
    }
    .user-name, .user-role {
        font-size: 12px;
    }
    .panel_auth form {
        padding: 2px 0 3px!important;
    }
    .panel_auth a {
        white-space: nowrap;
    }
    .but_exit {
        margin-left: 6px;
    }
    .education-radio.main-form-order__radio {
        margin: 15px;
    }
}
@media (max-width:714px) {
    .quotes5 {
        margin: 0 8px;
    }
    .d-flex.wrapvideos {
        flex-wrap: wrap;
    }
    .video-section .player-section, .video-section .slides-section {
        width: 100%;
    }
    .video-section .player-section {
        margin-bottom: 20px;
    }
    #qualifications .position-absolute {
        right: 10px!important;
    }
}
@media (max-width:661px) {
    .tabs {
        margin-top: 0;
    }
    .nav-tabs .nav-item {
        margin-bottom: 10px;
    }
    #auth_inline_email, #auth_inline_password {
        width: 150px;
    }
    .list-heroes {
        padding-left: 0;
    }
}
@media (max-width:600px) {
    #news .container > .d-flex {
        flex-wrap: wrap;
    }
    #news .links_news {
        margin-top: 22px;
    }
    #news .all, #news .add {
        width: 100%;
        display: inline-block;
    }
    #news .all {
        margin-bottom: 10px;
    }
    #education .nav-tabs .nav-item {
        width: 100%;
    }
    .line {
        flex-flow: column-reverse;
    }
    .calendar {
        margin-bottom: 30px;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    .quotes {
        font-size: 18px;
        line-height: 24px;
    }
    .quotes1 {
        font-size: 18px;
        line-height: 28px;
        height: 330px;
    }
    .quotes2 {
        background: url(../img/quotes2.png) no-repeat 18px 80%;
        padding-left: 103px;
        background-size: 130px 130px;
    }
    #qualifications .position-absolute br {
        display: none;
    }
    #qualifications .position-absolute img {
        margin-left: 20px;
    }
    .electr_info p {
        padding-right: 55px;
    }
    .electr_info p::before {
        right: 0;
    }
    .panel_auth .container {
        max-width: 100%;
    }
    #auth_inline_email, #auth_inline_password {
        width: 130px;
    }
}
@media (max-width:560px) {
    #previews .container .justify-content-between {
        flex-wrap: wrap;
    }
    #previews .links_news {
        margin-top: 22px;
    }
    #registration .container > .d-flex {
        width: 80%;
        margin: 0 10%;
    }
    #registration, .bgreg {
        background-size: auto 180px;
    }
    .nav-panel ul {
        flex-wrap: wrap;
    }
    .nav-panel ul li {
        margin-bottom: 20px;
    }
    .nav-panel nav {
        margin-bottom: 20px;
    }
}
@media (max-width:550px) {

    #videos .nav-tabs .nav-item {
        width: 50%;
    }
    .panel_auth form {
        justify-content: center !important;
        display: flex;
        align-items: center;
    }

}
@media (max-width:500px) {
    footer img {
        margin-right: 20px;
        margin-bottom: 30px;
    }
    .bgfoot > .justify-content-between {
        flex-wrap: wrap;
        justify-content: center !important;
    }
    #qualifications .position-absolute {
        top: 10px!important;
    }
    #qualifications .position-absolute img {
        width: 80px;
    }
    .panel_auth form {
        flex-wrap: wrap;
    }
    .panel_auth form.form_auth {
        flex-wrap: nowrap;
    }
    #auth_inline_email, #auth_inline_password {
        margin-bottom: 5px;
     }
    .list-heroes li {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .list-heroes li img {
        margin: 0 auto 10px;
    }
    .anketa form .row .col-4,
    .anketa form .row .col-6,
    .anketa form .row .col-3,
    .anketa form .row .col-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
        padding: 0;
    }
    .anketa form .row .col-3 {
        margin-bottom: 0;
    }
    .list_words .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    #facts .d-block .d-flex .quotes1.size-none {
        display: none;
    }
}
@media (max-width:443px) {
    .wrap_partners {
        justify-content: center !important;
    }
    #previews .all, #previews .add {
        width: 100%;
        display: inline-block;
    }
    #previews .all {
        margin-bottom: 10px;
    }
    #partners .container > .d-flex {
        flex-wrap: wrap;
    }
    #partners .all {
        margin-top: 22px;
        display: inline-block;
        width: 100%;
        margin-right: 0;
    }
    #videos .nav-tabs .nav-item {
        width: 100%;
    }
    #education .carousel-control-prev, #education .carousel-control-next {
        width: 8%;
    }
    .panel_auth form {
        justify-content: start!important;
        align-items: start;
    }
}
@media (max-width:406px) {
    .tabs > label {
        width: 100%;
    }
    #qualifications .position-absolute img {
        margin-left: 0px;
    }
    .panel_auth .container {
        position: relative;
    }
    #auth_inline_email, #auth_inline_password {
        width: 47%;
    }
    #auth_inline_password {
        margin-right: 0;
    }
    .panel_auth a.link_reg {
        position: absolute;
        right: 20px;
        bottom: 8px;
    }
    .panel_auth span {
        display: none;
    }
    .panel_auth form {
        padding-left: 0!important;
        padding-right: 0!important;
    }
    #facts .tabs a.all {
        width: 100%;
        margin-bottom: 22px;
    }
    .page-link {
        padding: .4rem .55rem;
    }
}