/* Восьмой блок: управленческий опыт и его практический смысл для клиента. */

.why {
  --why-gutter: clamp(16px, 1.4vw, 24px);
  --why-columns: repeat(4, minmax(0, 1fr));
  --why-pad: clamp(16px, 2vw, 30px);

  position: relative;
  padding: 0 var(--why-gutter);
  overflow: clip;
  background: #fff;
  color: var(--color-bg);
}

.why__grid-lines {
  position: absolute;
  inset: 0 var(--why-gutter);
  display: grid;
  grid-template-columns: var(--why-columns);
  pointer-events: none;
}

.why__grid-lines span {
  border-left: 1px solid var(--color-light-grid);
}

.why__grid-lines span:first-child {
  border-left: 0;
}

.why__inner {
  position: relative;
  z-index: 1;
}

.why__head {
  display: grid;
  grid-template-columns: var(--why-columns);
  grid-template-rows: auto 1fr auto;
  min-height: clamp(660px, 92svh, 900px);
}

.why__label {
  grid-column: 1;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: clamp(24px, 3vw, 42px);
  padding-right: clamp(12px, 1.4vw, 20px);
  font-size: 12px;
  line-height: 1;
}

.why__label-num,
.why__label-name {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.why__label-num {
  min-width: 46px;
  padding-inline: 12px;
  background: var(--color-red);
  color: #fff;
}

.why__label-name {
  padding-inline: 12px;
  border: 1px solid var(--color-bg);
  background: #fff;
}

.why__title {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  padding-bottom: clamp(24px, 3vw, 42px);
  font-family: "NAMU Display", Arial, sans-serif;
  font-size: clamp(58px, 8.7vw, 150px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.why__title span {
  display: block;
}

.why__title span:nth-child(2) {
  margin-left: 25%;
}

.why__title span:last-child {
  color: var(--color-red);
  text-align: right;
}

.why__intro {
  grid-column: 3 / 5;
  grid-row: 3;
  max-width: 50ch;
  padding: 0 var(--why-pad) clamp(44px, 5vw, 72px);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: rgba(2, 10, 10, 0.64);
}

.why__proof {
  position: relative;
  display: grid;
  grid-template-columns: var(--why-columns);
  margin-inline: calc(-1 * var(--why-gutter));
  background: #fff;
}

.why__proof::before,
.why__proof::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--color-light-grid);
  pointer-events: none;
}

.why__proof::before {
  top: 0;
}

.why__proof::after {
  bottom: 0;
}

.why__proof-lead,
.why__proof-item {
  box-sizing: border-box;
  min-height: clamp(330px, 28vw, 420px);
  padding: var(--why-pad);
}

.why__proof-lead {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-red);
  color: #fff;
}

.why__proof-lead strong {
  font-family: "NAMU Display", Arial, sans-serif;
  font-size: clamp(74px, 8vw, 122px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.why__proof-lead p {
  max-width: 24ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.25;
}

.why__proof-lead p span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.why__proof-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--color-light-grid);
}

.why__proof-num {
  font-size: 12px;
  color: rgba(2, 10, 10, 0.42);
}

.why__proof-item h3 {
  max-width: 14ch;
  margin: 0 0 clamp(20px, 2.2vw, 34px);
  font-family: "NAMU Display", Arial, sans-serif;
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.why__proof-item h3 span {
  display: block;
}

.why__proof-item p {
  max-width: 27ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.3;
  color: rgba(2, 10, 10, 0.62);
}

@media (min-width: 901px) {
  .why__proof {
    margin-inline: 0;
  }

  .why__proof::before,
  .why__proof::after {
    right: calc(-1 * var(--why-gutter));
    left: calc(-1 * var(--why-gutter));
  }

  .why__proof-lead,
  .why__proof-item:last-child {
    position: relative;
  }

  .why__proof-lead::before,
  .why__proof-item:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--why-gutter);
  }

  .why__proof-lead::before {
    right: 100%;
    background: var(--color-red);
  }

  .why__proof-item:last-child::after {
    left: 100%;
    background: #fff;
  }
}

@media (max-width: 900px) {
  .why {
    --why-columns: repeat(2, minmax(0, 1fr));
  }

  .why__grid-lines span:nth-child(n + 3) {
    display: none;
  }

  .why__head {
    min-height: clamp(420px, 56svh, 540px);
  }

  .why__title {
    font-size: clamp(48px, 9vw, 72px);
    line-height: 0.88;
  }

  .why__title span:nth-child(2) {
    margin-left: 10%;
  }

  .why__intro {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-bottom: clamp(32px, 5vw, 48px);
  }

  .why__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why__proof-lead,
  .why__proof-item {
    min-height: 280px;
  }

  .why__proof-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-light-grid);
  }

  .why__proof-item:nth-child(4) {
    border-top: 1px solid var(--color-light-grid);
  }
}

@media (max-width: 560px) {
  .why__head {
    min-height: 360px;
  }

  .why__label {
    grid-column: 1 / -1;
  }

  .why__title {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 0.9;
  }

  .why__intro {
    padding-right: 0;
    padding-bottom: 32px;
    font-size: 16px;
  }

  .why__proof {
    grid-template-columns: 1fr;
  }

  .why__proof-lead {
    min-height: 220px;
    padding: 22px 16px;
  }

  .why__proof-item {
    min-height: 200px;
    padding: 22px 16px;
  }

  .why__proof-lead,
  .why__proof-item {
    grid-column: 1;
  }

  .why__proof-item {
    border-top: 1px solid var(--color-light-grid);
    border-left: 0;
  }

  .why__proof-item h3 {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 16px;
  }
}
