:root {
  --site-header-offset: 96px;
}

body {
  padding-top: var(--site-header-offset) !important;
}

.site-header-root {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  width: 100%;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 43, 56, 0.06);
}

.site-header__inner {
  width: min(var(--container, 1120px), calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-header__brand {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 0 1 340px;
}

.site-header__brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink, #1e2b38);
}

.site-header__brand-tagline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted, #637180);
  font-size: 0.82rem;
  line-height: 1.2;
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-header__menu::-webkit-scrollbar {
  display: none;
}

.site-header__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 43, 56, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink, #1e2b38);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-header__pill:visited {
  color: var(--ink, #1e2b38);
}

.site-header__pill:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(35, 61, 86, 0.18);
  transform: translateY(-1px);
}

.site-header__pill:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(35, 61, 86, 0.24);
  box-shadow: 0 0 0 3px rgba(35, 61, 86, 0.1);
}

.site-header__pill.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(35, 61, 86, 0.16);
  box-shadow: 0 8px 22px rgba(35, 61, 86, 0.08);
}

.site-header__lang strong {
  font-weight: 900;
}

@media (max-width: 859px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0 8px;
  }

  .site-header__brand {
    flex: none;
  }

  .site-header__brand-title {
    font-size: 0.92rem;
  }

  .site-header__brand-tagline {
    font-size: 0.62rem;
  }

  .site-header__menu {
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 2px;
  }

  .site-header__pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .site-header__lang {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 860px) {
  .site-header__menu {
    justify-content: center;
  }

  .site-header__brand-tagline {
    font-size: 0.76rem;
  }
}
