.team-page {
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 34px;
  text-align: center;
}

.team-header h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #f5f7ff;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(90deg, #ffffff, #ddd3ff, #d3ffe6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-container {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
  gap: 28px;
  justify-content: center;
  align-items: stretch;
}

.team-card {
  position: relative;
  min-height: 210px;
  padding: 30px 28px 24px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(168, 85, 247, 0.08);
  overflow: hidden;
  transition: 0.3s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.05), transparent 30%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(168, 85, 247, 0.12);
}

.team-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.team-top img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.7);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(168, 85, 247, 0.12);
  flex-shrink: 0;
  display: block;
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.team-info h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f5f7ff;
  text-align: left;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.team-info span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: #b8bfd8;
  opacity: 0.95;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.78);
  background: rgba(255, 255, 255, 0.02);
  color: #ece7ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  transition: 0.25s ease;
}

.team-card:hover p {
  border-color: rgba(192, 132, 252, 0.95);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.14),
    0 10px 20px rgba(0, 0, 0, 0.14);
}

@media (max-width: 900px) {
  .team-page {
    padding: 24px 20px;
  }

  .team-header {
    margin-bottom: 28px;
  }

  .team-header h2 {
    font-size: 1.5rem;
    max-width: 700px;
  }

  .team-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    gap: 22px;
  }

  .team-card {
    min-height: 190px;
    padding: 24px 22px 22px;
  }

  .team-top {
    gap: 16px;
    margin-bottom: 22px;
  }

  .team-top img {
    width: 74px;
    height: 74px;
  }

  .team-info h3 {
    font-size: 1.55rem;
  }

  .team-info span {
    font-size: 0.88rem;
  }

  .team-card p {
    font-size: 0.84rem;
    padding: 10px 15px;
  }
}

@media (max-width: 560px) {
  .team-page {
    padding: 18px;
  }

  .team-header {
    margin-bottom: 22px;
  }

  .team-header h2 {
    font-size: 1.2rem;
  }

  .team-container {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
  }

  .team-card {
    min-height: 175px;
    padding: 20px 18px;
    border-radius: 18px;
  }

  .team-top {
    gap: 14px;
    margin-bottom: 18px;
  }

  .team-top img {
    width: 68px;
    height: 68px;
  }

  .team-info h3 {
    font-size: 1.35rem;
  }

  .team-info span {
    font-size: 0.82rem;
  }
}

.nav-link.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;

  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(168, 85, 247, 0.25);

  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.nav-link.disabled::before {
  display: none;
}

.nav-link.disabled:hover {
  transform: none;
  box-shadow: none;
}