/* ===========================================================================
   style.css — шаги «Как стать партнёром» (news.list, шаблон steps).
   Битрикс подключает его сам. Заголовок — общий .section-head.
   =========================================================================== */

@layer blocks {

  .steps { margin-bottom: var(--section-gap); }

  .steps__lead {
    max-width: 781px;
    margin: 10px auto 0;
    text-align: center;
    text-wrap: balance;
  }

  /* Телефон — колонкой, дальше 2×2, на широком — 4 в ряд (как в макете).
     Не auto-fit: на средних экранах он даёт 3 + 1 */
  .steps__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
  }

  /* Карточка «Этапы»: белая, серая рамка; при наведении рамка синяя */
  .step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-quote);
    background: var(--color-white);
    transition: border-color 0.4s ease-in-out;
  }

  .step-card:hover { border-color: var(--color-blue); }

  .step-card__stage { height: 28px; }

  .step-card__title { margin: 0; }

  .step-card__text > :first-child { margin-top: 0; }
  .step-card__text > :last-child { margin-bottom: 0; }

  @media (width >= 600px) {
    .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (width >= 1280px) {
    .steps__list {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-top: 40px;
    }
  }
}
