.site-header {
  background: var(--surface);
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header .site-header-spacer {
  grid-column: 1;
}

.site-header a {
  grid-column: 2;
  display: inline-flex;
  line-height: 0;
}

.site-header .site-logo {
  height: 64px;
  width: auto;
}

.lang-switch {
  grid-column: 3;
  justify-self: end;
}

.lang-switch ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  background: var(--white);
  border-radius: 8px;
}

.lang-switch li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--third);
  text-decoration: none;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}

.lang-switch li a:hover {
  background: var(--surface);
}

.lang-switch li.lang-active a {
  padding: 15px 10px 15px 10px;
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-header .site-logo {
    height: 40px;
  }

  .site-header .site-header-spacer {
    display: none;
  }

  .lang-switch li a {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}