.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  border-bottom: 1px solid rgba(23, 32, 51, .14);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.site-header .brand img {
  width: 190px;
  height: auto;
}

.site-header .portal-button {
  margin-left: 0;
}

.language-switch {
  display: flex;
  align-items: center;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .45rem .75rem;
  border: 1px solid rgba(23, 32, 51, .16);
  border-radius: 6px;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
}

.flag-icon {
  width: 21px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, .16);
}

.language-switch a:hover {
  border-color: var(--petrol);
  background: #fff;
}

.language-switch-floating {
  position: fixed;
  z-index: 70;
  top: 104px;
  right: 24px;
}

@media (max-width: 850px) {
  .site-header {
    height: 76px;
  }

  .site-header .portal-button {
    display: inline-flex;
    min-height: 40px;
    padding: .5rem .8rem;
    font-size: .86rem;
  }

  .site-header .language-switch a {
    padding-inline: .6rem;
    font-size: .78rem;
  }
}

@media (max-width: 520px) {
  .site-header .brand img { width: 150px; }
  .site-header .portal-button {
    padding-inline: .65rem;
    font-size: .78rem;
  }
}
