Comptez les éléments avec CSS si seulement vous n'en avez que 2 - pas plus ou moins

  .cards-row:first-child:nth-last-child(2),
  .cards-row:first-child:nth-last-child(2) ~ .cards-row{
    margin-bottom: 2.2rem;
  }
Matt Miller