.header {
  position: fixed;
  padding-left: 0;
  z-index: 10;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  min-height: 80px;
  max-height: 80px;
  background: var(--primary-bg-color);
  color: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header__container {
  padding: 0 10px;
  display: flex;
  align-items: center;
  min-width: 100%;
}

.header__logo {
  padding: 12px 0;
  min-width: 152px;
  display: flex;
  height: 100%;
}

.nav {
  margin-left: 100px;
  width: 100%;
  display: flex;
}

.nav ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.nav__list {
  gap: 30px;
}

.nav__list a {
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-text-color);
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  text-decoration: none;
}

.nav__list a:hover,
.nav__list a:active,
.nav__list a:focus {
  color: var(--primary-text-hover-color);
}

.nav > .nav__buttons {
  display: none;
}

.nav__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__lang {
  padding-top: 26px;
  padding-bottom: 26px;
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-text-color);
  font-size: 14px;
  line-height: normal;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: var(--primary-transition);
}
.nav__lang > img{

border-radius:50%;
}
.nav__lang > img:first-child {
  min-width: 24px;
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  will-change: transform;
  transition: var(--primary-transition);
}

.nav__lang:hover,
.nav__lang:focus,
.nav__lang:active {
  color: var(--primary-text-hover-color);
}

.lang-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lang-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.lang-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lang-popup__content {
  position: relative;
  z-index: 1;
  background: var(--primary-bg-color);
  border-radius: 16px;
  padding: 20px;
  max-width: 462px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lang-popup__content::-webkit-scrollbar {
  display: none;
}

.lang-popup.is-open .lang-popup__content {
  transform: scale(1);
}

.lang-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.lang-popup__header h3 {
  color: var(--primary-text-color);
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.lang-popup__close {
  background: transparent;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  border-radius: 50%;
  line-height: normal;
}

.lang-popup__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-popup__flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 19px !important;
}

.lang-popup__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  flex: 0 0 calc(20% - 16px);
}

.lang-popup__item:hover {
  background: #404040;
}

.lang-popup__item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  -o-object-fit: cover;
  object-fit: cover;
}

.lang-popup__item span {
  color: var(--primary-text-color);
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 100;
}

.burger-menu__line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-text-color);
  margin: 5px 0;
  transition: all var(--primary-transition);
}
