/* drukarni — ПК (html[data-view=d]). Препрес: калька в сітку, світловий стіл, мітки приводки, шкала CMYK. */
.d {
  --gut: clamp(24px, 3.2vw, 48px);
  min-height: 100vh; min-height: 100dvh;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  font-size: 15px; line-height: 1.55;
}
.d main { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.d h1, .d h2, .d h3 { font-weight: 700; letter-spacing: -.02em; margin: 0; }
.d code { font-family: inherit; background: var(--paper2); padding: 0 .3em; }
.d .kicker, .d .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
.d .reg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1; flex: none; }

/* слаг-рядок */
.d-slug {
  display: flex; align-items: center; gap: 18px; padding: 10px var(--gut); font-size: 12px; color: var(--ink2);
  border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.d-slug-mid { flex: 1; text-align: center; min-width: 0; }  /* без многоточия: вузьке вікно — у два рядки */
.d .cmyk { display: inline-flex; flex: none; }
.d .cmyk i { width: 14px; height: 14px; display: block; }
.d .cmyk .s-c { background: var(--c); } .d .cmyk .s-m { background: var(--m); } .d .cmyk .s-y { background: var(--y); }
.d .cmyk .s-k { background: var(--k); } .d .cmyk .s-k75 { background: #4a4a48; } .d .cmyk .s-k50 { background: #8d8d8b; }
.d .cmyk .s-k25 { background: #c6c6c4; } .d .cmyk .s-k10 { background: #e9e9e7; }
@media (prefers-color-scheme: dark) { .d .cmyk .s-k { outline: 1px solid #3a3f44; outline-offset: -1px; } }

/* перший екран: текст ліворуч, лист праворуч — торкатися одразу */
.d-hero {
  display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: clamp(24px, 3vw, 56px);
  align-items: start; padding: clamp(28px, 4vh, 56px) 0 48px;
}
.d-copy { padding-top: 8px; }
.d h1 { font-size: clamp(34px, 3.3vw, 52px); line-height: 1.06; margin-bottom: 22px; text-wrap: balance; }
.d .hook { font-size: 18px; margin: 0 0 14px; border-left: 3px solid var(--cut); padding-left: 14px; }
.d .proof { color: var(--ink2); margin: 0 0 28px; max-width: 42ch; }
.d .cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--cta); color: var(--cta-ink); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 15px 22px; border-radius: 2px;
  box-shadow: 4px 4px 0 var(--shadow); transition: transform .15s, box-shadow .15s;
}
.d .cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.d .cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.d .note { font-size: 12px; color: var(--ink2); margin: 12px 0 0; }

.d-board { margin: 0; min-width: 0; }
.d-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.d .layers, .d .boards { display: flex; gap: 6px; flex-wrap: wrap; }
.d .lay, .d .bd {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule);
  padding: 7px 11px; cursor: pointer; border-radius: 2px; display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px;
}
.d .lay small, .d .bd small { color: var(--ink2); font-size: 11px; }
.d .lay.cut[aria-pressed="true"] { border-color: var(--cut); color: var(--cut); box-shadow: inset 0 -2px 0 var(--cut); }
.d .lay.crease[aria-pressed="true"] { border-color: var(--crease); color: var(--crease); box-shadow: inset 0 -2px 0 var(--crease); border-style: dashed; }
.d .lay.lbl[aria-pressed="true"] { border-color: var(--ink2); }
.d .lay[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.d .bd[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.d .bd[aria-checked="true"] small { color: inherit; opacity: .75; }
.d .lay:hover, .d .bd:hover { border-color: var(--ink); }

.d-light {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: 30px 26px 22px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(0, 0, 0, .35);
}
.d-light .reg { position: absolute; width: 22px; height: 22px; }
.d-light .tl { top: 4px; left: 4px; } .d-light .tr { top: 4px; right: 4px; }
.d-light .bl { bottom: 4px; left: 4px; } .d-light .br { bottom: 4px; right: 4px; }
.d-light .sheet { aspect-ratio: 1095 / 405; }
.d-load { position: absolute; inset: auto 0 45% 0; text-align: center; color: var(--ink2); font-size: 13px; margin: 0; }
.d-read {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0 14px; align-items: baseline; padding: 12px 2px 0;
  border-top: 1px dashed var(--rule); margin-top: 12px; font-size: 14px; min-height: 2.6em;
}
.d-read .who { font-weight: 700; }
.d-read .val { color: var(--cut); font-weight: 700; }
.d-read .why { color: var(--ink2); }
.d-delta { font-size: 13px; color: var(--ink2); margin: 6px 2px 0; min-height: 1.5em; }

/* товщина: 3D поруч з розрахунком */
.d-lab { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 56px); padding: 72px 0; border-top: 1px solid var(--rule); }
.d-lab-3d { position: sticky; top: 64px; align-self: start; }
/* низкое окно: панель выше окна — не липнет (sitegen L-097) */
@media (max-height: 760px) { .d-lab-3d { position: static; } }
.d-frame { position: relative; aspect-ratio: 4 / 3; background: var(--paper2); border: 1px solid var(--rule); overflow: hidden; }
.d-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d .ph { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; opacity: .35; }
.d .live .ph, .d .live .msg { display: none; }
.d .msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; color: var(--ink2); margin: 0; }
.d .tbar { height: 3px; background: var(--rule); margin-top: 10px; }
.d .tbar i { display: block; height: 100%; width: 0; background: var(--cut); }
.d-t { font-size: 13px; color: var(--ink2); margin: 8px 0 0; }
.d-t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.d h2 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; margin-bottom: 16px; }
.d-lab-txt > p { color: var(--ink2); margin: 0 0 18px; max-width: 54ch; }
.d-lab-txt b { color: var(--ink); }
.d .facts { margin: 0 0 26px; border-top: 1px solid var(--ink); }
.d .facts > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.d .facts dt { color: var(--ink2); font-size: 13px; }
.d .facts dd { margin: 0; text-align: right; }
.d .facts dd b { font-variant-numeric: tabular-nums; }
.d .facts dd span { display: block; font-size: 12px; color: var(--crease); }
.d .scale { display: grid; gap: 4px; }
.d .srow { display: grid; grid-template-columns: 34px 180px 64px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--ink2); padding: 2px 4px; }
.d .srow svg { width: 180px; height: auto; max-width: 100%; }
.d .srow .ln { fill: var(--ink2); }
.d .srow .fl { fill: none; stroke: var(--ink2); stroke-width: .8; }
.d .srow.on { background: var(--sel); color: var(--ink); }
.d .srow.on .ln { fill: var(--cut); } .d .srow.on .fl { stroke: var(--cut); }
.d .scode { font-weight: 700; color: var(--ink); }
.d .rule { font-size: 13px; color: var(--ink2); margin: 14px 0 0; border-left: 3px solid var(--crease); padding-left: 12px; }

/* ролик */
.d-film { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 3vw, 56px); align-items: center; padding: 72px 0; border-top: 1px solid var(--rule); }
.d-film-txt p { color: var(--ink2); max-width: 40ch; }
.d-film-box { border: 1px solid var(--rule); background: var(--paper2); }
.d-film-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.d .vbtn { font: inherit; font-size: 14px; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 9px 14px; cursor: pointer; border-radius: 2px; }
.d .vbtn:disabled { opacity: .45; cursor: default; }
.d .vmsg { font-size: 12px; color: var(--ink2); min-height: 1.4em; }

/* що у файлі */
.d-file { padding: 72px 0; border-top: 1px solid var(--rule); }
.d-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: c; }
.d-cards li { background: var(--sheet); border: 1px solid var(--rule); padding: 18px 18px 20px; position: relative; counter-increment: c; }
.d-cards li::before { content: "0" counter(c); position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--ink2); }
.d-cards h3 { font-size: 16px; margin-bottom: 8px; }
.d-cards li:nth-child(1) h3 { color: var(--cut); }
.d-cards li:nth-child(2) h3 { color: var(--crease); }
.d-cards p { margin: 0; color: var(--ink2); font-size: 14px; }

.d-end { padding: 80px 0 96px; border-top: 1px solid var(--rule); text-align: center; }
.d-end h2 { margin-bottom: 26px; }
.d-foot { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 18px var(--gut); font-size: 11px; color: var(--ink2); border-top: 1px solid var(--rule); }

@media (max-width: 1100px) {
  .d-hero { grid-template-columns: 1fr; min-height: 0; }
  .d .proof { max-width: 60ch; }
  .d-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .d .cta { transition: none; } }

/* перемикач мов у слаг-рядку: касання 44px, але рядок не росте */
.d-slug .lang-sw { font-size: 12px; margin: -12px 0; flex: none; }
