/* ============================================================================
   CarbonWrap HOME — body sections ported from macket carbonwrap-home.html
   Scoped under  body.cwnew .cwnew-home  so nothing leaks to the legacy render.
   Tokens (--paper/--ink/--violet/--container/--pad-x/…) are defined elsewhere
   on body.cwnew. 0 !important. UTF-8, no BOM. No side vertical lines.
   Sections: hero · what-is (pain) · maker/НЦК (prod) · apps/scene · calc · obj · docs
   ============================================================================ */

/* ---------- GATE: show new home, hide legacy home sections ---------- */
body.cwnew .cwnew-home[hidden]{display:block;}
body.cwnew .all-article .cw-home-hero,
body.cwnew .all-article .second-container,
body.cwnew .all-article .third-container,
body.cwnew .all-article .fourth-container{display:none;}
/* legacy .cw-advantages !important снят в carbonwrap-ds.css (Промт11) → ID-селектор перебивает .cw-advantages{display:grid} специфичностью, БЕЗ !important */
body.cwnew #thirdBlock{display:none;}
/* как макет: гасим горизонтальный скролл от obj-rail (clip не создаёт containing-block → fixed-рамка остаётся viewport-fixed) */
body.cwnew{overflow-x:clip;}

/* ---------- LAYOUT PRIMITIVES (home = wide 1720→1860 per макет carbonwrap-home.html) ---------- */
body.cwnew .cwnew-home .container{max-width:1720px;margin:0 auto;padding:0 clamp(24px,5vw,80px);}
@media (min-width:1680px){body.cwnew .cwnew-home .container,body.cwnew .cwnew-home .scene-grid{max-width:1860px;}}
body.cwnew .cwnew-home .mono{font-family:var(--font-mono);}

/* ---------- IMAGE PLACEHOLDER (gridded drawing box) ---------- */
body.cwnew .cwnew-home .ph{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  width:100%;height:100%;
  background-color:var(--card);
  background-image:linear-gradient(#ececE6 1px,transparent 1px),linear-gradient(90deg,#ececE6 1px,transparent 1px);
  background-size:38px 38px;
  border:1px solid var(--line);
}
body.cwnew .cwnew-home .ph::before{content:"";position:absolute;inset:12px;border:1px solid var(--line);}
body.cwnew .cwnew-home .ph .cap{position:relative;font-family:var(--font-mono);font-size:11px;letter-spacing:0.06em;color:var(--ink-40);}

/* ---------- HERO ---------- */
body.cwnew .cwnew-home .hero{padding:clamp(48px,7vh,96px) 0 clamp(44px,7vh,88px);overflow:hidden;}
body.cwnew .cwnew-home .hero-grid{display:grid;grid-template-columns:1.02fr 0.98fr;gap:clamp(40px,5vw,88px);align-items:center;min-height:min(64vh,640px);}
body.cwnew .cwnew-home .kicker{font-family:var(--font-mono);font-size:13px;letter-spacing:0.04em;color:var(--violet);text-transform:uppercase;margin-bottom:22px;}
body.cwnew .cwnew-home .hero h1{font-size:clamp(34px,4.8vw,68px);line-height:1.04;max-width:16ch;letter-spacing:-0.02em;}
body.cwnew .cwnew-home .hero .lede{margin-top:24px;font-size:clamp(18px,1.4vw,20px);line-height:1.55;max-width:54ch;color:var(--ink-60);}
body.cwnew .cwnew-home .hero-badges{display:flex;flex-direction:column;gap:12px;margin-top:32px;}
body.cwnew .cwnew-home .hbadge{font-family:var(--font-mono);font-size:13px;line-height:1.45;color:var(--ink-60);border-left:2px solid var(--violet);padding:5px 0 5px 14px;}
body.cwnew .cwnew-home .hbadge b{font-family:var(--font-head);font-weight:700;color:var(--ink);}
body.cwnew .cwnew-home .hero .cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:36px;}
/* CTA-кнопки — язык макета .btn (фиолет filled / ghost обводка) */
body.cwnew .cwnew-home .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-head);font-weight:var(--fw-bold);font-size:14px;text-decoration:none;padding:11px 20px;border:1px solid var(--violet);background:var(--violet);color:#fff;cursor:pointer;transition:background .15s ease,box-shadow .15s ease;box-shadow:0 1px 2px rgba(92,74,158,.16);}
body.cwnew .cwnew-home .btn:hover{background:var(--violet-deep);border-color:var(--violet-deep);box-shadow:0 5px 16px rgba(92,74,158,.28);}
body.cwnew .cwnew-home .btn.ghost{background:transparent;color:var(--violet);box-shadow:none;}
body.cwnew .cwnew-home .btn.ghost:hover{background:var(--violet);color:#fff;}
body.cwnew .cwnew-home .hero .cta .btn{padding:16px 30px;font-size:15px;}
body.cwnew .cwnew-home .hero-art{position:relative;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;}
body.cwnew .cwnew-home .hero-art-inner{position:relative;width:100%;max-width:480px;aspect-ratio:1/1;will-change:transform;background-color:var(--card);background-image:linear-gradient(#ececE6 1px,transparent 1px),linear-gradient(90deg,#ececE6 1px,transparent 1px);background-size:40px 40px;border:1px solid var(--line);padding:24px;}
body.cwnew .cwnew-home .hero-art-inner .hl-draw,
body.cwnew .cwnew-home .hero-art-inner .hl-real{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
/* placeholder boxes inside the hero reveal: no extra grid frame (parent already gridded) */
body.cwnew .cwnew-home .hero-art-inner .ph{background:transparent;border:0;}
body.cwnew .cwnew-home .hero-art-inner .hl-real .ph{background:var(--card);}
body.cwnew .cwnew-home .hero-art-inner .hl-real{clip-path:inset(0 0 calc((1 - var(--p,0)) * 100%) 0);}
body.cwnew .cwnew-home .hero-art .chip{position:static;align-self:center;width:100%;max-width:480px;text-align:left;padding-left:2px;font-family:var(--font-mono);font-size:12.5px;letter-spacing:0.03em;color:var(--ink-60);}
@media (prefers-reduced-motion:reduce){
  body.cwnew .cwnew-home .hero-art-inner .hl-real{transition:none;clip-path:inset(0 0 0 0);}
}
@media (max-width:860px){
  body.cwnew .cwnew-home .hero-grid{grid-template-columns:1fr;min-height:0;gap:30px;}
  body.cwnew .cwnew-home .hero-copy{order:0;}
  body.cwnew .cwnew-home .hero-art{order:1;}
  body.cwnew .cwnew-home .hero-art-inner{max-width:100%;width:100%;margin:0;aspect-ratio:1300/980;padding:18px;background-size:34px 34px;}
  body.cwnew .cwnew-home .hero h1{max-width:none;}
}

/* ---------- SECTION HEADINGS (shared) ---------- */
body.cwnew .cwnew-home section.block{padding:80px 0;}
body.cwnew .cwnew-home .sec-head{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:end;column-gap:clamp(32px,5vw,80px);row-gap:18px;margin-bottom:44px;}
body.cwnew .cwnew-home .sec-head .l .eyebrow{font-family:var(--font-mono);font-size:13px;letter-spacing:0.06em;text-transform:uppercase;color:var(--violet);margin-bottom:16px;display:flex;align-items:center;gap:10px;}
body.cwnew .cwnew-home .sec-head .l .eyebrow::before{content:"";width:40px;height:2px;background:var(--violet);}
body.cwnew .cwnew-home .sec-head h2{font-size:clamp(28px,3.2vw,40px);line-height:1.05;}
body.cwnew .cwnew-home .sec-head .r{font-size:17px;line-height:1.5;color:var(--ink-60);max-width:42ch;border-left:1px solid var(--line);padding-left:20px;padding-bottom:4px;}
@media (max-width:900px){
  body.cwnew .cwnew-home .sec-head{grid-template-columns:1fr;align-items:start;}
  body.cwnew .cwnew-home .sec-head .r{max-width:60ch;border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:16px;}
}

/* ---------- WHAT-IS (system / pain cards) ---------- */
body.cwnew .cwnew-home .pain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
body.cwnew .cwnew-home .pain-card{background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius-sm);padding:26px 24px 28px;display:flex;flex-direction:column;gap:12px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
body.cwnew .cwnew-home .pain-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,18,16,.09);border-color:var(--violet);}
body.cwnew .cwnew-home .pain-card .n{font-family:var(--font-mono);font-size:20px;font-weight:700;color:var(--violet);letter-spacing:-0.01em;}
body.cwnew .cwnew-home .pain-card h3{font-family:var(--font-head);font-weight:700;font-size:18px;line-height:1.15;letter-spacing:-0.01em;color:var(--ink);}
body.cwnew .cwnew-home .pain-card p{font-size:15px;line-height:1.5;color:var(--ink-60);}
@media (max-width:860px){body.cwnew .cwnew-home .pain-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){body.cwnew .cwnew-home .pain-grid{grid-template-columns:1fr;}}

/* ---------- MAKER / ПРОИЗВОДИТЕЛЬ · НЦК ---------- */
body.cwnew .cwnew-home .prod-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(28px,4vw,56px);align-items:start;}
body.cwnew .cwnew-home .prod-text p{font-size:16px;line-height:1.55;color:var(--ink-60);margin:0 0 16px;max-width:50ch;}
body.cwnew .cwnew-home .prod-text .slogan{font-family:var(--font-head);font-weight:800;font-size:clamp(20px,2.4vw,28px);color:var(--violet);letter-spacing:-0.01em;margin:24px 0;max-width:none;}
body.cwnew .cwnew-home .prod-text .cycle{color:var(--ink);}
body.cwnew .cwnew-home .prod-links{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:26px;}
body.cwnew .cwnew-home .prod-links .btn{padding:13px 22px;font-size:14px;}
body.cwnew .cwnew-home .prod-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);}
body.cwnew .cwnew-home .stat{background:var(--paper);padding:26px 24px;display:flex;flex-direction:column;gap:8px;}
body.cwnew .cwnew-home .stat b{font-family:var(--font-head);font-weight:800;font-size:clamp(28px,3.2vw,40px);line-height:1;color:var(--ink);letter-spacing:-0.02em;}
body.cwnew .cwnew-home .stat span{font-family:var(--font-mono);font-size:12px;letter-spacing:0.02em;color:var(--ink-60);}
@media (max-width:860px){body.cwnew .cwnew-home .prod-grid{grid-template-columns:1fr;}}
@media (max-width:520px){body.cwnew .cwnew-home .prod-stats{grid-template-columns:1fr;}}

/* ---------- SCENE (application rows — reveal on enter) ---------- */
body.cwnew .cwnew-home .scene{position:relative;}
body.cwnew .cwnew-home .apps-rows .scene{border-top:1px solid var(--line);}
body.cwnew .cwnew-home .apps-rows .scene:first-child{border-top:0;}
body.cwnew .cwnew-home .scene-sticky{position:static;height:auto;display:block;}
body.cwnew .cwnew-home .scene-grid{width:100%;max-width:1720px;margin:0 auto;padding:clamp(44px,5.5vw,80px) clamp(24px,5vw,80px);display:grid;align-items:center;gap:clamp(32px,4.5vw,72px);grid-template-columns:minmax(280px,1fr) minmax(330px,1.04fr);}
body.cwnew .cwnew-home .scene.flip .scene-copy{order:2;}
body.cwnew .cwnew-home .scene-copy{max-width:none;}
body.cwnew .cwnew-home .scene-copy .tag{font-family:var(--font-mono);font-size:12px;letter-spacing:0.05em;text-transform:uppercase;color:var(--violet);display:flex;align-items:center;gap:10px;margin-bottom:18px;justify-content:flex-start;}
body.cwnew .cwnew-home .scene-copy .tag::before{content:"";width:40px;height:2px;background:var(--violet);}
body.cwnew .cwnew-home .scene-copy h2{font-size:clamp(24px,2.4vw,32px);max-width:20ch;line-height:1.1;margin:0;}
body.cwnew .cwnew-home .scene-copy p{margin-top:16px;font-size:16px;line-height:1.55;color:var(--ink-60);max-width:48ch;}
body.cwnew .cwnew-home .legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:24px;font-family:var(--font-mono);font-size:12px;color:var(--ink-60);justify-content:flex-start;}
body.cwnew .cwnew-home .legend .dot{display:inline-flex;align-items:center;gap:7px;}
body.cwnew .cwnew-home .legend .sw{width:13px;height:13px;border:1px solid currentColor;}
body.cwnew .cwnew-home .legend .sw.red{background:var(--red);border-color:var(--red);}
body.cwnew .cwnew-home .legend .sw.ink{background:var(--ink);}
body.cwnew .cwnew-home .scene-stage{position:relative;width:100%;justify-self:center;background-color:var(--card);background-image:linear-gradient(#ececE6 1px,transparent 1px),linear-gradient(90deg,#ececE6 1px,transparent 1px);background-size:38px 38px;border:1px solid var(--line);padding:18px;}
body.cwnew .cwnew-home .scene-stage::after{content:"";position:absolute;right:8px;top:8px;width:14px;height:14px;border-right:1px solid var(--ink-40);border-top:1px solid var(--ink-40);opacity:.5;}
body.cwnew .cwnew-home .stage-tall{aspect-ratio:1200/1100;width:100%;max-height:560px;}
body.cwnew .cwnew-home .stage-wide{aspect-ratio:1500/760;width:100%;}
body.cwnew .cwnew-home .stage-corner{aspect-ratio:1300/900;width:100%;}
body.cwnew .cwnew-home .stage-tank{aspect-ratio:1400/820;width:100%;}
body.cwnew .cwnew-home .scene-link{display:inline-flex;align-items:center;gap:9px;margin-top:24px;font-family:var(--font-mono);font-size:12px;letter-spacing:0.02em;color:var(--violet);text-decoration:none;border-bottom:1px solid var(--violet-tint);padding-bottom:3px;transition:border-color .15s;}
body.cwnew .cwnew-home .scene-link:hover{border-color:var(--violet);}
body.cwnew .cwnew-home .scene-link .b{border:1px solid var(--violet);padding:2px 6px;font-size:10px;}
/* layered reveal: base drawing + real material grown top→down by --p; annot hidden */
body.cwnew .cwnew-home .scene-stage .layer{position:absolute;inset:18px;width:auto;height:auto;right:18px;bottom:18px;object-fit:contain;}
body.cwnew .cwnew-home .scene-stage .annot{display:none;}
body.cwnew .cwnew-home .scene-stage .real{clip-path:inset(0 0 calc((1 - var(--p,0)) * 100%) 0);}
body.cwnew .cwnew-home .scene-stage .stage-cap{position:absolute;left:18px;bottom:-25px;font-family:var(--font-mono);font-size:12.5px;letter-spacing:0.03em;color:var(--ink-60);}
@media (prefers-reduced-motion:reduce){
  body.cwnew .cwnew-home .scene-stage .real{transition:none;clip-path:inset(0 0 0 0);}
}
@media (max-width:860px){
  body.cwnew .cwnew-home .scene-grid{grid-template-columns:1fr;gap:28px;padding:44px clamp(20px,5vw,40px);}
  body.cwnew .cwnew-home .scene.flip .scene-copy{order:0;}
  body.cwnew .cwnew-home .scene-stage{order:2;}
  body.cwnew .cwnew-home .stage-tall{max-height:none;}
}

/* ---------- CALC TEASER ---------- */
body.cwnew .cwnew-home .calc{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--alt);}
body.cwnew .cwnew-home .calc .container{padding-top:80px;padding-bottom:80px;}
body.cwnew .cwnew-home .calc .eyebrow{font-family:var(--font-mono);font-size:13px;letter-spacing:0.06em;text-transform:uppercase;color:var(--violet);margin-bottom:16px;display:flex;align-items:center;gap:10px;}
body.cwnew .cwnew-home .calc .eyebrow::before{content:"";width:40px;height:2px;background:var(--violet);}
body.cwnew .cwnew-home .calc h2{font-size:clamp(28px,3.2vw,40px);line-height:1.05;max-width:22ch;color:var(--ink);}
body.cwnew .cwnew-home .calc .lead{margin-top:18px;font-size:18px;line-height:1.55;color:var(--ink-60);max-width:62ch;}
body.cwnew .cwnew-home .calc-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-top:46px;}
body.cwnew .cwnew-home .calc-step{background:var(--paper);padding:30px 28px;display:flex;flex-direction:column;}
body.cwnew .cwnew-home .calc-step .n{font-family:var(--font-mono);font-size:13px;color:var(--violet);}
body.cwnew .cwnew-home .calc-step .n b{font-family:var(--font-head);font-weight:800;font-size:34px;color:var(--ink);display:block;line-height:1;margin-bottom:8px;letter-spacing:-0.02em;}
body.cwnew .cwnew-home .calc-step p{margin-top:14px;font-size:16px;line-height:1.45;color:var(--ink);}
body.cwnew .cwnew-home .calc-cta{margin-top:36px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
body.cwnew .cwnew-home .calc-cta .btn{padding:15px 28px;font-size:15px;}
body.cwnew .cwnew-home .calc-note{font-family:var(--font-mono);font-size:12px;color:var(--ink-40);}

/* ---------- OBJECTS (demo rail) ---------- */
body.cwnew .cwnew-home .obj-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:30px;}
body.cwnew .cwnew-home .obj-count{font-family:var(--font-mono);font-size:13px;color:var(--ink-60);display:flex;align-items:center;gap:14px;}
body.cwnew .cwnew-home .obj-count b{font-family:var(--font-head);font-weight:800;font-size:40px;line-height:1;color:var(--ink);letter-spacing:-0.02em;}
body.cwnew .cwnew-home .obj-rail{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 0 18px;scrollbar-width:thin;scrollbar-color:var(--ink-40) transparent;}
body.cwnew .cwnew-home .obj-rail::-webkit-scrollbar{height:8px;}
body.cwnew .cwnew-home .obj-rail::-webkit-scrollbar-thumb{background:var(--ink-40);}
body.cwnew .cwnew-home .obj-rail::-webkit-scrollbar-track{background:var(--line);}
body.cwnew .cwnew-home .obj-card{flex:0 0 calc((100% - 72px) / 5);scroll-snap-align:start;border:1px solid var(--card-line);background:var(--card);text-decoration:none;color:inherit;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
body.cwnew .cwnew-home .obj-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,18,16,.09);border-color:var(--violet);}
body.cwnew .cwnew-home .obj-ph{position:relative;aspect-ratio:3/2;background:var(--paper);border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;}
body.cwnew .cwnew-home .obj-ph::before{content:"";position:absolute;inset:14px;border:1px solid var(--line);}
body.cwnew .cwnew-home .obj-ph .cap{position:relative;font-family:var(--font-mono);font-size:11px;letter-spacing:0.06em;color:var(--ink-40);}
body.cwnew .cwnew-home .obj-body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:9px;flex:1 1 auto;}
body.cwnew .cwnew-home .obj-name{font-family:var(--font-head);font-weight:700;font-size:17px;line-height:1.2;letter-spacing:-0.01em;}
body.cwnew .cwnew-home .obj-meta{font-family:var(--font-mono);font-size:11.5px;color:var(--ink-60);}
body.cwnew .cwnew-home .obj-mats{font-size:13px;color:var(--ink-60);line-height:1.4;}
body.cwnew .cwnew-home .obj-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px;}
body.cwnew .cwnew-home .obj-tags span{font-family:var(--font-mono);font-size:10.5px;color:var(--violet);background:var(--violet-tint);padding:3px 8px;}

/* ---------- DOCS (demo, type filter) ---------- */
body.cwnew .cwnew-home .doc-table{border:1px solid var(--line);}
body.cwnew .cwnew-home .doc-row{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:18px;padding:16px 22px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;transition:background .15s;}
body.cwnew .cwnew-home .doc-row:last-child{border-bottom:0;}
body.cwnew .cwnew-home .doc-row:hover{background:var(--paper-2);}
body.cwnew .cwnew-home .badge{font-family:var(--font-mono);font-size:11px;font-weight:400;text-align:center;padding:5px 0;border:1px solid currentColor;letter-spacing:0.04em;}
body.cwnew .cwnew-home .badge.atr{color:var(--red);}
body.cwnew .cwnew-home .badge.sto{color:var(--violet);}
body.cwnew .cwnew-home .badge.ttk{color:var(--ink);}
body.cwnew .cwnew-home .badge.sp{color:var(--ink-60);}
body.cwnew .cwnew-home .doc-row .name{font-size:15px;font-weight:500;}
body.cwnew .cwnew-home .doc-row .name small{display:block;font-family:var(--font-mono);font-weight:400;font-size:12px;color:var(--ink-40);margin-top:3px;letter-spacing:0.02em;}
body.cwnew .cwnew-home .doc-row .dl{font-family:var(--font-mono);font-size:12px;color:var(--ink-40);white-space:nowrap;}
body.cwnew .cwnew-home .doc-row:hover .dl{color:var(--violet);}
body.cwnew .cwnew-home .doc-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;}
body.cwnew .cwnew-home .doc-tab{font-family:var(--font-mono);font-size:12px;letter-spacing:0.03em;color:var(--ink-60);background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius-sm);padding:9px 15px;cursor:pointer;transition:background .15s,border-color .15s,color .15s;}
body.cwnew .cwnew-home .doc-tab:hover{border-color:var(--violet);color:var(--violet);}
body.cwnew .cwnew-home .doc-tab.active{background:var(--violet);border-color:var(--violet);color:#fff;}
body.cwnew .cwnew-home .doc-row[hidden]{display:none;}
@media (max-width:560px){
  body.cwnew .cwnew-home .doc-row{grid-template-columns:72px 1fr;}
  body.cwnew .cwnew-home .doc-row .dl{display:none;}
}

/* ---------- MOBILE OVERHAUL (≤768px) ---------- */
@media (max-width:768px){
  body.cwnew .cwnew-home .scene-stage{width:100%;}
  body.cwnew .cwnew-home .stage-tall,
  body.cwnew .cwnew-home .stage-corner,
  body.cwnew .cwnew-home .stage-tank,
  body.cwnew .cwnew-home .stage-wide{width:100%;height:auto;max-height:64vh;}
  body.cwnew .cwnew-home .scene-copy h2{font-size:clamp(24px,6.4vw,32px);}
  body.cwnew .cwnew-home .hero{padding-top:28px;}
  body.cwnew .cwnew-home .hero h1{font-size:clamp(28px,7.4vw,36px);line-height:1.08;}
  body.cwnew .cwnew-home .hero .lede{font-size:17px;}
  body.cwnew .cwnew-home .sec-head h2{font-size:clamp(26px,6.6vw,34px);}
  body.cwnew .cwnew-home .prod-stats{grid-template-columns:1fr 1fr;}
  body.cwnew .cwnew-home .pain-grid{grid-template-columns:1fr;}
  body.cwnew .cwnew-home .obj-rail{flex-direction:column;overflow:visible;scroll-snap-type:none;padding-bottom:0;}
  body.cwnew .cwnew-home .obj-card{flex:0 0 auto;width:100%;}
  body.cwnew .cwnew-home .obj-ph{aspect-ratio:16/9;}
  body.cwnew .cwnew-home .calc-steps{grid-template-columns:1fr;}
  body.cwnew .cwnew-home section.block{padding:48px 0;}
  body.cwnew .cwnew-home .calc .container{padding-top:48px;padding-bottom:48px;}
}
@media (max-width:520px){
  body.cwnew .cwnew-home .prod-stats{grid-template-columns:1fr;}
}

/* ---------- фирменный «ЧЕРТЁЖНЫЙ ЛИСТ»: fixed рамка по краю вьюпорта + угловые тики + штамп (как макет, scoped body.cwnew) ---------- */
body.cwnew .cwnew-home .hero{position:relative;}
body.cwnew .sheet-frame{position:fixed;inset:var(--frame);border:1px solid var(--ink);pointer-events:none;z-index:90;}
body.cwnew .tick{position:fixed;width:13px;height:13px;z-index:91;pointer-events:none;}
body.cwnew .tick::before,body.cwnew .tick::after{content:"";position:absolute;background:var(--ink);}
body.cwnew .tick::before{left:6px;top:0;width:1px;height:13px;}
body.cwnew .tick::after{top:6px;left:0;height:1px;width:13px;}
body.cwnew .tick.tl{left:calc(var(--frame) - 6px);top:calc(var(--frame) - 6px);}
body.cwnew .tick.tr{right:calc(var(--frame) - 6px);top:calc(var(--frame) - 6px);}
body.cwnew .tick.bl{left:calc(var(--frame) - 6px);bottom:calc(var(--frame) - 6px);}
body.cwnew .tick.br{right:calc(var(--frame) - 6px);bottom:calc(var(--frame) - 6px);}
body.cwnew .sheet-stamp{position:fixed;right:calc(var(--frame) + 6px);bottom:calc(var(--frame) + 6px);z-index:92;background:var(--paper);border:1px solid var(--ink);font-family:var(--font-mono);font-size:10.5px;line-height:1.5;letter-spacing:.01em;color:var(--ink);pointer-events:none;min-width:200px;}
/* font-size/line-height заданы явно: легаси style-nsv reset `div{font-size:0;line-height:1}` гасил строки штампа (строки 1-2 схлопывались в 9px) — перебиваем специфичностью, без !important */
body.cwnew .sheet-stamp .row{padding:4px 10px;border-bottom:1px solid var(--line);font-size:10.5px;line-height:1.5;}
body.cwnew .sheet-stamp .row:last-child{border-bottom:0;display:flex;justify-content:space-between;gap:12px;color:var(--ink-60);}
body.cwnew .sheet-stamp .row span,body.cwnew .sheet-stamp .row b{font-size:10.5px;line-height:1.5;}
body.cwnew .sheet-stamp b{font-weight:var(--fw-reg);color:var(--violet);}
/* мобайл: fixed-лист скрыт (как макет; избегаем дёрганья при скрытии адресной строки) */
@media (max-width:860px){body.cwnew .sheet-frame,body.cwnew .tick,body.cwnew .sheet-stamp{display:none;}}

/* ---------- 04 · МАТЕРИАЛЫ (карточки категорий, как макет .cat-grid/.cat-card) ---------- */
body.cwnew .cwnew-home .cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
body.cwnew .cwnew-home .cat-card{background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius-sm);text-decoration:none;color:inherit;display:flex;flex-direction:column;padding:24px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;position:relative;min-width:0;}
body.cwnew .cwnew-home .cat-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,18,16,.09);border-color:var(--violet);}
body.cwnew .cwnew-home .cat-thumb{aspect-ratio:4/3;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:9px;flex-direction:column;overflow:hidden;margin-bottom:20px;}
body.cwnew .cwnew-home .cat-thumb img{width:100%;height:100%;object-fit:contain;padding:14px;}
body.cwnew .cwnew-home .cat-thumb.ph{background-color:var(--paper);background-image:linear-gradient(#ececE6 1px,transparent 1px),linear-gradient(90deg,#ececE6 1px,transparent 1px);background-size:22px 22px;color:var(--ink-40);}
body.cwnew .cwnew-home .cat-thumb.ph .cap{font-family:var(--font-mono);font-size:11px;letter-spacing:0.04em;color:var(--ink-40);}
body.cwnew .cwnew-home .cat-card .idx{font-family:var(--font-mono);font-size:12px;font-weight:700;color:var(--violet);margin-bottom:8px;letter-spacing:0.02em;}
body.cwnew .cwnew-home .cat-card h3{font-family:var(--font-head);font-weight:var(--fw-bold);font-size:19px;color:var(--ink);margin:0;}
body.cwnew .cwnew-home .cat-card p{margin:10px 0 16px;font-size:15px;line-height:1.5;color:var(--ink-60);flex:1 1 auto;overflow-wrap:anywhere;}
body.cwnew .cwnew-home .cat-card .mark{font-family:var(--font-mono);font-size:12px;color:var(--violet);}
body.cwnew .cwnew-home .cat-card .go{position:absolute;top:22px;right:22px;font-size:18px;color:var(--ink-40);transition:color .15s,transform .15s;}
body.cwnew .cwnew-home .cat-card:hover .go{color:var(--violet);transform:translate(3px,-3px);}
@media (max-width:980px){body.cwnew .cwnew-home .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px){body.cwnew .cwnew-home .cat-grid{grid-template-columns:1fr;}}

/* ---------- ОБЪЕКТЫ: vanilla-карусель со стрелками (улучшение vs макет-рейл) ---------- */
body.cwnew .cwnew-home .obj-carousel{position:relative;}
body.cwnew .cwnew-home .obj-arrow{position:absolute;top:42%;transform:translateY(-50%);z-index:4;width:46px;height:46px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-family:var(--font-head);font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,border-color .15s,color .15s;box-shadow:0 2px 12px rgba(20,18,16,.10);}
body.cwnew .cwnew-home .obj-arrow:hover{background:var(--violet);color:#fff;border-color:var(--violet);}
body.cwnew .cwnew-home .obj-arrow:focus-visible{outline:2px solid var(--violet);outline-offset:2px;}
body.cwnew .cwnew-home .obj-prev{left:-12px;}
body.cwnew .cwnew-home .obj-next{right:-12px;}
body.cwnew .cwnew-home .obj-arrow[hidden]{display:none;}
@media (max-width:860px){body.cwnew .cwnew-home .obj-arrow{display:none;}}
