.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-page-x);
}

.section {
  padding-block: var(--space-section-y-xs);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--white {
  background: var(--color-surface);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  max-width: 768px;
  margin-inline: auto;
}

.section__tagline {
  font-size: var(--text-h5);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section__title {
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.section__desc {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.grid-3--gap-sm {
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* md: 768px */
@media (min-width: 768px) {
  .section {
    padding-block: var(--space-section-y-sm);
  }

  .section__inner {
    gap: 48px;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
  }

  /* Kartu terakhir (ganjil, mis. item ke-3) — tengah di baris bawah */
  .grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .grid-3--gap-sm > :last-child:nth-child(odd) {
    width: calc(50% - 16px);
    max-width: calc(50% - 16px);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-section-y);
  }

  .section__inner {
    gap: 80px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .grid-3 > :last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }

  .grid-3--gap-sm > :last-child:nth-child(odd) {
    width: auto;
    max-width: none;
  }

  .grid-2 {
    gap: 80px;
  }
}
