.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 101;
  padding-top: 16px;
}

.header-short .container {
  max-width: 1440px;
}

.header__link-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 8px;
}

.header__body {
  border-radius: 360px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 20, 0.98);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 14px 14px 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-align: center;
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 18.333px;
  gap: 13px;
}

.header-logo__text {
    
    @media screen and (max-width:360px) {
        font-size: 16px;
    }
}

.header__drawer {
  display: none;
}

.header__drawer-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* .header__burger--drawer {
  margin-right: 12px;
} */

.header__menu--desktop {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

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

.header__list li {
  margin-left: 10px;
}

.header__guest-action {
  display: flex;
  margin-left: auto;
}

.header__guest-action-item {
  display: flex;
}

.header__link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  padding: 4px 15px;
}

.header__link.active,
.header__link:hover {
  color: var(--primary);
}

@supports (backdrop-filter: blur(30px)) {
  .header__body {
    background: rgba(16, 16, 20, 0.6);
    backdrop-filter: blur(30px);
  }
}

.header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 20px;
  height: 20px;
  z-index: 205;
  background-color: transparent;
  display: none;
}

.header__burger::before,
.header__burger::after {
  content: "";
  background-color: #fff;
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  transition: all 0.5s ease;
}

.header__burger::before {
  top: 0;
}

.header__burger::after {
  bottom: 0;
}

.header__burger span {
  background-color: #fff;
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  top: 9px;
  transition: all 0.5s ease;
}

.header__burger.active::before {
  transform: rotate(45deg);
  top: 9px;
}

.header__burger.active::after {
  transform: rotate(-45deg);
  bottom: 9px;
}

.header__burger.active span {
  transform: translateX(-35px);
}

.header__drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}

.header__drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.header__menu.active {
  display: flex;
}

@media (max-width: 1200px) {
  .header__guest-action {
    display: none;
  }

  .header__menu--desktop {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: max(320px, 84vw);
    background: #101014;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin-left: 0;
    z-index: 200;
  }

  .header__drawer.open {
    transform: translateX(0);
  }

  [dir="rtl"] .header__drawer {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  [dir="rtl"] .header__drawer.open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }

  .header__list {
    flex-direction: column;
    padding: 0;
    width: 100%;
    gap: 16px;
  }

  .header__list li {
    margin: 0;
    width: 100%;
    /* text-align: left; */
  }

  .header__list li .header__link,
  .header__list li {
    width: 100%;
    justify-content: flex-start;
  }

  .header__drawer .language-select .header__link {
    width: fit-content;
    justify-content: flex-start;
    text-align: left;
  }
}

.language-list {
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.language-list li + li {
  margin-top: 4px;
}

.language-list a,
.language-list button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  border: none;
  background: transparent;
  text-align: left;
}

.language-list a:hover,
.language-list button:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.language-list a.active,
.language-list button.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--primary);
}

.language-list button.active .language-select__native-name {
  color: var(--primary);
}

.language-select__native-name {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 18px;
}

.language-select__trigger-label {
  white-space: nowrap;
}

.language-select-dropdown .language-list {
  position: static;
  top: auto;
  right: auto;
  min-width: 100%;
}

.language-select {
  display: inline-flex;
  width: auto;
}

.language-select__trigger {
  justify-content: flex-start;
  text-align: left;
}

.header__drawer .language-select {
  width: auto;
  max-width: 80vw;
}

.header__drawer .language-select__trigger {
  width: auto;
  min-width: 160px;
  max-width: min(240px, 80vw);
}

.header__drawer .header-link {
  width: 100%;
  display: block;
}

.header__drawer .header__dropdown-button {
  width: 100%;
  justify-content: flex-start;
}

.header__drawer .header-link {
  width: 100%;
}

.header__products {
  width: 100%;
}

.header__products-toggle-btn {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  background-color: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.header__products-toggle-ico {
  display: flex;
  transition: transform 0.2s ease;
}

.header__products-toggle-ico.open {
  transform: rotate(180deg);
}

  .header__products-submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    margin-top: 8px;
    gap: 8px;
    padding-block: 8px;
  }

.header__products-submenu.open {
  display: flex;
}

.header__products-submenu-link {
  padding-left: 0;
}
