/* ============ About: Team ============ */
.team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.team__title { font-size: 64px; }
.team__title-accent { color: var(--color-accent); }

/* --- Стрелки --- */
.team__nav {
  display: flex;
  gap: 12px;
}

.team__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(23, 32, 42, 0.1);
  color: var(--color-dark);
  transition: color 0.2s, opacity 0.2s;
}
.team__arrow svg { width: 20px; height: 20px; }
.team__arrow:hover { color: var(--color-accent); }
.team__arrow.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Карточка сотрудника --- */
.team__card {
  position: relative;
  aspect-ratio: 4 / 5.5;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1d2026;
}

.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* подпись поверх фото: затемнение снизу */
.team__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0) 0%, rgba(16, 18, 22, 0.85) 100%);
  color: var(--color-white);
}

.team__name {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  word-spacing: 100vw;
}

.team__role {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Пагинация: только мобильные --- */
@media (min-width: 1025px) {
  .team__dots.slider-dots { display: none; }
}

/* --- Мобильные --- */
@media (max-width: 1024px) {
  .team__head { margin-bottom: 24px; }

  .team__nav { display: none; }

  .team__title { font-size: 28px; }

  .team__name { font-size: 24px; }
  .team__role { font-size: 13px; margin-top: 10px;}
}

/* --- Тёмная тема --- */
body.dark .team__arrow {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}
body.dark .team .slider-dots { --dot-second: var(--color-white); }
body.dark .team .slider-dots__dot { background-color: rgba(255, 255, 255, 0.2); }