/* ==========================================================================
   Section: Team (Наша команда)
   ========================================================================== */

.section-team {
  padding-block: var(--gap-3xl);
}

.section-team__title {
  margin-bottom: var(--gap-xl);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---- Grid ---- */

.section-team__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-md);
}

/* ---- Card ---- */

.section-team__card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* ---- Photo placeholder ---- */

.section-team__card-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: rgba(224, 231, 235, 0.4);
}

.section-team__card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* ---- Info ---- */

.section-team__card-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.section-team__card-name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: var(--color-primary);
}

.section-team__card-exp {
  font-size: var(--fs-sm);
  font-weight: var(--fw-body);
  font-style: italic;
  line-height: var(--lh-sm);
  color: var(--color-primary);
  opacity: 0.4;
}

.section-team__card-role {
  font-size: var(--fs-body);
  font-weight: var(--fw-body-bold);
  line-height: var(--lh-body);
  color: var(--color-primary);
}

/* ---- Tablet ---- */

@media (max-width: 1199px) {
  .section-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
  .section-team {
    padding-block: var(--gap-xl);
  }

  .section-team__title {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    letter-spacing: var(--ls-h3);
  }

  .section-team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }

  .section-team__card-name {
    font-size: 18px;
  }

  .section-team__card-exp {
    font-size: 12px;
  }

  .section-team__card-role {
    font-size: var(--fs-sm);
  }
}
