.team-page {
  --team-blue: #075fba;
  --team-deep: #061832;
  --team-orange: #f28a2e;
  --team-muted: #53637a;
  --team-border: #dbe7f5;
  --team-soft: #f5f9ff;
  background: #ffffff;
}

.team-hero {
  width: min(1180px, calc(100% - 88px));
  display: block;
  margin: 0 auto;
  padding: 118px 0 32px;
  text-align: center;
}

.team-hero__copy h1 {
  margin: 0;
  color: var(--team-deep);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
}

.team-section {
  width: min(1180px, calc(100% - 88px));
  margin: 0 auto;
  padding: 34px 0 92px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  margin: 0 auto;
}

.team-card {
  flex: 0 0 282px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--team-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(7, 36, 82, 0.07);
  outline: none;
}

.team-card__media {
  aspect-ratio: 382 / 460;
  overflow: hidden;
  background: var(--team-soft);
}

.team-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98);
}

.team-card__contact {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.team-card__contact img {
  width: 118px;
  aspect-ratio: 1;
  border: 6px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 36, 82, 0.1);
}

.team-card__phone {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--team-blue);
  font-size: 15px;
  font-weight: 780;
}

.team-card__body {
  padding: 24px 22px 28px;
  text-align: center;
}

.team-card__body h3 {
  margin: 0;
  color: var(--team-deep);
  font-size: 28px;
  line-height: 1.16;
}

@media (max-width: 1180px) {
  .team-card {
    flex-basis: 282px;
  }
}

@media (max-width: 1080px) {
}

@media (max-width: 760px) {
  .team-hero,
  .team-section {
    width: min(100% - 36px, 1180px);
  }

  .team-hero {
    padding: 72px 0 18px;
  }

  .team-hero__copy h1 {
    font-size: 46px;
  }

  .team-grid {
    gap: 16px;
  }

  .team-card {
    flex-basis: min(100%, 354px);
  }

  .team-section {
    padding: 28px 0 62px;
  }

  .team-card__media {
    aspect-ratio: auto;
    overflow: visible;
  }

  .team-card__media > img {
    aspect-ratio: 382 / 460;
    height: auto;
  }

  .team-card__contact img {
    width: 132px;
  }

  .team-card__body {
    min-height: auto;
  }

}
