/* =========================================================
   MASKIN – style.css (uporządkowane)
   ========================================================= */

/* ===== RESET / BAZA ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #223;
}

a { color: inherit; }

/* ===== TŁO STRONY ===== */
.page{
  min-height:100vh;
  background-image: url("../assets/img/home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay{
  min-height:100vh;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.75) 55%,
    rgba(255,255,255,0.15) 100%
  );
}

/* ===== NAGŁÓWEK (TOPBAR + NAV) ===== */
.topbar {
  background: rgba(217, 232, 246, 0.95);
  border-bottom: 1px solid #c6d8ea;

  /* sticky header */
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.logo {
  height: 64px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 10px 16px;
  background: #d4e6f6;
  color: #083a66;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #a8c6df;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.15s ease;
}

.nav a:hover {
  background: #b9d7ee;
  transform: translateY(-1px);
}

/* Przycisk języka (EN) – Twoja wersja statyczna */
.nav a.lang {
  margin-left: auto;
  font-size: 12px;
  padding: 8px 12px;
  background: #edf4fb;
  border-color: #c7daec;
}

/* Jeśli kiedyś wrócisz do Polylang/WPML – zostawiam bez szkody */
.menu .lang-item > a,
.menu .pll-parent-menu-item > a,
.menu .wpml-ls-item > a,
.menu-item-language > a{
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.menu .lang-item > a:hover,
.menu .pll-parent-menu-item > a:hover,
.menu .wpml-ls-item > a:hover,
.menu-item-language > a:hover{
  border-color: rgba(0,0,0,0.4);
}

/* ===== UKŁAD STRONY ===== */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px 0; /* +10px, żeby treść nie wchodziła pod sticky header */
}

.content {
  max-width: 760px;
  padding-top: 24px;
}

/* Zaopatrzenie ma być szerzej niż 760px */
.content.zaop{
  max-width: 1120px;
}

/* ===== TYPOGRAFIA TREŚCI (GLOBAL) ===== */
.content, .content * {
  font-family: Arial, sans-serif;
}

.content h1, .content h2, .content h3 {
  color: #4b6fa8;
  font-weight: 700;
}

.content h2 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  color: #445;
}

.content ul {
  margin-top: 10px;
  padding-left: 22px;
}

.content li {
  margin: 8px 0;
  line-height: 1.5;
  color: #445;
}

/* ===== PRZYCISKI ===== */
.btn{
  display: inline-block;
  background: #0b61a4;
  color: #fff;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
}

.btn:hover{
  background: #094f86;
}

.btn.btn-light{
  background: rgba(255,255,255,0.75);
  color: #083a66;
  border: 1px solid rgba(130,160,190,0.5);
}

.btn.btn-light:hover{
  background: rgba(255,255,255,0.9);
}

/* ===== KARTY / KAFELKI ===== */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid #d7ddea;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.card h3{
  margin: 0 0 8px;
  color: #4b6fa8;
  font-size: 16px;
}

.card p{
  margin: 0 0 12px;
  color: #445;
  line-height: 1.5;
}

/* ===== SPEDYCJA / OBRÓBKA / BHP (drobne akcenty) ===== */
.spedycja { font-family: Arial, sans-serif; }
.spedycja h1 { font-size: 28px; color: #4b6fa8; font-weight: 700; margin-bottom: 16px; }
.spedycja h2 { font-size: 21px; color: #4b6fa8; margin-top: 26px; margin-bottom: 10px; }
.spedycja p  { font-size: 16px; line-height: 1.6; color: #445; }
.spedycja ul { margin-top: 10px; padding-left: 22px; }
.spedycja li { margin: 10px 0; line-height: 1.5; color: #445; }

.obrobka h1{
  border-bottom: 2px solid rgba(75,111,168,0.25);
  padding-bottom: 10px;
}

.bhp .lead{
  font-size: 16px;
  line-height: 1.6;
  color: #445;
  margin-bottom: 10px;
}

.bhp .bullets{
  margin-top: 8px;
  padding-left: 22px;
}

.bhp .bullets li{
  margin: 8px 0;
  line-height: 1.5;
  color: #0b5aa6;
  font-weight: 600;
}

/* ===== ALERTY ===== */
.alert{
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 10px 0;
  font-weight: 700;
}

.alert.ok{
  background: rgba(26, 155, 86, 0.25);
  border: 1px solid rgba(26, 155, 86, 0.45);
  color: #ffffff;
}

.alert.err{
  background: rgba(190, 40, 40, 0.22);
  border: 1px solid rgba(190, 40, 40, 0.45);
  color: #ffffff;
}

/* ===== KONTAKT (UKŁAD + FORMULARZ) ===== */
.kontakt h1{
  margin: 10px 0 16px;
  color: #0b5aa6;
}

.kontakt-grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}

.kontakt-left .card{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(180,200,220,0.75);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

/* Panel formularza */
.formbox{
  width: 100%;
  max-width: 520px;
  background: rgba(13, 88, 156, 0.60);
  border: 1px solid rgba(11, 90, 166, 0.55);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.formhead{
  padding: 14px 16px 10px;
}

.formhead h3{
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

/* Formularz w środku */
.formbox form{
  padding: 0 16px 16px;
}

.formbox label{
  display: block;
  margin: 10px 0 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.formbox input,
.formbox textarea{
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.92);
  outline: none;
  color: #223;
}

.formbox textarea{
  resize: vertical;
  min-height: 140px;
}

.req{
  color: #ffd35c;
  font-weight: 900;
}

.formbox .btn{
  margin-top: 12px;
  width: fit-content;
  background: #0b5aa6;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.formbox .btn:hover{
  filter: brightness(1.06);
}

.smallnote{
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}

/* ===== ZAOPATRZENIE – FILTRY ===== */
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 10px 0 14px;
}

.filters label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2b3c55;
}

.filters select,
.filters input{
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(130,160,190,0.45);
  background: rgba(255,255,255,0.9);
  min-width: 220px;
}

.filters-actions{
  display: flex;
  gap: 8px;
}

/* ===== ZAOPATRZENIE – TABELA ===== */
.tablewrap{
  overflow-x: auto;
  border-radius: 10px;
}

.prodtable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed; /* wymuszamy szerokości kolumn */
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(180,200,220,0.65);
  border-radius: 10px;
}

.prodtable thead th{
  text-align: left;
  font-size: 13px;
  padding: 10px 10px;
  color: #083a66;
  background: rgba(217, 232, 246, 0.95);
  border-bottom: 1px solid rgba(180,200,220,0.65);
}

.prodtable td{
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(180,200,220,0.35);
}

.prodtable tr:last-child td{
  border-bottom: 0;
}

.center{ text-align: center; }

/* Szerokości kolumn – SUMA 100% */
.prodtable th:nth-child(1),
.prodtable td:nth-child(1){ width: 6%; }   /* Zamów */

.prodtable th:nth-child(2),
.prodtable td:nth-child(2){ width: 12%; }  /* Kategoria */

.prodtable th:nth-child(3),
.prodtable td:nth-child(3){ width: 44%; }  /* Nazwa (poszerzona) */

.prodtable th:nth-child(4),
.prodtable td:nth-child(4){ width: 12%; }  /* Nr katalogowy */

.prodtable th:nth-child(5),
.prodtable td:nth-child(5){ width: 18%; }  /* Obraz */

.prodtable th:nth-child(6),
.prodtable td:nth-child(6){ width: 8%; }   /* Ilość */

.prodtable td:nth-child(3){
  white-space: normal;
  word-break: break-word;
}

/* Miniatury */
.prodtable img.thumb {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  position: relative;
}

.prodtable img.thumb:hover {
  transform: scale(1.25);
  z-index: 10;
}

/* Pasek zamówienia */
.orderbar{
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.orderbar .smallnote{
  color: #2b3c55;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 980px){
  .kontakt-grid{
    grid-template-columns: 1fr;
  }
  .formbox{
    max-width: 100%;
  }
  .filters select,
  .filters input{
    min-width: 180px;
  }
}
.content.zaop{
  max-width: 1120px;
}
* ZAOPATRZENIE – tabela produktów */
/* ===== ZAOPATRZENIE – lepszy układ tabeli ===== */

.prodtable{
  width: 100%;
  table-layout: auto;   /* ważne: NIE fixed – daje naturalniejszy wygląd */
}

/* Zamów */
.prodtable th:nth-child(1),
.prodtable td:nth-child(1){
  width: 60px;
}

/* Kategoria */
.prodtable th:nth-child(2),
.prodtable td:nth-child(2){
  width: 140px;
}

/* Nazwa – nie ograniczamy na sztywno, ma brać resztę miejsca */
.prodtable th:nth-child(3),
.prodtable td:nth-child(3){
  width: auto;
}

/* Nr katalogowy */
.prodtable th:nth-child(4),
.prodtable td:nth-child(4){
  width: 140px;
}

/* Obraz – dopasowane pod miniatury */
.prodtable th:nth-child(5),
.prodtable td:nth-child(5){
  width: 190px;
}

/* Ilość – żeby input wyglądał normalnie */
.prodtable th:nth-child(6),
.prodtable td:nth-child(6){
  width: 120px;
  text-align: center;
}

/* input ilości ładniejszy */
.prodtable .qty{
  width: 80px;
  padding: 6px;
  text-align: center;
}
/* =========================
   REALIZACJE
   ========================= */

.realizacje .lead{
  max-width: 900px;
  margin: 6px 0 18px;
  color: #445;
  line-height: 1.6;
}

.real-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.real-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(180,200,220,0.75);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.real-thumb{
  height: 190px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.real-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.real-noimg{
  font-weight: 700;
  color: #567;
}

.real-body{
  padding: 12px 14px 14px;
}

.real-cat{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #0b5aa6;
  background: rgba(11,90,166,0.10);
  border: 1px solid rgba(11,90,166,0.18);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.real-title{
  margin: 0 0 8px;
  color: #0b5aa6;
  font-size: 16px;
}

.real-desc{
  margin: 0 0 10px;
  color: #445;
  line-height: 1.5;
}

.real-meta{
  margin: 0 0 12px;
  padding-left: 18px;
  color: #445;
  line-height: 1.4;
}

.btn.btn-light{
  background: rgba(255,255,255,0.85);
  color: #0b5aa6;
  border: 1px solid rgba(11,90,166,0.35);
}

.btn.btn-light:hover{
  filter: brightness(1.03);
}

/* Lightbox */
.lb{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  padding: 16px;
}

.lb.open{ display: flex; }

.lb-box{
  position: relative;
  max-width: 980px;
  width: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

#lb-img{
  width: 100%;
  height: 70vh;
  object-fit: contain;
  background: #fff;
}

.lb-close{
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #123;
  font-weight: 900;
}

.lb-prev, .lb-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(11,90,166,0.85);
  color: #fff;
  width: 42px;
  height: 60px;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
}

.lb-prev{ left: 0; }
.lb-next{ right: 0; }

.lb-count{
  padding: 8px 12px;
  font-weight: 700;
  color: #345;
  text-align: center;
  background: rgba(217,232,246,0.9);
  border-top: 1px solid rgba(180,200,220,0.6);
}
/* Filtry realizacji */
.real-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.rf-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  color: #0b5aa6;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(11,90,166,0.28);
  transition: all 0.15s ease;
}

.rf-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.rf-btn.active{
  background: rgba(11,90,166,0.92);
  color: #fff;
  border-color: rgba(11,90,166,0.55);
}
/* HOVER Z MUSCLE MODE – wymusza powiększenie */
.real-gallery a{
  position: relative !important;
  display: inline-block !important;
  overflow: visible !important;     /* żeby mogło wyjść poza ramkę */
  z-index: 1 !important;
}

.real-gallery img{
  display: block !important;
  transition: transform .2s ease !important;
  transform-origin: center center !important;
}

.real-gallery a:hover{
  z-index: 9999 !important;         /* na wierzch */
}

.real-gallery a:hover img{
  transform: scale(1.5) !important;  /* +50% */
}

