/* ============ HYPER · страница «Кейсы» (work.html) ============ */
/* Использует токены из styles.css (--bg, --red, --serif, ...) */

/* ── page base ───────────────────────────────────────────── */
.work-page { padding-top: 0; }

/* фиксированная навигация наследует .nav из styles.css; делаем фон плотнее */
.work-nav { background: linear-gradient(to bottom, rgba(10,10,11,0.92), rgba(10,10,11,0.35)); }
.work-nav.scrolled { background: rgba(10,10,11,0.92); }
.work-nav .nav-links a { cursor: none; }

/* ── HERO / GATEWAY ──────────────────────────────────────── */
.whero {
  position: relative;
  padding: 104px 0 48px;
  overflow: hidden;
}
.whero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.whero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(var(--red-glow), 0.6);
  animation: wpulse 2.4s ease-out infinite;
}
@keyframes wpulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--red-glow), 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(var(--red-glow), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--red-glow), 0); }
}
.whero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.whero h1 .accent { color: var(--red); }
.whero h1 .muted { color: var(--ink-2); font-weight: 300; }
.whero-sub {
  margin-top: 20px;
  max-width: 560px;
  color: var(--ink-2);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
}
.whero-sub strong { color: var(--ink); font-weight: 600; }

/* гигантская призрачная цифра на фоне героя */
.whero::after {
  content: 'WORK';
  position: absolute;
  right: -2%; bottom: -8%;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(120px, 28vw, 440px);
  letter-spacing: -0.06em; line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  pointer-events: none; user-select: none; z-index: 0;
}

/* ── GATEWAY: 5 блоков-разделов ──────────────────────────── */
.wgate {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.wgate-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  min-height: 156px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: none;
  overflow: hidden;
  transition: background .4s ease;
}
.wgate-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(var(--red-glow),0.14), transparent 60%);
  opacity: 0; transition: opacity .45s ease;
}
.wgate-card:hover::before,
.wgate-card.is-active::before { opacity: 1; }
.wgate-card.is-active { background: rgba(var(--red-glow), 0.05); }
.wgate-idx {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red);
}
.wgate-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.08; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: auto;
}
.wgate-count {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.wgate-count .dot { color: var(--red); }
.wgate-arrow {
  position: absolute; top: 26px; right: 22px;
  font-size: 18px; color: var(--ink-3);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), color .3s;
}
.wgate-card:hover .wgate-arrow,
.wgate-card.is-active .wgate-arrow { color: var(--red); transform: translate(4px, -4px); }

@media (max-width: 1100px) {
  .wgate { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wgate { grid-template-columns: 1fr; }
  .wgate-card { min-height: 150px; }
}

/* ── STICKY CATEGORY BAR ─────────────────────────────────── */
.wcatbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10,10,11,0.86);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wcatbar-inner {
  display: flex; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.wcatbar-inner::-webkit-scrollbar { display: none; }
.wcatbar-tab {
  position: relative;
  flex: 1 0 auto;
  padding: 18px 22px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  cursor: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .3s ease, background .3s ease;
}
.wcatbar-tab .t-idx { color: var(--ink-3); transition: color .3s; }
.wcatbar-tab:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.wcatbar-tab.is-active { color: var(--ink); }
.wcatbar-tab.is-active .t-idx { color: var(--red); }
.wcatbar-tab::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.wcatbar-tab.is-active::after { transform: scaleX(1); }

/* ── CATEGORY VIEW ───────────────────────────────────────── */
.wcat { scroll-margin-top: 70px; padding: 96px 0 120px; }

.wcat-masthead {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 64px;
}
.wcat-mast-idx {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; color: var(--red);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.wcat-mast-idx::after { content: ''; flex: 1; height: 1px; background: var(--line); max-width: 200px; }
.wcat-mast-name {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(38px, 6vw, 92px);
  line-height: 0.96; letter-spacing: -0.025em;
  text-transform: uppercase;
}
.wcat-mast-name .accent { color: var(--red); }
.wcat-mast-side { padding-bottom: 8px; }
.wcat-mast-desc { color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 420px; }
.wcat-mast-stat {
  margin-top: 22px;
  display: flex; gap: 28px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.wcat-mast-stat b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .wcat-masthead { grid-template-columns: 1fr; gap: 28px; }
}

/* ── HORIZONTAL RAIL («выпадающий список» проектов) ──────── */
.wrail-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.wrail-head .k {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.wrail-head .hint { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; }
.wrail {
  display: flex; gap: 18px;
  overflow-x: auto; padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.wrail::-webkit-scrollbar { height: 4px; }
.wrail::-webkit-scrollbar-thumb { background: var(--line-2); }
.wrail-card {
  position: relative;
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0;
  text-align: left; color: var(--ink);
  cursor: none; overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
}
.wrail-card:hover { border-color: rgba(var(--red-glow),0.5); transform: translateY(-4px); }
.wrail-card-media { position: relative; height: 150px; overflow: hidden; background: #000; }
.wrail-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s ease, opacity .4s; }
.wrail-card:hover .wrail-card-media img { transform: scale(1.06); opacity: 1; }
.wrail-card-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  background: rgba(10,10,11,0.7); border: 1px solid var(--line-2);
  padding: 4px 8px; color: var(--ink); text-transform: uppercase;
}
.wrail-card-play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.wrail-card-play span {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(var(--red-glow),0.9);
  display: grid; place-items: center; color: #fff; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.wrail-card-body { padding: 16px 16px 18px; }
.wrail-card-brand { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.wrail-card-metric { color: var(--red); font-weight: 700; font-size: 19px; margin-top: 6px; font-family: var(--mono); }
.wrail-card-niche { color: var(--ink-3); font-size: 12px; margin-top: 4px; }

/* ── FULL CASE LIST («крупный список») ──────────────────── */
.wlist { margin-top: 96px; display: flex; flex-direction: column; gap: 120px; }
.wcase { scroll-margin-top: 90px; position: relative; }
.wcase-num {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(60px, 10vw, 150px);
  line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  margin-bottom: -10px; pointer-events: none; user-select: none;
}

/* media: большое, сверху, на всю ширину */
.wcase-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.wcase-media-img {
  position: absolute; inset: -9% 0;
  width: 100%; height: 118%;
  object-fit: cover; opacity: .9;
  will-change: transform;
}
.wcase-media::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, rgba(10,10,11,0.55), transparent 45%, rgba(10,10,11,0.25));
  pointer-events: none;
}
/* corner brackets */
.wcase-media::after {
  content: ''; position: absolute; z-index: 3;
  top: 20px; left: 20px; width: 30px; height: 30px;
  background:
    linear-gradient(to right, var(--red) 0 20px, transparent 20px) top left / 20px 1px no-repeat,
    linear-gradient(to bottom, var(--red) 0 20px, transparent 20px) top left / 1px 20px no-repeat;
}
.wcase-media-tag {
  position: absolute; z-index: 4; top: 20px; right: 20px;
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(10,10,11,0.6); border: 1px solid var(--line-2);
  padding: 6px 12px; color: var(--ink);
}
.wcase-media-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* video play overlay */
.wcase-media.is-video { cursor: none; }
.wcase-play {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
}
.wcase-play-btn {
  width: 86px; height: 86px; border-radius: 50%;
  background: rgba(var(--red-glow), 0.92);
  display: grid; place-items: center;
  color: #fff; font-size: 26px; padding-left: 5px;
  box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 0 rgba(var(--red-glow),0.5);
  transition: transform .35s ease;
  animation: wplay 2.6s ease-out infinite;
}
@keyframes wplay {
  0% { box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 0 rgba(var(--red-glow),0.5); }
  70% { box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 26px rgba(var(--red-glow),0); }
  100% { box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 0 rgba(var(--red-glow),0); }
}
.wcase-media.is-video:hover .wcase-play-btn { transform: scale(1.08); }
.wcase-play-label {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); z-index: 6;
}

/* body */
.wcase-body { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 36px; }
.wcase-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.wcase-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.wcase-meta .chip { border: 1px solid var(--line); padding: 5px 10px; color: var(--ink-2); }
.wcase-meta .chip.demo { border-color: rgba(var(--red-glow),0.4); color: var(--red); }
.wcase-brand { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.wcase-brand .sub { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-2); font-weight: 400; margin-top: 10px; text-transform: uppercase; }
.wcase-headline { font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; }
.wcase-headline .accent { color: var(--red); font-weight: 700; }
.wcase-headline .muted { color: var(--ink-2); font-weight: 300; }

/* stats strip */
.wcase-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); background: var(--bg-2);
}
.wcase-stat { padding: 28px 24px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.wcase-stat:last-child { border-right: none; }
.wcase-stat::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.wcase:hover .wcase-stat::before { transform: scaleX(1); }
.wcase-stat-v { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); color: var(--red); letter-spacing: -0.02em; line-height: 1; }
.wcase-stat-v em { font-style: normal; color: var(--ink); }
.wcase-stat-l { display: block; margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
@media (max-width: 700px) {
  .wcase-stats { grid-template-columns: 1fr; }
  .wcase-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .wcase-stat:last-child { border-bottom: none; }
}

/* detail blocks: контекст / задача / решение / итог */
.wcase-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.wcase-block { background: var(--bg); padding: 30px 28px; }
.wcase-block.span { grid-column: 1 / -1; }
.wcase-block-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.wcase-block-k::before { content: ''; width: 16px; height: 1px; background: var(--red); }
.wcase-block p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.wcase-block p strong { color: var(--ink); font-weight: 600; }
.wcase-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.wcase-steps li {
  position: relative; padding-left: 26px;
  color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.wcase-steps li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}
@media (max-width: 700px) {
  .wcase-detail { grid-template-columns: 1fr; }
  .wcase-head { grid-template-columns: 1fr; gap: 24px; }
}

/* empty / готовится */
.wempty {
  border: 1px dashed var(--line-2);
  padding: 80px 40px; text-align: center;
}
.wempty-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.wempty h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.01em; }
.wempty p { color: var(--ink-2); margin-top: 14px; max-width: 460px; margin-inline: auto; line-height: 1.6; }

/* ── РАЗДЕЛ «НА РЕМОНТЕ» (временная заглушка) ───────────────── */
.wwip {
  position: relative;
  margin-top: 8px;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 5vw, 72px);
  border: 1px dashed var(--line-2);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--red-glow),0.10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 14px, transparent 14px 28px);
  text-align: center;
  overflow: hidden;
}
.wwip-idx {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
}
.wwip-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 26px;
}
.wwip-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(var(--red-glow), 0.6);
  animation: wpulse 2.2s infinite;
}
.wwip-name {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(30px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.025em;
}
.wwip-name .accent { color: var(--red); }
.wwip-name .muted { color: var(--ink-3, var(--ink-2)); }
.wwip-lead {
  color: var(--ink-2); line-height: 1.65; font-size: clamp(15px, 1.6vw, 17px);
  max-width: 540px; margin: 22px auto 0;
}
.wwip-lead strong { color: var(--ink); }
.wwip-actions {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.wwip-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3, var(--ink-2)); letter-spacing: 0.02em; }

/* карточка раздела в hero, когда раздел на ремонте */
.wgate-card.is-wip { opacity: 0.82; }
.wgate-card.is-wip:hover { opacity: 1; }
.wgate-count--wip { color: var(--ink-3, var(--ink-2)); }
.wgate-count--wip .dot { color: var(--red); }

/* CTA в конце раздела */
.wcat-cta {
  margin-top: 110px; padding: 64px 48px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--red-glow),0.10), transparent 55%),
    linear-gradient(180deg, rgba(var(--red-glow),0.04), transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.wcat-cta h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.05; }
.wcat-cta h3 .accent { color: var(--red); }
.wcat-cta p { color: var(--ink-2); margin-top: 12px; font-size: 15px; }

/* ── VIDEO LIGHTBOX ──────────────────────────────────────── */
.vlb {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 5vh 24px;
  background: rgba(6,6,7,0.86);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.vlb.is-open { opacity: 1; visibility: visible; }
.vlb-frame {
  position: relative;
  width: min(1040px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  transform: translateY(24px) scale(.98);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.vlb.is-open .vlb-frame { transform: translateY(0) scale(1); }
.vlb-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.vlb-demo { position: absolute; inset: 0; }
.vlb-demo img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.vlb-demo-inner {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center;
}
.vlb-demo-play {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(var(--red-glow),0.95); display: grid; place-items: center;
  color: #fff; font-size: 24px; padding-left: 4px; box-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.vlb-demo-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.vlb-demo-sub { font-size: 13px; color: var(--ink-2); max-width: 360px; }
.vlb-meta {
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 4;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(6,6,7,0.85), transparent);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.vlb-close {
  position: absolute; top: -54px; right: 0;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--ink); font-size: 18px; cursor: none;
  display: grid; place-items: center;
  transition: border-color .25s, background .25s;
}
.vlb-close:hover { border-color: var(--red); background: var(--red); }
@media (max-width: 720px) { .vlb-close { top: auto; bottom: -54px; } }

/* ── SCROLL HINT под меню в hero ─────────────────────────── */
.whero-scroll {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 14px;
  background: transparent; border: none; cursor: none;
  color: var(--ink-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color .3s ease;
}
.whero-scroll:hover { color: var(--ink); }
.whero-scroll-arrow {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: var(--red);
  animation: wbob 1.8s ease-in-out infinite;
}
@keyframes wbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── BACK / навигация раздела ────────────────────────────── */
.wcat-back {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid var(--line); cursor: none;
  padding: 10px 16px; margin-bottom: 30px;
  color: var(--ink-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.wcat-back:hover { border-color: var(--red); color: var(--ink); }
.wcat-back-arrow { color: var(--red); font-size: 14px; transition: transform .3s; }
.wcat-back:hover .wcat-back-arrow { transform: translateX(-4px); }
.wcat-back-pos { color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line); }

.wcat-nav {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.wcat-nav-btn {
  display: flex; flex-direction: column; gap: 8px;
  background: transparent; border: 1px solid var(--line); cursor: none;
  padding: 22px 26px; color: var(--ink); text-align: left;
  transition: border-color .35s, background .35s;
}
.wcat-nav-btn.is-next { text-align: right; }
.wcat-nav-btn:hover { border-color: rgba(var(--red-glow),0.5); background: rgba(var(--red-glow),0.04); }
.wcat-nav-btn .dir { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.wcat-nav-btn .nm { font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.01em; text-transform: uppercase; }
.wcat-nav-btn:hover .nm { color: var(--red); }
.wcat-nav-up {
  background: transparent; border: 1px solid var(--line); cursor: none;
  padding: 14px 18px; color: var(--ink-2); white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.wcat-nav-up:hover { border-color: var(--red); color: var(--ink); }
@media (max-width: 720px) {
  .wcat-nav { grid-template-columns: 1fr; }
  .wcat-nav-btn.is-next { text-align: left; }
}

/* ── GALLERY / скрины кейса ──────────────────────────────── */
.wcase-gallery { margin-top: 4px; }
.wcase-gallery-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.wcase-gallery-k::before { content: ''; width: 16px; height: 1px; background: var(--red); }
.wcase-shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 760px) { .wcase-shots { grid-template-columns: repeat(2, 1fr); } }
.wshot {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: #000; border: 1px solid var(--line); cursor: none; padding: 0;
}
.wshot img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .5s ease, opacity .3s; }
.wshot:hover img { transform: scale(1.06); opacity: 1; }
.wshot-zoom {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(10,10,11,0.65); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 13px; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.wshot:hover .wshot-zoom { opacity: 1; transform: translateY(0); }

/* ── LIGHTBOX: режим изображения ─────────────────────────── */
.vlb.is-image .vlb-frame { aspect-ratio: auto; width: auto; max-width: min(1100px, 100%); max-height: 88vh; background: transparent; border: none; box-shadow: none; }
.vlb-img { display: grid; place-items: center; }
.vlb-img img { max-width: 100%; max-height: 88vh; object-fit: contain; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0,0,0,.7); display: block; }
.vlb.is-image .vlb-meta { background: linear-gradient(to top, rgba(6,6,7,0.7), transparent); }

/* ════════════════════════════════════════════════════════════ */
/*  v2 · Раздел = сетка карточек, кейс = отдельный экран         */
/* ════════════════════════════════════════════════════════════ */

/* ── СЕТКА КЕЙСОВ РАЗДЕЛА ─────────────────────────────────── */
.wgrid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1040px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .wgrid { grid-template-columns: 1fr; } }

.wcard {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0; text-align: left; color: var(--ink);
  cursor: none; overflow: hidden;
  transition: border-color .35s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.wcard:hover {
  border-color: rgba(var(--red-glow),0.55);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.wcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.wcard-media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .7s ease, opacity .4s; }
.wcard:hover .wcard-media img { transform: scale(1.07); opacity: 1; }
.wcard-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.05), transparent 35%, rgba(10,10,11,0.55));
  pointer-events: none;
}
.wcard-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--red); background: rgba(10,10,11,0.66); border: 1px solid var(--line-2);
  padding: 4px 8px;
}
.wcard-role {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: rgba(10,10,11,0.6); border: 1px solid var(--line-2);
  padding: 4px 9px;
}
.wcard-role .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.wcard-play {
  position: absolute; z-index: 2; inset: 0; display: grid; place-items: center;
}
.wcard-play span {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(var(--red-glow),0.92); color: #fff; font-size: 15px; padding-left: 3px;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.wcard-demo {
  position: absolute; z-index: 2; bottom: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(var(--red-glow),0.4); background: rgba(10,10,11,0.6);
  padding: 3px 8px;
}
.wcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wcard-brand { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; }
.wcard-brand .sub { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-top: 8px; }
.wcard-metric { color: var(--red); font-weight: 700; font-size: 22px; font-family: var(--mono); letter-spacing: -0.01em; margin-top: 2px; }
.wcard-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wcard-foot .niche { color: var(--ink-3); font-size: 12px; }
.wcard-foot .go { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); transition: color .3s, transform .3s; }
.wcard:hover .wcard-foot .go { color: var(--red); transform: translateX(3px); }

/* ── CASE DETAIL ─────────────────────────────────────────── */
.wcd { scroll-margin-top: 70px; padding: 88px 0 120px; }

/* шапка кейса */
.wcd-hero { max-width: 920px; margin-bottom: 40px; }
.wcd-brand {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(40px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.035em;
  text-transform: uppercase; margin: 8px 0 4px;
}
.wcd-brand .sub {
  display: block; font-family: var(--mono); font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 400;
  margin-top: 16px;
}
.wcd-headline {
  margin-top: 26px;
  font-size: clamp(22px, 2.8vw, 40px); font-weight: 500; line-height: 1.16; letter-spacing: -0.02em;
  max-width: 18ch;
}
.wcd-headline .accent { color: var(--red); font-weight: 700; }
.wcd-headline .muted { color: var(--ink-2); font-weight: 300; }
.wcd-lead {
  margin-top: 24px; max-width: 64ch;
  color: var(--ink-2); font-size: clamp(15px, 1.35vw, 17px); line-height: 1.6;
}

/* медиа кейса — крупнее, чем в списке */
.wcd-media { aspect-ratio: 16 / 7; }

/* верхние метрики — 4 в ряд */
.wcd-stats { margin-top: 36px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .wcd-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wcd-stats { grid-template-columns: 1fr; } }
.wcd-stats .wcase-stat::before { transform: scaleX(0); }
.wcd-stats.in .wcase-stat::before,
.wcd .wcase-stats:hover .wcase-stat::before { transform: scaleX(1); }

/* контекст + задача */
.wcd-pair {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 700px) { .wcd-pair { grid-template-columns: 1fr; } }
.wcd-pair .wcase-block { background: var(--bg); }

/* решение: структурированные шаги */
.wapproach { margin-top: 22px; border: 1px solid var(--line); }
.wapproach-head {
  padding: 22px 28px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.wapproach-head::before { content: ''; width: 18px; height: 1px; background: var(--red); }
.wapproach-list { display: flex; flex-direction: column; }
.wapproach-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 30px 28px; border-bottom: 1px solid var(--line);
  transition: background .35s ease;
}
.wapproach-item:last-child { border-bottom: none; }
.wapproach-item:hover { background: rgba(var(--red-glow),0.035); }
.wapproach-k {
  font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 4vw, 52px);
  color: transparent; -webkit-text-stroke: 1px rgba(var(--red-glow),0.55);
  line-height: 0.9; letter-spacing: -0.04em;
}
.wapproach-body h4 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.wapproach-body p { color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 64ch; }
@media (max-width: 600px) {
  .wapproach-item { grid-template-columns: 1fr; gap: 10px; }
  .wapproach-k { font-size: 34px; }
}

/* результаты — главный блок */
.wresults {
  margin-top: 22px; padding: 40px 36px;
  border: 1px solid rgba(var(--red-glow),0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--red-glow),0.10), transparent 55%),
    linear-gradient(180deg, rgba(var(--red-glow),0.05), transparent 70%);
}
.wresults-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.wresults-head::before { content: ''; width: 18px; height: 1px; background: var(--red); }
.wresults-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 700px) { .wresults-grid { grid-template-columns: 1fr; gap: 22px; } }
.wresult { border-left: 2px solid rgba(var(--red-glow),0.4); padding-left: 20px; }
.wresult-v {
  font-family: var(--serif); font-weight: 800; color: var(--red);
  font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.03em; line-height: 0.95;
}
.wresult-l { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 12px; }
.wresults-note {
  margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--ink); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; max-width: 76ch;
}

/* галерея с подписями */
.wcd-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wcd-shots.with-cap { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .wcd-shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .wcd-shots { grid-template-columns: 1fr; } }
.wshot-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wshot-fig figcaption {
  color: var(--ink-3); font-size: 12px; line-height: 1.5;
  font-family: var(--mono); letter-spacing: 0.01em;
}

/* другие кейсы раздела + явный конец */
.wother { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.wother-head {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.wother-head .end { color: var(--ink-3); letter-spacing: 0.24em; font-size: 11px; }
.wother-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .wother-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wother-grid { grid-template-columns: 1fr; } }
.wother-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 0; text-align: left; color: var(--ink); cursor: none; overflow: hidden;
  transition: border-color .35s, transform .35s;
}
.wother-card:hover { border-color: rgba(var(--red-glow),0.5); transform: translateY(-4px); }
.wother-media { position: relative; height: 132px; overflow: hidden; background: #000; }
.wother-media img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s, opacity .3s; }
.wother-card:hover .wother-media img { transform: scale(1.06); opacity: 1; }
.wother-play {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(var(--red-glow),0.9); color: #fff; font-size: 12px;
}
.wother-body { padding: 16px 16px 18px; }
.wother-brand { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wother-metric { color: var(--red); font-weight: 700; font-size: 17px; font-family: var(--mono); margin-top: 6px; }
.wother-niche { color: var(--ink-3); font-size: 12px; margin-top: 4px; }

/* CTA внутри кейса — небольшой акцент */
.wcd-cta { margin-top: 88px; }

/* ════════════════════════════════════════════════════════════ */
/*  v3 · Развёрнутый кейс: задача → контекст → инсайт →          */
/*       решение → результаты, с пруфами «по месту»             */
/* ════════════════════════════════════════════════════════════ */

/* eyebrow-крошки в шапке */
.wcd-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.wcd-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--red); }

/* кнопка «смотреть ролик» в шапке (видео-кейсы) */
.wcd-videobtn {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid var(--line-2); cursor: none;
  padding: 13px 22px; color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  transition: border-color .3s, background .3s;
}
.wcd-videobtn:hover { border-color: var(--red); background: rgba(var(--red-glow),0.06); }
.wcd-videobtn .play {
  width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 9px; padding-left: 2px;
}

/* ── ЭТАПЫ КЕЙСА: единый ритм + параллакс-номер ───────────── */
.wstage {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 28px; row-gap: 0;
  align-items: start;
}
.wstage:first-of-type { margin-top: 56px; }
/* «рельса» этапа: крупный полупрозрачный номер (параллакс) + подпись */
.wstage-rail {
  position: sticky; top: 86px;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 2px;
}
.wstage-no {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 5vw, 72px); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--red-glow),0.5);
  will-change: transform; pointer-events: none; user-select: none;
}
.wstage-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); max-width: 120px; line-height: 1.4;
}
.wstage > .wstage-rail { grid-column: 1; grid-row: 1; }
.wstage > *:not(.wstage-rail) { grid-column: 2; min-width: 0; margin-top: 0; }
.wstage > *:not(.wstage-rail) ~ *:not(.wstage-rail) { margin-top: 24px; }
@media (max-width: 760px) {
  .wstage { grid-template-columns: 1fr; gap: 16px; }
  .wstage > *:not(.wstage-rail) { grid-column: 1; }
  .wstage-rail {
    position: static; flex-direction: row; align-items: baseline; gap: 14px;
    border-bottom: 1px solid var(--line); padding-bottom: 12px;
  }
  .wstage-no { font-size: 34px; -webkit-text-stroke: 1px rgba(var(--red-glow),0.6); }
  .wstage-cap { max-width: none; }
}

/* ── ЗАДАЧА — главный акцент ──────────────────────────────── */
.wtask {
  position: relative;
  border: 1px solid rgba(var(--red-glow),0.35);
  padding: 34px 34px 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--red-glow),0.12), transparent 50%),
    linear-gradient(180deg, rgba(var(--red-glow),0.06), transparent 65%);
}
.wtask::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
}
.wtask-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.wtask-lead {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(19px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--ink); max-width: 32ch;
}
.wtask-goals {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
  list-style: none; display: grid; gap: 13px;
}
.wtask-goals li {
  position: relative; padding-left: 26px;
  color: var(--ink-2); font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5;
}
.wtask-goals li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}

/* ── КОНТЕКСТ «с чего начинали» ───────────────────────────── */
.wcontext-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 700px) { .wcontext-grid { grid-template-columns: 1fr; } }
.wcontext-grid .wcase-block { background: var(--bg); padding: 26px 26px; }

/* ── ГЛАВНЫЙ ИНСАЙТ — крупная цитата ─────────────────────── */
.winsight {
  position: relative; overflow: hidden;
  border: 1px solid rgba(var(--red-glow),0.3);
  border-left: 3px solid var(--red);
  padding: 36px 40px 36px 44px;
  background: linear-gradient(180deg, rgba(var(--red-glow),0.06), transparent 70%);
}
.winsight-quote {
  position: absolute; top: -28px; right: 18px;
  font-family: var(--serif); font-weight: 900; font-size: 220px; line-height: 1;
  color: rgba(var(--red-glow),0.07); pointer-events: none; user-select: none;
  will-change: transform;
}
.winsight p {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 1.9vw, 24px); line-height: 1.42; color: var(--ink);
  max-width: 60ch; letter-spacing: -0.01em;
}

/* ── РЕШЕНИЕ: компактная сетка карточек-шагов ─────────────── */
.wsteps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 600px) { .wsteps { grid-template-columns: 1fr; } }
.wstep {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 24px 24px 26px;
  transition: border-color .4s ease, box-shadow .4s ease,
              opacity .8s cubic-bezier(.2,.7,.2,1), transform .3s ease;
  transform-style: preserve-3d; will-change: transform;
}
.wstep::after {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.wstep:hover { border-color: rgba(var(--red-glow),0.5); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.wstep:hover::after { transform: scaleX(1); }
.wstep-k {
  font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1;
  letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--red-glow),0.55);
  display: block; margin-bottom: 14px;
}
.wstep h4 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 10px;
}
.wstep p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ── РЕЗУЛЬТАТЫ: карточки с одометром ─────────────────────── */
.wresults {
  padding: 0; border: none; background: none;
}
.wresults-grid.wresults-6 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .wresults-grid.wresults-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wresults-grid.wresults-6 { grid-template-columns: 1fr; } }
.wresult {
  position: relative; overflow: hidden;
  border: 1px solid rgba(var(--red-glow),0.22);
  border-left: 2px solid var(--red);
  padding: 26px 24px 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--red-glow),0.10), transparent 60%),
    var(--bg-2);
  transition: border-color .4s ease, box-shadow .4s ease,
              opacity .8s cubic-bezier(.2,.7,.2,1), transform .3s ease;
  transform-style: preserve-3d; will-change: transform;
}
.wresult:hover { border-color: rgba(var(--red-glow),0.55); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.wresult-v {
  font-family: var(--serif); font-weight: 800; color: var(--red);
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.wresult-l { color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-top: 12px; }

/* ── ИТОГ ─────────────────────────────────────────────────── */
.wclosing {
  margin-top: 22px; position: relative;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
}
.wclosing-k {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
}
.wclosing p {
  color: var(--ink); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; max-width: 72ch;
}

/* ── ПРУФЫ «ПО МЕСТУ» ────────────────────────────────────── */
.wproof { margin-top: 28px; }
.wproof-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.wproof-k::before { content: ''; width: 16px; height: 1px; background: var(--red); }
/* компактные миниатюры-пруфы (клик → лайтбокс) */
.wproof-row { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.wproof-fig { margin: 0; width: clamp(116px, 13vw, 150px); display: flex; flex-direction: column; gap: 10px; }
.wproof-shot {
  position: relative; aspect-ratio: 0.46; overflow: hidden;
  background: #000; border: 1px solid var(--line); cursor: none; padding: 0;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.wproof-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .9; transition: transform .5s ease, opacity .3s; }
.wproof-shot:hover { border-color: rgba(var(--red-glow),0.5); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.wproof-shot:hover img { transform: scale(1.05); opacity: 1; }
.wproof-shot .wshot-zoom { width: 24px; height: 24px; font-size: 11px; top: 8px; right: 8px; }
.wproof-fig figcaption {
  color: var(--ink-3); font-size: 11px; line-height: 1.45; font-family: var(--mono); letter-spacing: 0.01em;
}
@media (max-width: 520px) {
  .wproof-fig { width: calc(50% - 8px); }
}

/* возврат — низ кейса */
.wcd-foot {
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.wcd-foot-back {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid var(--line); cursor: none;
  padding: 16px 24px; color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  transition: border-color .3s, background .3s, color .3s;
}
.wcd-foot-back:hover { border-color: var(--red); background: rgba(var(--red-glow),0.05); }
.wcd-foot-back .arrow { color: var(--red); transition: transform .3s; }
.wcd-foot-back:hover .arrow { transform: translateX(-4px); }
.wcd-foot-up {
  background: transparent; border: 1px solid var(--line); cursor: none;
  padding: 14px 18px; color: var(--ink-2); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.wcd-foot-up:hover { border-color: var(--red); color: var(--ink); }

/* ════════════════════════════════════════════════════════════ */
/*  v4 · PREMIUM-кейс (DIOX): суть на первом экране,             */
/*       рамка телефона, интерактивные вкладки                  */
/* ════════════════════════════════════════════════════════════ */

/* общий ритм секций premium-кейса */
.wdx-section { margin-top: 72px; }
.wdx-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.wdx-section-k {
  font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.wdx-section-k::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.wdx-section-hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}

/* ── eyebrow ──────────────────────────────────────────────── */
.wdx-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.wdx-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--red); }

/* ── HERO: текст + телефон ────────────────────────────────── */
.wdx-hero {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 880px) {
  .wdx-hero { grid-template-columns: 1fr; gap: 36px; }
  .wdx-hero-media { order: -1; }
}
.wdx-brand {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(44px, 7vw, 96px); line-height: 0.9; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.wdx-brand .sub {
  display: block; font-family: var(--mono); font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 400;
  margin-top: 16px;
}
.wdx-headline {
  margin-top: 24px;
  font-size: clamp(21px, 2.5vw, 34px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em;
  max-width: 22ch;
}
.wdx-headline .accent { color: var(--red); font-weight: 700; }
.wdx-headline .muted { color: var(--ink-2); font-weight: 300; }
.wdx-lead {
  margin-top: 20px; max-width: 52ch;
  color: var(--ink-2); font-size: clamp(14px, 1.3vw, 16px); line-height: 1.6;
}
.wdx-chips {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.wdx-chips .chip { border: 1px solid var(--line); padding: 5px 11px; color: var(--ink-2); }

/* медиа-колонка hero */
.wdx-hero-media { position: relative; display: flex; justify-content: center; }

/* ── РАМКА ТЕЛЕФОНА ──────────────────────────────────────── */
.wdx-phone {
  position: relative; display: block; padding: 0; cursor: none;
  width: 100%; max-width: 300px;
  border-radius: 34px;
  background: linear-gradient(155deg, #232327, #0d0d0f 60%);
  padding: 9px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.wdx-phone::before {
  content: ''; position: absolute; z-index: 3;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 6px; border-radius: 6px;
  background: rgba(0,0,0,.55);
}
.wdx-phone img {
  display: block; width: 100%; aspect-ratio: 9 / 19.2;
  object-fit: cover; object-position: top center;
  border-radius: 26px; opacity: .96;
}
.wdx-hero-media .wdx-phone:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 42px 100px rgba(0,0,0,.6);
}
.wdx-phone .wshot-zoom {
  position: absolute; top: 18px; right: 16px; z-index: 4;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(10,10,11,0.7); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 13px; border-radius: 9px;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.wdx-phone:hover .wshot-zoom { opacity: 1; transform: translateY(0); }

/* бейдж поверх телефона (×30) */
.wdx-badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 5;
  background: var(--red); color: #fff;
  padding: 14px 18px; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  text-align: left;
}
.wdx-badge-v {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: 32px; line-height: 0.9; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.wdx-badge-l {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
@media (max-width: 880px) { .wdx-badge { left: auto; right: 8px; } }

/* ── ЛЕНТА МЕТРИК ─────────────────────────────────────────── */
.wdx-ribbon {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(var(--red-glow),0.25); background: var(--bg-2);
}
@media (max-width: 760px) { .wdx-ribbon { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .wdx-ribbon { grid-template-columns: 1fr; } }
.wdx-metric {
  position: relative; padding: 26px 24px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.wdx-metric::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.wdx-ribbon.in .wdx-metric::before { transform: scaleX(1); }
.wdx-metric:nth-child(2)::before { transition-delay: .08s; }
.wdx-metric:nth-child(3)::before { transition-delay: .16s; }
.wdx-metric:nth-child(4)::before { transition-delay: .24s; }
.wdx-metric:last-child { border-right: none; }
@media (max-width: 760px) {
  .wdx-metric:nth-child(2) { border-right: none; }
  .wdx-metric:nth-child(1), .wdx-metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.wdx-metric-v {
  font-family: var(--serif); font-weight: 800; color: var(--red);
  font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.wdx-metric-l { color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-top: 12px; }

/* ── ЗАДАЧА → РЕШЕНИЕ → РЕЗУЛЬТАТ ─────────────────────────── */
.wdx-flow {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: stretch;
}
.wdx-flow-step {
  padding: 28px 26px;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; gap: 14px;
}
.wdx-flow-step.is-result {
  border-color: rgba(var(--red-glow),0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--red-glow),0.12), transparent 60%),
    var(--bg-2);
}
.wdx-flow-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red);
  display: flex; align-items: center; gap: 10px;
}
.wdx-flow-k::before { content: ''; width: 16px; height: 1px; background: var(--red); }
.wdx-flow-step p { color: var(--ink); font-size: clamp(14px, 1.3vw, 16px); line-height: 1.55; }
.wdx-flow-step.is-result p { color: var(--ink); }
.wdx-flow-arrow {
  display: grid; place-items: center; color: var(--red); font-size: 22px;
  padding: 0 8px; align-self: center;
}
@media (max-width: 820px) {
  .wdx-flow { grid-template-columns: 1fr; }
  .wdx-flow-arrow { transform: rotate(90deg); padding: 10px 0; }
}

/* ── ИНТЕРАКТИВ «КАК ЭТО РАБОТАЛО» ────────────────────────── */
.wdx-how {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 820px) { .wdx-how { grid-template-columns: 1fr; } }
.wdx-tabs {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
@media (max-width: 820px) {
  .wdx-tabs { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .wdx-tabs::-webkit-scrollbar { display: none; }
}
.wdx-tab {
  position: relative; flex: 1 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 22px; background: transparent; border: none; cursor: none;
  border-bottom: 1px solid var(--line);
  text-align: left; color: var(--ink-2);
  transition: background .3s ease, color .3s ease;
}
.wdx-tab:last-child { border-bottom: none; }
@media (max-width: 820px) {
  .wdx-tab { border-bottom: none; border-right: 1px solid var(--line); white-space: nowrap; }
}
.wdx-tab-k {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-3); transition: color .3s;
}
.wdx-tab-t {
  font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.01em; flex: 1;
}
.wdx-tab-arrow { color: var(--red); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.wdx-tab:hover { background: rgba(255,255,255,0.02); color: var(--ink); }
.wdx-tab.is-active { background: rgba(var(--red-glow),0.06); color: var(--ink); }
.wdx-tab.is-active .wdx-tab-k { color: var(--red); }
.wdx-tab.is-active .wdx-tab-arrow { opacity: 1; transform: translateX(0); }
.wdx-tab.is-active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
}
@media (max-width: 820px) {
  .wdx-tab.is-active::before { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 3px; }
}

/* правая «сцена»: телефон + текст активного шага */
.wdx-stage {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  padding: 36px 36px;
  animation: wdxStageIn .45s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 560px) { .wdx-stage { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; } }
@keyframes wdxStageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wdx-phone-sm { max-width: 220px; }
@media (max-width: 560px) { .wdx-phone-sm { max-width: 200px; margin-inline: auto; } }
.wdx-stage-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 12px;
}
.wdx-stage-text h4 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.3vw, 28px);
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 14px;
}
.wdx-stage-text p { color: var(--ink-2); font-size: clamp(14px, 1.35vw, 16px); line-height: 1.65; max-width: 52ch; }
.wdx-stage-cap {
  display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-3); letter-spacing: 0.01em;
}

/* ── ДОКАЗАТЕЛЬСТВА ───────────────────────────────────────── */
.wdx-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .wdx-proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .wdx-proof { grid-template-columns: 1fr; } }
.wdx-proof-fig { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.wdx-phone-xs { max-width: 100%; border-radius: 26px; padding: 7px; }
.wdx-phone-xs::before { top: 12px; width: 64px; height: 5px; }
.wdx-phone-xs img { border-radius: 20px; }
.wdx-proof-fig figcaption {
  color: var(--ink-3); font-size: 12px; line-height: 1.5; text-align: center;
  font-family: var(--mono); letter-spacing: 0.01em;
}

/* ── ИТОГ ─────────────────────────────────────────────────── */
.wdx-closing {
  margin-top: 64px; position: relative;
  padding: 36px 40px;
  border: 1px solid rgba(var(--red-glow),0.3);
  border-left: 3px solid var(--red);
  background: linear-gradient(180deg, rgba(var(--red-glow),0.06), transparent 70%);
}
.wdx-closing-k {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
}
.wdx-closing p {
  font-family: var(--serif); font-weight: 400;
  color: var(--ink); font-size: clamp(17px, 1.9vw, 24px); line-height: 1.4; max-width: 62ch;
  letter-spacing: -0.01em;
}
