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

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

.site-logo {
  position: absolute;
  z-index: 9999;
}
.site-logo img{
  width: 70px;
  transition: width var(--time) ease-in-out;
}

.header-sticky {
  background: #ffffff;
  box-shadow: 0px 0px 54px 0px rgba(0, 0, 0, 0.07);
}

.header-sticky .site-logo img{
  width: 50px;
}



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

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

.menu-link {
  display: block;
  padding-block: 42px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--time) ease-in-out, background var(--time) ease-in-out, padding var(--time) ease-in-out;
}

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

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

.has-dropdown {
  position: relative;
}

.sub-menu {
  padding: 20px 26px;
  width: fit-content;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  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: #212121;
  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: 861px) {
  .menu-ul li:nth-child(3) {
    margin-left: 200px;
  }
  .header-sticky .menu-link {
    padding-block: 25px;
  }
}

@media (max-width: 1600px) {
  .header {
    padding: 12px 0;
  }
  .menu-ul {
    column-gap: 28px;
  }
  .menu-link {
    padding-block: 30px;
  }
}
@media (max-width: 1200px) {
  .menu-ul {
    column-gap: 20px;
  }
}

@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;
  }

  .menu-ul li {
    padding: 0;
  }

  .menu-link {
    padding-block: 0;
  }

  .sub-menu,
  .menu-ul li + li {
    margin-top: 15px;
  }

  .menu-ul a {
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
    color: #ffffff;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }
  .sub-menu li:not(:first-child) {
    margin-top: 8px;
  }
  .sub-menu {
    padding: 15px;
    border-radius: 10px;
  }
  .header .container {
    justify-content: space-between;
  }
  .site-logo {
    position: relative;
    margin: auto;
    right: -15px;
  }
  .menu-ul{
    padding-left:0;
  }
}
