/* =========================================================
   Кейс v2 - в одной системе с главной («лаборатория», хром, синий акцент)
   ========================================================= */
body { background: var(--bg); }
#caseRoot { position: relative; z-index: 2; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); vertical-align: middle; }

/* обложка */
.cx-hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; padding: 130px var(--gutter) 90px; }
.cx-crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 26px; }
.cx-crumbs a:hover { color: var(--fg); }
.cx-crumbs i { font-style: normal; opacity: .4; }
.cx-crumbs .demo { padding: 2px 8px; border-radius: 100px; background: var(--fg); color: var(--bg); font-weight: 500; }
.cx-client { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.cx-client span { color: var(--muted); font-weight: 400; }
.cx-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(38px, 5.2vw, 86px); line-height: .98; max-width: 16ch; }
.cx-summary { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: 19px; }
.cx-hero .hero-actions { margin-top: 32px; }
.cx-hero .hero-scroll { bottom: 28px; }

/* стеклянная карточка «протокол» - как карточки цен на главной */
.cx-card { display: grid; gap: 22px; padding: 28px; border-radius: 28px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--fg) 14%, transparent), 0 60px 120px -40px rgba(0,0,0,.6); }
.cx-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.cx-card-top span:first-child { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.cx-metric b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.05em; font-size: clamp(56px, 6vw, 96px); line-height: .9; font-variant-numeric: proportional-nums; }
.cx-metric > span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.cx-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; }
.cx-facts dt { color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.cx-facts dd { font-weight: 600; font-size: 14px; }
.cx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cx-chips li { padding: 6px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }

/* три цифры сразу под обложкой */
.cx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 var(--gutter); }
.cx-stat { position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cx-stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.cx-stat > span { color: var(--accent-ink); font-size: 10px; }
.cx-stat b { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.04em; font-size: clamp(40px, 4.2vw, 68px); line-height: .95; font-variant-numeric: proportional-nums; }
.cx-stat p { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* «экспонат» - видео/обложка клиента в рамке */
.cx-exhibit { padding: 14vh var(--gutter) 0; }
.cx-frame { position: relative; height: min(72vh, 720px); border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 80px 160px -60px rgba(0,0,0,.9); will-change: transform; }
.cx-frame video, .cx-frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.cx-frame figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; color: #fff; font-size: 10px; }
.cx-frame figcaption span { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 100px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); }

/* задача + решение: коротко, решение - шаги на оси */
.cx-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; padding: 16vh var(--gutter) 0; align-items: start; }
.cx-task { position: sticky; top: 120px; }
.cx-h { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(34px, 3.8vw, 60px); line-height: .98; margin-bottom: 22px; }
.cx-h em { color: var(--accent-ink); }
.cx-task > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.cx-axis { list-style: none; position: relative; display: grid; gap: 6px; padding-left: 34px; }
.cx-axis::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 10%, transparent)); }
.cx-axis li { position: relative; display: grid; gap: 4px; padding: 16px 20px; border-radius: 18px; transition: background .5s, box-shadow .5s; }
.cx-axis li::before { content: ""; position: absolute; left: -32px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent); transition: background .4s, box-shadow .4s; }
.cx-axis li.is-on { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cx-axis li.is-on::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent); }
.cx-axis span { color: var(--accent-ink); font-size: 10px; }
.cx-axis p { font-size: 17px; line-height: 1.5; }

/* блоки данных - единый синий акцент вместо цвета клиента */
.cs-block .cs-h2 em { color: var(--accent-ink); }

/* связанный кейс - стеклянная карточка в стиле сайта */
.cs-related { color: var(--fg); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cs-related > span { color: var(--accent-ink); }
.cs-related > i { background: var(--accent); color: var(--on-accent); }

/* финал: следующий кейс + призыв */
.cx-end { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; padding: 16vh var(--gutter) 14vh; align-items: stretch; }
.cx-next { position: relative; overflow: hidden; display: grid; align-content: end; gap: 8px; min-height: 340px; padding: 32px; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .5s, transform .7s var(--ease); }
.cx-next:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-4px); }
.cx-next span { color: var(--muted); font-size: 10px; }
.cx-next strong { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.04em; font-size: clamp(40px, 4.6vw, 76px); line-height: .95; }
.cx-next em { color: var(--muted); font-size: 15px; font-style: normal; }
.cx-next i { position: absolute; right: 28px; top: 28px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, transform .6s var(--ease); }
.cx-next:hover i { background: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.cx-cta { display: grid; align-content: center; gap: 18px; padding: 40px; border-radius: 28px; background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cx-cta .label, .cx-cta .cx-h { margin: 0; }
.cx-cta > p:not(.label) { color: var(--muted); font-size: 17px; max-width: 46ch; }
.cx-cta .btn { justify-self: start; }

@media (max-width: 1000px) {
  .cx-hero { grid-template-columns: 1fr; padding-top: 110px; gap: 32px; }
  .cx-story { grid-template-columns: 1fr; gap: 48px; }
  .cx-task { position: static; }
  .cx-end { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cx-stats { grid-template-columns: 1fr; }
  .cx-facts { grid-template-columns: 1fr 1fr; }
  .cx-frame { height: 52vh; }
  .cx-hero .hero-scroll { display: none; }
  .cx-axis { padding-left: 26px; }
  .cx-axis li { padding: 12px 14px; }
  .cx-axis li::before { left: -24px; }
  .cx-cta { padding: 26px; }
}

/* отчёт: выключенная кампания - нейтрально, не «плохо» */
.rp-status.off { color: var(--muted); }
