:root {
  --page-pad-x: clamp(1rem, 4vw, 5rem);
  --card-radius: 12px;
  --card-shadow: 0 25px 72px rgba(59, 77, 129, 0.08);
  --page-max-width: min(1200px, 100%);
}

.responsive-section {
  padding: clamp(2rem, 7vw, 4rem) var(--page-pad-x);
  margin: 0 auto;
  width: var(--page-max-width);
}

.responsive-hero {
  padding: clamp(3rem, 10vw, 5rem) var(--page-pad-x);
  text-align: center;
  color: #fff;
}

.responsive-grid {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center;
  justify-items: center;
}

.responsive-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: min(100%, 360px);
}

.responsive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(59, 77, 129, 0.15);
}

.responsive-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: clamp(180px, 28vw, 260px);
  object-fit: cover;
  display: block;
}

.responsive-card__body {
  padding: clamp(1rem, 4vw, 1.5rem);
}

.img-fallback,
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  header .logo-banner,
  .responsive-section {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .responsive-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .responsive-hero {
    text-align: left;
  }
}
