.rp-related-cases,
.rp-related-cases * {
  box-sizing: border-box;
}

.rp-related-cases {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 52px 16px;
  background: #f7f7f8;
  color: #151515;
  font-family: Montserrat, Manrope, Arial, sans-serif;
}

.rp-related-cases__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.rp-related-cases__kicker {
  margin: 0 0 10px;
  color: #b4149d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
}

.rp-related-cases h2 {
  margin: 0;
  color: #111;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.rp-related-cases__intro {
  max-width: 760px;
  margin: 13px 0 26px;
  color: #565c67;
  font-size: 16px;
  line-height: 1.65;
}

.rp-related-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rp-related-case {
  overflow: hidden;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  background: #fff;
}

.rp-related-case img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rp-related-case__body {
  padding: 18px;
}

.rp-related-case h3 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}

.rp-related-case p {
  margin: 0 0 14px;
  color: #5b606a;
  font-size: 14px;
  line-height: 1.55;
}

.rp-related-case a {
  color: #a81393;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  text-underline-offset: 3px;
}

.rp-related-cases__all {
  display: inline-flex;
  margin-top: 24px;
  color: #171717;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .rp-related-cases__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .rp-related-cases {
    padding: 38px 14px;
  }

  .rp-related-cases h2 {
    font-size: 26px;
  }

  .rp-related-cases__grid {
    grid-template-columns: 1fr;
  }
}
