.problems {
  color: var(--color-dark);
  background: #fff;
}

.problems__inner {
  display: grid;
  grid-template-columns: 260px 738px;
  gap: 50px;
  width: 1048px;
  margin-inline: auto;
  padding-block: 80px 48px;
}

.problems__header {
  min-width: 0;
}

.problems__eyebrow,
.problems__title,
.problem-card__text {
  margin: 0;
}

.problems__eyebrow {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.problems__title {
  margin-top: 21px;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 50px;
}

.problems__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-divider);
}

.problem-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  aspect-ratio: 245 / 257;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  color: var(--color-dark);
  background: var(--color-cream-light);
}

.problem-card--red {
  color: var(--color-cream);
  background: var(--color-red);
}

.problem-card--photo {
  color: #fff;
  background: #2b2b2b;
}

.problem-card--photo::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.12) 42%,
    rgba(0, 0, 0, 0.72) 100%
  );
  content: "";
}

.problem-card__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-card__number {
  color: var(--color-red);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.problem-card--red .problem-card__number,
.problem-card--photo .problem-card__number {
  color: inherit;
}

.problem-card__text {
  margin-top: auto;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.25px;
  line-height: 23px;
}

.problem-card--image-only {
  padding: 0;
  background: #d8d6ca;
}

@media (max-width: 1100px) {
  .problems__inner {
    grid-template-columns: minmax(210px, 260px) minmax(0, 738px);
    gap: 32px;
    width: min(1048px, calc(100% - 32px));
    padding-block: 64px 120px;
  }

  .problems__title {
    font-size: clamp(40px, 4.6vw, 50px);
    line-height: 1;
  }

  .problem-card {
    padding: clamp(14px, 1.8vw, 20px);
  }

  .problem-card__text {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.05;
  }
}

@media (max-width: 820px) {
  .problems__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .problems__title br {
    display: none;
  }

  .problems__title {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .problems__inner {
    padding-block: 48px 72px;
  }

  .problems__title {
    margin-top: 14px;
    font-size: 40px;
  }

  .problems__tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card__number {
    font-size: 26px;
  }

  .problem-card__text {
    font-size: 16px;
  }
}
