:root {
  --qixol-header-height: 76px;
  --qixol-ink: #17231d;
  --qixol-green: #3e641f;
  --qixol-line: #e2e7da;
  --qixol-focus: #668a34;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  height: var(--qixol-header-height);
  padding: 0 27px;
  background: #fff;
  border-bottom: 1px solid var(--qixol-line);
  font-family: system-ui, Arial, sans-serif;
}

.site-header .brand {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.site-header .brand img {
  display: block;
  width: 198px;
  height: auto;
}

.site-header .topnav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.site-header .topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--qixol-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .topnav a:hover,
.site-header .topnav a.active {
  color: var(--qixol-green);
  background: #edf4e3;
}

.site-header a:focus-visible {
  outline: 2px solid var(--qixol-focus);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  :root { --qixol-header-height: 88px; }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 0;
    padding: 5px 14px;
  }

  .site-header .brand { justify-self: start; }
  .site-header .brand img { width: 166px; }
  .site-header .topnav { gap: 3px; }
  .site-header .topnav a { min-height: 32px; padding: 0 7px; font-size: 12px; }
}
