/* assets/css/blocks/features.css */
.seoms-features {
  background: #fff;
  color: #111;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 48px 0;
}

.seoms-features__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.seoms-features__title {
  text-align: center;
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 800;
  color: #111;
}

/* grid: 4 columns on desktop */
.seoms-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

/* item */
.seoms-features__item {
  text-align: center;
  padding: 10px 18px;
  box-sizing: border-box;
  position: relative;
}

/* vertical divider between columns (except first) */
.seoms-features__item + .seoms-features__item {
  /* we'll draw thin divider on the left area of the item */
}
.seoms-features__grid .seoms-features__item:nth-child(n+2) {
  padding-left: 36px; /* leave room for divider */
}
.seoms-features__grid .seoms-features__item:nth-child(n+2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(0,0,0,0.06);
  border-radius: 1px;
}

/* icon */
.seoms-features__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: inline-block;
  margin: 0 0 18px;
}

/* header and text */
.seoms-features__h {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.seoms-features__text {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* responsive: collapse to 2 columns then 1 column */
@media (max-width: 1100px) {
  .seoms-features__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  /* remove vertical divider on compact widths */
  .seoms-features__grid .seoms-features__item:nth-child(n+2)::before { display: none; }
  .seoms-features__item { padding: 12px; }
}

@media (max-width: 560px) {
  .seoms-features__grid { grid-template-columns: 1fr; }
  .seoms-features__item { text-align: left; padding: 12px 8px; }
  .seoms-features__icon { margin: 0 0 12px; }
  .seoms-features__h { font-size: 15px; }
  .seoms-features__text { max-width: none; }
}

/* MOBILE: центрируем иконки в карточках фич на узких экранах */
@media (max-width: 560px) {
  .seoms-features__item {
    text-align: left; /* оставляем текст слева, как просил */
  }

  /* иконка — блочный элемент, авто margins => по центру */
  .seoms-features__icon {
    display: block;
    margin: 0 auto 12px; /* центр + отступ снизу */
  }

  /* заголовки и тексты — по левому краю для лучшей читаемости */
  .seoms-features__h,
  .seoms-features__text {
    text-align: left;
  }

  /* подправим максимальную ширину текста, чтобы он не прыгал */
  .seoms-features__text {
    max-width: none;
  }
}
