/* ==============================================
   Language Switcher — Флаги стран в навигации
   ============================================== */

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  margin-right: 16px;
}

.nav__lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--cl-element-outline, #2f2f2f);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.nav__lang-item:hover {
  border-color: var(--cl-text-primary, #d5d5d5);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.nav__lang-item--current {
  border-color: var(--cl-text-primary, #d5d5d5);
  background: rgba(255, 255, 255, 0.15);
  cursor: default;
  opacity: 1;
}

.nav__lang-item--current:hover {
  transform: none;
}

.nav__lang-flag {
  display: block;
  width: 20px;
  height: auto;
  border-radius: 2px;
}

/* ---- Mobile: внутри бургер-меню ---- */
.nav__lang--mobile {
  display: none;
  gap: 10px;
  padding: 16px 0;
}

.nav__lang--mobile .nav__lang-item {
  width: 40px;
  height: 30px;
  border-radius: 6px;
}

.nav__lang--mobile .nav__lang-flag {
  width: 26px;
}

/* ---- Responsive ---- */
@media screen and (max-width: 1200px) {
  .nav__lang {
    margin-left: 8px;
    gap: 4px;
  }

  .nav__lang-item {
    width: 28px;
    height: 21px;
  }

  .nav__lang-flag {
    width: 18px;
  }
}

@media screen and (max-width: 768px) {
  /* Скрыть десктопную версию в мобильном меню */
  .nav__lang--desktop {
    display: none;
  }

  /* Показать мобильную версию */
  .nav__lang--mobile {
    display: flex;
  }
}
