/* tomaszeleznik.sk — zjednotená lišta podľa úvodnej stránky (layout 18733)
   Nasadené 2026-12-02. Nemení obsah stránok, len hlavičku. */

/* Stabilná šírka viewportu ako na úvode (tam je vždy zvislý scrollbar).
   Bez tohto sú krátke stránky o ~15 px širšie a lišta sa posunie. */
html{overflow-y:scroll!important;scrollbar-gutter:stable!important}


.tz-bar{
  background:#6a6a6a;
  color:#fdfdfd;
  position:sticky;
  top:0;
  z-index:10000;
  border:0;
  box-shadow:none;
  font-family:span,serif;
}
.tz-bar *,
.tz-bar *::before,
.tz-bar *::after{box-sizing:border-box}
.tz-bar a{color:#fdfdfd}
.tz-bar a:hover{color:#fdfdfd}

.tz-bar .tz-in{
  width:100%;
  max-width:none;
  margin:0;
  padding:20px 50px;
  min-height:105px;
  display:flex;
  align-items:center;
  gap:0;
  box-sizing:border-box;
}

.tz-bar .tz-logo{
  flex:0 0 14%;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}
.tz-bar .tz-logo img{
  height:auto;
  max-height:39px;
  width:auto;
  max-width:100%;
  display:block;
}

.tz-bar .tz-toggle{
  display:none;
  background:none;
  border:0;
  padding:4px;
  margin:0 0 0 12px;
  color:#fdfdfd;
  cursor:pointer;
  line-height:0;
  flex:0 0 auto;
}
.tz-bar .tz-toggle svg{display:block}

.tz-bar nav{
  flex:1 1 auto;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  gap:0;
}

.tz-bar nav a{
  color:#fdfdfd !important;
  text-decoration:none !important;
  font-family:span,serif;
  font-weight:400;
  font-size:13px;
  line-height:25.5px;
  letter-spacing:normal;
  text-transform:none;
  padding:10.4px .45em;
  margin:0;
  white-space:nowrap;
  border:0 !important;
  background:none;
  box-shadow:none;
}
.tz-bar nav a:hover,
.tz-bar nav a:focus,
.tz-bar nav a:focus-visible{
  color:#fdfdfd !important;
  outline:none;
}
.tz-bar nav a::after{
  content:"";
  display:block;
  position:relative;
  bottom:-2px;
  height:2px;
  width:0;
  background:#fdfdfd;
  transition:width .25s ease;
}
.tz-bar nav a:hover::after,
.tz-bar nav a:focus-visible::after,
.tz-bar nav a[aria-current="page"]::after,
.tz-bar nav a.is-current::after{
  width:100%;
}

.tz-bar nav a.tz-zasady{display:none}
@media (min-width:1600px){
  .tz-bar nav a.tz-zasady{display:block}
}

.tz-bar .tz-right{
  flex:0 0 8%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  margin-right:8px;
}
@media (min-width:1024px){
  /* Elementor column-gap-extended ≈ 15 px medzi stĺpcami úvodnej lišty */
  .tz-bar nav{margin-left:15px}
  .tz-bar .tz-right{margin-right:23px}
}
.tz-bar .tz-grid,
.tz-bar .tz-search{
  display:flex;
  align-items:center;
  justify-content:center;
  width:21px;
  height:21px;
  padding:0;
  margin:0;
  color:#fdfdfd;
  background:none;
  border:0;
  cursor:pointer;
  line-height:0;
  flex:0 0 auto;
  text-decoration:none;
}
.tz-bar .tz-grid svg,
.tz-bar .tz-search svg{
  display:block;
  width:21px;
  height:21px;
  stroke:#fdfdfd;
  fill:none;
}
.tz-bar .tz-search{display:none}

/* 1024–1279: stále vodorovné menu, menšie logo v 14 % stĺpci */
@media (min-width:1024px) and (max-width:1279px){
  .tz-bar .tz-logo img{max-height:none}
}

/* 768–1023: logo, hamburger pri logu, mriežka vpravo */
@media (max-width:1023px){
  .tz-bar .tz-in{
    padding:20px 50px;
    min-height:106px;
    flex-wrap:wrap;
  }
  .tz-bar .tz-logo{
    flex:0 0 auto;
    justify-content:flex-start;
  }
  .tz-bar .tz-logo img{
    height:56px;
    max-height:56px;
    width:auto;
  }
  .tz-bar .tz-toggle{display:block}
  .tz-bar nav{display:none}
  .tz-bar .tz-right{
    flex:0 0 auto;
    margin-left:auto;
    margin-right:0;
  }
  .tz-bar.is-open nav{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    flex:1 0 100%;
    width:100%;
    padding:8px 0 16px;
  }
  .tz-bar.is-open nav a{
    padding:10px 0;
    font-size:16px;
    line-height:1.4;
    white-space:normal;
  }
  .tz-bar.is-open nav a.tz-zasady{display:block}
  .tz-bar.is-open nav a::after{bottom:0}
}

/* do 767: ako úvod — logo, lupa + hamburger vpravo, bez mriežky */
@media (max-width:767px){
  .tz-bar .tz-in{
    padding:18px 20px;
    min-height:92px;
  }
  .tz-bar .tz-logo{order:1}
  .tz-bar .tz-logo img{height:56px;max-height:56px}
  .tz-bar .tz-right{order:2;margin-left:auto}
  .tz-bar .tz-search{display:flex}
  .tz-bar .tz-grid{display:none}
  .tz-bar .tz-toggle{order:3;margin-left:12px}
  .tz-bar nav{order:4}
}

/* vyhľadávanie — jednoduchý overlay, odosiela na úvodný WP search */
.tz-search-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:10020;
  background:rgba(18,18,18,.72);
  align-items:flex-start;
  justify-content:center;
  padding:24px 16px;
}
.tz-search-overlay.is-open{display:flex}
.tz-search-overlay form{
  width:min(100%,520px);
  margin-top:80px;
  display:flex;
  gap:8px;
}
.tz-search-overlay input[type="search"]{
  flex:1;
  font-family:span,serif;
  font-size:18px;
  padding:12px 14px;
  border:0;
  border-radius:2px;
  background:#fff;
  color:#121217;
}
.tz-search-overlay button[type="submit"]{
  font-family:span,serif;
  font-size:16px;
  padding:12px 16px;
  border:0;
  border-radius:2px;
  background:#e67937;
  color:#fdfdfd;
  cursor:pointer;
}

/* panel mriežky (obdoba #popup-2 na úvode) */
.tz-panel-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:10010;
  background:rgba(18,18,18,.45);
}
.tz-panel-overlay.is-open{display:block}
.tz-panel{
  position:fixed;
  top:0;
  right:0;
  z-index:10011;
  width:min(100%,360px);
  height:100%;
  background:#1b1b1b;
  color:#fdfdfd;
  font-family:span,serif;
  padding:36px 32px;
  box-sizing:border-box;
  overflow:auto;
  transform:translateX(100%);
  transition:transform .3s ease;
}
.tz-panel.is-open{transform:translateX(0)}
.tz-panel .tz-panel-close{
  position:absolute;
  top:16px;
  right:16px;
  background:none;
  border:0;
  color:#fdfdfd;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.tz-panel .tz-panel-logo{display:inline-block;margin:8px 0 28px}
.tz-panel .tz-panel-logo img{height:36px;width:auto;display:block}
.tz-panel .tz-panel-socials{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 28px;
}
.tz-panel .tz-panel-socials a,
.tz-panel .tz-panel-contact a{
  color:#fdfdfd;
  text-decoration:none;
  font-size:16px;
}
.tz-panel .tz-panel-socials a:hover,
.tz-panel .tz-panel-contact a:hover{color:#e67937}
.tz-panel .tz-panel-contact{font-size:16px;line-height:1.7}
.tz-panel .tz-panel-contact a{display:block}

body.tz-lock{overflow:hidden}
