.sp-team-slider {
  --sp-gap: 32px;
  --sp-per-view: 4;
  position: relative;
  width: 100%;
}

.sp-team-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.sp-team-slider__track {
  display: flex;
  gap: var(--sp-gap);
  transition: transform 0.35s ease;
  will-change: transform;
  touch-action: pan-y;
}

.sp-team-slider__slide {
  flex: 0 0 calc((100% - (var(--sp-gap) * (var(--sp-per-view) - 1))) / var(--sp-per-view));
  min-width: 0;
  box-sizing: border-box;
}

.sp-team-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.sp-team-card__photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 280px;
}

.sp-team-card__photo-link,
.sp-team-card__photo-link:hover {
  display: block;
  text-decoration: none;
  box-shadow: none;
}

.sp-team-slider__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.sp-team-slider__image--placeholder {
  background: #ececec;
  min-height: 320px;
}

.sp-team-card__namebar {
  background: #394258;
  color: #fff;
  padding: 18px 20px;
  border-bottom: 3px solid #c6904d;
  text-align: center;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-team-card__name-link,
.sp-team-card__name-link:hover {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.sp-team-card__content {
  padding: 28px 18px 0;
  text-align: center;
  color: #595959;
}

.sp-team-card__position {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: #4d4d4d;
}

.sp-team-card__bio {
  font-size: 16px;
  line-height: 1.7;
}

.sp-team-slider__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(57, 66, 88, 0.9);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-team-slider__nav:hover {
  background: #394258;
}

.sp-team-slider__nav--prev {
  left: 10px;
}

.sp-team-slider__nav--next {
  right: 10px;
}

.sp-team-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.sp-team-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7c7c7;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sp-team-slider__dot.is-active {
  background: #394258;
}

@media (max-width: 1199px) {
  .sp-team-slider {
    --sp-per-view: 3;
  }

  .sp-team-card__namebar {
    min-height: 68px;
    padding: 16px 16px;
  }

  .sp-team-card__name-link,
  .sp-team-card__name-link:hover {
    font-size: 17px;
  }

  .sp-team-card__content {
    padding-top: 22px;
  }
}

@media (max-width: 767px) {
  .sp-team-slider {
    --sp-per-view: 2;
    --sp-gap: 16px;
  }

  .sp-team-card__photo-wrap {
    min-height: 190px;
  }

  .sp-team-card__namebar {
    min-height: 58px;
    padding: 12px 10px;
  }

  .sp-team-card__name-link,
  .sp-team-card__name-link:hover {
    font-size: 15px;
  }

  .sp-team-card__position,
  .sp-team-card__bio {
    font-size: 14px;
    line-height: 1.55;
  }

  .sp-team-slider__nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}
