/**
 * Experts and team section.
 *
 * The people, facts and career content use normal document flow. The only
 * absolute layer is the decorative background image.
 */

.fp-team {
  position: relative;
  overflow: hidden;
  padding: 102px 0 130px;
  background: #001219;
  color: #fff;
}

/* A standalone FP: Эксперт block keeps the same section background and person
 * card when it is placed outside FP: Эксперты. */
.fp-team--standalone {
  padding-top: 100px;
  padding-bottom: 130px;
}

.fp-team--standalone__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1190px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
}

.fp-team--standalone .fp-team__bottom {
  margin-top: 0;
}

.fp-team--standalone .fp-person {
  margin-right: auto;
  margin-left: auto;
}

.fp-team__background {
  position: absolute;
  top: -40px;
  left: -2px;
  width: calc(100% + 4px);
  max-width: none;
  height: 2166px;
  object-fit: cover;
  pointer-events: none;
  transform: rotate(180deg);
  user-select: none;
}

.fp-team__heading,
.fp-team__top,
.fp-team__bottom {
  position: relative;
  z-index: 1;
  width: min(1190px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.fp-team__heading {
  width: 337px;
}

.fp-team__heading .fp-section-heading__label {
  position: relative;
  border: 0;
  background: rgba(0, 0, 0, 0);
}

.fp-team__heading .fp-section-heading__label::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0.44));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.fp-team__top,
.fp-team__bottom {
  display: flex;
  gap: 10px;
}

.fp-team__top {
  align-items: flex-start;
  margin-top: 83px;
}

.fp-person {
  position: relative;
  display: flex;
  width: 390px;
  flex: 0 0 390px;
  flex-direction: column;
}

.fp-person__photo {
  position: relative;
  z-index: 0;
  display: block;
  width: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
}

.fp-person__photo--natalia {
  height: 469px;
}

.fp-person__photo--igor {
  height: 540px;
}

.fp-person__info {
  position: relative;
  z-index: 1;
  display: flex;
  width: 390px;
  flex-direction: column;
  gap: 30px;
  margin-top: -63px;
  padding: 30px;
  border: 1px solid #eae9e9;
  border-radius: 30px;
  background: #fff;
  color: #000;
}

.fp-person--igor .fp-person__info {
  margin-top: -67px;
}

.fp-person__identity {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.fp-person__name,
.fp-person__role,
.fp-person__stat strong,
.fp-person__stat span {
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}

.fp-person__name {
  display: flex;
  flex-direction: column;
  font-size: 40px;
  font-weight: 500;
}

.fp-person__role {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
}

.fp-person__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 21px;
  background-image: url("../images/team-line-horizontal.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 330px 1px;
}

.fp-person__stat {
  display: flex;
  min-width: 70px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.fp-person__stat strong {
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.fp-person__stat span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  white-space: nowrap;
}

.fp-person__stat-divider {
  display: block;
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
}

.fp-team-facts {
  display: grid;
  width: 790px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 2fr) 1fr;
  gap: 10px;
}

.fp-team-fact,
.fp-team-facts__clients,
.fp-career__intro,
.fp-industry,
.fp-career__outro {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
}

.fp-team-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 20px;
  background: rgba(174, 174, 174, 0.2);
}

.fp-team-fact__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.fp-team-fact__icon img {
  display: block;
  width: 40px;
  height: 40px;
}

.fp-team-fact__icon--mentor {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.fp-team-fact__icon--mentor img {
  width: 21px;
  height: 21px;
}

.fp-team-fact p,
.fp-team-facts__clients,
.fp-career__intro,
.fp-industry__content h3,
.fp-industry__content p,
.fp-career__outro {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
}

.fp-team-facts__clients {
  display: flex;
  grid-column: 1 / span 2;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(174, 174, 174, 0.2);
}

.fp-team__bottom {
  align-items: flex-start;
  margin-top: 100px;
}

.fp-career {
  display: flex;
  width: 790px;
  flex: 0 0 790px;
  flex-direction: column;
  gap: 10px;
}

.fp-career__intro,
.fp-career__outro {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(245, 245, 245, 0.2);
  opacity: 0.8;
}

.fp-industry {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 30px 20px;
  background: rgba(245, 245, 245, 0.2);
}

.fp-industry--large {
  gap: 20px;
}

.fp-industry__number {
  margin: 0;
  flex: 0 0 auto;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
}

.fp-industry__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.fp-industry__content h3 {
  font-size: 18px;
  font-weight: 500;
}

.fp-industry__content p {
  opacity: 0.8;
}

@media (max-width: 1180px) {
  .fp-team__top,
  .fp-team__bottom {
    width: calc(100% - 48px);
  }

  .fp-team-facts,
  .fp-career {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 960px) {
  .fp-team {
    padding: 72px 16px 96px;
  }

  .fp-team__background {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fp-team__heading,
  .fp-team__top,
  .fp-team__bottom {
    width: auto;
  }

  .fp-team__heading {
    margin-right: auto;
    margin-left: auto;
  }

  .fp-team__top,
  .fp-team__bottom {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .fp-person,
  .fp-team-facts,
  .fp-career {
    width: 100%;
    max-width: 790px;
    margin-right: auto;
    margin-left: auto;
  }

  .fp-person {
    max-width: 390px;
  }

  .fp-team-facts {
    grid-template-rows: none;
    margin-top: 28px;
  }

  .fp-team__bottom {
    margin-top: 100px;
  }

  .fp-person--igor {
    grid-row: 1;
    margin-bottom: 28px;
  }

  .fp-career {
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .fp-team--standalone {
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .fp-team--standalone__inner {
    width: auto;
  }

  .fp-team__heading {
    width: auto;
  }

  .fp-person__photo {
    width: 100%;
  }

  .fp-person__info {
    width: 100%;
    margin-top: -64px;
  }

  .fp-person--igor .fp-person__info {
    margin-top: -64px;
  }

  .fp-person__name {
    font-size: 36px;
  }

  .fp-person__stats {
    gap: 8px;
    background-size: 100% 1px;
  }

  .fp-person__stat {
    min-width: 0;
  }

  .fp-person__stat strong {
    font-size: 20px;
  }

  .fp-person__stat span {
    font-size: 13px;
  }

  .fp-team-facts {
    grid-template-columns: 1fr;
  }

  .fp-team-facts__clients {
    grid-column: auto;
  }

  .fp-career__intro,
  .fp-career__outro,
  .fp-industry,
  .fp-industry--large {
    padding: 30px 20px;
  }

  .fp-industry {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
