/* ============================================================
   Главная ниже первого экрана: что внутри, безопасность, контакт.
   Коротко: плитка — значок, два-три слова и одна строка. Никаких
   абзацев — кто хочет подробностей, откроет приложение.
   ============================================================ */
.hm {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 0;
}

.hm-sec {
  padding: 48px 0;
}
.hm-sec + .hm-sec { border-top: 1px solid #1e232a; }

.hm h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 6.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .hm-grid { grid-template-columns: repeat(3, 1fr); }
}
.hm-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .hm-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.hm-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, #191d24, #13161b);
  border: 1px solid #20252d;
}
/* Безопасность на телефоне — строками: значок слева, название и
   строка справа. На широком экране — как остальные плитки. */
@media (max-width: 719px) {
  .hm-grid-3 .hm-tile {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
  }
  .hm-grid-3 .hm-ico { grid-row: span 2; margin-bottom: 0; }
}

.hm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 120, 152, 0.12);
  color: #ff7898;
  margin-bottom: 4px;
}
.hm-tile b {
  font-size: 16px;
  line-height: 1.25;
  color: #f1f3f5;
}
.hm-tile span:last-child {
  font-size: 14px;
  line-height: 1.4;
  color: #9aa0a6;
}

.hm-more {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: #9aa0a6;
  font-size: 14px;
  text-decoration: none;
}

.hm-contact {
  text-align: center;
}
.hm-contact .hm-ico { margin: 0 auto 14px; }
.hm-contact h2 { margin-bottom: 10px; }
.hm-mail {
  color: #f1f3f5;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 243, 245, 0.35);
}

.hm-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 28px 20px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid #1e232a;
  font-size: 13px;
}
.hm-footer a { color: #8b929b; text-decoration: none; }
.hm-footer p { flex-basis: 100%; margin: 6px 0 0; text-align: center; color: #5c636c; }
.hm-ico-txt { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
