.problem-photo-hero,
.problem-photo-gallery {
  margin: 28px 0;
}

.problem-photo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #c9eef4;
  border-radius: 22px;
  background: linear-gradient(135deg, #f3fdff 0%, #ffffff 72%);
  box-shadow: 0 18px 45px rgba(11, 39, 62, 0.08);
}

.problem-photo-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.problem-photo-hero__text span,
.problem-photo-gallery__label {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: #dff8fb;
  color: #028a9b;
  font-weight: 800;
  font-size: 14px;
}

.problem-photo-hero__text h2,
.problem-photo-gallery h2 {
  margin: 0;
  color: #132035;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.problem-photo-hero__text p,
.problem-photo-gallery p {
  margin: 0;
  color: #465976;
  font-size: 17px;
  line-height: 1.65;
}

.problem-photo-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d9edf3;
}

.problem-photo-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.problem-photo-figure figcaption {
  padding: 12px 14px;
  color: #31445f;
  font-weight: 700;
  background: #fff;
}

.problem-photo-gallery {
  padding: 24px;
  border-radius: 24px;
  background: #f4fbfd;
  border: 1px solid #d5edf3;
}

.problem-photo-gallery__head {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 18px;
}

.problem-photo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.problem-photo-gallery__grid .problem-photo-figure img {
  aspect-ratio: 16 / 10;
  min-height: 210px;
}

@media (max-width: 760px) {
  .problem-photo-hero {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 18px;
  }

  .problem-photo-hero__text h2,
  .problem-photo-gallery h2 {
    font-size: 24px;
  }

  .problem-photo-hero__text p,
  .problem-photo-gallery p {
    font-size: 16px;
  }

  .problem-photo-gallery {
    padding: 14px;
    border-radius: 18px;
  }

  .problem-photo-gallery__grid {
    grid-template-columns: 1fr;
  }

  .problem-photo-figure img,
  .problem-photo-gallery__grid .problem-photo-figure img {
    min-height: 220px;
  }
}
