header {
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 999;
  background-color: #fff;
  border-bottom: 1px solid #d8d8d8;
}

header.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
}

header nav {
  width: 100%;
}

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

nav .nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
}

nav .nav-links .link {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: #424242;
  height: 56px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  border-bottom: 3px solid transparent;
  line-height: 24px;
}

nav .nav-links .link:hover {
  border-bottom: 3px solid #01437b;
  color: #01437b;
  font-weight: 500;
}

nav .links {
  display: flex;
  gap: 32px;
}

nav .search-box {
  position: relative;
  width: 325px;
  max-width: 100%;
  height: 56px;
  border-radius: 12px;
  background: #f1f1f1;
}

nav .search-box input {
  width: 100%;
  height: 100%;
  padding: 0 20px 0 20px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

nav .search-box svg {
  position: absolute;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
}

nav .search-box:focus-within svg {
  transform: translate(180px, -50%);
}

nav .links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  text-decoration: none;
  width: 226px;
  background-color: #ee1610;
  color: #e6f2f5;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  border-radius: 12px;
  transition: background-color ease-in 0.3s;
}

nav .links a:hover {
  background-color: #001d2b;
}

.btn-menu {
  display: none;
}

.menu-mobile {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #fff;
  transition: height 0.3s ease;
  z-index: 9999;
}

.menu-mobile.active {
  height: calc(100vh - 116px);
}

.nav-links li.has-submenu {
  position: relative;
}

.nav-links li.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 50px;
}

.nav-links .submenu {
  position: absolute;
  top: 85px;
  left: 0;
  width: 492px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
}

.nav-links .submenu li {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  padding-inline: 36px;
}

.nav-links .submenu li a {
  display: block;
  color: #424242;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.nav-links .submenu li a:hover {
  color: #001d2b;
}

.nav-links li.has-submenu:hover > .submenu,
.nav-links .submenu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0px);
}

.nav-links .has-submenu .arrow {
  transition: transform 0.25s ease;
}

.nav-links li.has-submenu:hover > a .arrow {
  transform: rotate(180deg);
}

.nav-links li.has-submenu > a .arrow path {
  transition: fill 0.25s ease;
}

.nav-links li.has-submenu:hover > a .arrow path {
  fill: #01437b;
}

nav .nav-links .link:hover {
  border-bottom: 3px solid #01437b;
  color: #01437b;
  font-weight: 500;
}

.nav-links li.has-submenu:hover > a.link {
  border-bottom: 3px solid #01437b;
  color: #01437b;
  font-weight: 500;
}

@media (max-width: 1440px) {
  nav .search-box {
    width: 212px;
  }

  nav .search-box:focus-within svg {
    transform: translate(70px, -50%);
  }
}

@media (max-width: 1200px) {
  nav .links a {
    display: none;
  }
}

@media (max-width: 1024px) {
  nav .nav-links {
    display: none;
  }

  nav .links a {
    display: flex;
  }

  .btn-menu {
    display: block;
    border: none;
    background: transparent;
  }

  .menu-mobile ul {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .menu-mobile li {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f4f4f4;
  }

  .menu-mobile li a {
    color: #424242;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav .search-box {
    width: 212px;
  }

  nav .search-box:focus-within svg {
    transform: translate(70px, -50%);
  }
}

@media (max-width: 767px) {
  nav .links .search-box,
  nav .links a {
    display: none;
  }
}
