/**
 * /gov/ — page content only (etalon: medpribor.pro/gov/)
 * Layout/sidebar: page-with-sidebar.css
 */

.mp-gov {
  margin: 0 0 2rem;
  color: #526371;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow: visible;
}

.mp-gov a {
  color: #00bf80;
  text-decoration: none;
}

.mp-gov a:hover {
  color: #0055a6;
}

.mp-gov__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 300px;
  margin: 0 0 1rem;
  padding: 2.5rem 1.5rem;
  background-image: var(--mp-gov-hero);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 3px;
  overflow: hidden;
}

.mp-gov__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(71, 71, 71, 0.7);
}

.mp-gov__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 46rem;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.mp-gov-programs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-gov-card {
  display: grid;
  grid-template-columns: minmax(180px, 28.7%) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: #f4f4f4;
  border: 2px solid #fff;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.mp-gov-card:hover {
  border-color: #61ce70;
}

.mp-gov-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.mp-gov-card__title {
  margin: 0;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: #000;
}

.mp-gov-card__btn {
  display: inline-block;
  padding: 0.45em 1em;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.75) !important;
  background: rgba(97, 206, 112, 0.21);
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mp-gov-card__btn:hover {
  color: #fff !important;
  background: #61ce70;
}

.mp-gov-card__text {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
  color: #000;
}

@media (max-width: 900px) {
  .mp-gov-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 760px) {
  .mp-gov__hero {
    min-height: 220px;
    padding: 1.75rem 1rem;
  }

  .mp-gov__title {
    font-size: 20px;
  }

  .mp-gov-card__title {
    font-size: 20px;
  }

  .mp-gov-card__text {
    font-size: 16px;
  }
}
