.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(1120px, calc(100% - 64px));
  min-height: 76px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.masthead-brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-size: 27px; font-weight: 680; letter-spacing: -.045em; white-space: nowrap; }
.masthead-brand img { border-radius: 23%; flex: none; }
.masthead-nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 14px; font-weight: 600; white-space: nowrap; }
.masthead-nav a[aria-current], .masthead-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.masthead-language { display: flex; justify-self: end; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.masthead-language button { min-width: 38px; height: 33px; padding: 0 6px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.masthead-language button[aria-pressed="true"] { color: white; background: #24382d; }

@media (max-width: 700px) {
  .masthead { width: calc(100% - 32px); }
}
@media (max-width: 540px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 7px; min-height: 64px; }
  .masthead-brand { gap: 4px; font-size: 19px; }
  .masthead-brand img { width: 24px; height: 24px; }
  .masthead-nav { gap: 9px; font-size: 12px; }
  .masthead-language button { min-width: 26px; font-size: 11px; }
}
