/* ==========================================================================
   Process
   ========================================================================== */

.process__title {
  max-width: 24ch;
  margin-top: 16px;
  /* Furore sits tight: at 1.12 the breve on «й» touches the «д» descender above. */
  line-height: 1.36;
}

.process__text {
  max-width: 58ch;
  margin-top: 16px;
  line-height: 1.7;
}

.steps {
  margin-top: clamp(34px, 4vw, 56px);
  border-bottom: 1px solid var(--c-line-strong);
}

.step {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(20px, 2.4vw, 30px);
  /* Inline padding keeps the hover highlight off the numbers and the copy. */
  padding-inline: clamp(14px, 1.4vw, 20px);
  border-top: 1px solid var(--c-line-strong);
  transition: background-color 0.2s var(--ease);
}

.step:hover {
  background: rgba(255, 255, 255, 0.55);
}

.step__num {
  flex: 0 0 62px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-blue);
}

.step__title {
  flex: 1 1 240px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-navy);
}

.step__text {
  flex: 1 1 340px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  text-wrap: pretty;
}

/* ==========================================================================
   Tablet — the description drops to its own line
   ========================================================================== */

@media (max-width: 1024px) {
  .process__title,
  .process__text {
    max-width: 40ch;
  }

  .step {
    gap: 12px 24px;
  }

  .step__num {
    flex: 0 0 48px;
  }

  .step__title {
    flex: 1 1 200px;
  }

  .step__text {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Mobile — fully stacked
   ========================================================================== */

@media (max-width: 767px) {
  .process__title,
  .process__text {
    max-width: none;
  }

  .process__title {
    margin-top: 14px;
  }

  .process__text {
    margin-top: 14px;
  }

  .steps {
    margin-top: 24px;
  }

  .step {
    flex-direction: column;
    gap: 8px;
    padding-block: 20px;
    /* No hover on touch — align the copy with the section edges instead. */
    padding-inline: 0;
  }

  .step:hover {
    background: none;
  }

  .step__num {
    flex: 0 0 auto;
    font-size: 21px;
    margin-bottom: 2px;
  }

  .step__title {
    flex: 0 0 auto;
    font-size: 18px;
    letter-spacing: -0.025em;
  }

  .step__text {
    flex: 0 0 auto;
    font-size: 14px;
  }
}
