.teamBlock {
  background: #fff;
  padding: var(--templateTheme-section-padding-y)
    var(--templateTheme-section-padding-x);
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
}

.teamBlock__container {
  max-width: var(--templateTheme-content-max);
  margin: 0 auto;
}

.teamBlock__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.teamBlock__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 790px;
}

.teamBlock__title {
  margin: 0;
  width: 100%;
  color: #000;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.teamBlock__text,
.teamBlock__text p {
  margin: 0;
  width: 100%;
  color: rgba(0, 0, 0, 0.7);
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
}

.teamBlock__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 281px));
  justify-content: space-between;
  gap: 48px 24px;
}

.teamBlock__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teamBlock__card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.teamBlock__card-link:hover .teamBlock__name,
.teamBlock__card-link:focus-visible .teamBlock__name {
  text-decoration: underline;
}

.teamBlock__card-link:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 4px;
}

.teamBlock__media {
  position: relative;
  width: 100%;
  aspect-ratio: 281 / 380;
  border-radius: 12px;
  overflow: hidden;
  background: #dedede;
}

.teamBlock__image,
.teamBlock__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.teamBlock__image {
  object-fit: cover;
}

.teamBlock__image-placeholder {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.12)), #d9d9d9;
}

.teamBlock__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.teamBlock__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.teamBlock__role {
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

.teamBlock__name {
  color: #000;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.teamBlock__description,
.teamBlock__description p {
  margin: 0;
  width: 100%;
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

@media (min-width: 1800px) {
  .teamBlock__inner {
    gap: 56px;
  }

  .teamBlock__intro {
    max-width: 920px;
    gap: 16px;
  }

  .teamBlock__title {
    font-size: 64px;
  }

  .teamBlock__text,
  .teamBlock__text p {
    font-size: 22px;
    line-height: 1.45;
  }

  .teamBlock__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 32px;
  }
}

@media (max-width: 1279px) {
  .teamBlock {
    padding: 80px 40px;
  }

  .teamBlock__title {
    font-size: 48px;
  }

  .teamBlock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
}

@media (max-width: 767px) {
  .teamBlock {
    padding: 56px 20px;
  }

  .teamBlock__inner {
    gap: 32px;
  }

  .teamBlock__title {
    font-size: clamp(34px, 10vw, 56px);
  }

  .teamBlock__text,
  .teamBlock__text p {
    font-size: 18px;
    line-height: 1.5;
  }

  .teamBlock__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
