*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;line-height:1.6;color:#111}
a{color:inherit}
a:hover,a:focus{text-decoration:underline}
img{max-width:100%;height:auto}
:focus{outline:3px solid #1a73e8;outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;padding:.5rem 1rem;background:#000;color:#fff;border-radius:.5rem;z-index:10000}
.container{max-width:1200px;margin:0 auto;padding:clamp(12px,2vw,24px)}

/* Full-image background – always fully visible */
.bg-frame{position:fixed;inset:0;z-index:-2;background:#000;}
.bg-frame img{width:100vw;height:100vh;object-fit:contain;object-position:center top;display:block}

/* Sticky header + dark semi-transparent backdrop */
.site-header{position:fixed;top:0;left:0;right:0;z-index:999;background:rgba(0,0,0,.72);backdrop-filter:saturate(1.2) blur(2px);color:#fff}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand-link{display:flex;align-items:center;gap:.6rem;text-decoration:none}
.logo{width:42px;height:auto;border-radius:.4rem;box-shadow:0 0 0 2px rgba(255,255,255,.4) inset}
.brand h1{margin:0;font-size:clamp(1.1rem,2.3vw,1.6rem);color:#fff}
.nav{list-style:none;margin:0;padding:0;display:flex;gap:.25rem;flex-wrap:wrap}
.nav a{display:inline-block;padding:.6rem .8rem;border-radius:.45rem;color:#fff;text-decoration:none}
.nav a[aria-current="page"]{background:rgba(255,255,255,.18)}
.nav a:hover,.nav a:focus{background:rgba(255,255,255,.18)}

/* Landing spacer under sticky header */
.hero-only{min-height:100vh}
main{padding-top:76px}
@media (max-width:640px){ main{padding-top:66px}}

/* Paper containers */
.paper{display:block;max-width:1040px;margin:clamp(16px,4vw,40px) auto;padding:0}
.paper>.container{background:#ffffffee;border:1px solid #e3e7ef;border-radius:1rem;box-shadow:0 6px 24px rgba(0,0,0,.08);padding:clamp(16px,3vw,28px)}
.section{padding:clamp(28px,4vw,48px) 0}
.section h2{margin-top:0}

/* Cards for articles */
.card{background:#fff;border:1px solid #e3e7ef;border-radius:.75rem;padding:clamp(12px,2vw,20px);box-shadow:0 1px 2px rgba(0,0,0,.04);margin-bottom:.75rem}
.card-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}
.article-title{margin:0;font-size:clamp(1.05rem,2vw,1.25rem)}
.article-date{margin:0;font-size:.95rem;color:#444}
.card p{margin:.25rem 0 0}

/* Gallery grid (also for Referencje) */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}
.gallery-grid a{display:block;border-radius:.5rem;overflow:hidden;border:2px solid transparent}
.gallery-grid a:focus{border-color:#1a73e8}
.gallery-grid img{display:block;width:100%;height:200px;object-fit:cover}

/* Pager bottom only */
.controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.75rem 0 0}
.btn{display:inline-block;padding:.45rem .75rem;border-radius:.5rem;background:#053f8a;color:#fff;border:2px solid transparent;text-decoration:none}
.btn:focus{outline-color:#fff}

/* Footer matches header: semi-transparent dark bar */
.site-footer{background:rgba(0,0,0,.72);backdrop-filter:saturate(1.2) blur(2px);color:#fff}
.site-footer a{color:#fff}

@media (prefers-contrast:more){
  a{border-bottom:2px solid currentColor}
  .btn{outline:2px solid currentColor}
}


/* ===== Mobile hamburger ===== */
.nav-toggle{
  display:none;
  appearance:none;
  border:2px solid #fff;
  background:transparent;
  color:#fff;
  border-radius:.6rem;
  padding:.4rem .5rem;
  line-height:1;
}
.nav-toggle:focus{outline:3px solid #fff;outline-offset:2px}
.nav-toggle .nav-toggle-bar{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:4px 2px;
  border-radius:2px;
}

@media (max-width: 860px){
  .header-inner{position:relative}
  .nav-toggle{display:inline-block}
  .nav{display:none; position:absolute; top:100%; right:clamp(12px,2vw,24px); left:clamp(12px,2vw,24px); background:rgba(0,0,0,.9); border-radius:.75rem; padding:.5rem; gap:.25rem}
  .nav.is-open{display:flex; flex-direction:column}
  .nav a{padding:.75rem 1rem}
}


/* Home: no scroll; footer fixed on home */
.home main{height:100vh; overflow:hidden}
.home .site-footer{position:fixed; left:0; right:0; bottom:0}

/* Footer exact like header, no borders/blue line */
.site-footer{background:rgba(0,0,0,.72); backdrop-filter:saturate(1.2) blur(2px); color:#fff; border-top:0}
.site-footer a{text-decoration:none; border-bottom:0}
.site-footer *:focus{outline-color:#fff}

/* Ensure single background layer and fixed behavior */
.bg-frame img{position:fixed}

/* Bigger logo for visibility */
.logo{width:72px}
@media (max-width:640px){
  .logo{width:56px}
}

/* Lightbox */
.lb{position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:10000}
.lb[aria-hidden="false"]{display:flex}
.lb-img{max-width:90vw; max-height:85vh; box-shadow:0 10px 30px rgba(0,0,0,.5); border-radius:.5rem}
.lb-close,.lb-prev,.lb-next{
  position:fixed; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.6); color:#fff; border:2px solid rgba(255,255,255,.6);
  border-radius:.6rem; padding:.4rem .6rem; font-size:1.5rem; cursor:pointer
}
.lb-close{top:clamp(12px,3vw,24px); right:clamp(12px,3vw,24px); transform:none}
.lb-prev{left:clamp(8px,3vw,24px)}
.lb-next{right:clamp(8px,3vw,24px)}
.lb button:focus{outline:3px solid #fff; outline-offset:2px}
.gallery-grid a{cursor:zoom-in}


/* Sticky footer on short pages */
html, body { height:100%; }
body { display:flex; flex-direction:column; min-height:100vh; }
main { flex:1 0 auto; }
.site-footer { margin-top:auto; }



/* Hero intro text on home */
.hero-only{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(24px,6vw,64px);
  text-align:center;
}
.hero-copy{
  font-family:'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color:#fff;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.2);
  border-radius:1rem;
  padding:clamp(16px,4vw,40px);
  max-width:min(960px, 92vw);
  box-shadow:0 10px 40px rgba(0,0,0,.35);
  backdrop-filter:saturate(1.1) blur(2px);
}
.hero-copy h2{
  margin:0 0 .35em 0;
  font-weight:700;
  font-size:clamp(2rem, 5vw, 3rem);
  line-height:1.15;
}
.hero-copy p{
  margin:0;
  font-weight:500;
  font-size:clamp(1.1rem, 2.4vw, 1.4rem);
  line-height:1.6;
}


/* Menu icons */
.nav-ic-wrap{display:inline-flex; align-items:center; justify-content:center; margin-right:.5rem}
.nav-ic{width:1.1em; height:1.1em; display:block}
.nav a{gap:.4rem}

.contact-logo-wrap{display:flex; justify-content:center; margin:clamp(12px,3vw,24px) 0}
.contact-logo{width:min(420px, 60vw); height:auto; filter:drop-shadow(0 10px 24px rgba(0,0,0,.3))}


/* Articles list */
.articles .post{padding:1rem 0; border-bottom:1px solid rgba(255,255,255,.15)}
.articles .post:last-child{border-bottom:0}
.post-meta{opacity:.85; font-size:.95rem; margin:.25rem 0 1rem}
