.case-detail {
  --case-ink: #18251c;
  --case-muted: #5d6a61;
  --case-line: #dfe7e1;
  --case-soft: #f3f7f4;
  color: var(--case-ink);
}

.case-shell {
  width: min(1160px, 90%);
  margin-inline: auto;
}

.case-breadcrumb {
  border-bottom: 1px solid var(--case-line);
  background: #fafcfb;
}

.case-breadcrumb ol {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  overflow: hidden;
  color: #6d786f;
  font-size: 13px;
  white-space: nowrap;
}

.case-breadcrumb li {
  display: flex;
  align-items: center;
}

.case-breadcrumb li:not(:last-child)::after {
  margin-left: 10px;
  color: #abb3ad;
  content: "/";
}

.case-breadcrumb a:hover { color: var(--primary-color); }

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 72px;
  background:
    radial-gradient(circle at 12% 12%, rgba(92,188,113,.2), transparent 30%),
    linear-gradient(135deg, #0b2915 0%, #123c20 56%, #1c5730 100%);
  color: #fff;
}

.case-hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
  content: "";
}

.case-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  align-items: center;
  gap: 70px;
}

.case-kicker,
.case-label {
  color: #2d7f43;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.case-kicker {
  margin-bottom: 18px;
  color: #b9dfc3;
}

.case-kicker span {
  margin-right: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
}

.case-hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.case-hero__lead {
  max-width: 700px;
  margin: 0;
  color: #d9e8dd;
  font-size: 18px;
  line-height: 1.7;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.case-btn:hover { transform: translateY(-2px); }
.case-btn--primary { background: #51b76b; color: #092711; }
.case-btn--primary:hover { background: #6bcf83; }
.case-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.case-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.case-reviewed {
  margin: 22px 0 0;
  color: #afc9b5;
  font-size: 12px;
}

.case-hero__media {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
  transform: rotate(1.2deg);
}

.case-hero__media img {
  width: 100%;
  height: 390px;
  border-radius: 13px;
  object-fit: cover;
}

.case-hero__media figcaption {
  padding: 10px 6px 3px;
  color: #c6d8ca;
  font-size: 11px;
  line-height: 1.5;
}

.case-answer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: -1px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.case-answer__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #e3f3e7;
  color: var(--primary-dark);
  font-size: 20px;
}

.case-answer h2 {
  margin: 4px 0 9px;
  font-size: 24px;
}

.case-answer p:last-child {
  max-width: 960px;
  margin: 0;
  color: var(--case-muted);
  line-height: 1.75;
}

.case-anchor-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  border-block: 1px solid var(--case-line);
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(22,54,29,.04);
  backdrop-filter: blur(10px);
}

.case-anchor-nav .case-shell {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.case-anchor-nav span {
  color: #8b948d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-anchor-nav a {
  color: #3f4d43;
  font-size: 13px;
  font-weight: 700;
}

.case-anchor-nav a:hover { color: var(--primary-color); }

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: 70px;
  padding-top: 70px;
  padding-bottom: 90px;
}

.case-main {
  min-width: 0;
}

.case-section {
  scroll-margin-top: 75px;
  margin-bottom: 82px;
}

.case-section:last-child { margin-bottom: 0; }

.case-section > h2 {
  max-width: 760px;
  margin: 8px 0 20px;
  font-size: clamp(29px, 3.4vw, 42px);
  letter-spacing: -.035em;
}

.case-section > p:not(.case-label) {
  color: var(--case-muted);
  font-size: 16px;
  line-height: 1.8;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 14px;
}

.case-facts div {
  padding: 19px 22px;
  border-bottom: 1px solid var(--case-line);
}

.case-facts div:nth-child(odd) { border-right: 1px solid var(--case-line); }
.case-facts div:nth-last-child(-n+2) { border-bottom: 0; }

.case-facts span {
  display: block;
  margin-bottom: 4px;
  color: #839087;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-facts strong { font-size: 14px; }

.case-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 19px 20px;
  border-left: 3px solid #e3a520;
  background: #fffaf0;
  color: #655b43;
}

.case-note i { margin-top: 5px; color: #b77b00; }
.case-note p { margin: 0; font-size: 13px; line-height: 1.7; }

.case-function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.case-function {
  padding: 25px;
  border: 1px solid var(--case-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.case-function:hover {
  border-color: #a8d1b2;
  box-shadow: 0 13px 30px rgba(25,68,36,.07);
}

.case-function > span {
  color: #52a967;
  font-size: 12px;
  font-weight: 900;
}

.case-function h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.case-function p {
  margin: 0;
  color: var(--case-muted);
  font-size: 14px;
  line-height: 1.7;
}

.case-subhead {
  margin-top: 38px;
  font-size: 21px;
}

.case-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.case-checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  color: #4c5a50;
  font-size: 15px;
}

.case-checklist i { margin-top: 5px; color: var(--primary-color); }

.case-steps {
  margin-top: 32px;
  border-top: 1px solid var(--case-line);
}

.case-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--case-line);
}

.case-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #174c27;
  color: #fff;
  font-weight: 800;
}

.case-step h3 { margin: 0 0 6px; font-size: 18px; }
.case-step p { margin: 0; color: var(--case-muted); font-size: 14px; line-height: 1.7; }

.case-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--case-line);
  border-radius: 13px;
}

.case-table-wrap table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 13px;
}

.case-table-wrap caption {
  padding: 18px 20px;
  background: #174c27;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.case-table-wrap th,
.case-table-wrap td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--case-line);
  text-align: left;
  vertical-align: top;
}

.case-table-wrap th { background: var(--case-soft); color: #35463a; }
.case-table-wrap td { color: #59665d; }
.case-table-wrap tbody tr:last-child td { border-bottom: 0; }

.case-buying-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 13px;
  background: var(--case-line);
}

.case-buying-grid div { padding: 24px; background: #fff; }
.case-buying-grid h3 { margin: 0 0 8px; font-size: 17px; }
.case-buying-grid p { margin: 0; color: var(--case-muted); font-size: 13px; line-height: 1.7; }

.case-related {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 27px;
  border-radius: 13px;
  background: var(--case-soft);
}

.case-related h3 { margin: 5px 0; font-size: 20px; }
.case-related p:not(.case-label) { margin: 0; color: var(--case-muted); font-size: 13px; }
.case-text-link { flex: 0 0 auto; color: var(--primary-dark); font-size: 13px; font-weight: 800; }

.case-faq details { border-bottom: 1px solid var(--case-line); }
.case-faq summary {
  position: relative;
  padding: 19px 36px 19px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}
.case-faq summary::-webkit-details-marker { display: none; }
.case-faq summary::after {
  position: absolute;
  right: 6px;
  color: var(--primary-color);
  font-size: 21px;
  content: "+";
}
.case-faq details[open] summary::after { content: "−"; }
.case-faq details p {
  max-width: 730px;
  margin: -3px 0 20px;
  color: var(--case-muted);
  font-size: 14px;
  line-height: 1.75;
}

.case-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 18px;
}

.case-sidebar__card {
  padding: 24px;
  border: 1px solid var(--case-line);
  border-radius: 14px;
  background: #fff;
}

.case-sidebar dl { margin-top: 15px; }
.case-sidebar dl div { padding: 11px 0; border-bottom: 1px solid var(--case-line); }
.case-sidebar dl div:last-child { border-bottom: 0; }
.case-sidebar dt { color: #879189; font-size: 11px; text-transform: uppercase; }
.case-sidebar dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; }

.case-sidebar__card--green {
  border: 0;
  background: linear-gradient(145deg, #174c27, #0d351a);
  color: #fff;
}
.case-sidebar__card--green > i { color: #7ad18e; font-size: 24px; }
.case-sidebar__card--green h3 { margin: 15px 0 8px; color: #fff; font-size: 19px; }
.case-sidebar__card--green p { color: #c9ddce; font-size: 13px; line-height: 1.65; }
.case-sidebar__card--green a { color: #8de39f; font-size: 13px; font-weight: 800; }

.case-cta {
  padding: 72px 0;
  background:
    linear-gradient(115deg, rgba(8,40,17,.94), rgba(18,76,36,.9)),
    var(--case-cta-image, url("../images/case-food-meat.jpg")) center/cover;
  color: #fff;
}

.case-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
}

.case-cta .case-label { color: #86d399; }
.case-cta h2 { max-width: 720px; margin: 6px 0 12px; color: #fff; font-size: clamp(30px, 4vw, 46px); }
.case-cta p:not(.case-label) { max-width: 720px; margin: 0; color: #cee0d2; line-height: 1.7; }
.case-cta__actions { display: grid; gap: 10px; min-width: 210px; }
.case-btn--light { background: #fff; color: #174c27; }
.case-btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }

@media (max-width: 980px) {
  .case-hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .case-hero__media { max-width: 680px; transform: none; }
  .case-layout { grid-template-columns: 1fr; gap: 20px; }
  .case-sidebar { position: static; grid-row: 1; grid-template-columns: repeat(2, 1fr); }
  .case-cta__grid { grid-template-columns: 1fr; gap: 30px; }
  .case-cta__actions { display: flex; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .case-hero { padding: 54px 0; }
  .case-hero__grid { gap: 34px; }
  .case-hero__media img { height: 270px; }
  .case-answer { grid-template-columns: 1fr; }
  .case-anchor-nav .case-shell { gap: 18px; }
  .case-layout { padding-top: 52px; padding-bottom: 65px; }
  .case-section { margin-bottom: 62px; }
  .case-facts,
  .case-function-grid,
  .case-buying-grid,
  .case-sidebar { grid-template-columns: 1fr; }
  .case-facts div,
  .case-facts div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--case-line); }
  .case-facts div:last-child { border-bottom: 0; }
  .case-related { align-items: flex-start; flex-direction: column; }
  .case-cta { padding: 58px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-btn { transition: none; }
}
