.team-hero {
  height: 35vh;
  min-height: 260px;
  background: url("../img/pilots/back.webp") center / cover no-repeat;
  position: relative;
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #121212 0%, transparent 40%);
}

.team-hero h1 {
  position: relative;
  z-index: 1;
}

.team-hero2 {
  height: 35vh;
  min-height: 260px;
  background: url("../img/pilots/back2.webp") center / cover no-repeat;
  position: relative;
}

.team-hero2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #121212 0%, transparent 40%);
}

.team-hero2 h1 {
  position: relative;
  z-index: 1;
}

/* ===== СЕКЦИИ ===== */
.team-section {
  margin-bottom: 4rem;
}

.section-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--pink);
  padding-left: 12px;
}

/* ===== КАРТОЧКИ ===== */
.team-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.team-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 6px;
}

.team-meta {
  font-size: .9rem;
  color: #aaa;
}

/* Особые состояния */
.team-card.is-expiring {
  border-color: #ffc10755;
}

.team-card.legend {
  background: linear-gradient(135deg, #1b1b1b, #101010);
  border-color: var(--pink);
}

/* фото — ЖЁСТКО ЗАДАННЫЙ РАЗМЕР */
.team-photo {
  position: relative;
  height: 300px;          /* ← ОСНОВНОЙ РАЗМЕР */
  width: 100%;
  overflow: hidden;
  background: #0f0f0f;
}

/* сама картинка */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 🔥 КЛЮЧЕВОЕ */
  object-position: center top; /* пилот сверху, ноги режем */
}

.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;  /* портрет */
  overflow: hidden;
  background: #0f0f0f;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
