:root {
  --gapMenu: 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 99;
}

header .header-inner {
  background: #fff;
  position: relative;
  z-index: 5;
}

header nav {
  margin-right: var(--gapMenu);
  height: 100%;
}

header nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

header nav ul li {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--gapMenu);
  position: relative;
  transition: color 0.15s ease-out;
}

header nav ul li.dropdown-menu a .i_dropdown {
  display: block;
  width: 12px;
  height: 12px;
  background: url(../images/icons/i_dropdown.svg) center no-repeat;
  background-size: contain;
  margin-left: 4px;
}
header nav ul li.dropdown-menu:hover,
header nav ul li a:hover {
  color: var(--colorPrimary);
}

header nav ul li.dropdown-menu:hover .i_dropdown,
header nav ul li.dropdown-menu a:hover .i_dropdown {
  background: url(../images/icons/i_dropdown_active.svg) center no-repeat;
  background-size: contain;
}

header .btn-search {
  margin-left: var(--gapMenu);
}

header .hamburger-menu {
  margin-left: var(--gapMenu);
  display: none;
  width: 32px;
  height: 20px;
}

header .hamburger-menu span {
  width: 100%;
  height: 2px;
  display: block;
  background: #000;
  transition: all 0.2s ease;
}

header .hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
}

header .hamburger-menu.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
header .hamburger-menu.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.dropdown-modal {
  position: absolute;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  top: calc(100% - 15px);
  left: 0;
  width: max-content;
  box-shadow: 0px 4px 15px 4px #00000026;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.15s ease-out;
}

header nav ul li.dropdown-menu:hover .dropdown-modal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.dropdown-modal ul {
  display: block;
}

.dropdown-modal ul li {
  justify-content: flex-start;
  text-transform: uppercase;
}

.dropdown-modal ul li a {
  justify-content: flex-start;
  padding: 5px 0;
}

.search-expand {
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10%);
  transition: all 0.15s ease-out;
  position: absolute;
  width: 100%;
}

.search-expand.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.search-expand-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 30px;
}

.search-input {
  position: relative;
  padding: 0 0 16px;
}

.search-input:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(0 0 0 / 15%);
  left: 0;
  bottom: 0;
}

.search-input input {
  border: 0;
  border-radius: 0;
  background-color: #fff;
  width: 100%;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  padding-right: 32px;
}

.search-input input::placeholder {
  color: #989898;
  text-transform: uppercase;
}

.btn-close-search {
  position: absolute;
  top: 2px;
  right: 0;
  width: 20px;
}

.btn-contact {
  background: #2655f1;
  width: 48px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 99px;
}

.btn-contact img {
  filter: brightness(0) invert(1);
}

.panel {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.primary-menu-mobile {
  border-bottom: 1px solid rgba(0 0 0 / 15%);
}

.primary-menu-mobile a,
.primary-menu-mobile .accordion {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 0;
  display: block;
  transition: all 0.15s ease;
}

.second-menu-mobile a {
  padding: 6px 0;
  text-transform: uppercase;
}

.second-menu-mobile:nth-child(1) a {
  padding-top: 0;
}

.second-menu-mobile:nth-last-child(1) {
  padding-bottom: 16px;
}

.primary-menu-mobile a:hover,
.primary-menu-mobile .accordion:hover {
  color: var(--colorPrimary);
  transform: translateX(5px);
}

.primary-menu-mobile .accordion.active {
  color: var(--colorPrimary);
  transform: translateX(0px);
}

.search-tag {
  margin-top: 24px;
}

.search-tag ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.search-tag ul li a {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  border: 1px solid var(--colorPrimary);
  border-radius: 20px;
  padding: 8px 16px;
  display: inline-block;
  color: rgb(0, 0, 0, 0.85);
  transition: all 0.15s ease-out;
}

.search-tag ul li a:hover {
  color: #fff;
  background: var(--colorPrimary);
}

.expand-menu {
  position: absolute;
  width: 100%;
  height: 100svh;
  background: #fff;
  top: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

@media (max-width: 1023px) {
  nav {
    display: none;
  }
  header .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
  }

  .expand-menu {
    visibility: visible;
    transition: all 0.25s ease;
  }
  .expand-menu.is-open {
    opacity: 1;
    pointer-events: visible;
  }
}

@media (max-width: 639px) {
  .logo-site {
    max-width: 120px;
  }

  .search-expand-inner {
    padding: 80px 16px;
  }
}
