.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.8vw, 26px);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-tools .header-cta { white-space: nowrap; }

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 7%);
  color: #f5efe7;
  white-space: nowrap;
}

.language-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 32px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.language-switch__item.is-current {
  background-color: #f4eadb;
  color: #2b231c;
}

.language-switch__item[href]:hover {
  background-color: rgb(255 255 255 / 12%);
}

.language-switch__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.language-switch__code { display: none; }

@media (max-width: 1000px) {
  .site-header .header-tools { grid-column: 3; grid-row: 1; }
  .site-header .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
}

@media (max-width: 680px) {
  .site-header, .site-header.scrolled {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .language-switch__item {
    min-inline-size: 29px;
    min-block-size: 34px;
    padding-inline: 5px;
    font-size: 12px;
  }

  .language-switch__name {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .language-switch__code { display: inline; }
  .topbar .shell, .privacy-header .shell { align-items: center; gap: 10px; }
}

@media (max-width: 440px) {
  .topbar .brand > span { display: none; }
}

@media (max-width: 480px) {
  .site-header .menu-toggle { display: block !important; min-block-size: 44px; }
  .site-header nav { display: none !important; }

  .site-header nav.open {
    position: absolute;
    inset-inline: 0;
    inset-block-start: calc(100% + 8px);
    display: grid !important;
    gap: 0;
    max-block-size: calc(100dvh - 96px);
    overflow: auto;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 14px;
    background: #25211d;
    box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
    font-size: 14px;
  }

  .site-header nav.open a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    padding-inline: 12px;
    border-radius: 6px;
  }

  .site-header nav.open a:is(:hover, :focus-visible) { background-color: rgb(255 255 255 / 9%); }
}
