/* ALUDOS - zdieľaný navbar (mega-menu "Systémy"). Zdroj markupu: partials/header.html */
.site-header{
  --nh-accent:var(--wv-accent,#b93131); --nh-ink:var(--wv-ink,#212121); --nh-muted:var(--wv-muted,#8a8a8a);
  --nh-line:var(--wv-line,#e5e5e5); --nh-bg:var(--wv-bg,#f7f7f7);
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  --nh-x:max(32px, calc((100% - 1400px) / 2 + 32px));
  padding:16px var(--nh-x); color:#fff; font-family:"Bricolage Grotesque", Arial, sans-serif;
  transition:padding .35s ease;
}
/* pozadie lišty je v ::before, aby samotná lišta nebola "backdrop root" a panel mohol blurovať fotku pod sebou */
.site-header::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.1) 100%);
  backdrop-filter:blur(18px) saturate(160%); -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header *{box-sizing:border-box;}
.site-header a{color:inherit; text-decoration:none;}
.site-header.is-scrolled{padding-block:12px;}
.site-header.is-scrolled::before{
  background:rgba(247,247,247,.85); backdrop-filter:blur(18px) saturate(180%); -webkit-backdrop-filter:blur(18px) saturate(180%);
  border-bottom-color:var(--nh-line); box-shadow:0 8px 30px -18px rgba(0,0,0,.3);
}
.site-header.is-scrolled .nh-logo, .site-header.is-scrolled .nh-links a{color:var(--nh-ink); text-shadow:none;}
.site-header.is-scrolled .nh-panel a{text-shadow:none;}
.nh-logo{position:relative; z-index:51; display:flex; align-items:center; height:36px; transition:height .35s ease;}
.nh-logo img{height:100%; width:auto; display:block;}
.nh-logo-color{display:none !important;}
.site-header.is-scrolled .nh-logo{height:32px;}
.site-header.is-scrolled .nh-logo-white{display:none;}
.site-header.is-scrolled .nh-logo-color{display:block !important;}
.nh-links{display:flex; align-items:center; gap:8px;}
.nh-links > a, .nh-trigger{
  position:relative; display:inline-flex; align-items:center; gap:5px; padding:16px 24px; font-size:16px; font-weight:300;
  text-shadow:0 1px 4px rgba(0,0,0,.35); transition:color .2s ease, text-shadow .3s ease;
}
.nh-links > a::after, .nh-trigger::after{
  content:""; position:absolute; left:24px; right:24px; bottom:11px; height:2px; background:currentColor; border-radius:2px;
  transform:scaleX(0); transform-origin:left; transition:transform .25s cubic-bezier(.4,0,.2,1); opacity:.9;
}
.nh-links > a:hover::after, .nh-trigger:hover::after{transform:scaleX(1);}
.nh-trigger svg{width:13px; height:13px; transition:transform .2s ease;}
.nh-dropdown{position:static;}
.nh-panel{
  position:absolute; top:calc(100% + 10px); left:var(--nh-x); right:var(--nh-x); color:#fff;
  background:rgba(18,18,18,.5); backdrop-filter:blur(28px) saturate(160%); -webkit-backdrop-filter:blur(28px) saturate(160%);
  border:1px solid rgba(255,255,255,.14); border-radius:var(--wv-radius,20px);
  box-shadow:0 28px 56px -22px rgba(0,0,0,.3), 0 4px 12px -4px rgba(0,0,0,.14);
  padding:24px clamp(20px,3vw,36px);
  opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none;
  transition:opacity .2s ease .25s, transform .2s ease .25s, visibility 0s linear .45s; z-index:60;
}
@media (min-width:1025px){
  .nh-dropdown:hover .nh-trigger svg{transform:rotate(180deg);}
  .nh-dropdown:hover .nh-panel, .nh-dropdown:focus-within .nh-panel{opacity:1; visibility:visible; transform:none; pointer-events:auto; transition-delay:0s;}
}
.site-header.is-scrolled .nh-panel{
  color:var(--nh-ink); background:rgba(255,255,255,.66); border-color:rgba(255,255,255,.6);
}
.nh-mega-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:6px 12px;}
.site-header .nh-mega-item{
  display:flex; align-items:center; gap:18px; padding:14px 16px; border-radius:16px; font-size:19px; font-weight:400; line-height:1.25;
  letter-spacing:-.01em; color:#fff; text-shadow:none; transition:background .2s ease, color .2s ease;
}
.nh-ico{
  display:grid; place-items:center; width:48px; height:48px; flex-shrink:0; border-radius:14px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.14); color:#fff;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.nh-ico svg{width:26px; height:26px;}
.site-header .nh-mega-item:hover{background:rgba(255,255,255,.1);}
.site-header .nh-mega-item:hover .nh-ico{background:var(--nh-accent); border-color:var(--nh-accent); transform:scale(1.04);}
.site-header.is-scrolled .nh-mega-item{color:var(--nh-ink);}
.site-header.is-scrolled .nh-ico{background:rgba(255,255,255,.7); border-color:rgba(0,0,0,.08); color:var(--nh-ink);}
.site-header.is-scrolled .nh-mega-item:hover{background:rgba(255,255,255,.6); color:var(--nh-accent);}
.site-header.is-scrolled .nh-mega-item:hover .nh-ico{background:var(--nh-accent); border-color:var(--nh-accent); color:#fff;}
.nh-mega-item::after{display:none !important;}
@media (max-width:1024px){ .nh-panel{display:none;} }
.nh-right{position:relative; z-index:51; display:flex; align-items:center; gap:10px;}
.site-header .nh-cta{
  display:inline-flex; align-items:center; justify-content:center; padding:14px 24px; border-radius:1176px;
  background:var(--nh-accent); color:#fff; font-size:16px; font-weight:400; white-space:nowrap; transition:background .2s ease;
}
.site-header .nh-cta:hover{background:var(--wv-accent-dark,#6e1c1c);}
.nh-toggle{
  display:none; width:40px; height:40px; border:none; border-radius:50%; background:rgba(255,255,255,.14);
  align-items:center; justify-content:center; cursor:pointer; margin-left:8px; flex-shrink:0;
}
.site-header.is-scrolled .nh-toggle{background:rgba(0,0,0,.06);}
.nh-toggle span, .nh-toggle span::before, .nh-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:#fff; position:relative; transition:transform .2s ease, opacity .2s, background .2s;
}
.site-header.is-scrolled .nh-toggle span, .site-header.is-scrolled .nh-toggle span::before, .site-header.is-scrolled .nh-toggle span::after{background:var(--nh-ink);}
.nh-toggle span::before{position:absolute; top:-6px; left:0;}
.nh-toggle span::after{position:absolute; top:6px; left:0;}
.site-header.is-open .nh-toggle span{background:transparent;}
.site-header.is-open .nh-toggle span::before{transform:translateY(6px) rotate(45deg); background:#fff;}
.site-header.is-open .nh-toggle span::after{transform:translateY(-6px) rotate(-45deg); background:#fff;}
@media (max-width:700px){
  .site-header .nh-right .nh-cta{display:none;}
}
/* tablet aj mobil: hamburger menu */
@media (max-width:1024px){
  .nh-toggle{display:flex; margin-left:0;}
  .nh-links{
    position:fixed; top:0; left:0; right:0; z-index:49; flex-direction:column; align-items:stretch; gap:0;
    background:rgba(18,18,18,.94); backdrop-filter:blur(20px) saturate(180%); -webkit-backdrop-filter:blur(20px) saturate(180%);
    padding:88px var(--nh-x) 28px; transform:translateY(-12px); opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .site-header.is-open .nh-links{opacity:1; transform:none; visibility:visible; pointer-events:auto;}
  .site-header .nh-links > a, .site-header .nh-trigger{padding:16px 2px; font-size:20px; color:#fff; text-shadow:none; border-bottom:1px solid rgba(255,255,255,.12);}
  .nh-links > a::after, .nh-trigger::after{display:none;}
  .nh-trigger svg{display:none;}
  .site-header.is-open .nh-logo-white{display:block !important;}
  .site-header.is-open .nh-logo-color{display:none !important;}
}

/* ---- Svetlý (odscrollovaný) stav v štýle Landbook: plochá kompaktná lišta vo farbe stránky,
   bez okraja a tieňa, odkazy ako jemné "pilulky", kompaktné plné tlačidlo ---- */
.site-header.is-scrolled{padding-block:8px;}
.site-header.is-scrolled::before{
  background:rgba(243,245,249,.88);
  backdrop-filter:blur(14px) saturate(160%); -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:0; box-shadow:none;
}
.site-header.is-scrolled .nh-logo{height:30px;}
.site-header.is-scrolled .nh-links{gap:2px;}
.site-header.is-scrolled .nh-links > a,
.site-header.is-scrolled .nh-trigger{
  padding:8px 14px; font-size:15px; font-weight:400; color:#2b2a2a; text-shadow:none; border-radius:999px;
  transition:background .2s ease, color .2s ease;
}
.site-header.is-scrolled .nh-links > a::after,
.site-header.is-scrolled .nh-trigger::after{display:none;}
.site-header.is-scrolled .nh-links > a:hover,
.site-header.is-scrolled .nh-trigger:hover,
.site-header.is-scrolled .nh-dropdown:hover .nh-trigger{background:rgba(13,26,45,.07); color:#0d1a2d;}
.site-header.is-scrolled .nh-cta{padding:10px 20px; font-size:14px; font-weight:500;}
.site-header.is-scrolled .nh-toggle{background:rgba(13,26,45,.07);}

/* ====== Plávajúca sklenená lišta (štýl Landbook preview bar): zaoblená, odsadená od okrajov, matné sklo ====== */
.site-header{
  --nh-x:28px;
  top:12px; left:16px; right:16px; margin-inline:auto; max-width:1400px;
  padding:10px var(--nh-x);
}
.site-header::before{
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.08) 100%), rgba(18,22,30,.28);
  backdrop-filter:blur(22px) saturate(180%); -webkit-backdrop-filter:blur(22px) saturate(180%);
  border:1px solid rgba(255,255,255,.28); border-bottom:1px solid rgba(255,255,255,.18);
  box-shadow:0 14px 34px -14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.site-header.is-scrolled{padding-block:8px;}
.site-header.is-scrolled::before{
  background:linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(235,241,250,.55) 100%);
  backdrop-filter:blur(26px) saturate(190%); -webkit-backdrop-filter:blur(26px) saturate(190%);
  border:1px solid rgba(255,255,255,.75); border-bottom:1px solid rgba(255,255,255,.55);
  box-shadow:0 14px 34px -14px rgba(13,39,80,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
/* mega panel sa rozťahuje na šírku lišty */
.nh-panel{left:0; right:0;}
@media (max-width:700px){ .site-header{left:10px; right:10px; --nh-x:16px;} }

/* Väčšie logo v lište */
.nh-logo{height:46px;}
.site-header.is-scrolled .nh-logo{height:40px;}
@media (max-width:700px){
  .nh-logo{height:38px;}
  .site-header.is-scrolled .nh-logo{height:34px;}
}

/* Mostík na udržanie otvoreného mega-menu: len pod tlačidlom "Systémy" (nezakrýva logo ani ostatné odkazy) */
.nh-trigger::before{content:""; position:absolute; left:0; right:0; top:100%; height:34px;}

/* Navbar nikdy nie je širší ako hero (max 1400 px vrátane vnútorného odsadenia) */
.site-header{box-sizing:border-box;}

/* ===== Tablet a mobil (do 1024 px): menu na celú obrazovku + samostatná stránka s výberom systémov ===== */
.nh-menu-foot{display:none;}
.nh-sheet{display:none;}
.nh-sheet[hidden]{display:none !important;}
html.nh-lock{overflow:hidden;}
@media (max-width:1024px){
  /* otvorené menu = celá výška obrazovky */
  .nh-links{
    top:0; left:0; right:0; bottom:0; height:100dvh; border-radius:0;
    background:rgba(13,26,45,.95); padding:118px var(--nh-x) 28px; overflow-y:auto;
  }
  :root body .site-header .nh-links > a,
  :root body .site-header .nh-trigger{
    padding:18px 2px; font-size:28px; font-weight:300; color:#fff !important; background:transparent !important;
    border-bottom:1px solid rgba(255,255,255,.12); border-radius:0; text-shadow:none;
  }
  /* "Systémy" = tlačidlo s šípkou doprava (otvára výber systémov) */
  .site-header .nh-trigger{display:flex; justify-content:space-between; align-items:center; width:100%; gap:12px;}
  .site-header .nh-trigger svg{display:block; width:22px; height:22px; transform:rotate(-90deg); opacity:.7;}
  .nh-dropdown{width:100%;}
  /* pätka menu: CTA + telefón úplne dole */
  .nh-menu-foot{display:flex; flex-direction:column; gap:14px; margin-top:auto; padding-top:32px;}
  .site-header .nh-links .nh-cta-menu{width:100%; justify-content:center; padding:14px 24px; font-size:17px; border:0 !important;}
  :root body .site-header .nh-links .nh-menu-phone{padding:6px 0; border:0; font-size:17px; text-align:center; opacity:.8;}

  /* samostatná stránka s výberom systémov (celá výška) */
  .nh-sheet{
    display:flex; flex-direction:column; gap:22px; position:fixed; inset:0; z-index:50; height:100dvh;
    padding:112px var(--nh-x) 32px; overflow-y:auto; color:#fff;
    background:#0d1a2d;
    opacity:0; visibility:hidden; transform:translateX(32px);
    transition:opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility .4s;
  }
  .nh-sheet.is-open{opacity:1; visibility:visible; transform:none;}
  .nh-sheet-top{display:flex; align-items:center; gap:16px;}
  .nh-sheet-back{
    width:46px; height:46px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; color:#fff; cursor:pointer;
    background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
    transition:background .2s ease, transform .2s ease;
  }
  .nh-sheet-back:hover{background:rgba(255,255,255,.2); transform:translateX(-2px);}
  .nh-sheet-back svg{width:22px; height:22px;}
  .nh-sheet-title{font-size:32px; font-weight:500; letter-spacing:-.02em;}
  .nh-sheet-list{display:grid; grid-template-columns:1fr; gap:0 32px;}
  .nh-sheet-item{
    display:flex; align-items:center; gap:18px; padding:14px 4px; font-size:20px; line-height:1.25; color:#fff;
    border-bottom:1px solid rgba(255,255,255,.1); transition:background .2s ease;
  }
  .nh-sheet-ico{
    display:grid; place-items:center; width:50px; height:50px; flex-shrink:0; border-radius:14px;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); transition:background .25s ease, border-color .25s ease;
  }
  .nh-sheet-ico svg{width:26px; height:26px;}
  .nh-sheet-item:active .nh-sheet-ico, .nh-sheet-item:hover .nh-sheet-ico{background:#b93131; border-color:#b93131;}
}
@media (min-width:701px) and (max-width:1024px){
  .nh-sheet-list{grid-template-columns:1fr 1fr;}
  .nh-links{padding-inline:max(var(--nh-x), 48px);}
}

/* Menšia navigačná lišta (o ~15 %): menšie logo a odsadenie */
.site-header{padding-block:8px; top:10px;}
.site-header.is-scrolled{padding-block:6px;}
.nh-logo{height:40px;}
.site-header.is-scrolled .nh-logo{height:34px;}
@media (max-width:700px){
  .nh-logo{height:34px;}
  .site-header.is-scrolled .nh-logo{height:30px;}
  .nh-toggle{width:38px; height:38px;}
}
@media (max-width:1024px){
  .nh-links, .nh-sheet{padding-top:104px;}
}

@media (min-width:1025px){
  .site-header:not(.is-scrolled) .nh-links > a,
  .site-header:not(.is-scrolled) .nh-trigger{padding:9px 22px;}
  .site-header:not(.is-scrolled) .nh-links > a::after,
  .site-header:not(.is-scrolled) .nh-trigger::after{left:22px; right:22px; bottom:3px;}
}

/* Tlačidlo "Vyžiadať ponuku" v lište: písmo o 2 px menšie (14 px) */
:root body .site-header .nh-right .nh-cta{font-size:14px;}

/* Lišta: stredná veľkosť (medzi pôvodnou a príliš úzkou verziou) */
.site-header{padding-block:9px;}
.site-header.is-scrolled{padding-block:8px;}
.nh-logo{height:42px;}
.site-header.is-scrolled .nh-logo{height:37px;}
@media (min-width:1025px){
  .site-header:not(.is-scrolled) .nh-links > a,
  .site-header:not(.is-scrolled) .nh-trigger{padding:11px 22px;}
  .site-header:not(.is-scrolled) .nh-links > a::after,
  .site-header:not(.is-scrolled) .nh-trigger::after{bottom:5px;}
}
@media (max-width:700px){
  .nh-logo{height:36px;}
  .site-header.is-scrolled .nh-logo{height:32px;}
  .nh-toggle{width:40px; height:40px;}
}
@media (max-width:1024px){
  .nh-links, .nh-sheet{padding-top:108px;}
}

/* Otvorené menu / výber systémov (tablet a mobil): horný pás s logom a krížikom má rozmazané pozadie,
   spodná hrana plynule vyblednúť, aby obsah pod ním neprechádzal cez logo */
@media (max-width:1024px){
  .site-header.is-open::after{
    content:""; position:fixed; left:0; right:0; top:0; height:108px; z-index:50; pointer-events:none;
    background:linear-gradient(to bottom, rgba(13,26,45,.92) 0%, rgba(13,26,45,.7) 62%, rgba(13,26,45,0) 100%);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
    -webkit-mask-image:linear-gradient(to bottom, #000 58%, transparent 100%);
            mask-image:linear-gradient(to bottom, #000 58%, transparent 100%);
  }
}

/* Po odscrollovaní: lišta s plne okrúhlymi bokmi (pilulka) */
.site-header::before{transition:background .35s ease, border-color .35s ease, box-shadow .35s ease, border-radius .35s ease;}
.site-header.is-scrolled::before{border-radius:999px;}
@media (min-width:1025px){ .site-header.is-scrolled{padding-inline:34px;} }

/* Lišta nad hero: o trochu vyššia, jemnejšie zaoblenie a malý odstup po stranách (nekončí na hrane hero) */
.site-header{left:24px; right:24px; max-width:1368px; padding-block:12px;}
.site-header::before{border-radius:13px;}
.site-header.is-scrolled{padding-block:8px;}
@media (max-width:700px){
  .site-header{left:10px; right:10px; padding-block:9px;}
  .site-header.is-scrolled{padding-block:8px;}
}

/* Plynulý prechod hranatých rohov na okrúhle: cieľ je reálna polovica výšky lišty (nie 999 px, ktoré animáciu "skratuje" hneď na začiatku) */
.site-header::before{
  transition:background .45s ease, border-color .45s ease, box-shadow .45s ease, border-radius .45s cubic-bezier(.4,0,.2,1);
}
.site-header.is-scrolled::before{border-radius:30px;}
.site-header{transition:padding .45s cubic-bezier(.4,0,.2,1);}

/* Výber systémov (tablet/mobil): titulok so šípkou späť zostáva stále hore (sticky),
   posúva sa len zoznam pod ním, ktorý pri hornom okraji jemne vybledne */
@media (max-width:1024px){
  .nh-sheet{overflow:hidden; padding-bottom:0;}
  .nh-sheet-top{flex-shrink:0; padding-bottom:14px;}
  .nh-sheet-list{
    flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; align-content:start;
    padding-top:6px; padding-bottom:36px;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 22px);
            mask-image:linear-gradient(to bottom, transparent 0, #000 22px);
  }
}

/* podskupiny v rozbaľovacom menu Systémy (značky plastových okien, brány) */
.nh-subs{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:8px 28px; margin-top:14px; padding-top:16px; border-top:1px solid rgba(255,255,255,.18);}
.site-header.is-scrolled .nh-subs{border-top-color:rgba(13,26,45,.12);}
.nh-sub{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 14px; align-content:start;}
.nh-sub-h{grid-column:1/-1; margin-bottom:6px; font-size:12.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; opacity:.7;}
.site-header .nh-sub a{padding:7px 10px; border-radius:10px; font-size:15.5px; color:#fff; text-shadow:none; line-height:1.3; transition:background .2s ease, color .2s ease;}
.site-header .nh-sub a:hover{background:rgba(255,255,255,.12);} .site-header .nh-sub a::after{display:none !important;}
.site-header.is-scrolled .nh-sub a{color:var(--nh-ink);} .site-header.is-scrolled .nh-sub a:hover{background:rgba(255,255,255,.6); color:var(--nh-accent);}
.nh-sheet-h{margin:18px 16px 4px; font-size:12.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; opacity:.6;}
.nh-sheet-sub{padding-left:22px !important; font-size:16px;}
@media (max-width:1024px){ .nh-subs{display:none;} }

.nh-sub b{font-weight:700;}
