.navbar {
  width: 100%;
  padding: 55px 75px 10px;
  box-sizing: border-box;
  text-align: right;
  color: #fff;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  @extend %clearfix;
  transition-duration: .3s;
  @media (max-width: 1100px) {
    padding-left: 10px;
    padding-right: 10px;
  }
  @media (max-width: 900px) {
    background-color: #111a2f;
    padding: 14px 20px;
    .btn {
      display: none!important;
    }
  }
  .logo {
    float: left;
    position: relative;
    z-index: 9;
    img {
      transition-duration: .3s;
    }
    &:before {
      content: '';
      position: absolute;
      background-image: url(/theme/img/logo-mini.png);
      width: 48px;
      height: 42px;
      opacity: 0;
      transition-duration: .3s;
      @media (max-width: 1100px) {
        width: 25px;
        background-size: 100% auto;
        background-position: left center;
        background-repeat: no-repeat;
      }
      @media (max-width: 900px) {
        background-image: url(../img/logo-mobile.png);
        width: 100%;
        height: 100%;
      }
    }
    @media (max-width: 1100px) {
      //width: 160px;
      width: 140px;
    }
    @media (max-width: 900px) {
      float: none;
      margin: 0 auto;
      display: block;
    }
  }
  .iconfont-search {
    line-height: 41px;
    padding: 0 10px;
    display: block;
  }
  .nav {
    font-size: 0;
    margin: 0 -9px;
    &__item {
      display: inline-block;
      vertical-align: top;
      font-size: 15px;
      margin: 0 9px;
      &:nth-child(3) {
        @media (min-width: 1250px) {
          margin-right: 33px;
          margin-left: 93px;
        }
      }
    }

    .lang {
      margin: 0;
      padding: 30px 0 0 0; //41
      //height: 41px;
      height: 0;
      position: relative;
      @extend %iconfont-chevron;
      overflow: hidden;
      &:before {
        position: absolute;
        right: 5px;
        top: 0;
        //height: 30px;//41
       // line-height: 30px; //32

        height: 30px;
        line-height: 23px;
      }
      &.open {
        //height: 82px;
        overflow: visible;
        &:before {
          transform: scaleY(-1);
        }
        /*li {
          &:not(.active) {
            box-shadow: ;
          }
        }*/
        background-color: #fff;
        color: #0a0934;
        li{
          text-align: left;
          &.active{
            color: #0a0934;
          }
        }
      }
      li {
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        padding: 0;

        &.active {
          padding: 0 25px 0 5px;
          position: absolute;
          top: 0;
          //z-index: -1;
          line-height: 30px;//41
        }
        &:not(.active) {
          line-height: 24px;
          width: 100%;
          box-sizing: border-box;
          background-color: #fff;
          //color: #0a0934;
          color: #7c7c7c;
          &:last-child{
            position: relative;
           &:after{
             background: #fff;
             height: 7px;
             top:100%;
             width: 100%;
             left: 0;
             display: block;
             content: '';
             position: absolute;
           }
          }
          &:hover {
            color: #fff;
          //  background-color: #0a0934;
            background-color: #ffa800;
          }
          padding: 0;
          a{
            padding: 0 25px 0 5px;
            display: block;
          }
        }
      }
      margin-top: 7px;
      @media (max-width: 900px) {
        margin-top: 0;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;
      }
    }
  }
  .nav-wrapper {
    visibility: hidden;
    //opacity: 0;
    //transform: translateY(-100%);
    transition-duration: .3s;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 8;
    //background-color: #f9f9f9;

    @media (max-width: 900px) {
      background-color: #e9e9e9;
    }
    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 0;
      //right: 734px;
      transition-duration: .3s;
      width: 0;


      //transform: translateX(-100%);


      background-image: url(../img/navbar-bg.jpg);
      background-position: 0 center;
      background-repeat: no-repeat;
      //background-size: cover;
      background-color: #f9f9f9;
      //background-size: auto 100%;
      background-size: 100% auto;
      @media (max-width: 900px) {
        content: none;
      }
    }
    nav {
      background-color: #f9f9f9;
      padding: 140px 170px;
      width: 734px;
      box-sizing: border-box;
      //display: inline-block;
      display: flex;
      flex-direction: column;
      justify-content: center;
      color: #898989;
      font-size: 20px;
      text-transform: uppercase;
      font-weight: 700;
      position: absolute;
      text-align: left;
      top: 0;
      bottom: 0;
      //top: 50%;
      //transform: translateY(-50%);
      right: 0;

      transition-duration: .3s;
      transform: translateX(100%);
      @media (max-width: 900px) {
        background-color: transparent;
      }
      ul {
        margin: 0;
        padding: 0;
        .open,
        .active {
          > a {
            color: #f39200;
          }
        }
        li {
          display: block;
          margin: 0 0 20px;



          transition-duration: .3s;
          transition-delay: 0s;
          opacity: 0;
          transform: translateX(50px);
          @for $i from 1 through 10 {
            &:nth-child(#{$i}) {
              transition-delay: .2s + $i/10;
            }
          }
          @media (max-width: 900px) {
            margin: 0 0 10px;
            a {
              display: block;
              padding: 10px;
            }
          }
          @media(max-width: 320px){
            //margin-bottom: 0;
            //a{
            //  padding: 5px;
            //}
          }
          ul {
            font-size: 16px;
            font-weight: 400;
            box-sizing: border-box;

            transition-duration: .3s;
            overflow: hidden;
            //height: 0;
            li {
              &:first-child {
                margin-top: 20px;
                @media (max-width: 900px) {
                  margin-top: 10px;
                }
              }
            }
            @media (max-width: 900px) {
              //padding-top: 10px;
              font-size: 12px;
            }
          }
          &.empty {
            height: 20px;
            @media (max-width: 900px) {
              //display: none;
              & + li {
                background-color: #dddddd;
              }
            }
          }
          &:not(.open) {
          //&:not(:hover) {
            > ul {
              height: 0 !important;
            }
          }
        }
      }
      @media (max-width: 900px) {
        padding: 30px 0;
        //padding: 0;
        //margin-top: 60px;

        font-size: 16px;
        width: 100%;
        text-align: center;
        background-image: url(../img/mobile-menu-bg.png);
        background-position: center center;
        background-repeat: no-repeat;
      }

      @media(max-width: 768px){
        display: block;
        overflow-x: hidden;
        overflow-y: scroll;

      }
    }
    @media(max-width: 768px){
      box-sizing: border-box;
      padding-bottom: 115px;
    }
  }
  .toggle__menu {
    background-color: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    height: 41px;
    cursor: pointer;
    padding-right: 48px;
    position: relative;
    z-index: 9;
    transition-duration: .3s;
    &:focus {
      outline: none!important;

    }
    span {
      width: 30px;
      height: 1px;
      position: absolute;
      background-color: #ffffff;
      right: 0;
      display: block;
      &:nth-child(1) {
        top: 9px;
        transition: top .15s .15s linear, background .3s 0s linear, transform .15s 0s linear;
      }
      &:nth-child(2) {
        top: 19px;
        opacity: 1;
        transition: opacity 0s .15s linear, background .3s 0s linear;
      }
      &:nth-child(3) {
        top: 29px;
        transition: top .15s .15s linear, background .3s 0s linear, transform .15s 0s linear;
      }
    }
    @media (max-width: 1100px) {
      font-size: 0;
      padding-left: 0;
      padding-right: 36px;
    }
    @media (max-width: 900px) {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      span {
        color: #fff;
      }
    }
  }

  @media (min-width: 768px) {
    box-sizing: border-box;
    &.no-top {
      background-color: #020422;
      //padding-top: 26px;
      //padding-bottom: 10px;
      padding-top : 15px;
      padding-bottom: 0px;
      z-index: 15;
      @media (max-width: 1100px) {
        padding-top: 14px;
        padding-bottom: 14px;
      }
      .logo {
        img {
          opacity: 0;
        }
        &:before {
          opacity: 1;
        }
      }
    }
  }


  .sub-menu{
    li{
      box-sizing: border-box;
    }
  }




  &.open {
    .toggle__menu {
      color: #898989;
      span {
        background-color: #f39200;
        &:nth-child(1) {
          top: 19px;
          transition: top .15s 0s linear, background .3s 0s linear, transform .15s .15s linear;
          transform: rotate(45deg);
        }
        &:nth-child(2) {
          opacity: 0;
        }
        &:nth-child(3) {
          top: 19px;
          transition: top .15s 0s linear, background .3s 0s linear, transform .15s .15s linear;
          transform: rotate(-45deg);
        }
      }
    }
    .nav-wrapper {
       visibility: visible;
       opacity: 1;
       //transform: translateY(0);

      &:before {
        //transform: translateX(0);
        width: calc(100% - 734px);
      }
      nav {
        transform: translateX(0);
        @media(max-width: 768px){
          top: 50%;
          transform: translateX(0) translateY(-50%);
        }
        ul {
          li {
            transform: translateX(0);
            opacity: 1;
          }
        }
      }
     }
    .lang {
      color: #5d5d5d;
    }

    .logo {
      img {
        opacity: 1;
        @media (max-width: 900px) {
          opacity: 0;
        }
      }
      &:before {
        opacity: 0;
        @media (max-width: 900px) {
          opacity: 1;
        }
      }
    }
  }
}