/* =========================================================
   TEAM — карточки мастеров
   ========================================================= */
.team__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
  width: 100%;
  max-width: 270px;
}

.team-card__photo {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-md);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: rgba(var(--color-primary-rgb), 0.8);
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card__photo:hover .team-card__overlay,
.team-card__photo:focus-within .team-card__overlay {
  opacity: 1;
}

.team-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: var(--color-title);
  background-color: var(--color-white);
  border-radius: 50%;
}

.team-card__name {
  margin-bottom: var(--space-xs);
}
