.header {
  position: fixed;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 40px 0;
  color: white;
  background: linear-gradient(to bottom, #000000, #00000000);
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  position: relative;
}

.lang_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
  background: none;
}

.lang_btn .lang_flag {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}
.lang_btn .arrow {
  font-size: 10px;
  opacity: 0.7;
}

.lang_menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #0f0f0f;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  padding: 6px;
  display: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 1003;
}

.lang.open .lang_menu {
  display: block;
}

.lang_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #ddd;
  user-select: none;
}
.lang_item img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.lang_item:hover {
  background: #1b1b1b;
  color: #fff;
}

@media (max-width: 1024px) {
  .lang_menu {
    margin-left: 7px;
  }
}

.header_container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  gap: 20px;

  a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;

    &:hover {
      color: white;
    }
  }
}

.socials {
  display: flex;
  gap: 12px;

  a {
    background-color: white;
    border-radius: 50%;
    padding: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 16px;
      height: 16px;
    }

    &:hover {
      background-color: #e5e5e5;
    }
  }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;

  span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  &.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  &.open span:nth-child(2) {
    opacity: 0;
  }

  &.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.burger__logo {
  display: none;
  padding: 0px 0px 21px 21px;
}
 .mubilu__lang {
  display: none;
  padding: 20px;
}


@media (max-width: 1200px) {
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: #111;
    flex-direction: column;
    gap: 0;
    padding-top: 34px;
    transition: left 0.3s ease;
    z-index: 1002;

    a {
      padding: 16px 24px;
      font-size: 16px;
      color: white;
      border-bottom: 1px solid #333;
    }

    &.active {
      left: 0;
    }
  }

  .socials {
    display: none;
  }

  .burger {
    display: flex;
  }

  .burger__logo,.mubilu__lang {
    display: block;
  }

    .nav a::after {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white'><path d='M2 1 L8 5 L2 9 Z'/></svg>");
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .header_container {
    padding: 0 20px;
  }

  .lang {
    display: none;
  }

  .mubilu__lang {
    display: block !important;
  }
}
