/* Shared geometry: page styles and selected states cannot resize the header. */
html { scrollbar-gutter: stable; }
.site-header {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 176px;
  grid-template-areas: "brand navigation contact";
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 12px max(48px, calc((100% - 1184px) / 2));
  box-sizing: border-box;
}
.site-header .brand { grid-area: brand; }
.site-header .brand img { width: 228px; }
.site-header .menu-toggle { display: none; grid-area: toggle; }
.site-header nav {
  grid-area: navigation;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  width: auto;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.site-header nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  white-space: nowrap;
  color: var(--ink);
}
.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.65);
  transition: opacity .15s, transform .15s;
}
.site-header nav a:is(:hover, :focus-visible, [aria-current]) { color: var(--accent); }
.site-header nav a:is(:hover, :focus-visible, [aria-current])::after { opacity: 1; transform: scaleX(1); }
.site-header .header-contact {
  grid-area: contact;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 176px;
  min-height: 44px;
  padding: 10px 12px;
  gap: 10px;
  border: 1px solid #506c58;
  border-radius: 4px;
  background: #e9ede3;
  color: var(--forest);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
}
.site-header .header-contact img { width: 19px; height: 19px; flex-shrink: 0; }
.site-header .header-contact:hover { background: #dce4d5; }
@media (min-width: 1025px) and (max-width: 1199px) {
  .site-header { grid-template-columns: 190px minmax(0, 1fr) 164px; padding-inline: 32px; gap: 18px; }
  .site-header .brand img { width: 190px; }
  .site-header nav { gap: 15px; font-size: 13px; }
  .site-header .header-contact { width: 164px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle" "navigation navigation";
    min-height: 78px;
    padding: 12px 32px;
    gap: 0;
  }
  .site-header .brand img { width: 190px; }
  .site-header .menu-toggle { display: flex; min-height: 44px; align-items: center; gap: 12px; }
  .site-header .header-contact { display: none; }
  .site-header nav { display: none; width: 100%; padding: 12px 0 0; flex-direction: column; align-items: stretch; gap: 0; font-size: 15px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { min-height: 48px; padding: 12px 0; }
  .site-header nav a::after { right: auto; width: 24px; bottom: 7px; }
}
@media (max-width: 600px) { .site-header { padding-inline: 22px; } }
@media (prefers-reduced-motion: reduce) { .site-header nav a::after { transition: none; } }
