/**
 * Why-us and results section.
 *
 * The section owns its layout here so it can be reused by the front page,
 * company, professional, blog and development templates without importing
 * page-level overrides from the main stylesheet.
 */

.fp-why {
  position: relative;
  overflow: hidden;
  padding: 75px 0 100px;
  background: #fff;
  color: #000;
}

/* The approach and results are separate editor blocks, but their adjacent
 * sections keep the exact spacing of the former combined section. */
.fp-why--approach {
  padding-bottom: 0;
  overflow: visible;
}

.fp-why--results {
  padding-top: 170px;
  overflow: visible;
}

.fp-why--results .fp-why__results {
  margin-top: 0;
}

.fp-why__accents {
  position: absolute;
  z-index: 1;
  top: -600px;
  right: 0;
  bottom: -1200px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.fp-why__accent {
  position: absolute;
  width: 1242.6px;
  max-width: none;
  height: 1165.6px;
  pointer-events: none;
  user-select: none;
}

.fp-why__accent--left {
  top: 380px;
  left: -682px;
  transform: rotate(149deg);
}

.fp-why__accent--right {
  top: 141px;
  left: calc(100% - 647px);
  transform: rotate(-74.11deg);
}

.fp-why__approach,
.fp-why__results {
  position: relative;
  z-index: 2;
  width: min(1190px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.fp-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 100px;
}

.fp-reason {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.fp-reason__number {
  position: relative;
  width: 177px;
  height: 109px;
  font-weight: 500;
  white-space: nowrap;
}

.fp-reason__number-shadow,
.fp-reason__number-main {
  position: absolute;
  display: block;
  letter-spacing: -6px;
}

.fp-reason__number-shadow {
  top: 0;
  left: 5px;
  color: rgba(0, 0, 0, 0.05);
  font-size: 150px;
  line-height: 0.73;
}

.fp-reason__number-main {
  top: 22px;
  left: 0;
  font-size: 120px;
  line-height: 0.73;
}

.fp-reason__card,
.fp-stat {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #eae9e9;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 14px rgba(18, 163, 95, 0.26);
}

.fp-reason__card {
  padding: 40px 30px;
}

.fp-reason__title,
.fp-reason__text,
.fp-stat__value,
.fp-stat__text {
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}

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

.fp-reason__text {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
}

.fp-why__results {
  margin-top: 170px;
}

.fp-section-heading--results .fp-section-heading__label {
  background: rgba(255, 255, 255, 0.2);
}

.fp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 100px;
}

.fp-stat {
  padding: 40px 30px;
}

/* Results cards use a minimum content separation of their own. Keep this
 * scoped to statistics so approach cards retain their original layout. */
.fp-stats .fp-stat {
  gap: 15px;
}

.fp-stat__value {
  font-size: 40px;
  font-weight: 500;
  white-space: nowrap;
}

.fp-stat__text {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 1180px) {
  .fp-reason__card,
  .fp-stat {
    padding-right: 24px;
    padding-left: 24px;
  }
}

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

  .fp-why__accent {
    width: 900px;
    height: auto;
    opacity: 0.8;
  }

  .fp-why__accent--left {
    top: 340px;
    left: -610px;
  }

  .fp-why__accent--right {
    top: 210px;
    left: calc(100% - 360px);
  }

  .fp-why__approach,
  .fp-why__results {
    width: auto;
  }

  .fp-reasons {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 72px;
  }

  .fp-reason__number {
    height: 86px;
  }

  .fp-reason__number-shadow {
    font-size: 118px;
  }

  .fp-reason__number-main {
    top: 18px;
    font-size: 94px;
  }

  .fp-why__results {
    margin-top: 110px;
  }

  .fp-why--approach {
    padding-bottom: 0;
  }

  .fp-why--results {
    padding-top: 110px;
  }

  .fp-why--results .fp-why__results {
    margin-top: 0;
  }

  .fp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 72px;
  }
}

@media (max-width: 560px) {
  .fp-reason__card {
    padding: 32px 24px;
  }

  .fp-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fp-stat {
    padding: 32px 24px;
  }
}
