#cards-section {
  background-color: var(--background-beige);
}

#cards-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: 900px;
  margin-bottom: 64px;
  color: #3C322A;
}

#cards-section-title h3 {
  margin-top: 0;
}

#cards-section-title p {
  margin: 0;
}

#cards-grid {
  display: grid;
  grid-template-columns: 500px 500px;
  justify-content: space-between;
  margin-right: 96px;
  row-gap: 64px;
}

.card {
  background-color: white;
  height: 260px;
  width: 500px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h4 {
  color: var(--primary-color);
  margin: 0;
}

@media (max-width: 1380px) {
  #cards-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-right: 0;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  #cards-section-title {
    gap: 16px;
    max-width: 680px;
  }

  #cards-section-title h3 {
    font-size: 28px;
    line-height: 31px;
  }

  #cards-section-title img {
    width: 112px;
    height: 112px;
  }

  .card {
    background-color: white;
    height: 260px;
    width: 300px;
    padding: 24px;
    border-radius: 16px;
  }

  .card h4 {
    font-size: 24px;
    line-height: 26px;
  }
}

@media (max-width: 768px) {
  #cards-section h3 {
    font-size: 21px;
    line-height: 23px;
  }

  #cards-section p {
    font-size: 14px;
    line-height: 21px;
  }

  #cards-section-title {
    flex-direction: column-reverse;
    gap: 16px;
  }

  #cards-section-title img {
    width: 80px;
    height: 80px;
  }

  .card {
    max-width: 280px;
    height: 220px;
    padding-right: 0;
    padding-bottom: 0;
  }

  .card h4 {
    font-size: 21px;
    line-height: 23px;
  }

  .card p {
    font-size: 14px;
    line-height: 21px;
    max-width: 260px;
  }
}
