//блок с полосками

//общая высота блока
$menu-mob-height:86;
//$menu-mob-height:54;

//ширина и высота полосок
$menu-mob-div-width:14;
$menu-mob-div-height:2;
//отступ полосок
$menu-mob-div-margin-top:4;
////////////////////////
$allHeight:($menu-mob-div-height*3)+($menu-mob-div-margin-top*2);
$menu-mob-div-margin-topFirst:($menu-mob-height - $allHeight)/2;
$menu-mob-div-margin-topAll:$menu-mob-div-margin-topFirst + ($menu-mob-div-margin-top*2) + ($menu-mob-div-height*2);
///////////////////////
.menu_mob {
  position: absolute;
  cursor: pointer;
  background: #439829;
  width: 48px;
  height:  $menu-mob-height + px;
  top: 0;
  right: 0;
  z-index: 2;
}

.menu_mob div {
  position: absolute;
  width: $menu-mob-div-width + px;
  height: $menu-mob-div-height + px;
  background: #fff;
  top: 0;
  margin-top: $menu-mob-div-margin-topAll + px;
  left: 50%;
  margin-left: -($menu-mob-div-width/2) + px;
}
.menu_mob div:first-child {
  margin-top: $menu-mob-div-margin-topFirst + px;
}
.menu_mob div:first-child:before {
  width: 100%;
  height: 100%;
  position: absolute;
  background: #fff;
  top: 0;
  left: 0;
  margin-top: $menu-mob-div-height + $menu-mob-div-margin-top + px;
  content: '';
}

//блок с скрытым меню

$menu-mob-hidden-width:380;
$menu-mob-hidden-bg: #64696d;
$menu-mob-hidden-li-border-bg: #515151;
$menu-mob-hidden-li-height:40;
$close-menu-mob:$Menu-bg;

.mob-overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
  @include Opacity(0.8);
  top: 0;
  left: 0;
  cursor: default;
}




.close-menu-mob {
  position: relative;
  width: 100%;
  height: $menu-mob-hidden-li-height + 12 + px;
  background: $close-menu-mob;
  text-transform: uppercase;
  color: #fff;
  line-height: $menu-mob-hidden-li-height + 12 + px;
  font-size: 18px;
  font-weight: 700;
  padding-left: 15px;
}
.close_mob {
  content: '';
  position: absolute;
  right: 10px;
  top: 0;
  width: 32px;
  height: 100%;
  cursor: pointer;
  @include svgIcon;
  &:before {
    display: block;
    color: #fff;
    line-height: $menu-mob-hidden-li-height + 12 + px;
    text-align: center;
    font-size: 16px;
    content: "\e905";
    @include Transition(0.05);
  }
  &:active {
    &:before {
      @include Scale(1.35);
    }
  }

}
.mob-catalog-close {
  @extend .close-menu-mob;
  &:before {
    @extend .close_mob;
  }
}

.off-scroll {
  overflow-y: hidden;
  height: 100%;
  position: relative;
}

.mobile-menu-hidden {
  width: 400px !important;
  height: 100%;
  position: fixed;
  margin-right: -400px;
  right: 0;
  background: $Main-bg;
  z-index: 1;
  opacity: 0;
  @include Transition(0.6);
  overflow-y: scroll;
  padding-bottom: 80px;
}



.close-mobile-menu {
  position: absolute;
  right: 0;
  top: 0;
  width: 54px;
  height: 54px;
  background: $violet-color-hover;
  cursor: pointer;
  text-align: center;
  &:before {
    @include svgIcon;
    content: '\e90f';
    font-size: 18px;
    color: #fff;
    line-height: 54px;
  }
}
.close-lang-mob {
 position: relative;
  height: 54px;
  @include wfl;
  background: $violet-color;

  .menu-lang {
    padding-left: 68px;
    li {
      padding-left: 13px;
      float: left;
      &:first-child {
        padding-left: 0;
        padding-right: 13px;
      }

      a {
        line-height: 54px;
        color: #fff;
        text-decoration: underline;
      }


      &.active {
        a {
          text-decoration: none;
          cursor: default;
        }
      }
    }
  }

}


.mobi-menu-primary-ul {
  li {
    float: left;
    list-style: none;
    width: 100%;
    a {
      display: block;
      line-height: 43px;
      width: 100%;
      float: left;
      color: $main-color;
      text-align: center;
      border-bottom: 1px solid $border-items;
      //font-weight: 700;
      text-decoration: none !important;
    }

  }
}

.mobi-menu-primary-cab {
  width: 100%;
  display: table;
   li {
     //min-width: 100px;
     list-style: none;
     display: table-cell;
     text-align: center;
     height: 43px;
     position: relative;
     border-left: 1px solid $border-items;
     border-bottom: 1px solid $border-items;
     &:first-child {
       border-left: 0;
     }
     a {
       //font-weight: 700;
       color: $main-color;
       height: 43px;
       line-height: 43px;
       display: block;
       text-transform: uppercase;
       text-decoration: none !important;
       p {
         display: inline-block;
       }
     }
   }
}

.icon-menu-mob {
  font-style: normal;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  margin-left: 10px;
  text-align: center;
  position: relative;
  &:before {
    position: absolute;
    @include svgIcon;
    color: #89888e;
    font-size: 16px;
    width: 16px;
    height: 100%;
    line-height: 16px;
    left: -16px;
    top: 0;
  }
  &.icon-menu-mob-1 {
    &:before {
      content: '\e90b';
    }
  }

  &.icon-menu-mob-2 {
    &:before {
      content: '\e900';
    }
  }

  &.icon-menu-mob-3 {
    &:before {
      content: '\e90f';
    }
  }
}

.mobi-menu-catalog {
  color: $main-color;
  border-bottom: 3px solid #ced0d6;
  @include wfl;
  ul {
    @include wfl;
    overflow: hidden;
  }

  li {
    @include wfl;
    background: #fff;
    cursor: pointer;
    position: relative;
    .first-a-mob {
      color: $main-color;
      text-decoration: none;
      font-size: 12px;
      text-transform: uppercase;
      padding-left: 80px;
      padding-right: 25px;
      position: relative;
      line-height: 14px;
      padding-top: 1px;
      background: #fff;
      display: block;
      z-index: 3;
      height: 52px;
      width: 100%;
      cursor: pointer;
      a {
        height: 52px;
        display: table-cell;
        vertical-align: middle;
        text-decoration: none;
        color: $main-color;
      }

      span.ico-catalog {
        position: absolute;
        width: 34px;
        height: 34px;
        text-align: center;
        left: 15px;
        top: 50%;
        margin-top: -17px;
        b {
          display: table-cell;
          vertical-align: middle;
          width: 34px;
          height: 34px;
        }
        img {
          border: 0;
          max-width: 34px;
          max-height: 34px;
          vertical-align: middle;
          &.all-catalogs {
            //height: 3px;
            //margin-top: -1px;
          }
        }
      }


      &:before {
        // content: '';
        position: absolute;
        right: 0;
        z-index: 4;
        top: 0;
        background: #f5f5f5;
      }

    }

    &.has-list {
      &:after {
        @include svgIcon;
        color: #c3c3c3;
        content: '\e917';
        font-size: 11px;
        position: absolute;
        right: 14px;
        top: 17px;
        @include Transition(0.2);
      }
    }

    &.active {
      &.has-list {
        &:after {
          @include Rotate(90);
        }
      }
      .sub-menu-hidden-mob {

      }
      .sub-menu-hidden-mob {
        max-height: 1000px;
        @include Transition(0.7);
      }
    }
  }

}


.sub-menu-hidden-mob {
  overflow: hidden;
  max-height: 0;
  @include Transition(0.4);

  ul {
    li {
      padding-right: 0;
      display: table;
      width: 100%;
      background: $Main-bg;
      border-bottom: 0;
      border-top: 1px solid #e1e1e1;
      a {
        display: table-cell;
        vertical-align: middle;
        height: 43px;
        padding-left: 68px;
        color: $main-color;
        text-decoration: none !important;
      }
    }
  }

}

@media (max-width: 991px) {
  .mobile-menu-hidden {
    display: block !important;
  }
  .off-scroll {
    position: fixed;
  }
}

@media (max-width: 850px) {
  .hidden-tablet-850 {
    display: none !important;
  }

}
@media (max-width: 767px) {
  .menu_mob {
    height: 54px;
    div {
      margin-top: 32px;
      &:first-child {
        margin-top: 20px;
      }
    }
  }
}
@media (max-width: 450px) {
  .mobile-menu-hidden {
    width: 310px !important;
    margin-right: -310px;
  }
}
@media (max-width: 380px) {
  #menu-mob-hidden {
    width: 347px;
    margin-left: - 347px;
    &.opens {
      &.visible {
        margin-left: 0;
      }
    }
  }
}
