/* Reveo site header — the home page's navigation, ported for the static
   pages so every page carries the same header. Everything is scoped under
   .site-hdr because product-page.css already owns .hdr, .brand and .btn.
   The home header is fixed; this one is sticky, which looks identical and
   spares each static page a body offset it would otherwise have to add. */
/* The header carries its own tokens. about/careers/contact load a stylesheet
   built on a different set (--accent/--text/--surface) and define no --brand,
   so inheriting the page's variables left the buttons with an invalid
   background, which computes to transparent. */
.site-hdr{
  --brand:#00B57C;--brand-bright:#0A8A62;--brand-tint:#E6F7F1;
  --ink:#0B1F19;--ink-soft:#3D5049;--muted:#62736C;--muted-2:#83938C;
  --line:rgba(11,31,25,.10);--line-2:rgba(11,31,25,.17);--panel-2:#F3F8F6;
  --maxw:1180px;--ease:cubic-bezier(.22,1,.36,1);
  --font-d:"Space Grotesk",system-ui,sans-serif;
  --font-b:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --shadow-sm:0 1px 2px rgba(11,31,25,.06);
  --shadow-md:0 10px 30px -12px rgba(11,31,25,.16);
  --shadow-lg:0 30px 70px -28px rgba(11,31,25,.26);
  font-family:var(--font-b);
}
/* The header owns a stacking context, so a page hero with its own z-index
   was painting over the open mega panel. 200 clears every page stylesheet. */
.site-hdr{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px) saturate(140%);border-bottom:1px solid var(--line);
  box-shadow:var(--shadow-sm)}
.site-hdr *{box-sizing:border-box}
.site-hdr__in{display:flex;align-items:center;gap:28px;height:72px;
  max-width:var(--maxw);margin:0 auto;padding:0 28px}
.site-hdr .brand{display:flex;align-items:center;gap:11px;font-family:var(--font-d);
  font-weight:700;font-size:21px;letter-spacing:-.01em;color:var(--ink);flex:none;text-decoration:none}
.site-hdr .brand img{height:27px;width:auto}

.site-nav{display:flex;align-items:center;gap:2px;margin-left:14px}
.site-nav a,.site-nav__trigger{font-family:var(--font-b);font-size:14.5px;color:var(--ink-soft);
  padding:9px 14px;border-radius:10px;display:inline-flex;align-items:center;gap:6px;
  font-weight:500;text-decoration:none;background:none;border:0;cursor:pointer;
  transition:color .18s,background .18s}
.site-nav a:hover,.site-nav__trigger:hover{color:var(--ink);background:var(--panel-2)}
.site-nav a[aria-current="page"]{color:var(--brand-bright);background:var(--brand-tint)}
.site-nav__item{position:relative}
.site-nav__item.is-open .site-nav__trigger{color:var(--ink);background:var(--panel-2)}
.site-nav__chev{width:15px;height:15px;transition:transform .22s var(--ease);opacity:.65}
.site-nav__item.is-open .site-nav__chev{transform:rotate(180deg)}

/* Mega panel: one white card under the trigger, rows of icon + name + a line. */
.mega{position:absolute;top:calc(100% + 10px);left:-12px;z-index:70;
  background:#fff;border:1px solid var(--line);border-radius:20px;
  box-shadow:var(--shadow-lg);padding:14px;min-width:560px;animation:megaIn .18s var(--ease)}
.mega[hidden]{display:none}
/* Hover bridge: the 10px between trigger and panel is part of the menu's hit
   area, so the pointer never leaves the menu on its way down to an item. */
.mega::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.site-nav__item::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;display:none}
.site-nav__item.is-open::after{display:block}
.mega--narrow{min-width:520px}
@keyframes megaIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mega{animation:none}}
.mega__grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.mega__label{grid-column:1/-1;font-family:var(--font-d);font-size:11.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);padding:8px 13px 4px}
.mega__item{display:flex;gap:13px;padding:13px;border-radius:14px;align-items:flex-start;
  text-decoration:none;transition:background .16s}
.mega__item:hover{background:var(--panel-2)}
.mega__ic{width:38px;height:38px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:var(--brand-tint);color:var(--brand-bright)}
.mega__txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.mega__txt b{font-family:var(--font-d);font-size:15px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.mega__txt span{font-size:13px;line-height:1.45;color:var(--muted)}

.site-hdr__right{display:flex;align-items:center;gap:10px;margin-left:auto}
.site-hdr__right .btn{flex:none;white-space:nowrap}

.lang{position:relative}
.lang__btn{display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;
  border:1px solid var(--line);background:#fff;font-family:var(--font-b);font-size:13.5px;
  font-weight:600;color:var(--ink-soft);cursor:pointer;transition:color .2s,border-color .2s}
.lang__btn:hover{color:var(--ink);border-color:var(--line-2)}
.lang__globe{width:16px;height:16px;opacity:.8}
.lang__chev{width:14px;height:14px;transition:transform .25s}
.lang.is-open .lang__chev{transform:rotate(180deg)}
.lang__menu{position:absolute;top:calc(100% + 10px);right:0;min-width:188px;padding:7px;
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);z-index:70}
.lang__menu[hidden]{display:none}
.lang__menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  padding:9px 11px;border-radius:10px;font-size:14px;color:var(--ink-soft);text-decoration:none}
.lang__menu a:hover{background:var(--panel-2);color:var(--ink)}
.lang__menu a.is-on{color:var(--brand-bright)}
.lang__short{font-family:var(--font-d);font-size:11px;color:var(--muted);letter-spacing:.05em}

.site-burger{display:none;width:42px;height:42px;border-radius:12px;border:1px solid var(--line);
  background:#fff;color:var(--ink);cursor:pointer;align-items:center;justify-content:center;flex:none}

/* Mobile drawer */
.site-mnav{display:none;max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid var(--line);
  padding:10px 18px 20px;box-shadow:var(--shadow-md)}
.site-mnav[hidden]{display:none}
.site-mnav__label{font-family:var(--font-d);font-size:11.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted-2);padding:16px 4px 6px}
.site-mnav a{display:block;padding:11px 4px;border-bottom:1px solid var(--line);text-decoration:none}
.site-mnav a b{display:block;font-size:15.5px;font-weight:600;color:var(--ink)}
.site-mnav a span{display:block;font-size:13px;color:var(--muted);margin-top:2px}

/* The full bar stops fitting below ~1100px — collapse before it overflows. */

/* The header ships its own button styles: about/careers/contact load
   company-page.css, which defines none, so relying on the page's stylesheet
   would leave Kirish and Demo olish as bare text on three of nine pages. */
.site-hdr .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--font-d);font-weight:600;font-size:13.5px;letter-spacing:-.01em;
  padding:10px 16px;border-radius:999px;text-decoration:none;cursor:pointer;border:0;
  transition:background .25s var(--ease),box-shadow .3s var(--ease),border-color .25s}
.site-hdr .btn--primary,.site-hdr .btn-primary{background:var(--brand);color:#fff;
  box-shadow:0 8px 22px -10px rgba(0,181,124,.75)}
.site-hdr .btn--primary:hover,.site-hdr .btn-primary:hover{background:#00A270;
  box-shadow:0 14px 34px -12px rgba(0,181,124,.85)}
.site-hdr .btn--ghost,.site-hdr .btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line-2)}
.site-hdr .btn--ghost:hover,.site-hdr .btn-ghost:hover{background:var(--panel-2);border-color:var(--brand)}
.site-hdr a:focus-visible,.site-hdr button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* These sit LAST on purpose. `.site-hdr .btn{display:inline-flex}` above is
   two classes, exactly the weight of `.site-hdr__right .btn--primary` below,
   so whichever comes later wins — with the media queries higher up the file
   the base rule re-showed «Kirish» and «Demo olish» on phones and every
   static page scrolled sideways at 390px. */
@media (max-width:1100px){
  .site-nav{display:none}
  .site-burger{display:inline-flex}
  .site-mnav.is-open{display:block}
}
@media (max-width:760px){
  .site-hdr__in{height:64px;padding:0 18px;gap:14px}
  .site-hdr__right .btn--primary,.site-hdr__right .btn-primary{display:none}
  .site-hdr__right .btn--ghost,.site-hdr__right .btn-ghost{display:none}
  .lang__btn{padding:9px 10px}
  .lang__globe{display:none}
}
