.header {
  width: 100%;
  padding: 30px 0;
  position: fixed;
  top: 0;
  transition: background var(--time) ease-in-out,
    padding var(--time) ease-in-out;
  z-index: 99;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-logo {
  position: relative;
  z-index: 9999;
}

.header-sticky {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header.height {
  height: 100%;
}

/* ------------------------------------------------------------ */

.menu-ul {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  column-gap: 45px;
}

.menu-li:last-child .menu-link {
  color: #ffffff;
  padding-inline: 30px;
  background: var(--color-primary);
  transition: background 0.4s ease-in-out;
  border-radius: 100px;
}
.menu-li:last-child .menu-link:hover {
  background: #272727;
}

.menu-link {
  font-size: 18px;
  padding-block: 12px;
  transition: color var(--time) ease-in-out, background var(--time) ease-in-out;
}

.menu-link:hover,
.active .menu-link {
  color: var(--color-primary);
}

/* ------------------------------------------------------------ */

.has-dropdown {
  position: relative;
}

.sub-menu {
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity var(--time) ease, visibility 0.3s ease,
    transform 0.3s ease;
  z-index: 3;
}

.sub-menu li:not(:first-child) {
  margin-top: 15px;
}

.sub-menu a {
  display: block;
  color: #ffffff;
  white-space: nowrap;
  transition: opacity var(--time) ease-in-out;
}

.sub-menu a:hover {
  opacity: 0.5;
}

.has-dropdown .arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  position: relative;
  background: url(../images/down-arrow.png) no-repeat center;
  background-size: contain;
  transition: transform var(--time) ease-in-out;
  top: 0;
}

.has-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------ */

.menu-icon {
  height: 15px;
  width: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transform: rotate(0);
  transform: rotate(0);
  -webkit-transition: all var(--time) ease-in-out;
  transition: all var(--time) ease-in-out;
  border-radius: 0 4px 4px 0;
  display: none;
  position: relative;
  z-index: 8;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 27px;
  background: #272727;
  border-radius: 4px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0);
  transform: rotate(0);
  -webkit-transition: all var(--time) ease-in-out;
  transition: all var(--time) ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2),
.menu-icon span:nth-child(3) {
  top: 7px;
}

.menu-icon span:nth-child(4) {
  top: 14px;
}

.menu-icon.open span:nth-child(1) {
  top: 10px;
  width: 0;
  left: 50%;
}

.menu-icon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.menu-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.menu-icon.open span:nth-child(4) {
  top: 10px;
  width: 0;
  left: 50%;
}

.menu-icon.open span {
  color: #ffffff;
  background: #ffffff;
}

/* ------------------------------------------------------------  */

@media (min-width: 993px) {
  .sub-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(30px);
    padding: 20px 26px;
    background: var(--color-primary);
    border-radius: 15px;
  }

  .has-dropdown:hover .sub-menu {
    transform: translateY(8px);
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 1600px) {
  .header {
    padding: 20px 0;
  }
}
@media (max-width: 1200px) {
  .menu-ul {
    column-gap: 25px;
  }
  .menu-li:last-child .menu-link {
    padding-inline: 15px;
    column-gap: 9px;
  }
}

@media (max-width: 992px) {
  .menu-icon {
    display: block;
  }
  .navbar {
    position: fixed;
    width: 100%;
    z-index: 8;
    background: rgba(0, 0, 0, 0.878);
    background-size: cover;
    top: 0;
    height: 100%;
    left: -100%;
    right: 0;
    overflow: hidden;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    -webkit-transition: all var(--time) ease-in-out;
    transition: all var(--time) ease-in-out;
  }

  .header .slow {
    left: 0;
  }

  .menu-ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    align-items: center;
  }

  .menu-ul li {
    padding: 0;
  }

  .has-dropdown .arrow {
    filter: invert();
  }

  .menu-ul a {
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #ffffff;
  }
  .menu-ul a {
    display: block;
  }
  .sub-menu li:not(:first-child) {
    margin-top: 25px;
  }
  .sub-menu {
    border-left: 1px solid var(--color-primary);
    padding: 6px 0 6px 15px;
  }
  .menu-li:last-child {
    margin-top: 25px;
  }
}
@media (max-width: 600px) {
  .menu-ul a {
    font-size: 16px;
    line-height: 22px;
  }
  .site-logo {
    max-width: 170px;
  }
}
