:root{
  --green:#148a3b;
  --red:#cf1d1d;
  --black:#0b0b0b;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;
  --bg:#ffffff;
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;
  background:var(--bg);
}
a{color:inherit;text-decoration:none}

/* Uniwersalny kontener strony (używany w main, podstronach itd.) */
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}

/* ===== TOPBAR + HEADER ===== */
.topbar{background:var(--green);color:#fff;font-weight:600}
.topbar .wrap{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:flex-end;
  padding:10px 16px;
}
.chip{display:flex;align-items:center;gap:10px;opacity:.95}
.chip .ico{
  width:28px;height:28px;border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  display:inline-flex;align-items:center;justify-content:center;
}

header{background:#fff;border-bottom:1px solid var(--border)}
header .wrap{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 16px;
}

/* LOGO */
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.logo-badge{
  width:62px;height:26px;border-radius:6px;
  background:linear-gradient(90deg,var(--red),#fff,var(--green));
  display:inline-block;
}
.logo-media{display:inline-flex;align-items:center;justify-content:center}
.logo-img{
  height:64px;           /* ✅ główna wysokość logo (desktop) */
  width:auto;
  max-width:220px;
  display:block;
  border-radius:6px;
  object-fit:contain;
}
.logo-text{line-height:1}

/* Search + menu */
.search{flex:1;display:flex;justify-content:center}
.search form{width:min(520px,100%);display:flex;gap:10px;align-items:center}
.search input{
  flex:1;
  border:1px solid var(--border);
  border-radius:999px;
  padding:12px 16px;
  font-size:14px;
  outline:none;
}
.search button{
  border:0;
  background:var(--red);
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:800;
}
.menu{display:flex;gap:18px;align-items:center;font-weight:800}
.menu a{padding:8px 0;border-bottom:2px solid transparent}
.menu a:hover{border-bottom-color:var(--red)}

/* CATBAR */
.catbar{background:var(--red);color:#fff}
.catbar .wrap{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  padding:10px 16px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  font-size:13px;
  overflow:visible;
  line-height:1.2;
}
.catbar a{
  white-space:nowrap;
  opacity:.95;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
}
.catbar a:hover{opacity:1;background:rgba(255,255,255,.12)}

/* ===== HERO ===== */
.hero{position:relative;min-height:460px;background:#111;color:#fff;overflow:hidden}
.hero .bg{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center;
  filter:grayscale(.2);
  transform:scale(1.02);
  transition:opacity .45s ease;
}
.hero .bg.is-fading{opacity:.05}
.hero .shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.25))}
.hero .wrap{
  position:relative;
  max-width:1200px;
  margin:0 auto;
  padding:88px 16px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;
}
.hero h1{font-size:56px;line-height:1.02;margin:0 0 12px}
.hero p{margin:0;color:rgba(255,255,255,.85);max-width:560px;line-height:1.5}
.hero .bar{
  position:absolute;left:16px;top:88px;
  width:60px;height:180px;
  background:rgba(207,29,29,.85);
  border-radius:12px;
}

/* CTA */
.cta{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:999px;padding:12px 18px;font-weight:900;cursor:pointer;
  border:1px solid transparent;
}
.btn-primary{background:var(--green);color:#fff}
.btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}

/* ===== MAIN / GRID ===== */
main{max-width:1200px;margin:0 auto;padding:26px 16px}
.grid{display:grid;gap:22px}
.cards3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.card .pad{padding:18px}

/* ===== HOME OFFER ===== */
.home-offer{padding:52px 0 60px}
.offer-title{
  text-align:center;
  font-size:54px;
  letter-spacing:1px;
  margin:0 0 26px;
  color:#1b1f23;
  font-weight:900;
}
.offer-grid{max-width:1200px;margin:0 auto}

.cat-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
  padding:0;
  min-height:0;
}
.cat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}
.cat-card .thumb{
  width:100%;
  height:220px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cat-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-width:none;
  max-height:none;
}
.cat-card .label{
  padding:16px 18px;
  color:#111;
  font-weight:900;
  font-size:18px;
  text-align:left;
  letter-spacing:.5px;
  line-height:1.2;
}


/* ===== LAYOUT / PRODUCTS ===== */
.layout{display:grid;grid-template-columns:320px 1fr;gap:26px}
.panel{border:1px solid var(--border);border-radius:var(--radius);padding:18px;background:#fff}
.panel h3{margin:0 0 12px;font-size:18px}
.panel .row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border)}
.panel .row:last-child{border-bottom:0}
.panel a{font-weight:800}
.panel .count{color:var(--muted);font-weight:800}
.panel label{display:flex;align-items:center;gap:10px;font-weight:700}
.panel input[type=checkbox]{width:18px;height:18px}
.toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:6px 0 18px}
select{border:1px solid var(--border);border-radius:999px;padding:10px 12px;font-weight:800}

.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.prod-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff}
.prod-card .img{height:220px;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.prod-card img{width:100%;height:100%;object-fit:cover}
.prod-card .pad{padding:18px}
.prod-card h4{margin:0 0 10px;font-size:20px;font-weight:900}
.prod-card .sub{color:var(--muted);font-weight:700;font-size:13px}
.prod-card .price{margin-top:8px;color:var(--red);font-weight:900}

/* ===== PRODUCT PAGE ===== */
.prod-top{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:start}
.prod-top > *{min-width:0} /* zapobiega rozpychaniu siatki na wąskich ekranach */
.gallery{min-width:0}
.crumb{color:var(--muted);font-weight:800;font-size:13px;margin-bottom:10px;overflow-wrap:anywhere}
.gallery{position:relative}
.gal-main{border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);background:#fff}
.gal-main img{width:100%;height:420px;object-fit:cover;display:block}
.gal-thumbs{display:flex;gap:12px;margin-top:14px;align-items:center;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.thumb{flex:0 0 auto;width:96px;height:62px;border-radius:14px;overflow:hidden;border:2px solid transparent;cursor:pointer;background:transparent}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb.active{border-color:var(--red)}
.navbtn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:46px;height:46px;border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
}
.navbtn.prev{left:14px}
.navbtn.next{right:14px}

.std ul{margin:10px 0 0 18px;line-height:1.8}
.std li{margin-bottom:6px}
.headline{font-size:44px;margin:0 0 10px;font-weight:950;letter-spacing:-.02em}
.config-btn{width:100%;max-width:420px}

/* Obrazek "Dostępne kolory" */
.colors-link{display:block;max-width:100%}
.colors-img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
}

/* ===== SPEC ===== */
.kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:26px 0}
.kv .k{display:flex;align-items:center;gap:12px;border-top:1px solid var(--border);padding-top:14px;min-width:0}
.kv .k > div{min-width:0}
.kv b,.kv .sub{overflow-wrap:anywhere;word-break:break-word}
.kv .ico{width:38px;height:38px;border-radius:999px;border:1px solid var(--border);display:flex;align-items:center;justify-content:center}
.kv b{display:block}
.spec-wrap{margin-top:16px}
.spec-title{font-size:44px;font-weight:950;margin:40px 0 18px}
.spec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.spec-card{border:1px solid var(--border);border-radius:var(--radius);padding:18px;background:#fff}
.spec-card h4{margin:0 0 8px;font-size:22px;font-weight:950}
.spec-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}
.spec-row:last-child{border-bottom:0}
.spec-row .l{font-weight:800;min-width:0;overflow-wrap:anywhere}
.spec-row .r{color:#111;font-weight:800;min-width:0;overflow-wrap:anywhere}

/* ===== CONFIGURATOR ===== */
.wizard{display:grid;grid-template-columns:340px 1fr;gap:22px}
.steps{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:18px}
.step{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}
.step:last-child{border-bottom:0}
.badge{width:28px;height:28px;border-radius:999px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-weight:900}
.step.active .badge{background:var(--green);color:#fff}
.step.done .badge{background:#111;color:#fff}
.stage{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:18px}
.stage h2{margin:0 0 12px;font-size:26px;font-weight:950}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

@media (max-width: 860px){
  .opts{ grid-template-columns:1fr; }
}

.opt{border:1px solid var(--border);border-radius:16px;padding:14px;cursor:pointer}
.opt:hover{border-color:#cbd5e1}
.opt input{margin-right:10px}
.nav{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
.notice{background:#f3f4f6;border:1px solid var(--border);padding:12px 14px;border-radius:14px;color:#111}

/* Flash messages (validations / success) */
.notice.notice-flash{
  font-weight:950;
  border-width:2px;
}
.notice.notice-flash.notice-error{
  color:#b91c1c;
  border-color:#fecaca;
  background:#fff1f2;
}
.notice.notice-flash.notice-success{
  color:#14532d;
  border-color:#bbf7d0;
  background:#f0fdf4;
}

.form{display:grid;gap:12px}
.form input,.form textarea{border:1px solid var(--border);border-radius:14px;padding:12px 14px;font-size:14px;outline:none}
.form textarea{min-height:110px;resize:vertical}

/* Uniwersalny układ checkbox + opis (np. RODO) */
.chk{display:flex;gap:10px;align-items:flex-start}
.chk input[type="checkbox"]{margin-top:4px}

/* ===== FOOTER ===== */
footer{margin-top:40px;background:var(--black);color:#fff}
footer .wrap{max-width:1200px;margin:0 auto;padding:36px 16px}
footer .footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr;gap:40px;align-items:start}
footer h4{margin:0 0 10px;font-size:18px;font-weight:950}
footer a{color:rgba(255,255,255,.9);font-weight:700}
footer .muted{color:rgba(255,255,255,.7);line-height:1.6}
.small{font-size:13px;color:rgba(255,255,255,.6)}

/* RWD */
@media (max-width: 980px){
  .hero .wrap{grid-template-columns:1fr}
  .layout{grid-template-columns:1fr}
  .products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prod-top{grid-template-columns:1fr}
  .kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spec-grid{grid-template-columns:1fr}
  .wizard{grid-template-columns:1fr}
  .steps{order:2}
}
@media (max-width: 560px){
  .products{grid-template-columns:1fr}
  .hero h1{font-size:40px}
  .headline{font-size:34px}
  .spec-title{font-size:34px}
  .search{justify-content:flex-start}

  /* Produkt: galeria i specyfikacje – bez wychodzenia poza ekran */
  .gal-main{max-width:100%}
  .gal-main img{height:320px;max-width:100%}
  .thumb{width:74px;height:54px;border-radius:12px}
  .navbtn{width:40px;height:40px}
  .spec-row{flex-direction:column;align-items:flex-start}
  .spec-row .r{text-align:left}

  /* Sekcja "wg specyfikacji" (KV) – nie może rozpychać siatki */
  .kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kv .k{min-width:0}
  .kv .k > div{min-width:0}
  .kv .ico{flex:0 0 38px}
  .kv .sub{display:block;overflow-wrap:anywhere;word-break:break-word}

  /* Thumby: zawsze przewijane w poziomie, bez wychodzenia poza ekran */
  .gal-thumbs{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .thumb{flex:0 0 auto}
  /* Oferta (kategorie) – proporcje jak przy produktach */
  .cat-card .thumb{height:180px}
  .cat-card .label{text-align:center}

}
@media (max-width: 820px){
  .offer-title{font-size:36px}
  .cat-card{min-height:220px}
  .cat-card .thumb{height:120px}
}

/* Tymczasowo ukryj pionowy pasek */
.bar{display:none !important;}

/* Home: blok informacyjny pod ofertą (bez przycisku) */
.home-custom{
  padding:70px 0;
  background:#fff;
  overflow:hidden;
}
.custom-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:30px;
  align-items:center;
}
.custom-kicker{color:#b40000;font-weight:800;letter-spacing:.06em;font-size:14px;margin-bottom:14px}
.custom-title{
  font-size:clamp(34px, 4vw, 56px);
  line-height:1.02;
  margin:0 0 18px;
  font-weight:900;
  color:#1d1d1d;
  text-transform:uppercase;
}
.custom-text{margin:0;color:#333;line-height:1.65;max-width:560px;font-size:16px}
.custom-right{position:relative;min-height:340px;display:flex;justify-content:center;align-items:center}
.custom-img{width:min(560px, 100%);height:auto;z-index:2;display:block;border-radius:18px;filter:drop-shadow(0 20px 30px rgba(0,0,0,.12))}
.custom-lines{
  position:absolute;
  inset:-80px -140px -80px -140px;
  z-index:1;
  opacity:.35;
  background-image:
    radial-gradient(circle at 35% 55%, rgba(0,0,0,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 45%, rgba(0,0,0,.06) 0 1px, transparent 2px);
  background-size:42px 42px;
  transform:rotate(-8deg);
}

/* Fixy wizualne */
.home-custom .custom-lines{display:none !important;}
.home-custom .custom-img{filter:none !important;}
/* Mobile */
@media (max-width: 900px){
  .custom-wrap{grid-template-columns:1fr}
  .custom-right{order:2;min-height:260px}
}

/* Footer contact */
.footer-contact .contact-list{display:grid;gap:12px;margin-top:10px}
.footer-legal{
  margin-top:12px;
  font-size:13px;
  color:rgba(255,255,255,.9);
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.footer-legal a{color:#fff;text-decoration:underline;font-weight:700}
.footer-legal .dot{opacity:.7}
.contact-item{display:flex;gap:10px;align-items:flex-start}
.contact-item .ci{width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.08);flex:0 0 34px}
.footer a{color:inherit}

@media (max-width: 980px){
  footer .footer-grid{grid-template-columns:1fr 1fr;gap:24px}
}
@media (max-width: 540px){
  footer .footer-grid{grid-template-columns:1fr}
}
@media (max-width: 860px){
  .footer-contact{margin-top:8px}
}

/* ===== KONTAKT ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 480px;
  gap:32px;
  align-items:flex-start;
}
@media (max-width: 980px){
  .contact-grid{grid-template-columns:1fr}
  .contact-right{grid-column:1 / -1}
}
.contact-left{grid-column:1}
.contact-right{grid-column:2;font-size:14px;line-height:1.5}

.contact-form .field.field-wide{grid-column:1 / -1}

.contact-grid > label.chk,
.contact-grid > button,
.contact-grid > .sub{grid-column:1 / -1}

.contact-grid > label.chk{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:12px !important;
  width:100%;
  text-align:left;
}
.contact-grid > label.chk span{
  display:inline !important;
  flex:0 1 auto;
  text-align:left;
}

.contact-form .field{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin:10px 0;
}
@media (max-width: 600px){
  .contact-form .field{grid-template-columns:1fr;align-items:stretch}
  .contact-form .field label{margin-bottom:6px}
}
.contact-form .field label{font-weight:600;color:#111}

.contact-form input,
.contact-form select,
.contact-form textarea{width:100%;max-width:100%}

.contact-form textarea{
  min-height:320px;
  resize:vertical;
  max-width:none;
}
.contact-form .btn-primary{
  width:100%;
  padding:14px 16px;
  font-size:16px;
}

/* Checkbox RODO – poprawne ustawienie */
.contact-form .field.privacy-field{
  grid-template-columns:1fr;
  align-items:flex-start;
}
.contact-form .field.privacy-field > label{display:none}
.contact-form .field.privacy-field .chk{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 10px 0;
}
.contact-form .field.privacy-field .chk input[type="checkbox"]{margin-top:4px}

/* Contact sidebar formatting */
.contact-right .contact-box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:var(--card);
}
.cs-section{font-weight:700;margin-top:14px;margin-bottom:6px}
.cs-row{display:flex;align-items:center;gap:10px;margin:6px 0}
.cs-row .ico{width:20px;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.cs-row .ico img{width:18px;height:18px;display:block}
.cs-row a{color:inherit;text-decoration:none}
.cs-row a:hover{text-decoration:underline}
.cs-text{margin:4px 0}
.cs-space{height:8px}

/* Visual cleanup */
.custom-lines,
.bg-grid,
.grid-bg,
.dots-bg,
.pattern,
.section-bg,
.hero-bg,
.customize-bg,
.home-customize-bg{
  display:none !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}

.hero::before, .hero::after,
.home-customize::before, .home-customize::after,
.customize::before, .customize::after,
.customize-media::before, .customize-media::after,
.hero-media::before, .hero-media::after,
.hero-image::before, .hero-image::after,
.customize-visual::before, .customize-visual::after{
  content:none !important;
  display:none !important;
}

.home-customize .media,
.home-customize .thumb,
.customize-media,
.customize-visual,
.hero-media,
.hero-image{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border-radius:18px !important;
  overflow:hidden !important;
}

.home-customize img,
.customize-media img,
.customize-visual img,
.hero-media img,
.hero-image img{
  background:transparent !important;
  border-radius:18px !important;
  display:block;
}

/* NASZA OFERTA: rounded thumbs */
.offer-grid .cat-card .thumb,
.cards3 .cat-card .thumb,
.cat-card .thumb{
  background:transparent !important;
  background-image:none !important;
  border-radius:18px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.offer-grid .cat-card .thumb img,
.cards3 .cat-card .thumb img,
.cat-card .thumb img{
  border-radius:18px !important;
  background:transparent !important;
  display:block;
}
.offer-grid .cat-card .thumb::before,
.offer-grid .cat-card .thumb::after,
.cat-card .thumb::before,
.cat-card .thumb::after{
  content:none !important;
  display:none !important;
}

/* Kontakt: mapa */
.contact-map-block{margin-top:28px}
.contact-map-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.map-actions{display:flex;gap:10px;flex-wrap:wrap}
.contact-map-title{margin:0;font-size:16px;font-weight:600;opacity:.85}
.btn.btn-soft{background:#fff;border-color:var(--border);color:#111}
.btn.btn-soft:hover{border-color:#cbd5e1}
.contact-map{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.contact-map iframe{width:100%;height:260px;border:0;display:block}
@media(max-width:768px){
  .contact-map iframe{height:220px}
  .contact-map-top{flex-direction:column;align-items:flex-start}
  .map-actions{width:100%}
}

/* Footer map */
.footer-map-row{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}
.footer-map-row .contact-map-title{color:rgba(255,255,255,.9);opacity:1}
footer .btn.btn-soft{background:rgba(255,255,255,.95);border-color:rgba(255,255,255,.25);color:#111}
footer .btn.btn-soft:hover{background:#fff}
footer .contact-map{border-color:rgba(255,255,255,.18)}

.footer-map-row{width:100%;grid-column:1 / -1}
.footer-map-row .contact-map-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-map-row .contact-map{width:100%}
footer .contact-map iframe{height:240px}
@media(max-width:768px){
  footer .contact-map iframe{height:210px}
}

/* Mobile logo size */
@media (max-width: 768px){
  .logo-img{height:40px;max-width:180px}
}

/* Footer logo slightly smaller */
footer .logo-img{height:56px}

/* Miniatura produktu */
.product-headline{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
}
.mini-thumb{
  width:56px;height:56px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  flex:0 0 auto;
}
@media (max-width: 520px){
  .mini-thumb{width:48px;height:48px;border-radius:10px}
}

/* Back to top */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:46px;
  height:46px;
  border-radius:999px;
  border:2px solid #000;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(0,0,0,.10);
  color:#0b0b0b;
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background .25s ease;
  z-index:999;
}
.back-to-top:hover{background:#fff}
.back-to-top:focus{outline:3px solid rgba(20,138,59,.35);outline-offset:2px}
.back-to-top.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
@media (max-width: 520px){
  .back-to-top{right:14px;bottom:14px;width:44px;height:44px}
}

/* Inline validation message (np. RODO) */
.inline-error{margin-top:6px;color:var(--red);font-size:13px;line-height:1.25}

/* Mobile UI elements (hidden on desktop; styled in assets/css/mobile.css) */
.m-actions{display:none;}
.m-overlay{display:none;}
.m-drawer{display:none;}

/* =========================================================
   IMPORTANT: sticky header jest ustawiany w assets/css/mobile.css
   Ten plik NIE może wymuszać position: static !important na header!
   ========================================================= */
header, header .wrap{
  overflow: visible;
  transform: none;
}


/* Config option image preview */
.opt{ }
.opt-body{ min-width:0; flex:1; overflow-wrap:anywhere; }
.opt-img-btn{
  position:static;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
  margin-top:10px;

  /* Mobile safety: nie wychodź poza kartę opcji */
  width:fit-content;
  max-width:100%;
  white-space:normal;
  text-align:center;
  line-height:1.15;
  box-sizing:border-box;
}
.opt-img-btn:hover{ box-shadow:0 8px 18px rgba(0,0,0,.08); }

.img-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.60);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10050;
  padding:16px;
}
.img-modal.is-open{ display:flex; }
.img-modal__panel{
  width:min(980px, 96vw);
  max-height:calc(100dvh - 32px);
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.img-modal__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.10);
}
.img-modal__title{ font-weight:950; }
.img-modal__close{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:950;
  cursor:pointer;
}
.img-modal__body{
  padding:12px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  flex:1;

  /* Center obrazka + mniej "uciekania" na bokach */
  display:flex;
  align-items:center;
  justify-content:center;
}
.img-modal__body img{
  /* Zawsze mieści się w ekranie (telefon/tablet) */
  max-width:100%;
  width:auto;
  height:auto;

  /* Zostaw miejsce na pasek tytułu i padding modala */
  max-height:min(74dvh, calc(100dvh - 170px));

  object-fit:contain;
  display:block;
  border-radius:14px;
}
@media (max-width:520px){
  .opt-img-btn{ padding:7px 9px; font-size:13px; }

  .img-modal{ padding:12px; }
  .img-modal__panel{ width:100%; max-height:calc(100dvh - 24px); }
  .img-modal__bar{ padding:10px 10px; }
  .img-modal__close{ padding:7px 9px; font-size:13px; }
}


/* Blog */
.home-blog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;}
.blog-card .label{line-height:1.2;}
.blog-excerpt{padding:0 14px 14px;color:rgba(0,0,0,.72);font-size:14px;}
.blog-list{padding:26px 0;}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.blog-post{padding:26px 0;}
.blog-post h1{margin:0 0 12px;}
.blog-meta{color:rgba(0,0,0,.6);font-size:14px;margin:0 0 18px;}
.blog-cover{width:100%;max-height:420px;object-fit:cover;border-radius:14px;margin:0 0 18px;}
.blog-content{font-size:16px;line-height:1.65;}
.blog-content h2{margin-top:20px;}
@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.blog-grid{grid-template-columns:1fr;}}


footer .footer-blog a{display:block}
