/*bootstrap*/
@media (max-width: 1200px){
  #depart{
    margin-right: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199px){
  #up .phone, #up .address{
    width: 300px;
  }
  #up .phone:after {
    top: -3px;
  }
  #up .contacts {
    display: table;
    margin: 0 0 0 auto;
    padding: 5px 0 0 0;
  }
  #nav nav {
    margin: 0 -15px;
  }
  #nav nav ul li {
    margin: 0 5px 0 0;
  }
  #nav nav ul li a {
    font-size: 15px;
    line-height: 15px;
  }
  #nav .search {
    position: absolute;
    z-index: 1;
    right: -10px;
    top: 0;
  }

  #up .slogan {
    text-align: center;
    padding: 10px 0 0 0;
  }
  header .header-title {
    margin: 0 15px;
    padding: 25px 0;
  }
  header .container{
    /*padding: 0;
    margin: 0;*/
  }
  .but{
    z-index: 2;
  }
  .header-action{
    position: relative;
  }
  #cert .cert-gallery{
    width: 500px;
    display: inline-block!important;
  }
  #cert {
    text-align: left;
  }
  #content .container{
    padding: 20px 15px;
  }
  .order .container {
    padding: 20px 15px;
  }

  #content .advantage {
    text-align: left;
    font-size: 0;
    width: 100%;
  }
  #content .advantage li {
    width: 33%;
    font-size: 13px;
    line-height: 13px;
    display: inline-table;
  }
  #schema .steps .steps-wrap .col-md-3:nth-child(even) .steps-item:after{
    display: none;
  }
  #schema .steps .steps-wrap .col-md-3:first-child .steps-item:after {
    -o-transform: rotate(180deg)!important;
    -ms-transform: rotate(180deg)!important;
    -moz-transform: rotate(180deg)!important;
    -webkit-transform: rotate(180deg)!important;
  }
  #schema .steps .steps-wrap .col-md-3:nth-child(odd) .steps-item:after {
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  .order {
    background-color: #fff;
  }
  .order .index-order{
    max-width: 570px;
    margin: 17px auto;
    display: table;
  }
  #logos ul {
    text-align: center;
  }

  .departure {
    height: 435px;
    padding: 20px 15px 10px 15px;
    margin: 20px 0 0 0;
  }
  .order .title {
    font-size: 36px;
    line-height: 36px;
    margin: 14px 0 18px 0;
  }
  .order.staff-order form textarea {
    height: 138px;
  }
  #content .awards .awards-item {
    margin: 0;
    float: left;
    display: inline-block;
    padding: 0 0 10px 30px;
    background-position: 0 0;
  }
  #products .product-item span {
    font-size: 14px;
    line-height: 14px;
  }
}

/*bootstrap*/
@media (min-width: 768px) and (max-width: 991px){
  #nav nav ul li a span {
    padding: 5px 15px;
    margin: 0;
    list-style: none;
  }
  #nav nav ul {
    text-align: center;
  }
  #nav nav {
    margin: 0 -15px;
  }
  #nav nav ul li {
    margin: 0 5px 0 0;
  }
  #nav .search {
    position: absolute;
    z-index: 1;
    right: -10px;
    top: 1px;
  }
  #up .slogan {
    text-align: center;
    padding: 10px 0 0 0;
  }
  header .header-title {
    margin: 0 15px;
    padding: 25px 0;
  }
  header .container{
    /*padding: 0;
    margin: 0;*/
  }
  .but{
    position: relative;
    /*right: -100px;*/
    z-index: 2;
  }
  .header-action{
    position: relative;
  }
  #cert .cert-gallery{
    width: 500px;
    display: inline-block!important;
  }
  #cert {
    text-align: left;
  }
  #content .container{
    padding: 0 15px 20px 15px;
  }
  .order .container {
    padding: 20px 15px;
  }

  #content .advantage {
    text-align: left;
    font-size: 0;
    width: 100%;
  }
  #content .advantage li {
    width: 33%;
    font-size: 13px;
    line-height: 13px;
    display: inline-table;
  }
  #schema .steps .steps-wrap .col-md-3:nth-child(even) .steps-item:after{
    display: none;
  }
  #schema .steps .steps-wrap .col-md-3:first-child .steps-item:after {
    -o-transform: rotate(180deg)!important;
    -ms-transform: rotate(180deg)!important;
    -moz-transform: rotate(180deg)!important;
    -webkit-transform: rotate(180deg)!important;
  }
  #schema .steps .steps-wrap .col-md-3:nth-child(odd) .steps-item:after {
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  .order {
    background-color: #fff;
  }
  .order .index-order{
    max-width: 570px;
    margin: 17px auto;
    display: table;
  }
  #products .container{
    max-width: 590px;
  }
  #logos ul {
    text-align: center;
  }

  .departure {
    height: 435px;
    padding: 20px 15px 10px 15px;
    margin: 20px 0 0 0;
  }
  .order .title {
    font-size: 36px;
    line-height: 36px;
    margin: 14px 0 18px 0;
  }
  .order form textarea {
    /*height: 175px;*/
    /*height: 147px;*/
  }
  .order.staff-order form textarea {
    /*height: 138px;*/
  }
  #content .awards .awards-item {
    margin: 0;
    float: left;
    display: inline-block;
    padding: 0 0 10px 30px;
    background-position: 0 0;
  }

}
@media (min-width: 320px) and (max-width: 767px){
  body{
    padding-top: 46px;
  }
  .order .subtitle {
    font-size: 12px;
    line-height: 16px;
    display: block;
  }
  .departure {
    padding: 20px 15px 500px 15px;
  }

  #nav nav {
    margin: 0 -15px;
  }
  #nav nav ul li {
    margin: 0 5px 10px 0;
  }
  #nav .search {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 1px;
  }
  #up .slogan {
    text-align: center;
    padding: 10px 0 0 0;
  }
  header .header-title {
    margin: 0 15px;
    padding: 25px 0;
    font-size: 45px;
    line-height: 45px;
    text-align: center;
  }
  header .container{
    /*padding: 0;
    margin: 0;*/
  }
  header.inner .breadcrumb {
    text-align: center;
  }
  header.inner .but{
    position: relative;
    right: 0;
    z-index: 2;
    margin: 2px auto 14px auto;
  }
  .but{
    position: relative;
    right: 0;
    z-index: 2;
    margin: 2px auto 14px auto;
  }
  .header-action{
    position: relative;
  }
  #cert .cert-gallery{
    width: 300px;
    display: inline-block!important;
  }
  #content .certificates .cert-item {
    padding: 0 2px;
  }
  #content .certificates .certificates-title {
    width: 150px;
    margin: 0 0 5px 0;
  }
  #content .certificates {
    padding: 0 12px 0 12px;
    margin-bottom: 20px;
  }
  .certificates .cert-gallery{
    width: 265px;
    display: inline-block!important;
  }
  #cert {
    text-align: left;
    padding: 0 0 15px 0;
  }
  .order .container {
    padding: 20px 15px;
  }
  #content .advantage {
    text-align: left;
    font-size: 0;
    padding: 25px 40px;
    width: 100%;
  }
  #content .advantage li {
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 13px;
  }
  #depart{
    /*background-image: url("/sites/all/themes/motor/images/order-mobile.png");
    background-position: right bottom;*/
  }
  #schema .steps .nav li {
    width: 50%;
  }
  #schema .steps .steps-wrap .steps-item:after{
    display: none;
  }

  .order {
    background-color: #fff;
  }
  .order .index-order{
    max-width: 570px;
    margin: 17px auto 0 auto;
    display: table;
  }
  #products .container{
    max-width: 268px;
  }
  #logos ul {
    text-align: center;
  }
  #up .phone span, #up .phone a{
    float: none;
  }
  #up .contacts-wrap{
    padding: 0;
  }
  #up .phone, #up .address{
    float: none;
    margin-right: 15px;
  }
  #up .contacts {
    margin: 0 0 15px 0;
    width: 100%;
  }
  #up .phone:after {
    width: 62px;
    height: 62px;
    top: 0;
    right: -20px;
  }
  #up .phone {
    padding: 4px 20px 4px 5px;
  }
  #up .address {
    padding: 7px 40px 7px 20px;
  }
  header .header-bg .row{
    margin: 0;
  }
  header .header-bg .col-xs-6{
    padding: 0;
  }
  #nav nav.open{
    height: inherit;
    overflow: visible;
  }
  #nav nav{
    height: 46px;
    overflow: hidden;
    padding-right: 30px;
  }
  #nav {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1;
  }
  #nav nav button{
    display: table;
  }
  .order .container {
     padding: 20px 15px;
  }


  header .header-bg{
    height: 190px;
  }
  header .header-left{
    height: 190px;
    background-size: contain;
  }
  header .header-wrap{
    height: 190px;
    background-size: contain;
  }
  header .header-wrap:after{
    height: 190px;
  }
  #cert .cert-title-wrap {
    height: inherit;
    float: none;
    padding-bottom: 20px;
  }
  #cert .cert-title {
    top: 0;
    right: 0;
  }
  #logos ul li {
    padding: 2px 0;
  }
  #logos ul li:hover:before, #logos ul li:hover:after{
    display: none;
  }
  footer {
    font-size: 16px;
    line-height: 18px;
    text-align: center;
  }
  #products .title {
    margin: 0 0 22px 0;
  }
  #cert .cert-gallery {
    display: block!important;
  }
  #content.content-inner .title {
    margin: 0 0 20px 0;
    text-align: center;
  }
  #content.content-inner p {
    font-family: 'arsenalregular';
    font-size: 16px;
    line-height: 24px;
    color: #021a30;
    text-align: center;
  }
  #content .awards .awards-item {
    padding: 0 0 15px 30px;
    background-position: 0 0;
  }

  #content .staff .staff-item {
    width: 225px;
    margin: 0 auto 10px auto;
  }
  #content .gallery .col-md-3 {
    width: 25%;
  }
  #content .advantages img{
    margin: 0 auto 10px auto;
    display: table;
  }
  #content .advantages p{
    text-align: left;
  }
}

@media (max-width: 1365px){}
@media (min-width: 1366px){}
@media (min-width: 768px) and (max-width: 1199px){}
@media (min-width: 992px) and (max-width: 1199px){}
@media (min-width: 768px) and (max-width: 991px){}

@media (max-width: 971px) {}

@media (max-height: 420px) {}

@media (max-width: 419px) {
  .popup {
    width: 300px;
    padding: 27px 30px 37px 30px;
  }
}

@media (max-width: 767px) and (min-width: 320px){
header .header-bg .container {
    background-image: url(../images/yamaha.png);
    background-position: initial;
    /* background-repeat: no-repeat; */
    height: 350px;
    background-size: contain;
}
}
@media (max-width: 500px) and (min-width: 320px) {
    header .header-bg .container {
        background-image: url('../images/yamaha.png');
        background-position: initial;
        /* background-repeat: no-repeat; */
        height: 190px;
        background-size: cover;
    }
}
