.navbar-toggle {
  padding-left: 8px !important;
  padding-right: 8px !important;
  height: 40px;
  display: none;
  border-color: rgba($black, .6) !important;

  &:not(.collapsed) {
    .icon-bar {
      position: relative;
      background-color: rgba($black, .6);
      left: 2px;

      @include transform-origin(10%);

      &:first-child {
        @include rotate(45deg)
      }
      &:nth-child(2) {
        @include scale(0);
      }
      &:last-child {
        @include rotate(-45deg)
      }
    }
  }

  &:focus {
    outline: 0;
    background: transparent;
  }

  &:hover {
    background: transparent !important;
    .icon-bar {
      background-color: rgba($black, .6);
    }
  }

  .icon-bar {
    background-color: rgba($black, .6);
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    @include transition(all .2s ease);
  }

  .icon-bar+.icon-bar {
    margin-top: 4px;
  }
}

.navbar-collapse {
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;

  @include clearfix;

  &.in {
    overflow-y: auto;
  }

  @media all and (max-width: $screen-tablet) {
    padding: 0;
    position: fixed;
    top: 84px;
    background: #fff;
    left: 0;
    right: 0;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
    text-align: center;
    visibility: hidden;
    overflow: hidden;
    height: 0 !important;
    z-index: 110;
    @include transition(all 0.40s ease 100ms);

    .btn--stroke {
      margin-left: 0 !important;
      margin-top: 20px !important;
      width: 130px;
      opacity: 0;
      @include transition(transform 0.45s ease, opacity 0.45s ease-out);
      @include transform(translateY(-24px));
      @include transition-delay(700ms)
    }

    .social {
      opacity: 0;
      @include transition(transform 0.45s ease, opacity 0.45s ease-out);
      @include transform(translateY(-24px));
      @include transition-delay(700ms)
    }

    .nav {
      float: none !important;
      margin: 0;
      width: 100%;
      text-align: center;
      display: block;
      visibility: hidden;
      @include transition(visibitity 0.45s ease);

      >li {
        float: none;
        display: block;
        margin: 0 0 10px;
        @include transition(all 0.45s ease, opacity 0.45s ease-out);
        @include transform(translateY(-24px));
        opacity: 0;

        &:nth-child(1) {
          @include transition-delay(250ms)
        }
        &:nth-child(2) {
          @include transition-delay(400ms)
        }
        &:nth-child(3) {
          @include transition-delay(550ms)
        }
        &:nth-child(4) {
          @include transition-delay(500ms)
        }
        &:nth-child(5) {
          @include transition-delay(550ms)
        }
        &:nth-child(6) {
          @include transition-delay(600ms)
        }
        &:nth-child(7) {
          @include transition-delay(650ms)
        }

        &.active {
          a {
            color: $black !important;
          }
        }

        > a:not(.btn) {
          text-transform: none;
          font-size: 20px;
          line-height: normal;
          letter-spacing: 0;
          color: rgba($black, .6) !important;
        }
      }
    }

    &.collapse.in {
      padding: 20px 20px 95px;
      display: block;
      visibility: visible;
      top: 68px;
      height: 100% !important;
      height: calc(100% - 68px) !important;

      .nav {
        visibility: visible;
        > li {
          @include transform(translateY(0));
          opacity: 1;
        }
      }

      .btn--stroke, .social {
        @include transform(translateY(0));
        opacity: 1;
      }

      .fixed & {
        top: 60px;
        height: calc(100% - 60px) !important;
      }
    }
  }

  @media all and (max-width: $screen-mobile-old) {
    top: 50px !important;

    &.collapse.in {
      height: 100% !important;
      height: calc(100% - 50px) !important;

      .fixed & {
        height: calc(100% - 50px) !important;
      }
    }
  }
}

@media (max-width: $screen-tablet) {
  .navbar-toggle {
    display: block;
  }

  .collapse {
    height: 0;
    overflow: hidden;
  }
}

@media (max-width: $screen-mobile-old) {
  .navbar-toggle {
    width: 30px;
    height: 30px;
    padding-left: 7px !important;
    padding-right: 7px !important;
    border-width: 1px;

    .icon-bar {
      width: 14px;
      height: 1px;

      + .icon-bar {
        margin-top: 3px;
      }
    }
  }
}

.nav-tabs {
  padding: 0;
  border-bottom-color: $border;
  margin-right: 0;

  > li > a:not(.btn) {
    border: 0;
    border-bottom: 2px solid transparent;
    color: rgba($black, .6);
    font-weight: $fw-semi;

    @include rem(font-size, 18px);
    @include rem(padding, 11px 20px);
  }

  @media all and (max-width: 539px) {
    margin-right: -15px !important;
    width: auto;
  }
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
  border: 0;
  border-bottom: 2px solid $primary;
  color: $primary;
}

.tab-pane {
  ul {
    list-style: none;
    li {
      color: $black;
      position: relative;

      @include rem(margin-bottom, 15px);

      &:before {
        color: $primary;
        content: "\2022";
        position: absolute;
        right: 100%;
        top: -2px;
        line-height: normal;

        @include rem(font-size, 28px);
        @include rem(margin-right, 11px);
      }
    }
    .li {color: $black;}

    + h3, + h4, + h2 {
      @include rem(margin-top, 45px);
    }
  }
}

.nav-tabs {
  padding-left: 0 !important;

  @include rem(margin-bottom, 44px !important);

  sup {
    color: $primary;
  }

  > li {
    margin-bottom: 0 !important;

    > a {
      font-size: 18px;
      letter-spacing: 0;
      color: rgba($black, .6) !important;
      margin-right: 0;

      @include rem(font-size, 18px);

      &:hover {
        color: rgba($black, 1) !important;
      }
    }

    &.active {
      > a {
        color: rgba($black, 1) !important;
      }
    }
  }
}

.nav-tabs > li > a:not(.btn) {
  background: transparent !important;
}

.nav-tabs sup {
  font-weight: normal;
  top: 0;
  position: static;

  @include rem(margin-left, 3px);
  @include rem(font-size, 16px)
}

.nav_scroll {
  overflow: hidden;
  border-bottom: 1px solid #e1e1e1;

  @include rem(height, 50px);
  @include rem(margin-bottom, 44px);

  .nav-tabs {
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    font-size: 0;
    overflow: hidden;
    overflow-x: auto;
    padding-bottom: 20px;
    border-bottom: 0;
    width: auto;
    display: block;
    white-space: nowrap;


    > li {
      float: none;
      display: inline-block;
      vertical-align: top;
    }
  }

  .card__actions {
    @include rem(padding, 10px 0)
  }

  @media (max-width: $screen-landscape) {
    margin-left: -30px;
    margin-right: -30px;

    .nav-tabs {
      padding-left: 14px !important;
      padding-right: 30px !important;
    }
  }

  @media (max-width: $screen-mobile) {
    margin-left: -15px;
    margin-right: -15px;

    .nav-tabs {
      padding-left: 10px !important;
      padding-right: 15px !important;
    }
  }
}