/* =========================================================
   hm-home-tweaks.css — точечные правки главной
   ========================================================= */

/* ===== Заголовки секций по центру ===== */

.hm-home .hm-index__head,
.hm-index .hm-index__head,
section.hm-index .hm-index__head,
.hm-index__head {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-index__head .hm-rule,
.hm-index__head hr {
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-home .hm-fresh__head,
.hm-fresh .hm-fresh__head,
section.hm-fresh .hm-fresh__head,
.hm-fresh__head {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-fresh__head .hm-rule,
.hm-fresh__head hr {
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-home .hm-steps__head,
.hm-steps-section .hm-steps__head,
section.hm-steps-section .hm-steps__head,
.hm-steps__head {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-steps__head .hm-rule,
.hm-steps__head hr {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== Мобильная адаптация карточек разделов ===== */

@media (max-width: 768px) {
  .hm-idx {
    border-radius: 16px;
  }

  .hm-idx h3 {
    font-size: 1.15rem;
  }

  .hm-idx p {
    font-size: 0.9rem;
  }

  .hm-idx__num {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hm-index__grid {
    gap: 12px;
  }

  .hm-idx {
    padding: 18px 16px;
  }

  .hm-idx h3 {
    font-size: 1.05rem;
  }

  .hm-idx p {
    font-size: 0.85rem;
  }
}
