.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #dce5f3;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  background: #ffffff;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
  display: none;
}

.lang-menu.open {
  display: grid;
  gap: 2px;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.lang-opt:hover,
.lang-opt.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.lang-banner {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 7px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #1e3a8a;
}

.lang-banner[hidden] {
  display: none;
}

.lang-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.lang-banner-close {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-langs a {
  color: inherit;
  text-decoration: none;
}

.footer-langs a.active {
  color: #2563eb;
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-btn {
    min-height: 44px;
    padding: 6px 10px;
  }
}

summary.lang-btn {
  list-style: none;
}
summary.lang-btn::-webkit-details-marker {
  display: none;
}
details.lang-wrap[open] .lang-menu {
  display: grid;
  gap: 2px;
}
a.lang-opt {
  text-decoration: none;
}
