.main-header {
  box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.1);
  &--two {
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  &--three {
    position: absolute;
    box-shadow: none;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 91;
  }

  &__btn {
    color: $paroti-black;
    font-size: 24px;
    transition: all 500ms ease;
    &:hover {
      color: $paroti-base;
    }
  }

  &__btn + &__btn {
    margin-left: 30px;
  }

  &__toggler {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 45px;
    height: 45px;
    background-color: $paroti-gray;
    padding: 10px;
    transition: all 500ms ease;
    margin-left: 30px;

    @include devices(xl) {
      display: none;
    }

    &:hover {
      background-color: $paroti-black;

      span {
        background-color: #ffffff;
      }
    }

    span {
      width: 100%;
      height: 2px;
      background-color: $paroti-black;
      display: block;
      transition: all 500ms ease;

      &:nth-child(2) {
        margin-top: 4px;
        margin-bottom: 4px;
      }
    }
  }

  &--three &__toggler {
    background-color: $paroti-base;
  }
}

.topbar {
  display: none;

  @include devices(lg) {
    display: block;
  }
  &--three {
    background-color: #fff;
  }
  .container-fluid {
    @include devices(lg) {
      padding-left: 30px;
      padding-right: 30px;
    }

    @include devices(xl) {
      padding-left: 80px;
      padding-right: 80px;
    }
  }

  &__inner {
    background-color: $paroti-base;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 20px;
    padding-right: 0px;

    @include devices(xl) {
      padding-left: 40px;
      padding-right: 40px;
    }
  }

  &--three &__inner {
    background-color: transparent;
    padding-left: 0;
    @include devices(xl) {
      padding-left: 0;
      padding-right: 0;
    }
  }

  &__info {
    display: flex;
    align-items: center;
    margin: 0;

    li {
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      display: flex;
      align-items: center;

      + li {
        margin-left: 30px;
      }

      i {
        color: $paroti-secondary;
        font-size: 14px;
        margin-right: 10px;
      }

      a {
        color: inherit;
        transition: all 500ms ease;

        &:hover {
          color: $paroti-black;
        }
      }
    }
  }

  &--three {
    .topbar__info li {
      color: $paroti-text;
      a:hover {
        color: $paroti-black;
        text-shadow: 0 0 1px currentColor;
      }
    }
  }

  &__social {
    margin-left: auto;
    background-color: #ce4a0b;
    padding: 5px 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    a {
      color: #ffffff;
      transition: all 500ms ease;
      font-size: 14px;

      + a {
        margin-left: 25px;
      }

      &:hover {
        color: $paroti-black;
      }
    }
  }

  &--three &__social {
    background-color: rgba(0, 0, 0, 0);
    padding-left: 0;
    padding-right: 0;
    a {
      color: $paroti-black;
      &:hover {
        color: $paroti-base;
      }
    }
  }

  &__links {
    align-items: center;
    margin: 0;
    margin-left: 40px;
    display: none;

    @include devices(xl) {
      display: flex;
    }

    li {
      font-size: 13px;
      font-weight: 500;
      color: #ffffff;

      &:not(:first-child)::before {
        content: "/";
        margin-left: 9px;
        margin-right: 9px;
      }

      a {
        color: inherit;
        transition: all 500ms ease;

        &:hover {
          color: $paroti-black;
        }
      }
    }
  }

  &--three &__links {
    li {
      color: $paroti-text;
      a:hover {
        color: $paroti-black;
        text-shadow: 0 0 1px currentColor;
      }
    }
  }
}

.main-menu {
  &--three {
    .container-fluid {
      --paroti-black: #fff;
      --paroti-text: #fff;
      justify-content: space-between;
    }
  }
  .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;

    @include devices(lg) {
      padding-left: 30px;
      padding-right: 30px;
    }

    @include devices(xl) {
      padding-top: 0;
      padding-bottom: 0;
      padding-left: 80px;
      padding-right: 80px;
    }
  }

  &__list {
    display: none;
    @include reset-ul;

    @include devices(xl) {
      display: flex;
      align-items: center;
      margin-left: 155px;
    }

    > li {
      position: relative;
      padding: 38px 0;

      + li {
        margin-left: 5px;

        @media (min-width: 1210px) {
          margin-left: 15px;
        }
      }

      > a {
        color: $paroti-text;
        font-weight: 500;
        font-size: 16px;
        transition: all 500ms ease;
        display: block;
        padding: 3px 25px;
      }

      &:hover,
      &.current {
        > a {
          text-shadow: 0 0 1px currentColor;
          color: $paroti-black;
          background-color: $paroti-gray;
        }
      }

      > ul {
        left: 0;
        top: 100%;
        @include subnav-ul;

        > li {
          position: relative;

          > a {
            @include subnav-anchor;
          }

          > ul {
            left: 100%;
            top: 0%;
            @include subnav-ul;

            > li {
              > a {
                @include subnav-anchor;
              }

              > ul {
                display: none;
              }
            }
          }

          &:hover > ul {
            opacity: 1;
            visibility: visible;
          }
        }
      }

      &:hover > ul {
        opacity: 1;
        visibility: visible;
      }
    }
  }
  &--three {
    .main-menu__list {
      margin-left: 0;
    }
    .main-menu__list > li > ul,
    .main-menu__list > li > ul > li > ul {
      --paroti-text: #{$paroti-text};
    }

    .main-menu__list > li:hover > a,
    .main-menu__list > li.current > a {
      background-color: rgba(255, 255, 255, 0.1);
    }
  }
  &__right {
    display: flex;
    align-items: center;
    margin-left: auto;

    .thm-btn {
      margin-right: 30px;
      margin-left: 40px;
      display: none;

      @media (min-width: 1485px) {
        display: inline-flex;
      }
    }
  }

  &--three &__right {
    margin-left: 0;
    .thm-btn {
      margin-right: 0;
      &:hover {
        color: $paroti-base;
      }
    }
  }

  &__cta {
    align-items: center;
    display: none;

    @media (min-width: 1700px) {
      display: flex;
    }

    &__icon {
      background-color: $paroti-gray;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 54px;
      height: 54px;
      transition: all 500ms ease;

      i {
        font-size: 26px;
        color: $paroti-primary;
        transition: all 500ms ease;
      }
    }

    &:hover &__icon {
      background-color: $paroti-secondary;

      i {
        color: #ffffff;
      }
    }

    &__text {
      line-height: 1;
      margin-left: 14px;

      span {
        line-height: 1;
        font-size: 13px;
        font-weight: 500;
        color: $paroti-text;
        position: relative;
        display: inline-block;

        &::after {
          content: "";
          position: absolute;
          top: 23%;
          left: 111%;
          width: 12px;
          height: 17px;
          background-image: url(../images/shapes/header-btn-arrow.png);
          background-repeat: no-repeat;
          z-index: 10;
          animation: btnIconMove 4s linear 0ms infinite;
        }
      }

      a {
        line-height: 1;
        font-weight: bold;
        font-size: 16px;
        color: $paroti-black;
        display: block;
        margin-top: 10px;
        transition: all 500ms ease;

        &:hover {
          color: $paroti-primary;
        }
      }
    }
  }
}

.sticky-header--cloned {
  position: fixed;
  z-index: 991;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  visibility: hidden;
  transform: translateY(-120%);
  transition: transform 500ms ease, visibility 500ms ease;
  box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
  &.main-menu--three {
    background-color: $paroti-black;
  }
}

@media (max-width: 1199px) {
  .sticky-header--cloned {
    display: none !important;
  }
}

.sticky-header--cloned.sticky-fixed {
  transform: translateY(0);
  visibility: visible;
}
