/* ========================================
   Ministry home page, new design (on top of dept2.css + agency2.css)
   pages/public/index-new.html
======================================== */

.hm-hero { background-image: url("../assets/images/public/hero.jpg"); background-position: center 45%; }
.hm-hero h1 { font-size: clamp(40px, 5.2vw, 64px); }

.hm-lead { margin: 0 0 22px; color: var(--d-muted, #5d7480); font-size: 16.5px; line-height: 1.9; }

.hm-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.hm-points li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e3ecee;
  border-radius: 14px;
  background: #ffffff;
}

.hm-points strong { color: #00344b; font-size: 15px; }
.hm-points span { color: #4f6670; font-size: 14.5px; line-height: 1.7; }

/* Agencies */
.hm-agencies { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }

.hm-agency {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e3ecee;
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.hm-agency.is-active:hover { box-shadow: 0 18px 40px rgba(0, 52, 75, .12); transform: translateY(-3px); }
.hm-agency-img { display: block; min-height: 220px; }
.hm-agency-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hm-agency-body { display: grid; align-content: center; justify-items: start; gap: 8px; padding: 28px; }
.hm-agency-body strong { color: #00344b; font-size: 20px; }
.hm-agency-body small { color: #5d7480; font-size: 14.5px; line-height: 1.7; }

.hm-agency.is-soon { grid-template-columns: auto minmax(0, 1fr); align-items: center; background: #f6f9fa; }

.hm-agency-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-inline-start: 28px;
  border-radius: 18px;
  background: #e8f1f3;
  color: #6c8691;
}

.hm-agency-mark svg { width: 30px; height: 30px; }

/* Support */
.hm-support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.hm-help {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid #e3ecee;
  border-radius: 16px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

a.hm-help:hover { border-color: #00ceb7; box-shadow: 0 12px 28px rgba(0, 52, 75, .08); }
.hm-help > span:last-child { display: grid; gap: 4px; }
.hm-help strong { color: #00344b; font-size: 16px; }
.hm-help small { color: #5d7480; font-size: 13.5px; line-height: 1.6; }
.hm-help.is-soon { opacity: .75; }
.hm-help .ag-service-icon { flex: 0 0 auto; margin: 0; }

@media (max-width: 900px) {
  .hm-agencies, .hm-support { grid-template-columns: 1fr; }
  .hm-agency { grid-template-columns: 1fr; }
  .hm-agency-img { min-height: 180px; }
  .hm-agency.is-soon { grid-template-columns: auto minmax(0, 1fr); }
  .hm-points li { grid-template-columns: 1fr; gap: 4px; }
}
