/* /l/dyzajnery/ — планшет (761–1100) і ПК (> 1100): аркуш креслення на 12-колонковій сітці */
.W { width: min(1360px, 100% - 32px); margin: 0 auto; }
.W main > section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 88px 0; border-top: 1px solid var(--ink); }
.W main > section:first-child { border-top: 0; padding-top: 56px; }

.w-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--ink); }
.w-top .brand { font-weight: 700; letter-spacing: -.01em; }
.w-top .brand-for { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.w-top-r { display: inline-flex; align-items: center; gap: 12px; }
.w-top-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.w-top-cta:hover { background: var(--ink); color: var(--paper); }

.w-h1 { font-size: clamp(40px, 4.3vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
.w-h2 { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.w-lead { font-size: 19px; line-height: 1.5; margin-top: 24px; max-width: 34em; }
.w-text { font-size: 17px; line-height: 1.55; margin-top: 16px; max-width: 36em; }
.w-act { margin-top: 32px; }
.w-act .note { max-width: 30em; }
.w-sec-head .eyebrow { margin-bottom: 14px; }

/* перший екран: текст 5 колонок, креслення 7 */
.w-copy { grid-column: 1 / 6; padding-right: 32px; align-self: start; }
.w-draw { grid-column: 6 / 13; margin: 0; min-width: 0; }
.w-draw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.w-draw-cap { flex: 1 1 260px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.w-draw .sheet { padding: 18px 14px 10px; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.w-draw .sheet .dl { max-height: 68vh; width: auto; max-width: 100%; }
.w-stamp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-stamp div + div { border-left: 1px solid var(--ink); }
.w-stamp div:nth-child(4n + 1) { border-left: 0; }
.w-stamp .s-style { grid-column: span 1; }
.crosshair { position: absolute; pointer-events: none; font: 600 12px/1 var(--sans); color: var(--ultra); background: var(--paper);
  border: 1px solid var(--ultra); padding: 4px 6px; transform: translate(12px, 12px); white-space: nowrap; display: none; }
.sheet.hovering .crosshair { display: block; }
.sheet .xh, .sheet .yh { position: absolute; pointer-events: none; background: var(--ultra); opacity: .35; display: none; }
.sheet .xh { left: 0; right: 0; height: 1px; }
.sheet .yh { top: 0; bottom: 0; width: 1px; }
.sheet.hovering .xh, .sheet.hovering .yh { display: block; }

/* той самий файл — зібраний */
.w-fold-copy { grid-column: 1 / 6; padding-right: 32px; }
.w-fold-copy .big { margin: 6px 0 28px; font-size: clamp(44px, 5.2vw, 92px); }
html[data-layout=tablet] .w-fold-copy .big { font-size: clamp(56px, 10vw, 104px); }
.w-link-cap { margin: 28px 0 8px; font-weight: 600; font-size: 14px; }
.w-fold-stage { grid-column: 6 / 13; margin: 0; }
.w-frame { height: min(600px, 72vh); }
.w-fold-stage .note { margin-top: 10px; }

/* вручну / тут */
.w-vs .w-sec-head { grid-column: 1 / 13; margin-bottom: 32px; }
.w-vs-cols, .W .vs li { grid-column: 1 / 13; display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 0 24px; }
.w-vs-cols { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; padding-bottom: 10px; }
.w-vs-cols span:nth-child(2) { color: var(--ink-2); }
.w-vs-cols span:nth-child(3) { color: var(--ultra); }
.W .vs { grid-column: 1 / 13; }
.W .vs li { padding: 18px 0; font-size: 17px; line-height: 1.4; }

/* файли */
.w-files .w-sec-head { grid-column: 1 / 5; padding-right: 32px; }
.w-files .files { grid-column: 5 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pro */
.w-pro .pro { grid-column: 1 / 8; }
.w-free { grid-column: 9 / 13; align-self: end; font-size: 16px; line-height: 1.5; }

/* фінал */
.w-final { align-items: end; }
.w-final-h { grid-column: 1 / 8; padding-right: 32px; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -.04em; }
.w-final > div { grid-column: 8 / 13; }
.w-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 32px; border-top: 1px solid var(--ink); color: var(--ink-2); font-size: 13.5px; }

/* ===== планшет: свої колонки, без липких частин ===== */
html[data-layout=tablet] .W main > section { padding: 64px 0; }
html[data-layout=tablet] .w-copy { grid-column: 1 / 13; position: static; padding-right: 0; margin-bottom: 36px; }
html[data-layout=tablet] .w-copy .w-lead { max-width: 40em; }
html[data-layout=tablet] .w-draw { grid-column: 1 / 13; }
html[data-layout=tablet] .w-draw .sheet .dl { max-height: 62vh; }
html[data-layout=tablet] .w-fold-copy { grid-column: 1 / 13; padding-right: 0; margin-bottom: 28px; }
html[data-layout=tablet] .w-fold-stage { grid-column: 1 / 13; }
html[data-layout=tablet] .w-frame { height: min(520px, 62vh); }
html[data-layout=tablet] .w-files .w-sec-head { grid-column: 1 / 13; margin-bottom: 24px; padding-right: 0; }
html[data-layout=tablet] .w-files .files { grid-column: 1 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-layout=tablet] .w-pro .pro { grid-column: 1 / 13; }
html[data-layout=tablet] .w-free { grid-column: 1 / 13; margin-top: 18px; }
html[data-layout=tablet] .w-final-h { grid-column: 1 / 13; margin-bottom: 24px; }
html[data-layout=tablet] .w-final > div { grid-column: 1 / 13; }
html[data-layout=tablet] .w-vs-cols, html[data-layout=tablet] .W .vs li { grid-template-columns: 2fr 3fr 4fr; gap: 0 16px; }
html[data-layout=tablet] .W .vs li { font-size: 16px; }
html[data-layout=tablet] .w-stamp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-layout=tablet] .crosshair, html[data-layout=tablet] .sheet .xh, html[data-layout=tablet] .sheet .yh { display: none !important; }
