/* type `g5-cards` — include/internet-advertising-sections/g5-cards.php (grid styles shared with `cards`) */

.iad-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.iad-cards__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--background-light);
}

.iad-sec--light .iad-cards__card {
  background: var(--background-white);
}

.iad-sec--dark .iad-cards__card {
  background: var(--outher-dark-gray);
}

.iad-sec .iad-cards__title {
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.iad-cards__text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (max-width: 1240px) {
  .iad-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .iad-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .iad-cards__label {
    margin-bottom: 24px;
  }

  .iad-cards__card {
    gap: 16px;
    padding: 24px;
  }
}
