.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 70px;
  background: #000410;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header-inner {
  width: min(1170px, calc(100% - 40px));
  max-width: 1170px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.brand img,
.footer-brand-logo img {
  display: block;
  width: 164px;
  height: auto;
}

.desktop-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.language-switcher {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 70px;
  padding: 0 0 0 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #d8dff7;
  font-size: 13px;
  white-space: nowrap;
}

.language-trigger-separator {
  width: 1px;
  height: 20px;
  margin-right: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.language-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #8e97bb;
  transform: translateY(-0.5px);
}

.language-trigger-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.language-trigger-code {
  letter-spacing: 0.08em;
}

.language-trigger::after {
  content: '';
  width: 1px;
  height: 0;
  margin-left: 3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #7780ff;
  transform: translateY(1px);
  transition: transform 0.22s ease;
  transform-origin: center;
}

.language-trigger.open::after {
  transform: rotate(180deg) translateY(-1px);
}

.language-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.language-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.language-panel-dialog {
  position: relative;
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background: rgba(5, 12, 28, 0.985);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  transform: translateY(-6px) scale(0.98);
  transition: transform 0.2s ease;
}

.language-panel.open .language-panel-dialog {
  transform: translateY(0) scale(1);
}

.language-panel-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.language-panel-title {
  color: #d8dff7;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.language-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d8dff7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 32px;
}

.language-choice {
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
}

.language-choice.active {
  border-color: rgba(118, 144, 255, 0.45);
  background: rgba(74, 88, 204, 0.18);
}

.menu-button,
.mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  .language-panel-dialog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
