.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;

  .navbar {
    padding: 22px 0;
    border-bottom: 2px solid rgba(141, 160, 185, 0.2);
    background-color: $color-text-white;

    @media screen and (max-width: 768px) {
      padding: 10px 0;
    }

    .navbar-brand {
      @media screen and (max-width: 768px) {
        position: relative;
        z-index: 10;
      }

      img {
        width: 160px;
        height: 42px;
      }
    }

    .navbar-call {
      display: none;

      @media screen and (max-width: 767px) {
        display: block;
        position: relative;
        z-index: 10;
      }
    }

    .navbar-toggler {
      border-color: transparent;
      font-size: 27px;
      padding: 0;

      &:focus {
        box-shadow: none;
      }

      .navbar-toggler-icon {
        background-image: url(../../../assets/img/icons/menu.svg);

        @media screen and (max-width: 768px) {
          position: relative;
          z-index: 10;
        }
      }

      &[aria-expanded="true"] {
        .navbar-toggler-icon {
          background-image: url(../../../assets/img/icons/close.svg);
        }
      }

      &::before {
        content: "";
        width: 2px;
        background-color: rgba(141, 160, 185, 0.2);
        height: 100%;
        position: absolute;
        top: 0;
        right: 20%;
      }
    }

    .navbar-nav {
      align-items: center;

      @media screen and (max-width: 768px) {
        position: absolute;
        width: 100%;
        height: 100vh;
        background-color: $color-greyLight;
        top: 0;
        left: 0;
        padding: 104px 0 0 0;
        align-items: flex-start;
      }

      .nav-item {
        @media screen and (max-width: 768px) {
          width: 100%;
        }

        .nav-link {
          font-size: 16px;
          font-weight: 600;
          font-family: $font-family-sora;
          color: $color-black;
          line-height: 1.13;
          letter-spacing: 0.2px;
          padding: 10px 16px;

          @media screen and (max-width: 768px) {
            font-size: 20px;
            padding: 21px 16px;
          }

          &.show {
            color: $color-primary;
          }
        }

        .btn-blue {
          margin: 0 42px 0 16px;

          @media screen and (max-width: 768px) {
            margin: 0 16px 0 16px;
            display: block;
            position: absolute;
            bottom: 90px;
            width: calc(100% - 32px);
          }
        }

        .nav-call {
          font-size: 24px;
          font-weight: 600;
          color: $color-black;
          font-family: $font-family-sora;
          position: relative;

          @media screen and (max-width: 768px) {
            display: none;
          }

          &::before {
            content: "";
            position: absolute;
            top: -33px;
            width: 2px;
            height: 96px;
            background-color: rgba(141, 160, 185, 0.2);
            left: -22px;

            @media screen and (max-width: 768px) {
              display: none;
            }
          }
        }

        .play-store {
          display: none;

          @media screen and (max-width: 768px) {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            text-align: center;
            display: block;

            .nav-play {
              display: inline-block;
              width: 157px;
              height: 48px;
              margin-right: 16px;

              &:last-child {
                margin-right: 0;
              }

              img {
                width: 100%;
                height: 100%;
              }
            }
          }

          @media screen and (max-width:320px) {
            .nav-play {
              width: 142px;
            }
          }
        }

        &.dropdown {

          .dropdown-toggle {
            &::after {
              border: none;
              background-image: url(../../../assets/img/icons/dropdown-black.svg);
              width: 16px;
              height: 16px;
              vertical-align: bottom;
              background-repeat: no-repeat;
              transition: all 0.6s;

              @media screen and (max-width: 768px) {
                position: absolute;
                right: 16px;
              }
            }

            &.show {
              &::after {
                transform: rotate(180deg);
                filter: invert(15%) sepia(89%) saturate(4975%) hue-rotate(229deg) brightness(79%) contrast(114%);
              }
            }
          }

          .menu-flip {
            transform-origin: 50% 0;
            transform: perspective(59.524vw) rotateX(-70deg);
            transition: opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform .5s cubic-bezier(.165, .84, .44, 1);
            transition: transform .5s cubic-bezier(.165, .84, .44, 1), opacity .5s cubic-bezier(.165, .84, .44, 1);
            transition: transform .5s cubic-bezier(.165, .84, .44, 1), opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform .5s cubic-bezier(.165, .84, .44, 1);
            opacity: 0;

            .dropdown-menu {
              box-shadow: 0 1.8px 4.2px 0 rgba(0, 0, 0, 0.02),
                0 4.5px 10.5px 0 rgba(0, 0, 0, 0.04),
                0 9.2px 21.4px 0 rgba(0, 0, 0, 0.04),
                0 19px 44.2px 0 rgba(0, 0, 0, 0.06),
                0 52px 121px 0 rgba(0, 0, 0, 0.08);
              border: none;
              padding: 0;

              @media screen and (max-width: 768px) {
                background-color: transparent;
                box-shadow: none;
              }

              .dropdown-item {
                font-size: 16px;
                font-weight: 600;
                padding: 16px 32px 16px 32px;
                color: $color-secondary;

                @media screen and (max-width: 768px) {
                  font-size: 18px;
                }

                &:active {
                  background-color: transparent;
                  color: $color-secondary;
                }
              }

              &[data-bs-popper] {
                margin-top: 30px;

                @media screen and (max-width: 768px) {
                  margin-top: 0;
                }
              }
            }
          }


          &:hover {
            .menu-flip {
              transform: perspective(59.524vw) rotateX(0deg);
              transition: opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform 1s cubic-bezier(.19, 1, .22, 1);
              transition: transform 1s cubic-bezier(.19, 1, .22, 1), opacity .5s cubic-bezier(.165, .84, .44, 1);
              transition: transform 1s cubic-bezier(.19, 1, .22, 1), opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform 1s cubic-bezier(.19, 1, .22, 1);
              z-index: 1;
              opacity: 1;

              @media screen and (max-width:768px) {
                transform: none;
                transition: none;
              }
            }
          }
        }

        .sub-item {
          display: none;

          @media screen and (max-width: 768px) {
            display: block;
            padding-left: 16px;
          }

          .nav-item {
            .nav-link {
              font-size: 18px;
              font-weight: 400;
            }
          }
        }
      }
    }
  }
}