
.bv-langs { position: relative; flex: none; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.bv-langs-box { position: relative; }
.bv-langs-box > summary {
  display: flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .55rem 0 .45rem; box-sizing: border-box;
  list-style: none; cursor: pointer; user-select: none; border-radius: 9px;
  background: #1a1917; border: 1px solid rgba(255,255,255,.08); color: #d6d4cf;
  font-size: .78rem; font-weight: 600; line-height: 1; letter-spacing: .02em; transition: background .15s, border-color .15s;
}
.bv-langs-box > summary::-webkit-details-marker { display: none; }
.bv-langs-box > summary:hover,
.bv-langs-box[open] > summary { background: #23211f; border-color: rgba(255,255,255,.14); }
.bv-langs-box > summary:focus-visible { outline: 2px solid #5b78f7; outline-offset: 2px; }
.bv-langs-chev { color: #88857f; flex: none; transition: transform .15s; }
.bv-langs-box[open] .bv-langs-chev { transform: rotate(180deg); }

.bv-flag {
  display: inline-flex; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
}
.bv-flag svg { display: block; width: 20px; height: 20px; }

.bv-langs-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200; min-width: 168px; padding: 5px; box-sizing: border-box;
  border-radius: 11px; background: #1a1917; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 28px rgba(0,0,0,.5);
  animation: bv-langs-in .12s ease-out;
}
@keyframes bv-langs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bv-langs .bv-langs-menu a {
  display: flex; align-items: center; gap: .65rem; margin: 0; padding: .5rem .6rem; border-radius: 7px;
  color: #d6d4cf; background: transparent; font-size: .84rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background .12s, color .12s;
}
.bv-langs .bv-langs-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.bv-langs .bv-langs-menu a:focus-visible { outline: 2px solid #5b78f7; outline-offset: -2px; }
.bv-langs .bv-langs-menu a.on { background: rgba(91,120,247,.18); color: #fff; }

.nav-wrap > .bv-langs { margin-left: auto; }                 
.nav-wrap > .bv-langs + a { margin-left: 0; }
.nav-right + .nav-burger { margin-left: 0; }                 

@media (max-width: 480px) {
  .bv-langs-code { display: none; }
  .nav-logo-name, .nav-wrap > .nav-logo > span { display: none; }
}

@media (max-width: 640px) {
  .nav-wrap > div.nav-links { display: none; }
}

@media (max-width: 560px) {
  nav:has(> .bv-langs) { flex-wrap: wrap; row-gap: .6rem; }
  nav:has(> .bv-langs) > .links { order: 3; width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-langs-menu { animation: none; }
  .bv-langs-chev { transition: none; }
}
