/* Cards Section */
.cards-section {
  padding: 60px 0;
  background-color: #efefef;
}

.cards-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 20px;
}

/* Card Base */
.cards-item {
  border-radius: 15px;
  overflow: hidden;
}

/* Image Cards */
.cards-item--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Text Cards */
.cards-item--text {
  background: linear-gradient(97.86deg, #103552 0%, #24b8b9 98.67%);
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cards-item-title {
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 700;
}

.cards-item-content {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Tablet */
@media (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 240px 240px 240px;
  }

  .cards-item-title {
    font-size: 20px;
  }

  .cards-item-content {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cards-section {
    padding: 40px 0;
  }

  .cards-container {
    padding: 0 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .cards-item {
    height: 240px;
  }

  .cards-item--text {
    height: auto;
    min-height: 200px;
    padding: 30px 24px;
  }
}
