.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .contact-info {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .contact-info {
    padding: 5rem 0;
  }
}

.contact-info__heading {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .contact-info__heading {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
}

/*
 * Mobile: single column, items are flex-column (label → content stacked).
 */
.contact-info__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info__item {
  background: linear-gradient(-16.7deg, #2D2E83, #0D1532);
  border-radius: 21px;
  padding: 22px;

  /* flex-column on mobile so label sits above content */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info__label {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #FBFBFB;
  line-height: 1.2;
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
}

.contact-info__content {
  background: #FBFBFB;
  border-radius: 15px;
  padding: 16px;
}

/*
 * Desktop: CSS Subgrid for equal-height white boxes.
 *
 * Each .contact-info__item spans 2 parent rows (label-row + content-row).
 * grid-template-rows: subgrid makes the item's children participate in
 * those same row tracks.  The parent's row-gap (12px) acts as the internal
 * gap between label and content inside every card.
 *
 * Result: within each visual pair of cards the label row is as tall as the
 * tallest label (the "header title" grows), and both white content boxes
 * share that same remaining row height — always equal.
 */
@media (min-width: 768px) {
  .contact-info__body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 12px;
  }

  .contact-info__item {
    /* span 2 rows so internal children can be placed into them */
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;

    /* reset flex gap — spacing is now handled by the parent row-gap */
    gap: 0;
  }

  .contact-info__content {
    /* content row fills all remaining height → white box grows to match */
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  .contact-info__item {
    padding: 16px;
  }

  .contact-info__label {
    font-size: 18px;
  }
}
