/* Section: Team slider ("Nasz zespół") */

.team { padding-block: var(--space-3xl); }
.team__container { display: flex; flex-direction: column; gap: var(--space-l); }

.team__header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-l); }
.team__heading { color: var(--color-grey-900); }

.team__nav { display: flex; gap: var(--space-xs); flex-shrink: 0; }
.team__arrow {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-grey-200);
  color: var(--color-grey-900);
  transition: background-color .2s ease;
}
.team__arrow:hover { background: var(--color-grey-400); }
.team__arrow.swiper-button-disabled { opacity: .4; cursor: default; }
.team__arrow.swiper-button-lock { display: none; }

/* Slider (CSS-first) */
.team__slider { width: 100%; overflow: hidden; }
.team__slider .swiper-wrapper { display: flex; }
.team__slider .swiper-slide {
  width: 316px;
  margin-right: var(--space-s);
  flex-shrink: 0;
}
.team__slider .swiper-slide:last-child { margin-right: 0; }

/* Card */
.team-card { display: flex; flex-direction: column; gap: var(--space-3xs); }
.team-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 400 / 500;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--color-grey-200);
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__role {
  margin-top: var(--space-3xs);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-grey-900);
}
.team-card__role-link { color: inherit; text-decoration: none; }
.team-card__role-link:hover, .team-card__role-link:focus-visible { text-decoration: underline; }
.team-card__name { font-size: var(--fs-body-m); line-height: var(--lh-body-m); font-weight: 500; color: var(--color-grey-900); }
.team-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-card__btn {
  margin-top: var(--space-2x);
  width: 100%;
  border: 1.5px solid var(--color-grey-400);
  background: transparent;
  color: var(--color-grey-900);
  padding: var(--space-2x) var(--space-xs);
  border-radius: var(--radius-s);
  font-size: var(--fs-body-s);
  font-weight: 500;
}
.team-card__btn:hover { background: var(--color-grey-100); border-color: var(--color-grey-600); }

@media (max-width: 600px) {
  .team__heading { font-size: var(--fs-h-m); line-height: var(--lh-h-m); letter-spacing: var(--ls-h-m); }
  .team__slider .swiper-slide { width: 260px; }
}
