.nav-top {
  header {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(196, 196, 196, 0.3);

    @include mq("desktop", max) {
      position: relative;
      z-index: 22;
    }

    @include mq("tablet-wide", max) {
      height: 45px;
      border-bottom: unset;
      position: unset;
    }

    .container {
      display: flex;
      justify-content: space-between;
      align-items: center;

      @include mq("tablet-wide", max) {
        // flex-direction: column;
        justify-content: flex-start;
      }
    }

    &--left {
      display: flex;
      @include mq("tablet-wide", max) {
        display: none;
      }
      & > a {
        // display: inline-block;
        &:not(:last-of-type) {
          margin-right: 28px;
        }

        &:hover {
          color: $color-blue;
          text-decoration: underline;
        }
      }
    }

    &--right {
      & > a {
        display: inline-block;
        &:not(:last-of-type) {
          margin-right: 28px;
        }
        @include mq("tablet-wide", max) {
          display: none;
        }
      }
      // @include mq("tablet", max) {
      //   justify-content: flex-start;
      // }

      @include mq("tablet-wide", max) {
        position: absolute;
        z-index: 22;
      }
    }
  }

  footer {
    .container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    height: 170px;
    padding-top: 20px;

    .just-phone {
      display: inline-block;
      margin-top: 5px;

      p {
        margin-bottom: 0;
        font-weight: 600;
        font-size: 18px;
        color: $color-darker-blue;
      }
      span {
        display: block;
        font-size: 14px;
        opacity: 0.5;
      }
    }

    &--left {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      & > a {
        font-size: 24px;
        display: inline-block;
        margin-right: 28px;
        color: $color-blue;
      }
    }

    &--right {
      & > a {
        &:not(:last-of-type) {
          margin-right: 28px;
          display: inline-block;
        }

        display: inline-block;
      }
      .sign {
        color: $color-blue;

        &:hover {
          text-decoration: underline;
        }
      }

      .registr {
        color: $color-blue;
        background: #ffffff;
        border: 2px solid #228bcd;
        border-radius: 6px;
        padding: 9px 20px;

        &:hover {
          background-color: $color-blue;
          color: white;
        }
      }
    }

    @include mq("tablet-wide", max) {
      display: none;
    }
  }

  position: relative;

  .navbar-brand {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: repeating-linear-gradient(rgba(0, 0, 0, 0) , rgba(0, 0, 0, 0) 40px, #fff 40px, #fff 100%);
    padding: 20px;

    span {
      display: block;
      margin-top: 5px;
      font-weight: bold;
      font-size: 18px;
      line-height: 26px;
      text-align: center;
      text-transform: uppercase;
      color: #000000;
    }

    @include mq("tablet-wide", max) {
      position: relative;
      transform: unset;
      top: 0;
      left: 0;
      margin-right: 0;
      padding: 10px;

      span {
        font-size: 16px;
      }

      img {
        max-width: 100px;
      }
    }
  }

  @include mq("tablet-wide", max) {
    position: unset;
  }
}

.navbar {
  background-color: $color-blue;
  padding: 0;
  height: 65px;

  .container {
    padding-right: 15px;
    padding-left: 15px;

    height: 100%;
  }

  &-collapse {
    height: 100%;

    @include mq("tablet-wide", max) {
      position: fixed;
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      width: 89%;
      overflow-y: auto;
      right: -100%;
      top: 0;
      transform: translateX(0);
      height: 100vh;
      min-height: 100vh;
      background-color: $color-darker-blue;
      z-index: 21;
    }
    &.show {
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
      transform: translateX(-112%);
    }
  }

  &-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100%;

    @include mq("tablet-wide", max) {
      display: block;
      padding-top: 50px;
      min-height: 100%;
    }

    .nav {
      &-item {
        height: 100%;
        &:not(:nth-last-child(2)) {
          position: relative;

          &::after {
            position: absolute;
            content: "";
            width: 6px;
            height: 6px;
            display: block;
            background: #ffffff;
            opacity: 0.2;
            @extend %v-c;
            right: -25px;
            top: 45%;
            transform: rotate(-45deg);
            @include mq("tablet-wide", max) {
              display: none;
            }
          }
        }

        i {
          display: none;
          position: absolute;
          right: 0px;
          color: white;
          z-index: 222;
          top: 5px;
          right: -5px;
          padding: 10px;
          // width: 30px;
          // height: 30px;
          // display: flex;
          // justify-content: center;
          // align-items: center;
          transition: transform 0.2s ease-in-out;
          // border-radius: 50%;
        }



        position: relative;

        &:hover {
          transition: 0.2s;
          .drop-one {
            @include mq("tablet-wide", min) {
              opacity: 1;
              visibility: visible;
              top: 65px;
              transition: 0.2s;
            }
          }
          background-color: $color-dark-blue;
          @include mq("tablet-wide", max) {
            background-color: transparent;
          }
        }

        &:nth-last-of-type(2) {
          @include mq("desktop-wide", max) {
            .drop-one {
              left: unset !important;
              right: 0;

            }
          }
        }
        @include mq("tablet-wide", max) {
          width: auto;
          height: auto;
          background-color: transparent;
          margin-left: 30px;
          margin-right: 30px;
          display: block;
          border-bottom: 1px solid rgba(255, 255, 255, 0.5);
          padding-top: 12px;
          padding-bottom: 12px;

          i {
            display: block;
          }
        }
      }

      &-link {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #ffffff;
        padding: 9px 15px;
        @include mq("tablet-wide", max) {
          align-items: flex-start;
          justify-content: flex-start;
          padding-left: 0;
          padding-left: 0;
          height: auto;
          padding-top: 0px;
          padding-bottom: 0px;
        }
      }
    }

    .drop-one {
      position: absolute;
      left: 0;
      top: 75px;
      background: #ffffff;
      box-shadow: 0px 15px 15px rgba(34, 139, 205, 0.15);
      z-index: 22;

      list-style: none;
      padding: 0;
      margin: 0;
      opacity: 0;
      visibility: hidden;
      padding: 20px 0;

      @include mq("tablet-wide", max) {
        // background-color: ;
        position: unset;
        top: unset;
        height: 0;
        width: auto;
        transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out,
        visibility 0.2s ease-in-out;
        background-color: transparent;
        // opacity: 1;
        // visibility: visible;
        left: unset;
        padding: 0;
        margin-left: 15px;
        box-shadow: unset;
        // display: none;

        i {
          font-size: 14px;
          top: 0px;
          right: 5px;
          padding: 10px;

          // &.is-active {
          //   transform: rotate(45deg)
          // }
        }

        &.is-active {
          height: 100%;
          opacity: 1;
          visibility: visible;
          & > li {
            height: 100%;
            opacity: 1;
            visibility: visible;
            & > a {
              visibility: visible;
              opacity: 1;
            }
          }
        }
      }

      li {
        color: $color-blue;
        // transition: 0.2s;
        a {
          display: block;
          padding: 12px 20px;
          min-width: 250px;
          font-size: 14px;
          transition: 0.2s;

          @include mq("desktop", max) {
            min-width: 225px;
          }
          @include mq("tablet-wide", max) {
            width: 100%;
            visibility: hidden;
            opacity: 0;
            transition: all 0.3s ease-in-out;
            padding-left: 0;
            padding-right: 0;
            padding-top: 6px;
            padding-bottom: 6px;
          }
        }
        &:hover {
          @include mq("tablet-wide", min) {
            color: $color-dark-blue;
            background-color: rgba($color: $color-blue, $alpha: 0.04);
            .drop-two {
              visibility: visible;
              opacity: 1;
            }
          }
        }
        @include mq("tablet-wide", max) {
          color: white;
        }
      }

      & > li {
        position: relative;
        @include mq("tablet-wide", max) {
          height: 0;
          opacity: 0;
          visibility: hidden;
        }
      }
    }

    .drop-two {
      padding: 20px 0;
      display: block;
      position: absolute;
      opacity: 0;
      z-index: 22;
      visibility: hidden;
      right: -250px;
      @include mq("desktop", max) {
        right: -225px;
      }
      // transition: 0.2s;
      top: -5px;
      background: #ffffff;
      box-shadow: 0px 15px 15px rgba(34, 139, 205, 0.15);
      list-style: none;
      margin: 0;

      @include mq("tablet-wide", max) {
        // background-color: ;
        opacity: 0;
        visibility: hidden;
        left: unset;
        padding: 0;
        right: unset;
        position: unset;
        top: unset;
        height: 0;
        width: auto;
        transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out,
          visibility 0.2s ease-in-out;
        background-color: transparent;
        // opacity: 1;
        // visibility: visible;
        left: unset;
        padding: 0;
        margin-left: 15px;
        margin-right: 15px;
        box-shadow: unset;
        // display: none;

        & > li {
          position: relative;
        }

        &.is-active {
          height: 100%;
          opacity: 1;
          visibility: visible;
          & > li {
            & > a {
              visibility: visible;
              opacity: 1;
            }
          }
        }
      }
    }
  }

  &-toggler {
    position: absolute;
    right: 15px;
    top: 12px;
    z-index: 22;
    padding: 0;
  }

  @include mq("tablet-wide", max) {
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 22;
  }
}
