.category-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  overflow:visible;
  padding:0;
}
.category-tab{
  position:relative;
  min-width:0;
  min-height:230px;
  padding:22px 20px 24px;
  border:1px solid #cbd7de;
  border-radius:0;
  background:#fff;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(7,26,43,.05);
}
.category-tab::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  height:4px;
  background:transparent;
}
.category-tab img{
  display:block;
  width:100%;
  height:140px;
  object-fit:contain;
  object-position:center;
  filter:grayscale(1) sepia(.25) saturate(1.8) hue-rotate(155deg) contrast(1.2) drop-shadow(1px 0 0 #087bd3) drop-shadow(-1px 0 0 #087bd3) drop-shadow(0 1px 0 #087bd3) drop-shadow(0 -1px 0 #087bd3);
  opacity:.32;
  transition:transform .25s ease,opacity .25s ease;
}
.category-tab span{
  position:relative;
  z-index:1;
  display:block;
  font-size:1.08rem;
  font-weight:800;
  line-height:1.2;
  text-align:left;
}
.category-tab:hover{
  border-color:#a7cde4;
  background:#fff;
  color:var(--ink);
  transform:translateY(-4px);
  box-shadow:0 20px 46px rgba(7,26,43,.11);
}
.category-tab:hover img{opacity:.5;transform:scale(1.035)}
.category-tab.is-active{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
  box-shadow:0 22px 50px rgba(7,26,43,.18);
}
.category-tab.is-active::after{background:var(--orange)}
.category-tab.is-active img{
  filter:grayscale(1) brightness(2.2) sepia(.4) saturate(2) hue-rotate(155deg) drop-shadow(1px 0 0 #65cfff) drop-shadow(-1px 0 0 #65cfff) drop-shadow(0 1px 0 #65cfff) drop-shadow(0 -1px 0 #65cfff);
  opacity:.58;
}
@media(max-width:1050px){.category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .category-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-right:0}
  .category-tab{min-height:185px;padding:16px 14px 18px}
  .category-tab img{height:108px}
  .category-tab span{font-size:.94rem}
}
@media(max-width:390px){
  .category-tab{min-height:170px}
  .category-tab img{height:94px}
  .category-tab span{font-size:.86rem}
}

/* Wspolny docelowy wyglad kafli wyboru: czytelna grafika i jasny stan aktywny. */
.category-tab{
  min-height:260px;
  padding:16px 16px 24px;
}
.category-tab img{
  height:180px;
  padding:0;
  filter:grayscale(1) contrast(1.32) brightness(.78)
    drop-shadow(1.5px 0 0 #4b5359) drop-shadow(-1.5px 0 0 #4b5359)
    drop-shadow(0 1.5px 0 #4b5359) drop-shadow(0 -1.5px 0 #4b5359);
  opacity:.68;
  transform:scale(var(--art-scale,1));
  transition:transform .25s ease,opacity .25s ease,filter .25s ease;
}
.category-tab:hover img{
  opacity:.82;
  transform:scale(calc(var(--art-scale,1) + .05)) translateY(-2px);
}
.category-tab.is-active{
  border-color:#69757d;
  background:#e8ecee;
  color:var(--navy);
  box-shadow:inset 0 0 0 1px #69757d,0 22px 50px rgba(7,26,43,.14);
}
.category-tab.is-active img{
  filter:grayscale(1) contrast(1.5) brightness(.62)
    drop-shadow(1.5px 0 0 #343a3f) drop-shadow(-1.5px 0 0 #343a3f)
    drop-shadow(0 1.5px 0 #343a3f) drop-shadow(0 -1.5px 0 #343a3f);
  opacity:.9;
}
/* Normalizacja widocznej bryly urzadzenia; pliki zrodlowe maja rozne marginesy. */
.category-tab:nth-child(1){--art-scale:1.75}
.category-tab:nth-child(2){--art-scale:.9}
.category-tab:nth-child(3){--art-scale:1.55}
.category-tab:nth-child(4){--art-scale:1.42}
.category-tab:nth-child(5){--art-scale:1.65}
.category-tab:nth-child(6){--art-scale:1.55}
.category-tab:nth-child(7){--art-scale:1.7}
.category-tab:nth-child(8){--art-scale:1.42}
.category-tab:nth-child(9){--art-scale:1.7}
.category-tab:nth-child(10){--art-scale:.92}
.category-tab:nth-child(11){--art-scale:1.38}
.category-tab:nth-child(12){--art-scale:1.12}
.category-tab:nth-child(13){--art-scale:1.5}
.category-tab:nth-child(14){--art-scale:1.3}
@media(max-width:760px){
  .category-tab{min-height:205px;padding:12px 12px 18px}
  .category-tab img{height:132px}
}
@media(max-width:390px){
  .category-tab{min-height:190px}
  .category-tab img{height:118px}
}
