:root{
  --bg:#0a0a0a;
  --surface:#141414;
  --surface2:#101010;
  --text:#f0f0f0;
  --muted:#a0a0a0;
  --accent:#c88141;
  --accent-rgb: 200, 129, 65;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.05);
}

/* Base */
*{box-sizing:border-box; margin:0; padding:0;}
img{max-width:100%; height:auto; display:block;}

/* Powrót do czystego html/body bez sztucznych blokad */
html{scroll-behavior:smooth;}
body{
  font-family: Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit; text-decoration:none;}
.container{max-width:1100px; margin:0 auto; padding:0 20px;}

/* Accessibility / focus / mobile tap */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
button, a, .faq-q, .process-trigger {
  -webkit-tap-highlight-color: transparent;
}

/* Header */
.site-header{
  position:sticky; top:0;
  background:rgba(10,10,10,0.92);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index:10;
}

/* ROZCIĄGNIĘCIE MENU SKRAJNIE NA BOKI NA KOMPUTERACH */
.site-header .container {
  max-width: 100%;
  padding: 0 40px;
}

.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:70px;
}
.logo{font-weight:800; letter-spacing:2px; text-transform:uppercase;}
.logo span{color:var(--accent);}

/* --- MOBILE MENU --- */
.mobile-menu-btn {
  display: none; /* Ukryte na desktopie */
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}
.nav{display:flex; gap:18px; font-size:14px; text-transform:uppercase; letter-spacing:1px; flex-wrap:wrap;}
.nav a{color:var(--muted); transition: color .2s ease;}
.nav a:hover{color:var(--accent);}

@media(max-width: 850px) {
  /* Przywrócenie standardowych marginesów na telefonie dla nagłówka */
  .site-header .container {
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: block; /* Pokazujemy hamburgera na mobile */
  }
  .nav {
    display: none; /* Ukrywamy menu domyślnie na mobile */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .nav.is-open {
    display: flex; /* Klasa dodawana przez JS */
  }
  
  /* Czyste przesunięcie logo graficznie, bez psucia osi ekranu */
  .logo { 
    font-size: 18px; 
    letter-spacing: 1px; 
    transform: translateX(-10px); 
  }
}

@media(max-width: 400px) {
  /* Jeszcze mniejsze logo dla bardzo wąskich ekranów */
  .logo { 
    font-size: 15px; 
    letter-spacing: 0.5px; 
  }
}
/* ------------------- */

/* Hero */
.hero{
  min-height:80vh;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border);
  background-image:
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.28)),
    url("../images/ui/hero-bg.webp"); /* <--- Zmiana z .png na .webp */
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-content{padding:80px 0;}
.hero h1{font-size:40px; line-height:1.15; margin-bottom:14px; text-shadow:0 2px 18px rgba(0,0,0,0.65);}
.hero p{color:var(--muted); max-width:720px; margin-bottom:24px; text-shadow:0 2px 14px rgba(0,0,0,0.55);}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap;}

/* --- MOBILE HERO SIZING --- */
@media(max-width: 600px) {
  .hero { min-height: auto; } 
  .hero-content { padding: 50px 0 60px; } 
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; margin-bottom: 20px; }
}

/* Sections */
.section{padding:60px 0; border-bottom:1px solid rgba(255,255,255,0.03);}
.section h2{font-size:28px; margin-bottom:10px;}
.section p{color:var(--muted); margin-bottom:16px; max-width:900px;}
.section-no-bottom{padding-bottom:0;}
.cta-row{margin-top:18px; margin-bottom:24px;}
.hint{color:var(--muted); font-size:13px; margin-top:8px;}

/* Buttons */
.btn{
  display:inline-flex; justify-content:center; align-items:center;
  padding:12px 18px;
  border:1px solid var(--border);
  border-radius:2px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.btn-primary{background:var(--accent); color:#000; border-color:var(--accent);}
.btn-outline{background:transparent; color:var(--text);}
.btn-outline:hover{border-color:var(--text);}
.btn-primary:hover{filter:brightness(1.03);}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap:16px;
  margin-top:20px;
}
.card{
  display:block;
  padding:18px;
  background:var(--surface);
  border:1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(var(--accent-rgb),0.6);}
.card h3{margin-bottom:6px; letter-spacing:1px; text-transform:uppercase; font-size:16px;}
.card p{margin:0; color:var(--muted);}

/* Card media */
.card-media{
  height:260px;
  margin:-18px -18px 14px -18px;
  border-bottom:1px solid var(--border);
  background:var(--surface2);
  overflow:hidden;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Split / Media grids */
.split{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
  align-items:start;
  margin-top:18px;
}
@media(min-width:900px){
  .split{ grid-template-columns: 1.05fr 0.95fr; }
}
.media-grid{
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
  margin-top:14px;
}
@media(min-width:600px){
  .media-grid{ grid-template-columns: 1fr 1fr; }
}
.imgbox{
  border:1px solid var(--border);
  background:var(--surface2);
  overflow:hidden;
}
.imgbox img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:220px;
}
.imgbox.lg img{min-height:320px;}
.imgbox.sm img{min-height:160px;}

/* Galeria klimatu */
.media-grid--gallery .imgbox img{ min-height:300px; }

/* Process section layout */
.media-grid--process{
  grid-template-columns:1fr;
  gap:16px;
}
@media(min-width:700px){
  .media-grid--process{
    grid-template-columns:1fr 1fr;
  }
}
@media(min-width:1100px){
  .media-grid--process{
    grid-template-columns:repeat(4, 1fr);
  }
}

.process-box{
  padding:6px;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.process-box img{
  min-height:0;
  width:auto;
  max-width:92%;
  height:280px;
  max-height:280px;
  object-fit:contain;
  background:transparent;
  transition:filter .2s ease, transform .2s ease, opacity .2s ease;
}

.process-trigger{
  cursor:pointer;
}

.process-trigger:hover,
.process-trigger.is-active{
  border-color:rgba(var(--accent-rgb),0.55);
  box-shadow:0 0 0 1px rgba(var(--accent-rgb),0.12);
}

.process-trigger:hover img,
.process-trigger.is-active img{
  filter:brightness(1.08);
  transform:scale(1.01);
}

.process-list{
  margin-top:22px;
}

.process-item{
  transition:color .2s ease;
}

.process-item.is-active{
  color:var(--accent);
}

/* Process list */
.process{margin-left:18px; color:var(--muted); margin-top:18px;}
.process li{margin:8px 0;}

/* Form */
.contact-form{display:grid; gap:14px; max-width:760px;}
.contact-form label{display:grid; gap:6px; color:var(--muted); font-size:14px;}
.contact-form input,
.contact-form textarea{
  padding:12px;
  background:#050505;
  border:1px solid rgba(255,255,255,0.15);
  color:var(--text);
  border-radius:2px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:rgba(var(--accent-rgb),0.8);
  box-shadow:0 0 0 2px rgba(var(--accent-rgb),0.15);
}
.contact-form textarea{min-height:110px; resize:vertical;}

/* Footer */
.site-footer{padding:26px 0; text-align:center; color:var(--muted);}

/* Product pages */
.product-hero{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
  align-items:start;
  margin-top:18px;
}
@media(min-width:900px){
  .product-hero{grid-template-columns:1.12fr 0.88fr;}
}
.product-media{
  border:1px solid var(--border);
  background:var(--surface2);
  overflow:hidden;
  height:380px;
}
@media(min-width:600px){ .product-media{height:560px;} }
@media(min-width:900px){ .product-media{height:680px;} }
.product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.price{font-size:28px; font-weight:800; margin:10px 0 10px;}
.specs{
  list-style:none;
  display:grid;
  gap:10px;
  margin:16px 0 22px;
}
.specs li{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--border2);
  color:var(--muted);
}
.specs strong{color:var(--text); font-weight:700;}

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:18px;
}
.gallery img{
  border:1px solid var(--border);
  background:var(--surface2);
}

/* Center titles used on product pages */
.section-title-center{
  text-align:center;
  text-transform:uppercase;
  letter-spacing:3px;
  font-weight:800;
}
.section-title-center .line{
  width:54px;
  height:2px;
  background:var(--accent);
  margin:12px auto 0;
}

/* Q&A */
.qa{max-width:760px; margin:28px auto 0;}
.qa .q{color:var(--text); font-weight:800; font-size:20px; margin-top:18px;}
.qa .a{color:var(--muted); margin-top:8px;}

/* See also */
.see-also{margin-top:40px;}
.see-also-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:22px;
}
@media(min-width:800px){
  .see-also-grid{grid-template-columns:1fr 1fr;}
}
.see-also-btn{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,0.22);
  background:transparent;
  color:var(--text);
  text-transform:none;
  letter-spacing:0.5px;
  font-weight:700;
  text-align:center;
}
.see-also-btn:hover{border-color:var(--accent); color:var(--accent);}

/* FAQ */
.faq{
  max-width:900px;
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  font-weight:800;
  font-size:16px;
  text-align:left;
  cursor:pointer;
  text-transform:none;
  letter-spacing:0;
}
.faq-q:hover{
  border-color:rgba(var(--accent-rgb),0.6);
}
.faq-icon{
  color:var(--text);
  font-weight:900;
  font-size:18px;
  line-height:1;
  opacity:0.9;
}
.faq-a{
  padding:12px 16px 16px 16px;
  border:1px solid var(--border);
  border-top:none;
  background:rgba(255,255,255,0.02);
  color:var(--muted);
}

/* Small utilities */
.soft-box{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  padding:18px;
  margin-top:20px;
}

.mt-10{margin-top:10px;}
.mt-34{margin-top:34px;}
.mb-0{margin-bottom:0;}