﻿/* ====== Scoped styles: only inside .case-wrap ====== */
.case-wrap{
  /* palette (в стиле "политики"): тёмный градиент + светлые карточки */
  --bg0:#071a16;
  --bg1:#0a2a23;

  --card:#ffffff;
  --page:#f4f6f8;

  --text:#0f172a;
  --muted:#5b6477;
  --line:rgba(15,23,42,.10);

  --a:#22c55e;     /* accent (зелёный) */
  --a2:#06b6d4;    /* accent 2 (циан) */
  --good:#16a34a;  /* green */
  --warn:#f59e0b;  /* amber */

  --radius:18px;
  --shadow: 0 14px 34px rgba(2,6,23,.12);
  --shadow2: 0 10px 24px rgba(2,6,23,.08);

  font-family: var(--font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--text);
  line-height: 1.5;
}

.case-wrap *{ box-sizing:border-box; }
.case-wrap a{ color: var(--a); text-decoration: none; }
.case-wrap a:hover{ text-decoration: underline; }
.case-wrap img{ max-width: 100%; height: auto; display:block; }
.case-wrap p{ margin: 0 0 12px; }
.case-wrap h2,.case-wrap h3{
  font-family: var(--font-heading, "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.case-wrap h2{ font-size: clamp(24px, 2.4vw, 40px); }
.case-wrap h3{ font-size: clamp(18px, 1.8vw, 22px); }

.case-wrap{
  padding: 86px 0 34px;
  scroll-behavior:smooth;
}
.case-container{
  width: min(var(--container, 1200px), calc(100% - 32px));
  margin: 0 auto;
}
.case-section{ scroll-margin-top: 98px; }

/* Hero on case page uses the same full-screen structure as home hero. */
.case-wrap--hero-hrx{
  padding-top: 0;
}

.case-hero-hrx{
  --hrx-wave-color: #ffffff;
  --hrx-overlay: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.35) 100%);
}

.case-hero-hrx .hrx__inner{
  width: min(var(--container, 1200px), calc(100% - 32px));
  max-width: none;
  min-height: clamp(620px, 80vh, 860px);
  padding-inline: 0;
  padding-top: clamp(94px, 11vw, 136px);
  padding-bottom: calc(var(--hrx-wave-h) + 26px);
}

@media (min-width: 1200px){
  .case-wrap--hero-hrx .case-hero-hrx.hrx{
    margin-left: calc(50% - 50vw - (var(--rail-w, 0px) / 2)) !important;
    margin-right: calc(50% - 50vw + (var(--rail-w, 0px) / 2)) !important;
  }

  .case-layout{
    transform: translateX(calc(var(--rail-w, 0px) / -2));
  }
}

.case-hero-hrx__meta{
  display: none;
}

.case-hero-hrx .hrx__title.hrx__title--single{
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.case-hero-hrx__benefits{
  max-width: 760px;
}

.case-hero-hrx a.hrx__btn{
  color:#fff;
}

.case-hero-hrx .hrx__actions .hrx__btn:hover{
  text-decoration:none;
}

.case-hero-hrx .hrx__benefit a,
.case-hero-hrx .case-pill a{
  color:#fff;
}

.case-hero-hrx .hrx__metric-card--cpl .hrx__metric-ring span{
  font-size: 1.14rem;
}

@media (max-width: 1024px){
  .case-hero-hrx .hrx__inner{
    min-height: auto;
    padding-top: clamp(98px, 16vw, 124px);
    padding-bottom: calc(var(--hrx-wave-h) + 12px);
  }
}

/* ====== Hero ====== */
.case-hero{
  --case-hero-img: url('/wp-content/uploads/2025/08/0_0-e-scaled.webp');
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1021;
  color: #fff;
  box-shadow: 0 24px 54px rgba(2, 6, 23, .28);
  isolation: isolate;
}

.case-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--case-hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  z-index: 0;
}

.case-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(92deg, rgba(5,8,18,.92) 0%, rgba(8,12,28,.62) 44%, rgba(10,16,34,.36) 100%);
  z-index: 1;
}

.case-hero__inner{
  position: relative;
  z-index: 2;
  padding: clamp(26px, 3.2vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 420px);
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
}
@media (max-width: 980px){ .case-hero__inner{ grid-template-columns: 1fr; } }

.case-hero__eyebrow{
  display:flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}
.case-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.90);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.case-pill a{ color:#fff; text-decoration: underline; }

.case-hero__title{
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.08;
  margin-bottom: 14px;
  font-weight: 800;
}
.case-hero__subtitle{
  color: rgba(241,245,255,.94);
  font-size: clamp(17px, 1.6vw, 24px);
  margin-bottom: 14px;
  max-width: 74ch;
}

.case-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 18px;
}
.case-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.case-badge b{ color:#fff; font-weight: 900; }

/* CTA buttons */
.case-hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.case-hero .case-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(255,255,255,.12);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(3, 6, 18, .28);
}
.case-hero .case-btn:hover{ text-decoration:none; background: rgba(255,255,255,.2); }
.case-hero .case-btn--solid{
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(135deg, #ff6f3d 0%, #ff9a2f 100%);
  box-shadow: 0 14px 34px rgba(255,117,54,.38);
}
.case-hero .case-btn--solid:hover{
  background: linear-gradient(135deg, #ff6330 0%, #ff8e23 100%);
  filter: none;
}

/* Hero metrics: same composition style as home hero */
.case-hero__metric-stack{
  width:min(430px, 100%);
  justify-self:end;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  grid-template-rows:auto auto;
  gap:16px;
  align-items:start;
}

.case-hero-metric{
  background:rgba(255,255,255,.96);
  color:#171827;
  border-radius:26px;
  padding:18px 16px;
  box-shadow:0 24px 52px rgba(8,12,38,.36);
  border:1px solid rgba(255,255,255,.8);
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:hidden;
}

.case-hero-metric--leads{
  grid-column:1;
  grid-row:1 / span 2;
  align-self:center;
  min-height:292px;
  justify-content:space-between;
}

.case-hero-metric--cpl{
  grid-column:2;
  grid-row:1;
  min-height:138px;
}

.case-hero-metric--budget{
  grid-column:2;
  grid-row:2;
  min-height:138px;
}

.case-hero-metric__title{
  margin:0;
  font-size:1rem;
  line-height:1.2;
  font-weight:700;
  color:#1d1f33;
}

.case-hero-metric__value{
  margin:0;
  font-size:2rem;
  line-height:1;
  font-weight:800;
  letter-spacing:-.02em;
  color:#4235c9;
}

.case-hero-metric__value--small{
  font-size:1.55rem;
}

.case-hero-metric__desc{
  margin:0;
  font-size:.86rem;
  line-height:1.35;
  color:#6a6e83;
}

.case-hero-metric__foot{
  margin:0;
  font-size:.82rem;
  line-height:1.3;
  color:#70758d;
}

.case-hero-metric__viz{
  margin-top:2px;
}

.case-hero-metric__viz--line svg{
  width:100%;
  height:72px;
  display:block;
}

.case-hero-metric__viz--line path:first-child{
  stroke:rgba(68,72,95,.18);
  stroke-width:1.6;
}

.case-hero-metric__viz--line path:last-child{
  stroke:#5c4ae0;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  filter:drop-shadow(0 6px 8px rgba(92,74,224,.24));
}

.case-hero-metric__bars{
  margin-top:6px;
  min-height:58px;
  padding:0 2px;
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  align-items:end;
  gap:7px;
}

.case-hero-metric__bars span{
  display:block;
  height:var(--h);
  border-radius:999px;
  background:linear-gradient(180deg, #6f61f0 0%, #5240d1 100%);
  box-shadow:0 6px 10px rgba(82,64,209,.22);
}

@media (max-width:1200px){
  .case-hero__metric-stack{
    width:100%;
    gap:12px;
  }

  .case-hero-metric{
    border-radius:22px;
    padding:14px 13px;
  }

  .case-hero-metric--leads{
    min-height:258px;
  }
}

@media (max-width:1024px){
  .case-hero__metric-stack{
    width:100%;
    justify-self:stretch;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .case-hero-metric--leads{
    grid-column:1 / -1;
    grid-row:auto;
    min-height:auto;
  }

  .case-hero-metric--cpl{
    grid-column:1;
    grid-row:auto;
  }

  .case-hero-metric--budget{
    grid-column:2;
    grid-row:auto;
  }
}

@media (max-width:640px){
  .case-hero__metric-stack{
    grid-template-columns:1fr;
  }

  .case-hero-metric--cpl,
  .case-hero-metric--budget{
    grid-column:1;
  }
}

/* Buttons outside hero (sidebar + final CTA) */
.case-side .case-btn,
.case-final .case-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  font-weight:900;
  border:1px solid rgba(15,23,42,.18);
  background:#fff;
  color:#0f172a !important;
  text-decoration:none;
}

.case-side .case-btn:hover,
.case-final .case-btn:hover{
  text-decoration:none;
  background:rgba(15,23,42,.05);
}

.case-side .case-btn--solid,
.case-final .case-btn--solid{
  border-color:transparent;
  background:linear-gradient(90deg, rgba(34,197,94,.95), rgba(6,182,212,.90));
  color:#fff !important;
}

.case-side .case-btn--solid:hover,
.case-final .case-btn--solid:hover{
  filter:brightness(1.03);
}

/* ====== Cards / helpers ====== */
.case-card{
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.case-card--soft{ box-shadow:none; border: 0; }

.case-pad{ padding: 18px; }
.case-pad-lg{ padding: 22px; }

.case-muted{ color: var(--muted); }
.case-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}
.case-meta b{ color: var(--text); }

/* ====== Layout: static sidebar (desktop) ====== */
.case-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.case-side{
  position: static;
  top: auto;
  align-self: start;
}
.case-main{ min-width: 0; }

@media (min-width: 1025px){
  /* Flatten main sections into the grid to let lower blocks occupy full width. */
  .case-main{ display: contents; }

  .case-side{
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .case-main > .case-section{
    grid-column: 1 / -1;
  }

  .case-main > #tldr,
  .case-main > #about{
    grid-column: 2;
  }
}

@media (max-width: 1024px){
  .case-layout{ grid-template-columns: 1fr; }
  .case-side{ display:none; }
}

/* Sidebar cards */
.case-side__card{
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.case-side__title{
  padding: 14px 16px;
  font-weight: 1000;
  background: rgba(15,23,42,.02);
  border-bottom: 0;
}
.case-side__body{ padding: 14px 16px 16px; }

.case-side__list{
  margin: 0;
  padding: 12px 10px 14px;
  list-style: none;
  display:grid;
  gap: 6px;
}
.case-side__list a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(15,23,42,.92);
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}
.case-side__list a i{
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}
.case-side__list a span{
  min-width: 0;
}
.case-side__list a:hover{
  background: rgba(15,23,42,.04);
  text-decoration: none;
}
.case-side__list a.is-active{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}

/* mini CTA inside sidebar */
.case-side__mini p{ margin: 0 0 12px; }
.case-btn--w{ width: 100%; }

/* ====== Mobile TOC (dropdown) ====== */
.case-toc-mobile{ display:none; margin-top: 14px; }
@media (max-width: 1024px){ .case-toc-mobile{ display:block; } }

.case-toc-mobile details{ border-radius: var(--radius); overflow:hidden; }
.case-toc-mobile summary{
  cursor:pointer; list-style:none;
  padding: 14px 16px;
  font-weight: 950;
  background: linear-gradient(90deg, rgba(34,197,94,.10), rgba(6,182,212,.08));
  border: 1px solid rgba(15,23,42,.10);
}
.case-toc-mobile summary::-webkit-details-marker{ display:none; }
.case-toc__inner{
  border: 1px solid rgba(15,23,42,.10);
  border-top: 0;
  padding: 10px 14px 12px;
  background: #fff;
}
.case-toc__inner ol{ margin: 0; padding-left: 18px; display:grid; gap: 6px; }
.case-toc__inner a{ font-weight: 850; }

/* ====== Sections ====== */
.case-section{ margin-top: 14px; }
.case-section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.case-section__head .case-tag{
  display: none;
}

.case-main .case-section__head h2{
  font-size: clamp(13px, 0.98vw, 17px);
  font-weight: 900;
  color: #f8fbff;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 16px 9px;
  margin-bottom: 0;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(180px 100px at 20% 15%, rgba(34,197,94,.28), transparent 60%),
    radial-gradient(220px 120px at 80% 30%, rgba(6,182,212,.24), transparent 62%),
    linear-gradient(100deg, #06271f 0%, #063a2f 48%, #05483d 100%);
  box-shadow:
    0 14px 28px rgba(2, 6, 23, 0.28),
    0 4px 12px rgba(6, 182, 212, 0.16);
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(2, 6, 23, 0.25);
}

.case-tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.78);
  white-space: nowrap;
}
.case-tag--good{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.34);
  color: rgba(71,85,105,.95);
}
.case-tag--warn{
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.22);
  color: rgba(180,83,9,.95);
}

/* grids */
.case-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){ .case-grid{ grid-template-columns:1fr; } }

.case-grid-3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){ .case-grid-3{ grid-template-columns:1fr; } }

.case-tldr{
  border: 1px solid rgba(15,23,42,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,252,.98) 100%);
}

.case-tldr__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.case-tldr__col{
  padding: 2px 14px;
}

.case-tldr__col + .case-tldr__col{
  border-left: 1px solid rgba(15,23,42,.10);
  padding-left: 22px;
}

.case-tldr__col h3{
  margin-bottom: 10px;
}

.case-tldr__title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.55vw, 20px);
}

.case-tldr__hicon{
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
  font-size: 13px;
  line-height: 1;
}

.case-tldr .case-list{
  gap: 10px;
}

@media (max-width: 980px){
  .case-tldr__grid{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-tldr__col{
    padding: 0;
  }

  .case-tldr__col + .case-tldr__col{
    border-left: 0;
    border-top: 1px solid rgba(15,23,42,.10);
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
  }
}

/* callout */
.case-callout{
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(6,182,212,.05));
  padding: 14px 16px;
}
.case-callout__title{ font-weight: 1000; margin-bottom: 6px; }

/* lists */
.case-list{ margin: 0; padding-left: 18px; display:grid; gap: 8px; }
.case-check{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 10px;
}
.case-check li{
  display:flex;
  gap: 12px;
  align-items: flex-start;
}
.case-check li::before{
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #6b7280;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  margin-top: 1px;
}

@media (max-width: 991px){
  .case-wrap{ padding-top: 74px; }
}

/* big number */
.case-big{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.case-big__num{
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 1100;
  letter-spacing: -0.03em;
}
.case-big__sub{
  color: rgba(15,23,42,.70);
  font-size: 14px;
}

/* image grid */
.case-gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){ .case-gallery{ grid-template-columns:1fr; } }

.case-figure{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
}
.case-figure figcaption{
  padding: 10px 12px;
  color: rgba(15,23,42,.72);
  font-size: 13px;
}

/* proof gallery: one line, equal cards, infinite loop via JS */
.case-proof{
  width: 100%;
}

.case-proof__head-tools{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.case-proof__viewport{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.case-proof__viewport::-webkit-scrollbar{
  display: none;
}

.case-proof__track{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
  width: max-content;
  padding: 4px 0;
}

@media (min-width: 981px){
  .case-proof-section[data-case-proof-layout="duo"] .case-proof__head-tools .case-proof__nav{
    display: none;
  }

  .case-proof-section[data-case-proof-layout="duo"] .case-proof__viewport{
    overflow: visible;
  }

  .case-proof__track--duo{
    width: 100%;
  }

  .case-proof__track--duo .case-proof-card{
    flex: 1 1 0;
    max-width: none;
  }
}

.case-proof-card{
  margin: 0;
  flex: 0 0 clamp(260px, 22vw, 320px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: var(--shadow2);
}

.case-proof-card__zoom{
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: inherit;
  cursor: zoom-in;
}

.case-proof-card__media{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8edf4;
}

.case-proof-card img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.case-proof-card figcaption{
  padding: 10px 12px;
  color: rgba(15,23,42,.74);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
}

.case-proof__nav{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.case-proof__nav:hover{
  background: rgba(15,23,42,.04);
}

.case-proof__nav:focus-visible{
  outline: 2px solid rgba(15,23,42,.28);
  outline-offset: 2px;
}

@media (max-width: 980px){
  .case-proof__nav{
    display: none;
  }

  .case-proof-card{
    flex-basis: min(78vw, 300px);
  }
}

.case-proof-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 20, 0.82);
}

.case-proof-lightbox.is-open{
  display: flex;
}

.case-proof-lightbox__dialog{
  width: fit-content;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.case-proof-lightbox__close{
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.case-proof-lightbox__media{
  margin: 0;
  width: fit-content;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 130px);
}

.case-proof-lightbox__media img{
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  display: block;
}

.case-proof-lightbox__caption{
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 600;
}

/* table */
.case-table-wrap{
  overflow-x:auto;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
}
.case-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}
.case-table th, .case-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align: left;
  font-size: 14px;
}
.case-table th{
  background: rgba(15,23,42,.03);
  font-weight: 1000;
}
.case-table tr:last-child td{ border-bottom:0; }

/* accordion */
.case-acc{
  display: grid;
  gap: 10px;
}
.case-acc details{
  border: 0;
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.case-acc summary{
  cursor:pointer;
  padding: 14px 16px;
  font-weight: 1000;
  background: rgba(15,23,42,.02);
  list-style:none;
}
.case-acc summary::-webkit-details-marker{ display:none; }
.case-acc__body{
  padding: 14px 16px;
  border-top: 0;
  transform-origin: top;
  will-change: max-height, opacity, transform;
}

/* Footer CTA */
.case-final{
  margin-top: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
  border-radius: 22px;
  padding: 18px;
  border: 0;
  box-shadow: 0 8px 20px rgba(15,23,42,.10);
  background:
    radial-gradient(900px 500px at 12% 15%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(900px 500px at 88% 25%, rgba(6,182,212,.10), transparent 55%),
    #fff;
}
.case-final__title{
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 1100;
  margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce){
  .case-wrap{ scroll-behavior: auto; }
}

