.team-main {
  position: relative;
  padding: 190px 0 96px;
  overflow: hidden;
}

.team-main--embed {
  padding: 50px 0 0;
}

.team-main--embed::before {
  display: none;
}

.team-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/HOME-LIGHT.png") no-repeat center -20%;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.team-main > .container {
  position: relative;
  z-index: 1;
}

.team-line-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12px;
}

.team-line-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.team-line-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.team-heading {
  margin: 0 0 clamp(48px, 7vw, 72px);
  max-width: 920px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  margin-bottom: clamp(56px, 8vw, 88px);
}

.team-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 16, 45, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-card-photo {
  margin: 0;
  aspect-ratio: 2 / 2;
  overflow: hidden;
  position: relative;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.98) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.98) 50%,
    rgba(0, 0, 0, 0) 90%
  );
}

.team-card-body {
  padding: 0 30px 30px 30px;
  margin-top: -20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 50%;
}

.team-card-body h2,
.team-card-body h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
}

.team-card-role {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #a1a1aa;
}

.team-card-body p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.team-card-description {
  margin: 30px 0;
  flex: 1;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -7px 10px rgba(255, 255, 255, 0.62),
    inset 0 10px 20px rgba(0, 0, 0, 0.28),
    0 8px 26px rgba(0, 0, 0, 0.38);
}

@media (max-width: 1100px) {
  .team-main {
    padding: 132px 0 76px;
  }

  .team-main .sub-title-wrap {
    margin-bottom: 34px;
  }

  .team-heading {
    margin: 0 0 36px;
    max-width: 760px;
    font-size: clamp(30px, 5.4vw, 42px);
    line-height: 1.12;
  }

  .team-cards {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto 48px;
    gap: 16px;
  }

  .team-card-photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .team-card-body {
    height: auto;
    padding: 0 20px 20px;
    margin-top: -14px;
  }

  .team-card-body h2 {
    font-size: clamp(24px, 4.8vw, 30px);
  }

  .team-card-role {
    font-size: 14px;
  }

  .team-card-body p {
    font-size: 14px;
    line-height: 1.5;
  }

  .team-card-description {
    margin: 16px 0 12px;
  }

  .team-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .team-main {
    padding: 112px 0 56px;
  }

  .team-main .sub-title-wrap {
    margin-bottom: 24px;
  }

  .team-heading {
    margin-bottom: 26px;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.14;
  }

  .team-cards {
    max-width: 100%;
    gap: 12px;
    margin-bottom: 36px;
  }

  .team-card {
    border-radius: 16px;
  }

  .team-card-photo {
    aspect-ratio: 4 / 3;
  }

  .team-card-body {
    padding: 0 14px 14px;
    margin-top: -10px;
  }

  .team-card-description {
    margin: 12px 0 10px;
  }

  .team-tags {
    gap: 6px;
  }
}
