
.site-header{--line:#2a3c50;--text:#edf4fb;--muted:#a9b9ca;--accent:#78ebdf;--mono:Consolas,monospace}
.site-header .wrap{width:min(1220px,calc(100% - 40px));margin-inline:auto}
.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--line); background: #0a111cee; backdrop-filter: blur(16px) }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 18px }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 760; text-decoration: none; white-space: nowrap }
.brand img { width: 38px; height: 38px }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px) }
.nav a, .nav summary { color: var(--muted); text-decoration: none; font-size: .9rem }
.nav a:hover, .nav a[aria-current=page], .nav summary:hover, .nav details[open] summary { color: var(--accent) }
.nav summary { list-style: none; padding: 8px 0 }
.nav summary::-webkit-details-marker { display: none }
.nav summary::after { content: ' ▾'; color: var(--accent) }
.mega-panel { position: absolute; inset: calc(100% - 1px) 0 auto; padding: 20px; background: #0e1825; border-block: 1px solid var(--line); box-shadow: 0 24px 44px #0006 }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.mega-grid a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 10px }
.mega-grid strong { display: block; color: var(--text) }
.mega-grid small { display: block; margin-top: 6px }
.header-actions { display: flex; align-items: center; gap: 14px }
.language { display: flex; align-items: center; gap: 5px; white-space: nowrap; font: .76rem var(--mono); color: var(--muted) }
.language a { text-decoration: none; padding: 4px; color: var(--muted) }
.language [aria-current] { color: var(--accent); font-weight: 700 }
.header-actions .mobile-toggle { display: none }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; background: var(--accent); color: #081917; font-weight: 720; border: 1px solid transparent; border-radius: 7px; text-decoration: none }
.cta:hover { background: #adfff3 }
.cta.secondary { background: #142334; border-color: #426477; color: var(--text) }
.cta.secondary:hover { border-color: var(--accent) }

.site-header{position:fixed;inset:0 0 auto;z-index:60}
.site-header .brand{text-transform:none}
.site-header .nav .mobile-contact{display:none}
.site-header :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:960px){
.site-header .header-inner{flex-wrap:wrap;padding-block:12px}
.site-header .header-actions{margin-left:auto}
.site-header .header-actions .mobile-toggle{display:inline-flex}
.site-header .nav{order:3;width:100%;flex-wrap:wrap}
.js .site-header .nav:not([data-open]){display:none}
.site-header .mega-panel{position:static;padding:9px 0;box-shadow:none}
.site-header .mega-panel .wrap{width:100%}
.site-header .mega-grid{grid-template-columns:1fr}
.site-header .nav:has(details[open]){max-height:72vh;overflow:auto}
}
@media(max-width:590px){
.site-header .wrap{width:calc(100% - 26px)}
.site-header .header-inner,.site-header .header-actions{gap:8px}
.site-header .header-actions>.cta:not(.mobile-toggle){display:none}
.site-header .nav .mobile-contact{display:inline-flex;color:#081917}
}

/* Sliding highlight for the primary navigation. */
.site-header .nav-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: #78ebdf20;
  box-shadow: inset 0 0 0 1px #78ebdf40;
  opacity: 0;
  transition: transform 300ms cubic-bezier(.22,.8,.25,1), width 300ms cubic-bezier(.22,.8,.25,1), height 220ms ease, opacity 160ms ease;
}

.site-header .nav-highlight[data-visible] { opacity: 1; }
.site-header .nav [data-highlighted] { color: var(--accent); }

@media (max-width: 960px) {
  .site-header .nav-highlight { display: none; }
  .site-header .nav > a:not(.cta),
  .site-header .nav > details > summary {
    padding: 8px 10px;
    border-radius: 999px;
    transition: background-color 180ms ease, color 180ms ease;
  }
  .site-header .nav > a[aria-current="page"],
  .site-header .nav > details[open] > summary,
  .site-header .nav > a:not(.cta):focus-visible,
  .site-header .nav > details > summary:focus-visible { background: #78ebdf20; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-highlight,
  .site-header .nav > a,
  .site-header .nav > details > summary { transition: none; }
}
