.header {
  padding: 8px 0;
}

.header_position {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0;
  z-index: 1000;
}

.bg_color_header {
  background-color: #00001b;
}

.header_container {
  position: relative;
  border: 1px solid #eaeaea;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  /* backdrop-filter: blur(10px); */
}

/* Псевдо-елемент для blur */
.header_container::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  backdrop-filter: blur(10px);
  z-index: -1; /* під всіма елементами */
  border-radius: 0 0 16px 16px; /* збігається з контейнером */
}

.header_navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_logo_link {
  display: block;
  width: 50px;
}

.header_logo_link_position {
  padding: 8px 0;
}

.burger-menu {
  display: block;
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.burger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) {
  top: 0;
}

.burger-menu span:nth-child(2) {
  top: 9px;
}

.burger-menu span:nth-child(3) {
  bottom: 0;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(43deg);
  top: 9px;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-43deg);
  bottom: 9px;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 27, 0.5);
  z-index: 998;
}

.mobile-nav-overlay.active {
  display: block;
}

.header_menu_list {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  z-index: 999;
  transition: left 0.3s ease;
}

.header_menu_list.active {
  left: 0;
}

.mobile_logo_item {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin-bottom: 24px;
}

.mobile_logo_link {
  display: block;
  width: 150px;
}

.mobile_menu_scroll {
  flex: 1;
  overflow-y: auto;
}

.mobile_menu_scroll::-webkit-scrollbar {
  display: none;
}

.header_menu_item {
  border-bottom: 1px solid #eaeaea;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.header_menu_item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.header_menu_link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #00001b;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.header_menu_link:hover {
  color: #ff4b44;
}

.header_menu_link_active {
  color: #ff4b44;
}

@media screen and (min-width: 1024px) {
  .header_logo_link {
    width: 60px;
  }

  .mobile_logo_link {
    width: 190px;
  }

  .header_menu_link {
    font-size: 18px;
  }
}

@media screen and (min-width: 1200px) {
  .header {
    padding: 16px 0;
  }

  .header_position {
    padding: 0;
  }

  .header_logo_link_position {
    padding: 8px 16px 8px 0;
    border-right: 1px solid #eaeaea;
  }

  .header_menu_list {
    padding: 16px 24px 24px;
  }
}

@media screen and (min-width: 1440px) {
  .header_logo_link {
    width: 70px;
  }

  .burger-menu,
  .mobile-nav-overlay {
    display: none !important;
  }

  .header_menu_list {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    overflow: visible;
  }

  .mobile_logo_item {
    display: none;
  }

  .mobile_menu_scroll {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .header_menu_item {
    border-bottom: none;
    width: auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .header_menu_link {
    display: inline-block;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #ff4b44 16.15%, #ff4b44 100%);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 8%;
    transform: none;
    transition: background-size 0.3s ease;
  }

  .header_menu_link:hover {
    background-size: 100% 8%;
  }

  .header_menu_link_active {
    color: #ff4b44;
    background-size: 100% 8%;
  }
}
