/* =========================================================
   BLOCK 09 — HOW IT WORKS
   ========================================================= */

.how-it-works {
  width: 100%;
  padding: 34px 0 38px;
  background: #fff;
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

.how-it-works__inner {
  width: min(calc(100% - 72px), var(--content-max-width));
  margin: 0 auto;
}

.how-it-works__header {
  margin-bottom: 24px;
  text-align: center;
}

.how-it-works__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #e3131b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.how-it-works__title {
  margin: 0;
  color: #0a1b2f;
  font-size: clamp(28px, 2vw, 36px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.how-it-works__step {
  position: relative;
  min-width: 0;
  padding: 10px 22px 10px 18px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.how-it-works__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: 1px;
  background: #e4e9ee;
}

.how-it-works__number {
  position: absolute;
  top: 0;
  left: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3131b;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.how-it-works__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f6f8;
}

.how-it-works__icon svg {
  width: 35px;
  height: 35px;
  fill: #0a1b2f;
}

.how-it-works__content h3 {
  margin: 0 0 6px;
  color: #0a1b2f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.how-it-works__content p {
  margin: 0;
  color: #657382;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.52;
}

@media (max-width: 980px) {
  .how-it-works__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-it-works__step:nth-child(2)::after { display: none; }
  .how-it-works__step:nth-child(-n+2) { border-bottom: 1px solid #e4e9ee; }
}

@media (max-width: 620px) {
  .how-it-works__inner { width: min(calc(100% - 24px), var(--content-max-width)); }
  .how-it-works__steps { grid-template-columns: 1fr; }
  .how-it-works__step {
    grid-template-columns: 64px 1fr;
    padding: 14px 8px 14px 10px;
    border-bottom: 1px solid #e4e9ee;
  }
  .how-it-works__step::after { display: none !important; }
  .how-it-works__step:last-child { border-bottom: 0; }
}
