.site-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav > .back-link {
  margin-left: auto;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 3px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 999px;
  background: #ffffff;
}

.language-switcher a {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #686868;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: #111111;
  background: #eeeeee;
}

.language-switcher a[aria-current="true"] {
  color: #ffffff;
  background: #111111;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}

.footer-links a {
  position: relative;
  padding: 4px 0;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 1120px) {
  .nav {
    gap: 18px !important;
  }

  .brand img {
    width: min(410px, 43vw) !important;
  }

  .nav-links {
    gap: 20px !important;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }

  .nav > .language-switcher {
    margin-left: auto;
  }

  .nav > .back-link + .language-switcher {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .nav {
    gap: 8px !important;
  }

  .brand img {
    width: min(180px, calc(100vw - 176px)) !important;
  }

  .language-switcher {
    gap: 1px;
    margin-left: 0;
    padding: 2px;
  }

  .language-switcher a {
    min-width: 28px;
    min-height: 30px;
    font-size: 0.8125rem;
  }

  .footer-links {
    gap: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a::after {
    transition: none;
  }
}
