.case-studies-page {
  background: #fff;
  color: #111;
  padding: 54px 0 82px;
}

.case-studies-intro {
  text-align: center;
}

.case-studies-intro h1 {
  margin-bottom: 22px;
  color: #ed0000;
  font-family: "Inter Local", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
}

.case-studies-intro p {
  max-width: 1390px;
  margin: 0 auto 52px;
  color: #000;
  font-size: 19px;
  line-height: 1.75;
}

.case-search {
  display: flex;
  width: min(100%, 930px);
  height: 50px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f1f3;
}

.case-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  padding: 0 20px;
}

.case-search input::placeholder {
  color: #9a9a9a;
}

.case-search button {
  position: relative;
  width: 64px;
  height: 100%;
  border: 0;
  background: #68717e;
  cursor: pointer;
}

.case-search button::before {
  position: absolute;
  top: 15px;
  left: 21px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
}

.case-search button::after {
  position: absolute;
  top: 29px;
  left: 35px;
  width: 11px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.screen-reader-label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.case-category {
  padding: 6px 0 46px;
}

.case-category + .case-category {
  margin-top: 10px;
  padding-top: 26px;
  border-top: 2px dashed #d6d6d6;
}

.case-category__title {
  margin: 0 0 28px;
  color: #ed0000;
  font-family: "Inter Local", Arial, sans-serif;
  font-size: clamp(29px, 3.3vw, 38px);
  text-align: center;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.case-card {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .13);
}

.case-card__media {
  display: block;
  aspect-ratio: 2.42 / 1;
  overflow: hidden;
  background: #ececec;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.case-card:hover .case-card__media img {
  transform: scale(1.035);
}

.case-card__body {
  min-height: 168px;
  padding: 18px 18px 16px;
}

.case-card__title {
  margin: 0 0 8px;
  color: #101010;
  font-family: "Inter Local", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
}

.case-card__description {
  margin: 0 0 16px;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.45;
}

.case-card__link {
  color: #ed0000;
  font-size: 13px;
  font-weight: 800;
}

.case-empty {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 22px;
  background: #f6f6f6;
  color: #555;
  text-align: center;
}

@media (max-width: 860px) {
  .case-studies-page {
    padding-top: 34px;
  }

  .case-studies-intro p {
    margin-bottom: 36px;
    font-size: 16px;
    line-height: 1.65;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .case-search {
    height: 46px;
  }

  .case-search button {
    width: 56px;
  }

  .case-card__media {
    aspect-ratio: 1.65 / 1;
  }

  .case-card__body {
    min-height: 0;
    padding: 16px;
  }
}
