.case-study .case-study__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1440px;
  min-height: 88px;
  margin-inline: auto;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--studio-line);
}

.case-study .case-study__header .webceh-logo__name {
  font-size: clamp(23px, 3vw, 34px);
}

.case-study .case-study__header .header-cta {
  min-height: 44px;
  padding: 12px 18px;
}

.case-study__main {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 64px) clamp(40px, 7vw, 96px);
}

.case-study__intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(34px, 6vw, 82px);
}

.case-study__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--studio-forest);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.case-study__back:hover,
.case-study__next:hover { text-decoration: underline; }

.case-study__intro h1 {
  margin: 0;
  font-size: clamp(44px, 5.45vw, 86px);
  font-weight: 700;
  text-wrap: balance;
}

.case-study__intro p {
  max-width: 32ch;
  margin: 20px 0 26px;
  color: var(--studio-muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
}

.case-study__figure {
  margin: 0;
}

.case-study__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--studio-line);
  border-radius: clamp(14px, 2.2vw, 26px);
  background: var(--studio-soft);
}

.case-study__figure figcaption {
  margin-top: 10px;
  color: var(--studio-muted);
  font-size: 13px;
}

.case-study__story {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(14px, 2.3vw, 30px);
  margin-bottom: clamp(28px, 4.2vw, 56px);
}

.case-study__story > section {
  padding: clamp(20px, 3vw, 38px);
  border-radius: 24px;
  background: var(--studio-white);
}

.case-study__story > section:first-child { background: var(--studio-soft); }

.case-study__story h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

.case-study__story :is(p, ul) {
  margin: 0;
  color: var(--studio-muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}

.case-study__story ul { padding-inline-start: 1.25em; }
.case-study__story li + li { margin-top: 8px; }
.case-study__story li::marker { color: var(--studio-forest); }

.case-study__closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(28px, 4.2vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--studio-line);
}

.case-study__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--studio-forest);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .case-study .case-study__header { min-height: 68px; }
  .case-study__intro,
  .case-study__story { grid-template-columns: minmax(0, 1fr); }
  .case-study__intro h1 { text-wrap: initial; }
  .case-study__back { margin-bottom: 10px; }
}

.case-study__gallery h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
}

.case-study__screens {
  display: grid;
  grid-template-columns: minmax(0, .72fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 32px) clamp(12px, 2vw, 24px);
}

.case-study__screens .case-study__figure--mobile { grid-row: span 2; }
.case-study__screens .case-study__figure--feature { grid-column: span 2; }
.case-study__figure a { display: block; border-radius: clamp(14px, 2.2vw, 26px); }
.case-study__figure a:hover img { border-color: var(--studio-forest); }

@media (max-width: 760px) {
  .case-study__screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-study__screens .case-study__figure--mobile {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
    width: min(100%, 300px);
  }
}

@media (max-width: 480px) {
  .case-study__screens { grid-template-columns: minmax(0, 1fr); }
  .case-study__screens .case-study__figure--feature { grid-column: auto; }
}
