/* Filtry wydziałów — button zamiast javascript:void(0) */
.pans-filter-btn {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-filters .filters li .pans-filter-btn span {
  pointer-events: none;
}

/* Hero — contain = cała grafika z napisami widoczna (bez ucinania coverem) */
.pans-hero {
  position: relative;
  width: 100%;
  background: #0b1f33;
  overflow: hidden;
}

.pans-hero__media {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0;
  /* desktop: kolejne +25% */
  height: clamp(825px, 105vw, 1280px);
  background: #0b1f33;
}

.pans-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 991.98px) {
  .pans-hero__media {
    height: clamp(645px, 104vw, 1020px);
  }
}

@media (max-width: 767.98px) {
  .pans-hero__media {
    height: clamp(415px, 116vw, 565px);
  }
}

.pans-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 41, 77, 0.12) 0%,
    rgba(7, 41, 77, 0.05) 50%,
    rgba(7, 41, 77, 0.28) 100%
  );
}

/* Zawsze absolute — NIE position:static na mobile (to psuło CLS ~0.4) */
.pans-hero__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.5rem, 2.5vw, 1.75rem);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0 0.75rem;
}

.pans-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 4px;
  background: #c13333;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.pans-hero__btn:hover,
.pans-hero__btn:focus {
  background: #a02828;
  color: #fff !important;
}

.pans-hero__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pans-cta-recruit {
  min-height: 7.5rem;
}

.pans-cta-recruit .title {
  margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
  .pans-hero__btn {
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    font-size: 0.68rem;
  }

  .pans-cta-recruit {
    min-height: 8.5rem;
  }
}

.pans-no-wow.wow,
.pans-cta-recruit.wow {
  visibility: visible !important;
  animation: none !important;
}
