.lang-btn,
.lang-btn * {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.lang-btn {
  position: relative;
  width: 46px;
  min-width: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.lang-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c9e8;
  border-radius: 999px;
  background: #ffffff;
  color: #134fae;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(11, 25, 53, 0.12);
}

@media (max-width: 760px) {
  header .nav {
    align-items: center;
    gap: 8px;
  }

  .brand,
  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand strong,
  .logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand .logo-img,
  .logo .logo-img {
    flex: 0 0 auto;
  }

  .nav-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    gap: 6px;
  }

  .nav-actions .btn:not(.lang-btn) {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .lang-btn {
    width: 42px;
    min-width: 42px;
    min-height: 38px;
  }

  .lang-badge {
    right: -4px;
    bottom: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.64rem;
  }
}
