@media (min-width: 640px) and (max-width: 700px) {
  div.second-menu .btn {
    margin: 3px;
  }
}
@media (min-width: 640px) and (max-width: 1024px){
    div.about-box {
        width: 520px;
    }
    .shop-block .catalog-book {
        width: 33%;
    }
    .navbar-nav .open .dropdown-menu {
      position: fixed;
      top: 41px;
      right: 18px;
    }
    .hide-small {
      display: none !important;
    }
    .navbar-nav>li>a, #yw3.navbar-nav>li>a>span {
      font-size: 10px;
    }
    .nav>li {
        display: inline;
    }
    .navbar-default .navbar-nav>li>a {
        display: inline-block;
    }
  /*.navbar-default .navbar-nav>li>a {*/
    /*display: inline;*/
  /*}*/
    .navbar-nav .open .dropdown-menu {
        /*margin-top: 167px;*/
        background-color: #fff;
        border: 1px solid #ccc;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: 4px;
        -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
        box-shadow: 0 6px 12px rgba(0,0,0,.175);
        background-clip: padding-box;
    }
    .navbar-default .navbar-toggle {
        display: none;
    }
    .container.second-menu {
        /*padding: 5px 10px;*/
    }
    /*.hidden-sm {*/
        /*display: none;*/
    /*}*/
    div.second-menu .btn.btn-primary, div.second-menu .btn.btn-default {
        font-size: 10px;
        height: 50px;
        white-space: initial;
        padding: 5px 7px;
    }
    div.second-menu .btn.btn-link {
        display: flex;
        font-size: 10px;
        height: 50px;
    }
    div.second-menu .btn.btn-link span {
        display: flex;
        vertical-align: middle;
        white-space: pre-line;
    }
    .container {
        width: 100%;
    }
    .catalog-book {
        /*width: 50%;*/
    }
    .cart {
        line-height: 12px !important;
        font-size: 11px !important;
        font-weight: 700;
        text-align: center;
        padding-top: 14px;
    }
    .thumbnails {
        text-align: center;
    }
    .thumbnails .image-preview {
        margin: 10px auto;
    }
    .servicecard>a {
        display: block;
        width: 100%;
        height: 340px;
        overflow: hidden;
    }
    .servicecard img {
        max-height: max-content;
    }
    i.bns.bns-book-clips {
        margin-bottom: 3px;
    }
    div.row.step > div {
        height: auto;
        text-align: center;
    }
    a.tablink {
        font-size: 12px;
    }
}
@media (min-width: 738px) and (max-width: 1024px){
    .servicecard>a {
        height: 200px;
    }

}
@media (min-width: 1024px) {
    .shop-block .catalog-book {
        width: 20%;
    }
}
@media (min-width: 1024px) and (max-width: 1152px) {
    .servicecard>a {
        height: 138px;
    }
  #yw3.navbar-nav>li>a, #yw3.navbar-nav>li>a>span {
    font-size: 13px;
  }
  .nav>li {
    display: block;
  }
  .navbar-default .navbar-nav>li>a {
    display: block;
  }
  /*.hidden-sm {*/
    /*display: inline-block;*/
  /*}*/
    i.bns.bns-book-clips {
        margin-bottom: 3px;
    }
    .container {
        width: 1100px;
    }
    div.second-menu .btn {
        font-size: 12px;
        height: auto !important;
    }

    .btn {
        font-size: 12px;
        white-space: initial;
    }

    .rating-container .caption {
        display: block !important;
        margin-top: 5px;
    }

    .nav-tabs>li>a {
        padding: 10px 10px;
    }

    div.index.about-block {
        height: 750px;
        background-size: auto;
    }

    div.steps-block {
        margin-left: -50px;
    }

    h1.about-header {
        font-size: 30px;
    }

    h1 {
        font-size: 24px;
    }

    a.tablink {
        font-size: 16px;
    }

    h2, .h2 {
        font-size: 18px;
    }

    td.pd30, th.pd30 {
        padding: 20px !important;
        vertical-align: middle !important;
    }

    button.buy, a.buy {
        padding: 0px;
        height: 30px;
        width: 100%;
        border-radius: 15px;
        border: 1px solid #e7e7e7;
        background-color: #ffffff;
    }
    button.buy, a.buy {
        line-height: 28px;
    }
    .buy .fa-heart {
        display: none;
    }
    button.buy i.bns, a.buy i.bns {
        height: 20px;
    }
}
@media screen and (min-width : 1024px) and (max-width : 1024px) {
    .cart {
        line-height: 29px !important;
        text-align: center;
    }
    .catalog-book{
        /*width: 33% !important;*/
    }
    .product-item-price {
        min-width: 230px;
    }
    .container {
        width: 969px;
    }


}
@media screen and (min-width : 1024px) and (max-width : 1152px) {
        .filter-block-body > label.check-container {
            word-break: keep-all;
            white-space: nowrap;
            font-size: 15px;
        }
        div.second-menu .btn {
            display: table;
            height: auto;
        }
        div.second-menu .btn.btn-link span {
            display: table-cell;
            vertical-align: middle;
        }
        img.step-1, img.step-3 {
            left: 307px;
        }
        img.step-1-curve {
            left: 362px;
        }
        .footer-block .pl10.fb {
            font-size: 12px;
        }
        .footer-links  a.black {
            font-size: 13px;
        }
        input[name=calc_tirazh] {
            margin-bottom: 20px;
        }
        .container-fluid.head {
            margin-top: 15px;
        }
        .cardback > p{
            font-size: 12px;
        }
        .cart-total-box {
            padding: 15px;
        }
        .cart-total-box .col-md-9{
            padding-left: 23px;
        }
        .cart-total-box .col-md-3{
            /*padding-left: 0px !important;*/
        }
        .min-width-150 {
            min-width: 150px;
        }
        .cart-position .f24 {
            font-size: 18px;
        }
        .cart-position .cart-thumbnail {
            width: 100px;
        }
}
@media screen and (min-width: 1024px) and (max-width: 1200px) {
      .container-fluid{
        /*padding-left: 0px;*/
    /*padding-right: 0px;*/
  }
  .container .row {
      /*margin-right: 0px;*/
      /*margin-left: 0px;*/
  }
  .container-fluid .row {
      /*margin-right: 0px;*/
      /*margin-left: 0px;*/
  }
  .white-block {
      padding: 0px;
  }
}
@media (min-width: 1200px) and (max-width: 1200px) {
    div.second-menu .btn {
        font-size: 11px;
    }
    .container-fluid{
        padding-left: 0px;
        padding-right: 0px;
    }
    .main-container {
        width: 1160px;
    }
    /*.container {*/
        /*!*width: 1129px !important;*!*/
    /*}*/
    .container.second-menu {
        width: 100% !important;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1366px) {
    img.step-1, img.step-3 {
        left: 428px;
    }
    img.step-1-curve {
        left: 492px;
    }
    .servicecard>a {
        height: 160px;
    }
}
@media screen and (min-width: 1366px) {
    .servicecard>a {
        height: 180px;
    }
}
@media screen and (min-width: 1366px) {
    .servicecard>a {
        /*height: 270px;*/
    }
    /*.container {*/
        /*width: 100% !important;*/
    /*}*/
    /*nav div.collapse.navbar-collapse .navbar-nav {*/
        /*margin-right: 0px;*/
    /*}*/
    /*nav.navbar {*/
        /*margin: 0 30px;*/
    /*}*/
}
@media (min-width: 1024px) {
    .servicecard img {
        height: 170px;
    }
}
@media (min-width : 320px) and (max-width : 360px) {
    .lh12 .col-xs-3, .lh12 .col-xs-8 {
        padding: 0px;
    }
    .servicecard>a {
        display: block;
        overflow: hidden;
        height: 180px;
    }
}
@media only screen and (min-width : 320px) and (max-width : 639px) {
    .cardback {
        /*width: 300px !important;*/
        left: 0px;
        right: 0px;
        margin: 0 auto;
    }
    #cart-body .col-md-8 {
        padding: 0px;
    }
    #cart-body i.bns.bns-cart-delete {
        position: absolute;
        top: 0px;
        right: 35px;
    }
    .cart-position p{
        padding: 0px;
    }
    .text-center  .col-md-3.np {
        text-align: center;
    }
    .container-fluid.head {
        margin-top: 0px;
        height: 170px;
        /*background-size: auto;*/
        background-size: cover;
        background-position: center;
    }
    .container .row {
        margin-right: 0px;
        margin-left: 0px;
    }
    .container-fluid .row {
        margin-right: 0px;
        margin-left: 0px;
    }

    div.second-menu .btn {
        display: block;
    }
    .print-box .btn{
        width: 95%;

    }
    .container {
        width: 100vw;
        max-width: 100%;
        padding: 20px;
    }
    #vidabout {
        max-width: 100%;
        max-height: 300px;
    }
    .second-menu-main {
        /*display: none !important;*/
    }
    .container.second-menu {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: inherit;
        padding-top: 0px;
    }
    img {
        max-width: 300px;
        margin: auto;
    }
    .servicecard img{
        max-height: max-content !important;
    }
    .servicecard .grayback{
        margin: 0 auto;
        width: 300px;
    }
    .servicecard>a {
        display: block;
        overflow: hidden;
        height: 160px;
    }
    div.index.about-block{
        height: initial;
    }
    .about-box {
        margin-top: 0px !important;
        width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        position: initial !important;
    }
    .about-box .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    .footer-links {
        margin-bottom: 15px
    }
    h1 {
        padding: 10px;
        font-size: 22px !important;
    }
    h2 {
        padding: 10px;
    }
    p {
        padding: 10px;
    }
    h1.about-header {
        font-size: 12px;
    }
    span.h1-small {
        font-size: 16px;
    }
    .f18 {
        font-size: 14px !important;
    }
    span.agree-text {
        font-size: 14px;
        line-height: 14px;
    }
    .btn {
        white-space: inherit;
    }
    .index.steps-block {
        margin: 10px;
    }
    .catalog-book {
        /*width: 100%;*/
    }
    nav div.collapse.navbar-collapse, nav div.navbar-collapse {
        display: none !important;
    }
    .navbar-header {
        display: initial;
        margin: 0px !important;
        width: 100%;
    }
    .container.second-menu {
        display: none;
    }


    .filter-block-body > label.check-container {
        font-size: 14px;
        display: block !important;
        width: 100% !important;
    }
    .main-container {
        padding-top: 0px !important;;
    }

    .second-menu.second-menu-main {
        /*padding-top: 60px;*/
    }

    h1.reg {
        padding: 15px;
    }

    .grayback {
        padding: 10px;
        margin: 0 10px;
    }
    .grayback > p {
        margin: 5px;
    }
    div.row.step {
         height: initial;
         margin: initial;
    }
    button.buy, a.buy {
        padding: 0px;
        height: 50px;
        line-height: 50px;
    }
    .quick-add-product-to-cart > .fa-shopping-cart {
        font-size: 24px !important;
    }
    .profile-menu {
        flex-direction: column;
    }
    a.tablink {
        margin: 10px;
    }
    .flex {
        flex-direction: column;
    }
    .input-group-addon {
        display: inherit;
        width: 100%;
    }
    div.index.about-block {
        background-color: #9dc4fb;
        background-image: none;
    }
    .container-fluid {
        margin-right: auto;
        margin-left: auto;
        padding-left: 0;
        padding-right: 0;
        }
    .book-tabs>li>a {
        padding: 5px;
    }
    .book-tabs-content {
        padding:5px;
    }
    div#cart-body {
        padding: 0;
    }
    i.bns.bns-cart-delete {
        margin: 5px;
        float: right;
    }
    .order-form {
        padding-right:0;
    }
    .cart-position {
        padding:5px;
    }
    .notifications.top-right {
        max-width: 100vw;
        margin: auto;
        right: auto;
        left: auto;
    }
    .select2-container {
        max-width: 300px;
    }
    .breadcrumb {
        margin: 0;
    }
    small {
        display: block;
    }
    .shap7_tex {
        font-size: 20px !important;
    }
    .shap_txend {
        font-size: 16px !important;
    }
    .shap_txend2 {
        font-size: 16px !important;
        margin-top: 0 !important;
    }
    .head {
        margin-top: -70px;
    }
    .cart-quantity-decrease, .cart-quantity-increase {
    margin: 0;
    }
    .cart-total-box {
        padding: 10px;
        margin: 10px -15px 0 -15px;
    }
    .fa-exclamation-triangle {
        font-size: 10px;
        padding: 5px;
    }
            #service_orders {
                overflow: scroll;
            }
            #shop_orders {
                overflow: scroll;
            }
            button.buy i.bns, a.buy i.bns {
                height: 50px;
                margin: 10px;
            }
            span.price {
                font-size: 24px !important;
            }

            .container.second-menu.open {
                display: flex;
                position: fixed;
                height: calc(100vh - 50px);
            }
            img.step-1, img.step-1-curve,img.step-2, img.step-2-curve,img.step-3, img.step-3-curve,img.step-4, img.step-4-curve {
                display: none;
            }
            .book-cover {
                margin: auto;
            }
            .rating-container {
                margin-bottom: 10px;
            }
                    /*.collapse.in {*/
        /*display: block !important;*/
    /*}*/
    .pages-divider-medium {
        padding-top: 0px;
        padding-bottom: 20px;
    }
    .second-menu.open .btn {
        margin: 5px;
    }
    .footer-links a.black {
        white-space: initial;
    }
    .cart-total-box .col-md-9{
        padding-left: 42px;
    }
}
@media (min-width : 480px) and (max-width : 480px) {
    .navbar-header {
        width: 470px;
    }
    .servicecard>a {
        display: block;
        overflow: hidden;
        height: 160px;
    }
}
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0)
{
    /*@media (min-width: 1024px) and (max-width: 1024px) {*/
        /*.grayback button.btn-primary {*/
            /*font-size: 12px !important;*/
        /*}*/
    /*}*/
    @media {
        .btn {
            font-size: 12px;
        }
        i.bns.bns-book-clips {
            margin-right: 7px;
            color: white;
        }
        div.second-menu {
            display: -webkit-flex;
            -webkit-box-pack: justify;
            -webkit-justify-content: space-between;
        }
        div.second-menu .btn {
            font-size: 11px;
            margin: 10px 0px;
            line-height: 16px;
        }
        .navbar {
            height: 60px;
        }
        .second-menu-main {
            margin-top: 60px;
            text-align: center;
            display: -webkit-flex;
            -webkit-box-pack: justify;
            -webkit-justify-content: space-between;
        }
        .navbar .container, .navbar-header, nav div.navbar-collapse{
            display: -webkit-flex !important;
        }

        /*.collapse.navbar-collapse {*/
            /*display: -webkit-inline-flex;*/
            /*-webkit-box-pack: justify;*/
            /*-webkit-justify-content: space-between;*/
        /*}*/
        .navbar-nav>li>a {

        }
        .container {
            width: 100% !important;
        }
    }
}