/* Sponsor board — globalnie nad stopką */

.sponsor-board + .site-footer {
  border-top: none;
}

.sponsor-board {
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: linear-gradient(180deg, #0a1422 0%, #081018 100%);
  padding: 2.5rem 0 2.25rem;
}

.sponsor-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 40rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
  pointer-events: none;
}

.sponsor-board-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  width: 100%;
}

.sponsor-board-row--primary,
.sponsor-board-row--secondary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.sponsor-board-row--primary {
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.sponsor-board-row--secondary {
  gap: clamp(0.65rem, 1.8vw, 1.35rem);
}

.sponsor-board-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.sponsor-board-logo:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.sponsor-board-logo:hover {
  transform: translateY(-2px);
}

/* SVG — zawsze jawna wysokość (height), nigdy samo max-height + height:auto */
.sponsor-board-logo img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sponsor-board-logo:hover img {
  opacity: 1;
}

.sponsor-board-logo--primary img {
  height: clamp(56px, 11vw, 84px);
  max-width: min(320px, 42vw);
}

.sponsor-board-logo--baltona img {
  height: 42px;
  max-width: min(220px, 40vw);
}

.sponsor-board-logo--babimost img {
  height: clamp(70px, 11vw, 88px);
  max-width: min(220px, 34vw);
}

.sponsor-board-logo--olimpia img {
  height: clamp(66px, 10.5vw, 84px);
  max-width: min(110px, 20vw);
}

@media (max-width: 640px) {
  .sponsor-board-row--primary,
  .sponsor-board-row--secondary {
    flex-direction: column;
    gap: 1rem;
  }

  .sponsor-board-logo--primary img {
    height: 64px;
    max-width: min(300px, 86vw);
  }

  .sponsor-board-logo--baltona img {
    height: 40px;
  }

  .sponsor-board-logo--babimost img {
    height: 68px;
    max-width: min(260px, 78vw);
  }

  .sponsor-board-logo--olimpia img {
    height: 64px;
    max-width: min(120px, 38vw);
  }
}
