/*
    Классы, раскрашивающие header.
    В т.ч. классы меню.

    ToDo - проверить, задействованы ли эти классы в цветных css
*/

/* Header */

.clearfix:after, .clearfix:before {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

.b-header {
  height: 110px;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.l-content {
  width: 950px;
  margin: 0 auto;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
    position: relative;
    padding: 0;
}

.b-header__content__logo {
  font-family: "Open Sans", Verdana, sans-serif;
  vertical-align: middle !important;
  
  line-height: 100px !important;
  font-size: 40px;

  color: white;
  height: 110px;
  font-weight: 300;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.b-header__content__logo a {
  color: #fff;
  text-decoration: none;
}


/* NAV desktop */
.b-nav {
  height: 55px;
}

.b-nav__content__element {
  height: 55px;
  line-height: 55px;
  margin-right: 17px;
  float: left;
    list-style: none;
}
.b-nav__content__element .b-icon {
  vertical-align: -2px;
  font-size: 16px;
  margin-right: 6px;
}
.b-nav__content__element .b-icon--huge {
  margin-right: 8px;
  font-size: 20px;
}

.b-nav__content__element--nav--current {
  opacity: 0.5;
}

.b-nav__content__element--button {
  margin-right: 0;
}

.b-nav__content__element--auth {
  float: right;
}

.b-nav__content__element--sandwich {
  display: none;
}


.b-nav__content__element__link {
  font-size: 14px;
  text-decoration: none;
  -moz-transition: color 0.2s ease-out;
  -o-transition: color 0.2s ease-out;
  -webkit-transition: color 0.2s ease-out;
  transition: color 0.2s ease-out;
}

.b-nav__content__element__link--button {
  display: block;
  margin-top: 7px;
  height: 40px;
  line-height: 40px;
  margin-right: 0;
  padding: 0 18px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-transition: background-color 0.2s ease-out;
  -o-transition: background-color 0.2s ease-out;
  -webkit-transition: background-color 0.2s ease-out;
  transition: background-color 0.2s ease-out;
}

/* NAV Mobile*/

.b-aside__nav {
  /* margin-top: 110px; Pt modifications */ 
  border-top: 1px solid #bdbdbd;
}


.b-aside__nav__element {
  border-bottom: 1px solid #bdbdbd;
  height: 42px;
  line-height: 42px;
  vertical-align: middle;
  font-size: 18px;
  position: relative;
}

.b-aside__nav__element__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: 30px;
  text-decoration: none;
  -moz-transition: opacity 0.2s ease-out;
  -o-transition: opacity 0.2s ease-out;
  -webkit-transition: opacity 0.2s ease-out;
  transition: opacity 0.2s ease-out;
}
.b-aside__nav__element__link:hover {
  opacity: 0.7;
}

.b-icon {
  font-family: "entypo";
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.b-item__what_more__text__title .b-icon {
  position: absolute;
  font-size: 34px;
  left: -50px;
}

.b-replies__refresh .b-icon {
  vertical-align: -2px;
  font-size: 20px;
}

/* Mobile icons */

.b-header__mobile__icons {
  display: none;
  
  padding-top: 14px;
  padding-bottom: 15px;
}


.b-header__mobile__icons__sandwich {
  position: relative;
  top: 0px;
  left: 14px;
  padding-right: 30px;
}

.b-header__mobile__icons__login {
  position: absolute;
  top: 0px;
  right: 14px;
  padding-left: 30px;
}

/* */

/* Button */
.b-button {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  position: relative;
  -moz-transition: background-color 0.2s ease-out;
  -o-transition: background-color 0.2s ease-out;
  -webkit-transition: background-color 0.2s ease-out;
  transition: background-color 0.2s ease-out;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.b-button a {
  height: 40px;
  width: 100%;
  display: block;
  text-decoration: none;
}

.b-button--huge {
  height: 70px;
  line-height: 70px;
  width: 300px;
  text-align: center;
  margin: 0 auto;
  display: block;
  font-size: 22px;
  margin-bottom: 40px;
}
.b-button--huge a {
  height: 70px;
}

.b-button--nav {
  height: 40px;
  line-height: 40px;
  margin-top: 8px;
  padding: 0 20px;
  margin-right: 0;
}

/* Каждая витрина по-своему задает отображение таких контролов */
body.authorized .authorized,
body.guest .guest
{
    display: block !important;
}

/*Morder drop-down menu*/

.order_menu{
    position: absolute;
    display: none;
    background-color: #ffffff;
    z-index: 99;
    min-width: 180px;
    box-shadow: 0 3px 9px 0 rgba(0,1,1,0.59);
    top: 50px;
    right: 0;
    border-radius: 5px;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.order_menu_hover:hover .order_menu {
    display: block;
}

.order_menu a {
    text-decoration: none;
}

.order_menu:before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #ffffff transparent;
    content: "";
    top: -10px;
    position: absolute;
    left: 50%;
    margin-left: -10px;
}

.order_menu li:first-child{
    /*margin-top: 10px;*/
}
.order_menu li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    line-height: 20px;
    height: auto;
    list-style: none;
}
.order_menu li:last-child {
    border-bottom: none;
}
.order_menu .morder-ico{
    vertical-align: middle;
    font-size: 25px;
}
.order_menu .name {
    vertical-align: middle;
    font-size: 14px;
}

.b-aside__nav__element .name, .b-aside__nav__element .morder-ico {
    vertical-align: middle;
}

.mobile_nav_bar{
    display: none;
}

@media only screen and (max-width: 960px) {
    /* Header */
    
    .l-content {
        width: 95%;
    }
    /* NAV desktop */
    .b-nav__content__element--sandwich {
        display: block;
    }
    
    /* NAV MOBILE */
  .tabs__mobilenav__back .b-icon {
    position: relative;
    top: 1px;
    font-weight: bold;
    margin-right: 3px;
    font-size: 15px !important;
  }
  
    .tabs__mobilenav__next .b-icon {
        position: relative;
        top: 1px;
        font-weight: bold;
        margin-left: 3px;
  }
}

@media only screen and (max-width: 920px) {
    /* Header */
    .b-header {
        height: 45px;
    }
    
    .b-header__content__logo {
          line-height: 55px !important;
          height: 45px;
          width: 100%;
          text-align: center;
    }
    
    .b-header__content__logo a {
        font-size: 30px;
    }
   /* NAV desktop */
    .b-nav {
        display: none;
    }
    
    #nav_desktop {
        display: none !important;
    }
    
    /* NAV MOBILE */
     .b-aside__nav {
        /* margin-top: 45px; */
        margin-top: 0;
    }

    .mobile_nav_bar{
        display: block !important;
    }
    
    #top_mobile_icons {
        display: block !important;
        margin-left: 10px;
        float: left;
    }

    #top_mobile_icon_auth {
        /*display: block !important;*/
        margin-right: 10px;
        float: right;
    }
    
    .b-header__mobile__icons {
        display: block;
    }
    
}