:root {
  --case-ink: #080808;
  --case-muted: #707070;
  --case-line: rgba(8, 8, 8, 0.12);
  --case-red: #7b1118;
}

body #cases {
  padding-bottom: clamp(76px, 8vw, 128px);
}

body #cases .page-hero.compact,
body #cases .case-layout {
  width: min(1500px, calc(100% - 112px));
  max-width: none;
}

body #cases .page-hero.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: clamp(64px, 7vw, 108px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

body #cases .page-hero.compact .eyebrow {
  margin-bottom: 4px;
  color: var(--case-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body #cases .page-hero.compact h1 {
  max-width: 1160px;
  margin: 0;
  font-size: clamp(36px, 4.7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

body #cases .page-hero.compact p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #777;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.78;
}

body #cases .case-layout {
  padding-bottom: 0;
}

body #cases .featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: clamp(28px, 4vw, 54px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 28px 76px rgba(8, 8, 8, 0.08);
}

body #cases .featured-case .image-sim.kitchen {
  min-height: clamp(460px, 48vw, 720px);
  filter: grayscale(0.28) contrast(1.05);
}

body #cases .featured-case > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.5vw, 72px);
  border-left: 1px solid var(--case-line);
}

body #cases .featured-case .label {
  margin-bottom: 18px;
  color: var(--case-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body #cases .featured-case h2 {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

body #cases .featured-case p {
  max-width: 540px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.82;
}

body #cases .spec-lines {
  margin-top: 20px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(8, 8, 8, 0.13);
}

body #cases .spec-lines span {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
}

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

body #cases .case-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 8, 8, 0.06);
}

body #cases .case-grid .image-sim {
  min-height: 260px;
  border-radius: 0;
  filter: grayscale(0.18) contrast(1.04);
}

body #cases .case-grid h3 {
  margin: 0;
  padding: 24px 26px 0;
  color: var(--case-ink);
  font-size: clamp(19px, 1.45vw, 25px);
  line-height: 1.22;
}

body #cases .case-grid p {
  margin: 0;
  padding: 12px 26px 28px;
  color: var(--case-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.72;
}

@media (max-width: 1100px) {
  body #cases .page-hero.compact,
  body #cases .case-layout {
    width: min(100% - 48px, 920px);
  }

  body #cases .featured-case {
    grid-template-columns: 1fr;
  }

  body #cases .featured-case > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--case-line);
  }

  body #cases .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body #cases .page-hero.compact,
  body #cases .case-layout {
    width: min(100% - 32px, 440px);
  }

  body #cases .page-hero.compact {
    padding-top: 46px;
  }

  body #cases .page-hero.compact h1 {
    font-size: clamp(31px, 9.2vw, 42px);
  }

  body #cases .featured-case .image-sim.kitchen {
    min-height: 340px;
  }

  body #cases .featured-case > div:last-child {
    padding: 30px 24px;
  }

  body #cases .spec-lines span {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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