.case-section {
  background: #efefef;
  padding: 90px 20px;
}

.case-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.case-section h2 {
  margin: 0 0 70px;
  color: #000;
  font: 700 clamp(30px, 4vw, 42px)/1.2 Montserrat, sans-serif;
  text-align: center;
}

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

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.case-card:hover,
.case-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px #0000001c;
}

.case-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 30px 30px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-tag {
  display: inline-block;
  padding: 5px 9px;
  background: #f3f3f3;
  color: #555;
  font: 600 11px/1.4 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.case-card h3 {
  margin: 20px 0 12px;
  font: 700 18px/1.45 Montserrat, sans-serif;
}

.case-card p {
  margin: 0 0 22px;
  font: 400 15px/1.6 Montserrat, sans-serif;
}

.case-more {
  margin-top: auto;
  color: #202950;
  font: 700 14px/1.5 Montserrat, sans-serif;
}

.case-page {
  margin: 0;
  background: #f7f7f7;
  color: #202020;
  font-family: Montserrat, sans-serif;
}

.case-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1100px) / 2));
  background: #202950;
}

.case-page-header a {
  color: #fff;
  text-decoration: none;
}

.case-brand {
  font-weight: 700;
  letter-spacing: .08em;
}

.case-back {
  font-size: 14px;
  font-weight: 600;
}

.case-back:hover,
.case-back:focus-visible {
  text-decoration: underline;
}

.case-article {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.case-article h1 {
  margin: 22px 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
}

.case-lead {
  margin: 0 0 36px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.case-hero {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 0 45px;
  object-fit: cover;
}

.case-body {
  font-size: 16px;
  line-height: 1.85;
}

.case-body h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.case-body figure {
  margin: 36px 0;
}

.case-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.case-body ul {
  padding-left: 24px;
}

.case-bottom {
  display: inline-block;
  margin-top: 50px;
  color: #202950;
  text-decoration: none;
}

@media (max-width: 960px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 640px) {
  .case-section { padding: 64px 16px; }
  .case-section h2 { margin-bottom: 38px; }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-card img { height: 210px; }
  .case-page-header { align-items: flex-start; flex-direction: column; padding: 20px 24px; }
  .case-article { padding-top: 45px; }
}
