.header {
  background-color: #191a1d;
}

.header_top_wrapper {
  border-bottom: 1px solid #282828;
  padding: 8px 0;
}

.header_top_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.header_top_logo_link {
  display: none;
  flex-shrink: 0;
}

.header_form_wrapper {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
  box-sizing: border-box;
}

.header_form {
  width: 100%;
  height: 30px;
  border-radius: 25px;
  padding: 8px 16px 8px 40px;
  border: 1px solid #282928;
  background-color: #010001;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}

input.header_form:-webkit-autofill,
input.header_form:-webkit-autofill:hover,
input.header_form:-webkit-autofill:focus,
input.header_form:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #010001 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.header_form_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 1%;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
}

.header_form_btn_img {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  object-fit: contain;
}

.socials_list {
  display: none;
}

.burger-menu {
  display: block;
  width: 30px;
  height: 30px;
  padding: 4px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  box-sizing: content-box;
  z-index: 1001;
  position: relative;
  left: 1%;
  top: auto;
  transition: all 0.5s ease;
}

.burger-menu.active {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 1002;
}

.burger-menu span {
  display: block;
  position: relative;
  width: 100%;
  height: 2px;
  background-color: #a8a8a8;
  border-radius: 25px;
  margin: 4px 0;
  transition: transform 0.5s ease, opacity 0.5s ease, top 0.5s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 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: #191a1d;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  z-index: 999;
  transition: left 0.5s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header_menu_list::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.header_menu_list.active {
  left: 0;
}

.header_bottom_wrapper {
  padding: 8px 0;
}

.header_bottom_logo_link {
  display: block;
  width: 70px;
  height: 40px;
  margin: 0 auto;
}

.header_menu_link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  padding: 16px 0;
  background-image: linear-gradient(#de0404, #de0404);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: color 0.5s ease, background-size 0.5s ease;
}

.header_menu_link:hover {
  color: #de0404;
  background-size: 100% 3px;
}

.header_menu_link_active {
  color: #de0404;
  background-size: 100% 3px;
}

@media screen and (min-width: 768px) {
  .socials_list {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .socials_link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #3c3f46;
    width: 30px;
    height: 30px;
    transition: all 0.5s ease;
  }

  .socials_link_img {
    width: 15px;
    height: 15px;
    fill: #ffffff;
    object-fit: contain;
  }

  .socials_link:hover {
    background-color: #666666;
  }
}

@media screen and (min-width: 1200px) {
  .header_top_logo_link {
    display: block;
    width: 90px;
    height: 70px;
  }

  .header_bottom_logo_link {
    display: none;
  }

  .burger-menu,
  .mobile-nav-overlay {
    display: none !important;
  }

  .header_menu_list {
    position: static;
    height: auto;
    width: auto;
    max-width: none;
    background: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
  }
}
