.why {
  --why-orange: #f25301;
  --why-ink: #ffffff;
  --why-muted: rgba(255, 255, 255, 0.62);
  --why-line: rgba(255, 255, 255, 0.16);

  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  background: #041018;
  color: var(--why-ink);
  font-family: Manrope, sans-serif;
  overflow: hidden;
}

.why__bg {
  position: absolute;
  inset: 0;
  background: url("../../img/about/bg-why-us.webp") center top / cover no-repeat;
  pointer-events: none;
}

.why__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  padding: 32px 52px 28px;
}

.why__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.why__intro {
  min-width: 0;
  max-width: 760px;
}

.why__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}

.why__eyebrow-num {
  color: var(--why-orange);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.why__eyebrow-line {
  flex: none;
  width: 36px;
  height: 2px;
  background: var(--why-orange);
}

.why__eyebrow-label {
  color: #9aa6b2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.why__title {
  margin: 0;
  color: #fff;
  font-size: 75px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  white-space: nowrap;
}

.why__title-accent {
  color: var(--why-orange);
}

.why__lead {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

.why__slogan {
  flex: none;
  margin: 34px 0 0;
  color: rgba(214, 220, 226, 0.62);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  margin: 26px 0 0;
  padding: 20px 16px 16px;
  border: 1px solid var(--why-line);
  border-radius: 18px;
  background: rgba(6, 16, 26, 0.62);
  list-style: none;
}

.why__stat {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
}

.why__stat-value {
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.why__stat-label {
  margin: 4px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.why__stat-line {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--why-orange);
}

.why__stat-note {
  margin: 10px 0 0;
  color: rgba(214, 220, 226, 0.72);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.why__cards {
  display: grid;
  grid-template-columns: 1.32fr 1.32fr 1fr;
  align-items: stretch;
  gap: 14px;
  margin-top: 14px;
}

.why__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--why-line);
  border-radius: 16px;
  background: rgba(6, 16, 26, 0.55);
}

.why__card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.why__card-accent {
  color: var(--why-orange);
}

.why__card-muted {
  color: rgba(210, 216, 222, 0.72);
}

.why__card-aside {
  min-width: 0;
  color: rgba(186, 196, 204, 0.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.why__certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.why__certs img {
  display: block;
  width: 100%;
  height: 124px;
  object-fit: contain;
}

.why__certs-btn {
  align-self: center;
  margin-top: auto;
  padding: 10px 18px;
  border: 1.5px solid var(--why-orange);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.why__certs-btn:hover {
  background: rgba(242, 83, 1, 0.16);
}

.why__certs-btn:focus-visible,
.why__card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.why__map {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.why__plant {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.why__plant img {
  display: block;
  flex: none;
  width: 124px;
  height: auto;
  aspect-ratio: 167 / 219;
  object-fit: cover;
  border-radius: 6px;
}

.why__plant-copy {
  min-width: 0;
}

.why__plant-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.why__plant-text {
  margin: 0;
  color: rgba(214, 220, 226, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.why__card--plant .why__certs-btn {
  align-self: stretch;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 1279px) {
  .why__inner {
    padding: 32px 20px 40px;
  }

  .why__top {
    flex-direction: column;
  }

  .why__title {
    font-size: 46px;
    white-space: normal;
  }

  .why__stats,
  .why__cards {
    grid-template-columns: 1fr;
  }

  .why__stat {
    grid-template-rows: auto;
    margin-bottom: 18px;
  }

  .why__plant {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .why__title {
    font-size: 32px;
  }
}

.why--animate:not(.is-inview) .why__eyebrow,
.why--animate:not(.is-inview) .why__title,
.why--animate:not(.is-inview) .why__lead,
.why--animate:not(.is-inview) .why__slogan,
.why--animate:not(.is-inview) .why__stat,
.why--animate:not(.is-inview) .why__card {
  opacity: 0;
  transform: translateY(40px);
}

.why--animate.is-inview .why__eyebrow,
.why--animate.is-inview .why__title,
.why--animate.is-inview .why__lead,
.why--animate.is-inview .why__slogan,
.why--animate.is-inview .why__stat,
.why--animate.is-inview .why__card {
  animation: services-rise 0.8s ease both;
}

.why--animate.is-inview .why__title {
  animation-delay: 0.08s;
}

.why--animate.is-inview .why__lead {
  animation-delay: 0.16s;
}

.why--animate.is-inview .why__slogan {
  animation-delay: 0.24s;
}

.why--animate.is-inview .why__stat:nth-child(1) { animation-delay: 0.32s; }
.why--animate.is-inview .why__stat:nth-child(2) { animation-delay: 0.4s; }
.why--animate.is-inview .why__stat:nth-child(3) { animation-delay: 0.48s; }
.why--animate.is-inview .why__stat:nth-child(4) { animation-delay: 0.56s; }
.why--animate.is-inview .why__stat:nth-child(5) { animation-delay: 0.64s; }
.why--animate.is-inview .why__stat:nth-child(6) { animation-delay: 0.72s; }

.why--animate.is-inview .why__card:nth-child(1) { animation-delay: 0.8s; }
.why--animate.is-inview .why__card:nth-child(2) { animation-delay: 0.88s; }
.why--animate.is-inview .why__card:nth-child(3) { animation-delay: 0.96s; }

.why--animate.is-inview .why__stat.is-shown,
.why--animate.is-inview .why__card.is-shown {
  animation: none;
  opacity: 1;
  transform: none;
}
