:root {
  --case-bg: #f5f6f8;
  --case-surface: #ffffff;
  --case-surface-alt: #f0f4f8;
  --case-border: #e2e8f0;
  --case-text: #10203f;
  --case-text-soft: #66768f;
  --case-blue: #1f7cff;
  --case-blue-dark: #0f2f6f;
  --case-green: #1d9d6c;
  --case-shadow: 0 14px 36px rgba(10, 36, 79, 0.08);
}

body {
  background: var(--case-bg);
}

.case-study-page {
  min-height: 100vh;
  color: var(--case-text);
  background: none;
}

.case-block,
.case-footer-inner {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.case-brand .brand-mark {
  background: var(--case-blue);
}

.case-tags,
.case-photo-overlay,
.case-cta-actions,
.case-footer-icons {
  display: flex;
  align-items: center;
}

.case-primary-cta,
.case-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.case-primary-cta {
  background: var(--case-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 124, 255, 0.22);
}

.case-secondary-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.case-section,
.case-hero {
  padding: 56px 0;
}

.case-section-muted {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.case-hero-grid,
.lessons-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.02fr);
  gap: 44px;
  align-items: center;
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  margin: 0;
  border-radius: 999px;
  background: rgba(31, 124, 255, 0.08);
  color: var(--case-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.case-hero-copy h1 {
  margin: 20px 0 0;
  max-width: 10.4ch;
  font-size: clamp(3.2rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #0e1d3a;
}

.case-hero-copy h1 span {
  color: var(--case-blue);
}

.case-hero-lead,
.case-section-heading p,
.challenge-card p,
.lesson-item p,
.impact-card p,
.case-cta-shell p,
.testimonial-card footer span,
.challenge-quote p {
  color: var(--case-text-soft);
}

.case-hero-lead {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.case-tags {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.case-tag-card,
.challenge-card,
.impact-card,
.testimonial-card,
.solution-table,
.challenge-quote {
  background: var(--case-surface);
  border: 1px solid var(--case-border);
  box-shadow: var(--case-shadow);
}

.case-tag-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  padding: 14px 16px;
  border-radius: 16px;
}

.case-tag-icon,
.challenge-icon,
.lesson-bullet,
.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-tag-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(31, 124, 255, 0.12);
  color: var(--case-blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.case-tag-card strong,
.impact-card strong,
.testimonial-card footer strong,
.lesson-item h3,
.challenge-card h3,
.solution-row-head {
  display: block;
}

.case-tag-card strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8190a6;
}

.case-tag-card span:last-child {
  font-size: 0.92rem;
  color: var(--case-text);
}

.case-photo-card {
  position: relative;
  min-height: 380px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(227, 232, 238, 0.92));
  border: 1px solid rgba(220, 227, 235, 0.95);
  box-shadow: 0 22px 48px rgba(18, 40, 82, 0.16);
}

.case-photo-scene {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f9fafb 0%, #eef1f3 52%, #d9dddf 52%, #d0d4d6 100%);
}

.scene-wall-art,
.scene-lamp,
.scene-plant,
.scene-table,
.scene-monitor,
.scene-person {
  position: absolute;
}

.scene-wall-art {
  top: 28px;
  width: 64px;
  height: 50px;
  border: 3px solid rgba(211, 214, 216, 0.9);
  background: rgba(255, 255, 255, 0.7);
}

.scene-wall-art-left {
  right: 58px;
}

.scene-wall-art-right {
  right: 138px;
  top: 18px;
  width: 44px;
  height: 38px;
}

.scene-lamp {
  top: 10px;
  left: 56%;
  width: 18px;
  height: 62px;
  background: linear-gradient(180deg, #adb5bb, #ced5d9);
}

.scene-lamp::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 22px;
  width: 46px;
  height: 28px;
  border-radius: 50% 50% 30% 30%;
  background: #c9ced2;
}

.scene-plant {
  top: 42px;
  left: 24px;
  width: 56px;
  height: 84px;
}

.scene-plant::before,
.scene-plant::after {
  content: "";
  position: absolute;
  background: #87b78e;
  border-radius: 80% 0 80% 0;
}

.scene-plant::before {
  left: 10px;
  top: 0;
  width: 18px;
  height: 42px;
  transform: rotate(-28deg);
}

.scene-plant::after {
  left: 26px;
  top: 8px;
  width: 20px;
  height: 46px;
  transform: rotate(22deg);
}

.scene-table {
  left: 78px;
  right: 42px;
  bottom: 94px;
  height: 14px;
  background: #b38a63;
  border-radius: 8px;
}

.scene-table::before,
.scene-table::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 8px;
  height: 88px;
  background: #615548;
}

.scene-table::before {
  left: 42px;
}

.scene-table::after {
  right: 54px;
}

.scene-monitor {
  bottom: 108px;
  width: 54px;
  height: 36px;
  border-radius: 6px;
  background: #4f5a67;
  border: 4px solid #d5dde5;
}

.scene-monitor::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 34px;
  width: 10px;
  height: 14px;
  background: #5d6167;
}

.scene-monitor-left {
  left: 150px;
}

.scene-monitor-right {
  right: 108px;
}

.scene-person {
  bottom: 72px;
  width: 74px;
  height: 130px;
}

.scene-person::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8aa82;
}

.scene-person::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  width: 54px;
  height: 82px;
  border-radius: 20px 20px 14px 14px;
}

.scene-person-left {
  left: 88px;
}

.scene-person-left::after {
  background: #49586c;
  transform: rotate(10deg);
}

.scene-person-center {
  left: 184px;
}

.scene-person-center::after {
  background: #707e8c;
}

.scene-person-right {
  right: 30px;
  width: 86px;
}

.scene-person-right::after {
  width: 60px;
  background: #8e9197;
  transform: rotate(-6deg);
}

.case-photo-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  justify-content: space-between;
}

.case-hero-stat {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.case-hero-stat strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.case-hero-stat span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.case-section-heading-left {
  margin-left: 0;
  text-align: left;
}

.case-section-heading h2,
.case-cta-shell h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.case-section-heading p {
  margin: 14px 0 0;
  line-height: 1.8;
}

.challenge-grid,
.impact-grid {
  display: grid;
  gap: 16px;
}

.challenge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-card {
  padding: 24px 20px;
  border-radius: 14px;
}

.challenge-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(31, 124, 255, 0.08);
  color: var(--case-blue);
  font-size: 0.82rem;
}

.challenge-card h3,
.lesson-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.challenge-card p,
.lesson-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.challenge-quote {
  margin: 18px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  border-left: 3px solid var(--case-blue);
}

.challenge-quote p {
  margin: 0;
  font-style: italic;
  line-height: 1.8;
}

.challenge-quote footer {
  margin-top: 14px;
  font-weight: 700;
  color: var(--case-text);
}

.solution-table {
  border-radius: 18px;
  overflow: hidden;
}

.solution-row {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1.35fr;
}

.solution-row > div {
  padding: 20px 18px;
  border-right: 1px solid var(--case-border);
  border-bottom: 1px solid var(--case-border);
  font-size: 0.95rem;
  line-height: 1.65;
}

.solution-row > div:last-child {
  border-right: 0;
}

.solution-row:last-child > div {
  border-bottom: 0;
}

.solution-row-head > div {
  padding-top: 16px;
  padding-bottom: 16px;
  background: #f7f9fc;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a8799;
}

.solution-row-head > div:last-child,
.solution-row > div:last-child {
  background: #f1f6ff;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
  padding: 24px 22px;
  border-radius: 16px;
}

.impact-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8693a8;
}

.impact-card strong {
  margin-bottom: 8px;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0b1d3c;
}

.impact-card small {
  font-size: 1rem;
  font-weight: 700;
}

.impact-card p {
  margin: 0;
  color: var(--case-green);
  font-size: 0.88rem;
  font-weight: 700;
}

.lessons-layout {
  align-items: start;
}

.lessons-list {
  display: grid;
  gap: 24px;
}

.lesson-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.lesson-bullet {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8cc2ff, var(--case-blue));
  box-shadow: 0 0 0 6px rgba(31, 124, 255, 0.08);
}

.testimonial-stack {
  display: grid;
  gap: 18px;
}

.testimonial-card {
  padding: 26px 24px;
  border-radius: 16px;
}

.testimonial-card p {
  margin: 0;
  line-height: 1.85;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.testimonial-card footer img,
.testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.testimonial-card footer img {
  object-fit: cover;
}

.testimonial-avatar {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
}

.testimonial-card-primary {
  background: linear-gradient(145deg, #1f7cff, #1f6fe0);
  color: #fff;
  border-color: rgba(23, 98, 205, 0.9);
}

.testimonial-card-primary p,
.testimonial-card-primary footer span {
  color: rgba(255, 255, 255, 0.88);
}

.testimonial-card-secondary {
  background: #f5f7fb;
}

.case-cta-section {
  padding-top: 40px;
  padding-bottom: 72px;
}

.case-cta-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 44px 56px;
  border-radius: 22px;
  background: linear-gradient(145deg, #103062, #081f47);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 44px rgba(10, 28, 64, 0.24);
}

.case-cta-shell p {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.76);
}

.case-cta-actions {
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.case-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.52);
}

.case-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.case-footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--case-text-soft);
}

.case-footer-icons {
  gap: 16px;
}

.case-footer-icons a {
  color: #8d99ab;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .case-hero-grid,
  .lessons-layout,
  .impact-grid,
  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .case-hero-copy h1 {
    max-width: none;
  }

  .solution-row {
    grid-template-columns: 1fr;
  }

  .solution-row > div {
    border-right: 0;
  }

  .solution-row > div:nth-child(1) {
    padding-bottom: 6px;
    font-weight: 700;
    color: var(--case-text);
  }

  .solution-row > div:nth-child(2) {
    padding-top: 0;
  }

  .solution-row-head {
    display: none;
  }
}

@media (max-width: 840px) {
  .case-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .case-photo-card {
    min-height: 320px;
  }

  .case-photo-scene {
    min-height: 300px;
  }

  .case-cta-shell {
    padding: 36px 24px;
  }
}

@media (max-width: 640px) {
  .case-section,
  .case-hero {
    padding: 40px 0;
  }

  .case-primary-cta,
  .case-secondary-cta {
    width: 100%;
  }

  .case-hero-copy h1 {
    font-size: 2.8rem;
  }

  .case-tag-card {
    width: 100%;
  }

  .case-photo-card {
    min-height: 260px;
    padding: 8px;
  }

  .case-photo-scene {
    min-height: 240px;
  }

  .scene-wall-art,
  .scene-lamp,
  .scene-plant,
  .scene-monitor-right,
  .scene-person-right {
    display: none;
  }

  .scene-table {
    left: 36px;
    right: 24px;
  }

  .scene-monitor-left {
    left: 112px;
  }

  .scene-person-left {
    left: 36px;
  }

  .scene-person-center {
    left: 136px;
  }

  .case-photo-overlay {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .case-hero-stat strong {
    font-size: 1.7rem;
  }

  .case-footer-inner {
    align-items: center;
    text-align: center;
  }
}