/*-===media queres===-*/

@media screen and (max-width: 1150px) {
    .logo {
        font-size: 30px;
    }

    .nav-bar li>a {
        font: 16px Museo Sans Cyrl;
    }

    .sl {
        font-size: 15px;
    }

    nav {
        min-width: 1024px
    }

    main {
        margin: 0 auto;
        padding-left: 5%;
        padding-right: 5%;
    }

    .sub>li>a {
        font-size: 18px !important;
    }

    .m-left {
        min-width: 510px;
    }

    .m-left .wrap {
        margin-right: 155px;
    }

   

    .m-right {
        margin-left: -155px;
        min-width: 510px;
    }

    .m-right .wrap {
        margin-left: 155px;
    }

    .blog-catid {
        position: relative;
        min-width: 0;
        left: auto;
    }

    .blog-content {
        padding: 0 15px;
        width: 996px;
    }

    .descrt.page {
        font: 13px Museo Sans Cyrl;
        padding: 0 15px;
    }

}

@media screen and (max-width: 1024px) {
    .logo {
        font-size: 24px;
    }

    .nav-bar li>a {
        font: 12px Museo Sans Cyrl;
    }

    .sl {
        font-size: 10px;
    }

    nav {
        min-width: 830px
    }

    main {
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sub>li>a {
        font-size: 18px !important;
    }

    .m-left {
        min-width: 415px;
    }

    .m-left .wrap {
        margin-right: 135px;
    }

   

    .m-right {
        margin-left: -135px;
        min-width: 415px;
    }

    .m-right .wrap {
        margin-left: 135px;
    }

    .sub>li>a {
        font-size: 11px !important;
    }

    .wrap-series .item-foto h3 .h {
        font-size: 11px;
    }

    .wrap-series .item-foto {
        width: 22%;
    }

    .a-video {
        background: rgba(0, 0, 0, 0.2) url("/img/icons/ic_play.svg") no-repeat scroll center center / 35% auto;
    }

}

@media screen and (max-width: 768px) {
    .main {
        min-width: 0;
        width: auto;
    }

    .wrap-gallery .item-foto,
    .wrap-gallery .item-video {
        width: 25%;
    }

    .wrap-series .item-foto {
        width: 31.4%;
    }

    .m-mid {
        float: none;
        margin-left: 0;
        text-align: center;
        width: auto;
    }

    .m-mid li {
        display: table;
        margin: 0 auto;
    }

    .m-left {
        background: #f5f5f5 none repeat scroll 0 0;
        bottom: 0;
        float: none;
        min-width: 0;
        overflow-x: auto;
        padding-top: 60px;
        position: absolute;
        top: 0;
        width: auto;
        z-index: 110;
        box-shadow: 1px 0 5px #999;
    }

    .m-left .wrap {
        margin-right: auto;
    }

    .m-left li {
        float: none;
        line-height: normal;
    }

    .m-right {
        z-index: 111;
        margin-top: 25px;
        float: none;
        margin-left: auto;
        min-width: 0;
        position: absolute;
        width: auto;
    }

    nav {
        min-width: 0;
    }

    .m-right li {
        float: none;
        line-height: normal;
        margin-left: auto;
    }

    .m-right .wrap {
        margin-left: auto;
    }

    footer {
        min-width: 0;
    }

    .wrap-gallery,
    .wrap-series {
        padding-left: 0;
    }

    main {
        padding: 0;
    }

    .m-left li,
    .m-right li {
        min-width: 250px;
        padding: 8px 20px;
    }

    .sub {
        background: #f5f5f5 none repeat scroll 0 0;
        box-shadow: none;
        font: 14px Museo Sans Cyrl;
        height: 0;
        margin: auto;
        overflow: hidden;
        position: relative;
        -webkit-transition: none 0s ease 0s;
        transition: none 0s ease 0s;
        z-index: 5;
    }

    .sub>li {
        max-width: 230px;
        min-width: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-top: 0;
    }

    .sub>li>a {
        font-size: 15px !important;
        padding: 8px 25px;
    }

    .m-left,
    .m-right {
        left: -315px;
        -webkit-transition: all 0.3s ease 0s;
        transition: all 0.3s ease 0s;
    }

    header {
        margin-bottom: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .sl {
        font-size: 13px;
    }

    .wrap-series {
        overflow-x: scroll;
        white-space: nowrap;
    }

    .wrap-series .item-foto {
        display: inline-block;
        float: none;
        height: auto;
    }

    .m-menu {
        display: inline-block;
        font-size: 21px;
        height: 60px;
        position: absolute;
        top: 6px;
        width: 50px;
        z-index: 1000;
    }

    .left-img {
        width: 100%;
    }

    .box-comment {
        padding: 0 10px;
        width: auto;
    }

    .class-preview {
        width: 100%;
    }

    .class-detalis {
        margin-left: auto;
        padding: 0 10px;
    }

    .blog-catid {
        width: auto;
        margin: 0 auto;
        min-width: 0;
        padding: 0 15px;
        overflow-x: auto;
        left: auto;
        margin-bottom: 15px;
    }

    .blog-catid ul {
        width: 100%;
        white-space: nowrap;
    }

    /*blog========================*/
    .blog-content {
        width: 100%;
    }

    .item-post {
        margin: 70px 0;
    }

    .box-img-blog {
        height: auto;
        width: 100%;
    }

    .header-post h2 {
        margin-top: 5px;
    }

    .header-post>p {
        margin-top: 4px;
    }

    .header-post h2>a {
        font-size: 20px;
    }

    .detalis-post {
        font-size: 13px;
        line-height: 23px;
    }

    .item-post:nth-child(2n+1)>.box-img-blog,
    .item-post:nth-child(2n)>.box-img-blog {
        float: none;
    }

    .item-post:nth-child(2n+1) .header-post {
        margin-left: auto;
        width: 100%;

    }

    .item-post:nth-child(2n) .header-post {
        margin-right: auto;
        text-align: inherit;
    }

    .header-post {
        margin: 0;
        padding: 0 10px;
        height: auto;
    }

    .item-post {
        margin: 0px 0 70px 0;
    }

    .sub a {
        padding: 0;
    }

    .sub>li,
    .item-menu:hover>.sub>li {
        -webkit-transition: none;
        transition: none;
        border: none;
    }

    .box-series figure {
        border-width: 1px;
    }

    .m-menu {
        display: block !important;
    }

    .box-series {
        margin: 0 -1px;
    }

    .lesson-detalis>ul {
        padding: 0 10px;
    }

    .descrt.page {
        font: 13px Museo Sans Cyrl;
        padding: 0 15px 15px;
    }

    .s-text {
        font-size: 13px;
    }

    .graf {
        padding: 2px;
    }

    iframe {
        height: auto;
        width: 100%;
    }

    .send-comment-box {
        width: auto;
        padding: 0 10px;
    }

    .header-portfolio>span {
        display: inline-block;
        max-width: 75%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        position: relative;
        top: 3px;
    }

    .text-comment {
        margin-left: 15%;
    }

    .form_password {
        padding: 0 10px;
    }

    .form_password input {
        width: 89%;
        margin: 10px 0px;
    }

    .item-article {
        width: 49.5%;
    }

    .page img {
        height: auto;
        width: 100%;
    }

    .attach .header-portfolio {
        margin: 0;
    }

    .about .descr.skin-color-a {
        padding: 0 10px;
    }

    .foto-autor {
        width: 40%;
    }

    .nav-bar li>a {
        font: 16px Museo Sans Cyrl;
    }

    .blog-content {
        width: auto;
        padding: 0;
    }

    #next_photo_history,
    #prev_photo_history {
        display: none;
    }

    .gallery-portfolio.home {
        height: auto;
    }
}



@media screen and (max-width: 480px) {
    .main {
        width: 100%;
        min-width: 0;
    }

    .wrap-gallery .item-foto,
    .wrap-gallery .item-video {
        width: 33.3%;
    }

    .wrap-series .item-foto {
        width: 45%;
        border-width: 1px;
    }

    .item-foto,
    .item-video {
        border-width: 1px;
    }

    .header-portfolio {
        margin: 10px 0 15px;
        height: auto;
    }

    .header-portfolio>h1,
    .header-portfolio>span {
        font-size: 13px;
        padding: 0 11px;
        transform: translateY(50%);
        display: inline-block;
    }

    .wrap-series .item-foto h3 .h {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .wrap-series .item-foto h3 .d {
        font: 10px Museo Sans Cyrl;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lesson-time,
    .lesson-time a {
        font-size: 13px;
        margin: 0;
    }

    .ic_24 {
        font-size: 16px;
        top: 1px;
    }

    .lesson-date {
        font-size: 20px;
    }

    .weekday {
        margin-bottom: 16px;
    }

    .full_text {
        margin-top: 10px;
    }

    .no_comm_status {
        font: 13px Museo Sans Cyrl;
    }

    .social .ic_36 {
        border-radius: 50%;
        font-size: 13px;
        height: 26px;
        line-height: 25px;
        width: 26px;
    }

    .social {
        margin: 0;
    }

    .class-detalis h3 {
        white-space: normal;
    }

    .preview-lesson>li,
    .preview-lesson>li a {
        font-size: 13px;
    }

    .share-icon {
        color: #993300;
        display: inline-block;
        font: 14px Museo Sans Cyrl !important;
        margin-right: 7px;
        overflow: hidden;
        padding: 0 10px;
        position: relative;
        top: 0;
        white-space: nowrap;
        width: 20px !important;
    }

    .share-icon i {
        font-size: 28px;
    }

    .question-box {
        background: #f5f5f5 none repeat scroll 0 0;
        margin-top: 20px;
        padding: 10px 15px;
    }

    .share-article>div {
        border: 1px solid #ccc;
        border-radius: 42px;
        cursor: pointer;
        display: inline-block;
        height: 28px;
        text-align: center;
        -webkit-transition: all 0.4s ease 0s;
        transition: all 0.4s ease 0s;
        vertical-align: middle;
        width: 28px;
    }

    .share-article span {
        font-size: 16px;
        line-height: 30px;
    }

    .wrap-main.blog-article>h1,
    h1 {
        font-size: 20px;
        margin: 0 auto 2px 0;
    }

    .blog-catid a {
        font: 16px Museo Sans Cyrl;
    }

    .master-class {
        width: auto;
    }

    .box-pre_text {
        max-height: 74px;
        overflow: hidden;
    }

    .class-detalis h3>a {
        font-size: 20px;
    }

    .box-lesson .full_text,
    .box-lesson .full_text_1 {
        width: auto;
        max-height: none;
        padding: 0 10px;
    }

    .this-text {
        font-size: 12px;
    }

    .comment-ava {
        border-width: 2px;
    }

    .quest-header h6 {
        font-size: 15px;
    }

    .quest-item-wrap p {
        font-size: 12px;
    }

    .foto-autor {
        width: 100%;
    }

    .item-article {
        width: 100%;
    }

    .item-recal {
        width: 33.3%;
    }

    .recal-text {
        display: none;
        left: 0;
        position: absolute;
        right: 0;
        -webkit-animation: none !important;
        animation: none !important;
    }

    .item-recal:hover>.user-avatar::before {
        background: rgba(0, 0, 0, 0) url("../img/icons/ic_stick.png") no-repeat scroll center center;
        content: "";
        display: block;
        height: 17px;
        margin-left: 23px;
        margin-top: -26px;
        opacity: 1;
        position: absolute;
        -webkit-transition: all 0.5s ease 0s;
        transition: all 0.5s ease 0s;
        width: 52px;
    }

    .user-avatar::before,
    .stick {
        opacity: 0;
    }

    .item-recal h5>a {
        font-size: 11px;
    }

    .text-info {
        padding: 20px 0;
    }

    .grid_gallery_6,
    .grid_gallery_5 {
        width: 33.3% !important;
    }




}

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

    .ic-viber {
        width: 35px;
        height: 35px;
        background-size: contain;
        background-position: center;
    }

    .ic-whatsapp {
        width: 35px;
        height: 35px;
        background-size: contain;
        background-position: center;
    }

    .ic-telegram {
        width: 35px;
        height: 35px;
        background-size: contain;
        background-position: center;
    }

    .ic-vk {
        width: 35px;
        height: 35px;
        background-size: contain;
        background-position: center;
    }

    .ic-inst {
        width: 35px;
        height: 35px;
        background-size: contain;
        background-position: center;
    }

    .box-messagers>div {
        margin: 0 20px 0 0;
    }

    .number-mobile-call a {
        font-size: 26px;
    }
}




.m-left.open,
.m-right.open {
    left: 0;
}

body.hidden {
    overflow: hidden;
}

.item-menu:hover>.sub,
.item-menu.open>.sub {
    height: auto;
}

.item-menu:hover>.sub>li,
.item-menu.open>.sub>li {
    margin: -1px 0;
    border-color: #ddd;
}