/* Wariant 3: białe logotypy, granat, wspólna żółta ramka.
   Każdy baner ma osobny link. Zatwierdzone znaki pochodzą ze wspólnego
   arkusza grafiki, a CSS wyświetla odpowiedni fragment bez ramek obrazu. */
#sponsorzy {
  background: #061e3b;
  color: #fff;
  padding: 58px max(6%, calc((100% - 1400px) / 2));
  overflow: clip;
}
#sponsorzy .sponsor-frame {
  position: relative;
  padding: 38px 22px;
}
#sponsorzy .sponsor-frame::before,
#sponsorzy .sponsor-frame::after {
  content: "";
  position: absolute;
  left: 23px;
  right: 23px;
  height: 2px;
  background: #ffda00;
  pointer-events: none;
}
#sponsorzy .sponsor-frame::before {
  top: 0;
}
#sponsorzy .sponsor-frame::after {
  bottom: 0;
}
#sponsorzy .frame-corner {
  position: absolute;
  width: 2px;
  height: 29px;
  background: #ffda00;
  pointer-events: none;
}
#sponsorzy .corner-tl {
  left: 11px;
  top: -3px;
  transform: rotate(43deg);
}
#sponsorzy .corner-tr {
  right: 11px;
  top: -3px;
  transform: rotate(-43deg);
}
#sponsorzy .corner-bl {
  left: 11px;
  bottom: -3px;
  transform: rotate(-43deg);
}
#sponsorzy .corner-br {
  right: 11px;
  bottom: -3px;
  transform: rotate(43deg);
}
#sponsorzy .sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
#sponsorzy .sponsor-banner {
  position: relative;
  min-width: 0;
  min-height: 164px;
  margin: 0;
  padding: 14px 24px;
  grid-column: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  gap: 0;
}
#sponsorzy .sponsor-banner + .sponsor-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #ffda00;
  pointer-events: none;
}
#sponsorzy .sponsor-banner::after {
  display: none;
}
#sponsorzy .sponsor-banner:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}
#sponsorzy .sponsor-banner:focus-visible {
  outline: 2px solid #ffda00;
  outline-offset: -9px;
}
#sponsorzy .sponsor-art {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  mix-blend-mode: screen;
}
/* Ciemne piksele arkusza są zerowane; tryb screen usuwa ich tło,
   zachowując białe kształty znaków na wspólnym granacie sekcji. */
#sponsorzy .sponsor-art > img {
  position: absolute;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: fill;
  padding: 0;
  margin: 0;
  background: transparent;
  filter: grayscale(1) contrast(8);
  transform: none;
  pointer-events: none;
}
#sponsorzy .sponsor-art--tfp {
  max-width: 420px;
  aspect-ratio: 700 / 190;
}
#sponsorzy .sponsor-art--tfp > img {
  width: 292.571429%;
  left: -7.142857%;
  top: -142.105263%;
}
#sponsorzy .sponsor-art--kopalmat {
  max-width: 340px;
  aspect-ratio: 560 / 200;
}
#sponsorzy .sponsor-art--kopalmat > img {
  width: 365.714286%;
  left: -143.75%;
  top: -135%;
}
#sponsorzy .sponsor-art--bacatj {
  max-width: 280px;
  aspect-ratio: 515 / 250;
}
#sponsorzy .sponsor-art--bacatj > img {
  width: 397.669903%;
  left: -289.320388%;
  top: -98%;
}
#sponsorzy .sponsor-banner > .sponsor-custom {
  width: 100%;
  height: 110px;
  max-height: 110px;
  object-fit: contain;
  padding: 0;
  background: transparent;
}
#sponsorzy .sponsor-wordmark {
  color: #fff;
  font-size: 26px;
}
@media (max-width: 1050px) {
  #sponsorzy .sponsor-frame {
    padding: 28px 14px;
  }
  #sponsorzy .sponsor-banner {
    padding: 12px 18px;
    min-height: 140px;
  }
}
@media (max-width: 700px) {
  #sponsorzy {
    padding: 38px 6%;
  }
  #sponsorzy .sponsor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #sponsorzy .sponsor-frame {
    padding: 20px 14px;
  }
  #sponsorzy .sponsor-banner {
    padding: 24px 20px;
    min-height: 140px;
  }
  #sponsorzy .sponsor-banner + .sponsor-banner::before {
    left: 19%;
    right: 19%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  #sponsorzy .sponsor-art--tfp {
    max-width: 290px;
  }
  #sponsorzy .sponsor-art--kopalmat {
    max-width: 250px;
  }
  #sponsorzy .sponsor-art--bacatj {
    max-width: 235px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sponsorzy .sponsor-banner:hover {
    transform: none;
  }
}

/* V6: własne, stałe granatowe podłoże dla mieszania także podczas hover
   i animacji transform. Zapobiega czarnemu prostokątowi w nowym kontekście. */
#sponsorzy .sponsor-banner,
#sponsorzy .sponsor-banner:hover,
#sponsorzy .sponsor-banner:focus-visible {
  background: #061e3b;
  isolation: isolate;
}
