.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: #101a29;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding-inline: 9px;
  border-radius: 3px;
}

.language-switch a { color: #ccd9eb; }
.language-switch a:hover { background: #223049; color: white; }
.language-switch [aria-current="page"] { background: #24354b; color: #fff; }

html[lang="en"] .hero h1 { font-size: clamp(2.6rem, 4.45vw, 4.9rem); }
html[lang="en"] .hero-copy { width: min(690px, 57%); }
html[lang="en"] .section-head h2 { font-size: clamp(2rem, 3.35vw, 3.35rem); text-wrap: balance; }
html[lang="en"] .hero-index a { line-height: 1.28; }
html[lang="en"] .chain-controls button,
html[lang="en"] .trust-controls button { min-width: 0; overflow-wrap: anywhere; }
html[lang="en"] .rd-case img { max-height: none; }

@media (min-width: 781px) and (max-width: 1150px) {
  .header-inner { gap: 13px; }
  .nav { gap: 12px; font-size: .85rem; }
  .nav-service { padding-left: 12px; }
  html[lang="en"] .header-inner > .brand span { display: none; }
}

@media (max-width: 780px) {
  .header-inner > .brand { order: 0; }
  .language-switch { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; margin-left: 9px; }
  #primary-nav { order: 3; }
  html[lang="en"] .hero-copy { width: min(100%, 530px); }
  html[lang="en"] .hero h1 { font-size: clamp(1.9rem, 7.15vw, 3.75rem); }
  html[lang="en"] .hero-ledger { min-width: 0; max-width: 100%; }
  html[lang="en"] .hero-ledger ul { flex-wrap: wrap; gap: 4px 8px; }
  html[lang="en"] .hero-ledger li + li { padding-left: 8px; }
  html[lang="en"] .rd-case img { max-height: 220px; }
}

@media (max-width: 560px) {
  .header-inner > .brand span { display: none; }
  .brand img { width: 101px; }
  .footer-inner .brand span { font-size: .82rem; }
  .nav-toggle { padding-inline: 9px; }
  .language-switch a,
  .language-switch span { padding-inline: 7px; }
}

@media (max-width: 360px) {
  html[lang="en"] .hero-copy { padding-bottom: 152px; }
  .brand img { width: 91px; }
}
