/* =============================================================
   Choice-card — «Как мы подбираем оптимальное решение» («Информация»).
   Тот же таймлайн, что «Как мы работаем»: белые карточки на голубом,
   точки над ними на пунктирной линии, номер по центру.
   В отличие от главной — резиновая сетка вместо карточек по 330px,
   иначе уже 1450px страница уезжала бы вбок.
   ============================================================= */

.choice-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 28px 0 0; /* место над карточками для точек */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

/* Линия между центрами крайних карточек: центр колонки =
   (ширина − 3 зазора по 30px) / 4 / 2 = (100% − 90px) / 8 */
.choice-list::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc((100% - 90px) / 8);
  right: calc((100% - 90px) / 8);
  border-top: 1px dashed var(--color-secondary);
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 30px;
  border-radius: var(--border-radius-card);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  color: var(--color-primary);
  text-align: center;
}

/* Точка на линии по центру над карточкой — как у «Как мы работаем» */
.choice-card::before {
  content: '';
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.choice-card__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--border-radius-btn);
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-bold);
}

.choice-card__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-base);
  margin: 0 0 12px;
}

.choice-card__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin: 0;
}

/* === Планшет: в два ряда линия теряет смысл === */
@media (max-width: 1023px) {
  .choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-top: 0;
  }

  .choice-list::before,
  .choice-card::before {
    display: none;
  }
}

/* === Mobile === как шаги на главной: номер слева, текст по левому краю */
@media (max-width: 767px) {
  .choice-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice-card {
    display: grid;
    grid-template-columns: 37px 1fr;
    column-gap: 15px;
    align-items: start;
    padding: 15px;
    text-align: left;
  }

  .choice-card__badge {
    grid-row: span 2;
    width: 37px;
    height: 37px;
    margin-bottom: 0;
    font-size: 0.875rem; /* 14px */
  }

  .choice-card__title {
    font-size: 0.875rem; /* 14px */
    margin-bottom: 6px;
  }

  .choice-card__text {
    font-size: 0.75rem; /* 12px */
  }
}
