.header {
  background-color: transparent;
  padding: 10px 20px;
  position: absolute;
  max-width: 1920px;
  top: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  right: 0;
  z-index: 1000;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

.header__logo .custom-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.header__login-button {
  color: #fff !important;
}

.header__navigation {
  display: flex;
  align-items: center;
}

.header__bl2-logo img{
	height: 72px;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__language-selector {
  position: relative;
}

.header__language-active {
  text-decoration: none;
  color: #ffffff;
  padding: 10px;
  transition: color 0.3s;
}

.header__language-active:hover {
  color: gray;
}

.sub-menu {
  display: none;
  position: absolute;
  width: 150px;
  top: 100%;
  left: 0;
  padding: 10px 0;
  z-index: 999;
}

@media (any-hover: hover) and (pointer: fine) {
  .header__language-selector li:hover .sub-menu {
    display: block;
  }
}

.sub-menu li {
  margin: 0;
  background-color: #ee2424;
}

.sub-menu a {
  color: #fff;
  padding: 8px 12px;
  display: block;
}

.sub-menu a:hover {
  color: gray;
}

.header__nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.header__nav-menu li {
  position: relative;
  margin: 0 15px;
}

.header__nav-menu a {
  text-decoration: none;
  color: #ffffff;
  padding: 10px;
  font-weight: bold;
  transition: all 0.25s ease, filter 0.4s ease;
}

.header__nav-menu a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.header__nav-menu .sub-menu {
  display: none;
  position: absolute;
  width: 248px;
  top: 100%;
  left: 0;
  padding-top: 15px;
  z-index: 999;
}

.header__language-selector .sub-menu {
  width: 100px;
}
@media (any-hover: hover) and (pointer: fine) {
  .header__nav-menu li:hover .sub-menu {
    display: block;
  }
}

.sub-menu li {
  margin: 0;
  padding: 16px 12px;
  background-color: #ee2424;
}

.sub-menu a {
  color: #fff;
  margin: 0;
  padding: 0;
}

.sub-menu a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.header__login-button {
  display: inline-block;
  width: 100px;
  height: 40px;
  background-color: #ee2424;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.header__login-button:hover {
  background-color: #d02020;
  color: white;
}

.header__user-menu {
  width: 300px;
  left: -252px;
}

.header__user-avatar .active {
  display: block !important;
}

.header__user-avatar {
  position: relative;
  margin-left: 15px;
}

.header__nav-svg {
  min-width: 13px;
}

.header__nav-svg-wrapper {
  margin-left: 10px;
  display: inline-block;
}

.header__avatar img {
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

/* LMR */

.header__logo {
  display: flex;
  gap: 16px;
}

.header__logo-divider {
  display: inline-block;
  width: 2px;
  margin-left: 4px;
  background-color: #fff;
  align-self: stretch;
}

/* Burger Menu */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
  transform-origin: center center;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.header__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  padding: 80px 20px 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.header__mobile-menu.active {
  transform: translateX(0);
}

.header__mobile-menu .header__nav-menu {
  flex-direction: column;
  gap: 20px;
}

.header__mobile-menu .header__nav-menu li {
  margin: 0;
}
.header__nav-menu > li {
  z-index: 2;
}
.header__nav-menu > li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -5px -30px;
}

.header__mobile-menu .header__nav-menu a {
  padding: 15px;
  font-size: 18px;
  display: block;
}

.header__mobile-menu .header__login-button {
  margin: 20px 0 0 15px;
  width: 100%;
  max-width: 150px;
}

.header__mobile-menu .header__language-selector {
  margin-top: 20px;
}

.header__mobile-menu .header__user-avatar {
  margin: 20px 0 0 15px;
}
.header__mobile-menu .header__user-avatar .header__user-menu {
  display: none;
  position: static;
  width: 100%;
  left: auto;
  padding: 16px 0 0;
}

.header__mobile-menu .header__user-avatar.active .header__user-menu {
  display: block;
}
.header__mobile-menu .header__user-avatar .header__user-menu li {
  padding: 12px 10px;
}
.header__mobile-menu .header__user-avatar .header__user-item {
  display: block;
  width: 100%;
}

/* Adaptive */
@media (max-width: 1280px) {
  .header__nav-menu a {
    font-size: 14px;
  }

  .header__login-button {
    width: 90px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
  }

  .header__nav-menu li {
    margin: 0 10px;
  }
}

@media (max-width: 1024px) {
  .header {
    position: fixed;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
  }
  .header__logo .custom-logo {
    width: 48px;
    height: 48px;
  }
  .header--lmr {
    background-color: #000;
  }
  .header__container {
    justify-content: flex-end;
  }

  .header__logo {
    order: 2;
    margin-left: auto;
  }

  .header__navigation {
    display: none;
  }

  .header__burger {
    display: flex;
    order: 1;
    margin-right: 20px;
  }

  .header__mobile-menu {
    display: block;
  }

  .header__mobile-menu .header__nav-menu .sub-menu {
    position: static;
    display: none;
    width: 100%;
    padding: 10px 0 0 20px;
  }

  .header__mobile-menu .header__nav-menu li.active .sub-menu {
    display: block;
  }
}
@media (max-width: 768px) {
  .header__logo .custom-logo {
    width: 36px;
    height: 36px;
  }
  .header--lmr .header__logo .custom-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }
  .header__logo .header__lmr-logo {
    width: 38px;
    height: 24px;
    object-fit: contain;
  }
  .header__logo .header__bl-logo,
  .header__logo .header__bl2-logo {
    width: 108px;
    height: auto;
    object-fit: contain;
  }

  .header--bl2 {
    background-color: #171717;
  }

  .header__burger {
    width: 20px;
    height: 14px;
  }
  .header__burger span {
    height: 1px;
  }
  .header__burger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .header__burger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

.header--dark .header__nav-menu a {
  color: #000;
}

.header--dark .sub-menu a {
  color: #ffffff;
}
.header--dark .header__nav-svg path {
  stroke: #000;
}

.header--dark .header__burger span {
  background-color: #000;
}
.header__mobile-menu a {
  color: #fff !important;
}

.header__burger.active span {
  background-color: #fff;
}
.header__mobile-menu .header__nav-svg path {
  stroke: #fff !important;
}
