/* Студія упаковки «Паперовий змій». Темна 3D-сцена + світлі «паперові» розділи. Кольори CMYK — з логотипу. */
:root {
  --ink: #121316; --ink-2: #4A4E58; --ink-3: #868A94;
  --paper: #F4F1EA; --paper-2: #ECE7DC; --card: #FBFAF6; --rule: #DDD6C8;
  --night: #0D0E11; --night-2: #15171C; --night-3: #1E2128;
  --on: #F2EFE8; --on-2: rgba(242, 239, 232, .72); --on-3: rgba(242, 239, 232, .48); --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --c: #00A0E3; --m: #E5007E; --y: #FFED00; --k: #1D1D1B;
  --accent: #E5007E; --accent-2: #FF2D97;
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav: 64px;
  --panel-w: 432px;
  --shadow: 0 1px 0 rgba(30, 20, 10, .04), 0 22px 44px -26px rgba(40, 28, 12, .28);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: .01em; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(229, 0, 126, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-accent:hover { background: var(--accent-2); }
.btn-light { background: rgba(255, 255, 255, .08); color: var(--on); border-color: var(--line-2); }
.btn-light:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost { background: transparent; color: var(--on); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.link { background: none; border: 0; padding: 0; color: var(--on-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--on); }

/* ---------- підписи ---------- */
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.cmyk { display: inline-flex; gap: 3px; }
.cmyk i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); }
.cmyk i:nth-child(4) { background: #3a3a38; }

/* ---------- верхнє меню ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 20px; background: rgba(13, 14, 17, .86); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); color: var(--on); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 26px; height: auto; }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-weight: 600; font-size: 15px; }
.logo i { font-style: normal; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-3); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { text-decoration: none; font-size: 14px; color: var(--on-2); transition: color .2s; }
.menu a:hover { color: var(--on); }

/* ---------- студія (3D) ---------- */
.studio { position: relative; height: calc(100svh - var(--nav)); min-height: 660px; max-height: 1100px; background: var(--night); color: var(--on); overflow: hidden; }
.stage { position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 38% 62%, rgba(255, 244, 228, .07), transparent 70%),
  radial-gradient(120% 90% at 40% 50%, #1E2027 0%, #121419 52%, #0A0B0D 100%); }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.view { position: absolute; inset: 0; }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.view canvas:active { cursor: grabbing; }
.stage-copy { position: absolute; z-index: 3; left: clamp(20px, 3.2vw, 48px); top: clamp(22px, 4vh, 44px); max-width: min(520px, calc(100% - var(--panel-w) - 120px)); pointer-events: none; }
.stage-copy .kicker { color: var(--on-3); margin-bottom: 16px; }
.stage-copy h1, .stage-copy .lede { text-shadow: 0 2px 18px rgba(8, 9, 11, .85), 0 0 2px rgba(8, 9, 11, .6); }
.stage-copy h1 em { text-shadow: none; }
.stage-copy h1 { font: 600 clamp(44px, 4.6vw, 76px)/.96 var(--serif); letter-spacing: -.01em; }
.stage-copy h1 em { font-style: italic; color: #fff; background: linear-gradient(100deg, #FFFFFF 10%, #F6C9E2 60%, #FFFFFF 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stage-copy .lede { margin-top: 18px; font-size: 16px; color: var(--on-2); max-width: 430px; }
.stage-tag { position: absolute; z-index: 3; left: clamp(20px, 3.2vw, 48px); bottom: 104px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--on-3); pointer-events: none; }
.stage-tag b { display: block; font: 600 22px/1.2 var(--serif); letter-spacing: 0; color: var(--on); margin-bottom: 2px; }
.stage-hint { position: absolute; z-index: 3; left: calc((100% - var(--panel-w) - 32px) * .62); bottom: 104px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(13, 14, 17, .55); border: 1px solid var(--line-2); font-size: 13px; color: var(--on-2); pointer-events: none; opacity: 0; transition: opacity .6s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-hint.on { opacity: 1; }
.stage-bar { position: absolute; z-index: 4; left: clamp(20px, 3.2vw, 48px); right: calc(var(--panel-w) + 40px); bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 999px; background: rgba(22, 24, 29, .72); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); max-width: 720px; }
.sb-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--on); color: var(--night); display: grid; place-items: center; transition: transform .2s; }
.sb-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.sb-play:hover { transform: scale(1.06); }
.sb-fold { flex: 1; display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-3); min-width: 0; }
.sb-fold input { flex: 1; min-width: 60px; accent-color: var(--accent); height: 24px; }
.sb-group { display: flex; gap: 4px; flex: none; }
.sb-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--on-2); font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s; }
.sb-btn:hover { background: rgba(255, 255, 255, .08); color: var(--on); }
.sb-btn[aria-pressed='true'] { background: var(--on); color: var(--night); }
.sb-btn:disabled { opacity: .35; pointer-events: none; }
.dieline { position: absolute; inset: 0; z-index: 2; background: rgba(10, 11, 13, .94); }
.dieline svg { position: absolute; top: 70px; left: 40px; width: calc(100% - var(--panel-w) - 96px); height: calc(100% - 180px); overflow: visible; }
.stage.flat-on .stage-tag, .stage.flat-on .stage-hint { opacity: 0 !important; }
.stage-copy { transition: opacity .3s; }
.nogl { position: absolute; inset: auto 24px 110px; z-index: 3; text-align: center; color: var(--on-2); font-size: 14px; }

/* ---------- панель параметрів ---------- */
.panel { position: absolute; z-index: 5; top: 16px; right: 16px; bottom: 16px; width: var(--panel-w); display: flex; flex-direction: column; border-radius: var(--r); background: rgba(20, 22, 27, .8); border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.panel-in { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; border-top: 1px solid var(--line); background: rgba(13, 14, 17, .6); font: 500 12px/1.35 var(--mono); color: var(--on-2); letter-spacing: .02em; }
.step { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step > header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step .no { font: 500 11.5px/1 var(--mono); color: var(--accent); letter-spacing: .08em; }
.step h2 { font: 600 17px/1.2 var(--sans); letter-spacing: -.005em; }
.about { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--on-2); }
.about b { color: var(--on); font-weight: 600; }
.fine { margin-top: 10px; font-size: 12.5px; color: var(--on-3); line-height: 1.45; }
.lbl { font-size: 13px; color: var(--on-2); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pchip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--on-2); font-size: 11.5px; line-height: 1.15; text-align: center; transition: border-color .2s, background .2s, color .2s; }
.pchip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pchip:hover { border-color: var(--line-2); color: var(--on); }
.pchip[aria-checked='true'] { border-color: rgba(229, 0, 126, .7); background: rgba(229, 0, 126, .1); color: var(--on); }
.fields { display: flex; gap: 8px; margin-top: 14px; }
.fld { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--on-3); }
.fld .inp { display: flex; align-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); padding: 0 10px; transition: border-color .2s; }
.fld .inp:focus-within { border-color: var(--accent); }
.fld input { width: 100%; min-width: 0; height: 40px; border: 0; background: none; outline: none; font: 500 15px var(--mono); color: var(--on); }
.fld input::-webkit-inner-spin-button { opacity: .4; }
.fld em { font-style: normal; font-size: 12px; color: var(--on-3); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.seg button { min-width: 38px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--on-2); font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s; }
.seg button:hover { color: var(--on); }
.seg button[aria-checked='true'] { background: var(--on); color: var(--night); }
.seg-wrap { display: flex; }
.seg-wrap button { flex: 1 1 auto; }
.boxsize { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px dashed var(--line-2); font-size: 13px; color: var(--on-2); }
.boxsize .bs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.boxsize b { font: 500 16px var(--mono); color: var(--on); letter-spacing: .01em; }
.boxsize .warn { margin-top: 8px; color: #FFB4D8; }
.boxsize .fields { margin-top: 10px; }
.boxsize .link { font-size: 12.5px; }

.kind-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kchip { position: relative; display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: left; color: var(--on-2); transition: border-color .2s, background .2s, color .2s; }
.kchip:hover { border-color: var(--line-2); color: var(--on); }
.kchip[aria-checked='true'] { border-color: rgba(229, 0, 126, .7); background: rgba(229, 0, 126, .1); color: var(--on); }
.kchip .kimg { width: 54px; height: 44px; border-radius: 9px; background: radial-gradient(80% 80% at 50% 60%, rgba(255, 255, 255, .1), transparent 70%); display: grid; place-items: center; overflow: hidden; }
.kchip .kimg img { width: 100%; height: 100%; object-fit: contain; }
.kchip b { display: block; font-size: 13.5px; font-weight: 600; color: inherit; line-height: 1.2; }
.kchip small { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--on-3); margin-top: 2px; }
.kchip .rec { position: absolute; top: -7px; right: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 9.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kind-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 12px; }
.kind-opts:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--on-2); font-size: 13.5px; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { color: var(--on); border-color: rgba(255, 255, 255, .3); }
.chip[aria-checked='true'], .chip[aria-pressed='true'] { background: var(--on); color: var(--night); border-color: var(--on); }
.chip i { width: 14px; height: 14px; border-radius: 50%; flex: none; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: left; color: var(--on-2); transition: border-color .2s, background .2s; }
.board:hover { border-color: var(--line-2); }
.board[aria-checked='true'] { border-color: rgba(229, 0, 126, .7); background: rgba(229, 0, 126, .1); color: var(--on); }
.board i { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -8px 12px rgba(0, 0, 0, .12); }
.board b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.board small { display: block; font-size: 11.5px; color: var(--on-3); line-height: 1.3; margin-top: 1px; }
.board:disabled { opacity: .35; cursor: not-allowed; }

.colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.colors:has(button[disabled]) { opacity: .4; }
.sw-c { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); padding: 0; transition: transform .2s; }
.sw-c:hover { transform: scale(1.1); }
.sw-c[aria-checked='true'] { border-color: var(--on); box-shadow: 0 0 0 2px var(--night), inset 0 0 0 1px rgba(0, 0, 0, .2); }
.sw-own { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sw-own input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.logo-row { display: flex; gap: 8px; margin-top: 14px; }
.logo-row input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--on); outline: none; font-size: 14px; }
.logo-row input:focus { border-color: var(--accent); }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.fins { display: flex; flex-direction: column; gap: 12px; }
.fin-g { display: flex; flex-direction: column; gap: 7px; }
.fin-g > span { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-3); }
.fin-g .chip i.foil { background: linear-gradient(135deg, #7d5f22, #f3dc97 45%, #a7822f 70%, #ecd38c); }
.fin-g .chip i.silver { background: linear-gradient(135deg, #8b9097, #f4f6f8 45%, #a5abb3 70%, #e6e9ec); }
.fin-g .chip i.copper { background: linear-gradient(135deg, #7a3f1c, #f0b182 45%, #a45a2c, #e39b6b); }
.fin-g .chip i.holo { background: conic-gradient(from 30deg, #ff9ad5, #9ad7ff, #b3ffcf, #fff59a, #ffb08a, #ff9ad5); }

.qty-own { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--on-2); }
.qty-own input { width: 110px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--on); outline: none; font: 500 14px var(--mono); }
.qty-own input:focus { border-color: var(--accent); }

.summary .spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
.spec dt { color: var(--on-3); }
.spec dd { margin: 0; color: var(--on); }
.sheet { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.sheet .sh-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--on-2); margin-bottom: 10px; }
.sheet .sh-top b { font: 600 15px var(--sans); color: var(--on); }
.sheet svg { width: 100%; height: auto; }
.sheet .tip { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 237, 0, .08); border: 1px solid rgba(255, 237, 0, .22); color: #FFF4A8; font-size: 12.5px; line-height: 1.45; }
.sheet .note2 { margin-top: 8px; font-size: 11.5px; color: var(--on-3); }
.tl { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tl div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tl span { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-3); }
.tl b { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--on); line-height: 1.25; }
.tl-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--on-3); padding: 2px 2px 0; border: 0 !important; background: none !important; }
.note { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--on-2); }
.note textarea { resize: vertical; min-height: 70px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--on); outline: none; font-size: 14px; line-height: 1.45; }
.note textarea:focus { border-color: var(--accent); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cta .btn { padding: 0 12px; }
.cta-2 { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }

/* ---------- креслення ---------- */
.dl-cut { fill: rgba(255, 255, 255, .025); stroke: #F2EFE8; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dl-glue { fill: url(#hatch); }
.dl-erase { stroke: #0B0C0E; stroke-width: 3; vector-effect: non-scaling-stroke; }
.dl-crease { stroke: #E5007E; stroke-width: 1.25; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; fill: none; }
.dl-hole { fill: #0B0C0E; stroke: #F2EFE8; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.dl-dim { stroke: #00A0E3; stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.dl-dimt { fill: #7FD3F7; font-family: var(--mono); }
.dl-lab { fill: rgba(242, 239, 232, .55); font-family: var(--mono); text-anchor: middle; dominant-baseline: middle; }
.dl-title { fill: rgba(242, 239, 232, .8); font-family: var(--mono); }
.dl-legend { position: absolute; left: clamp(20px, 3.2vw, 48px); top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px/1.4 var(--mono); color: var(--on-2); letter-spacing: .03em; }
.dl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dl-legend i { display: inline-block; width: 26px; height: 0; border-top: 1.5px solid var(--on); }
.dl-legend .lg-crease { border-top: 1.5px dashed var(--m); }
.dl-legend .lg-glue { height: 10px; border: 0; background: repeating-linear-gradient(45deg, rgba(255, 237, 0, .6) 0 2px, transparent 2px 5px); }
.dl-legend .lg-note { color: var(--on-3); }
.stage.flat-on .stage-copy { opacity: 0; }

/* ---------- світлі розділи ---------- */
.sec { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.sec-alt { background: var(--paper-2); }
.sec-dark { background: var(--night); color: var(--on); }
.sec-dark .kicker { color: var(--on-3); }
.sec.sec-dark .lede { color: var(--on-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head .kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.sec h2 { font: 600 clamp(38px, 4.4vw, 64px)/1.02 var(--serif); letter-spacing: -.01em; }
.sec .lede { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

.facts { background: var(--night); color: var(--on); border-top: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts-row div { padding: 30px 22px 32px; border-left: 1px solid var(--line); }
.facts-row div:first-child { border-left: 0; padding-left: 0; }
.facts-row b { display: block; font: 600 44px/1 var(--serif); letter-spacing: -.01em; }
.facts-row span { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--on-2); }

.kind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: left; border: 0; padding: 0; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.kcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(30, 20, 10, .04), 0 34px 60px -30px rgba(40, 28, 12, .38); }
.kcard .kc-img { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(75% 70% at 50% 62%, #FFFFFF 0%, #EFEAE0 60%, #E6E0D3 100%); display: grid; place-items: center; }
.kcard .kc-img img { width: 100%; height: 100%; object-fit: contain; }
.kcard .kc-code { position: absolute; left: 14px; top: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kcard .kc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kcard .kc-h { font: 600 28px/1.05 var(--serif); }
.kcard .kc-tag { font-size: 13px; color: var(--accent); font-weight: 500; }
.kcard .kc-p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.kcard .kc-how { font-size: 13px; color: var(--ink-3); }
.kcard .kc-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.kcard .kc-go::after { content: '→'; transition: transform .2s; }
.kcard:hover .kc-go::after { transform: translateX(4px); }

.ins-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.icard { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; border: 0; padding: 0; text-align: left; color: var(--ink); transition: transform .3s; }
.icard:hover { transform: translateY(-4px); }
.icard .ic-img { display: block; aspect-ratio: 1; background: radial-gradient(75% 70% at 50% 60%, #22252C 0%, #15171C 70%, #0F1014 100%); }
.icard .ic-img img { width: 100%; height: 100%; object-fit: contain; }
.icard .ic-body { display: block; padding: 16px 18px 20px; }
.icard .ic-h { display: block; font: 600 22px/1.1 var(--serif); }
.icard .ic-p { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.icard small { display: block; margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- зразки оздоблення ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sw { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--night-2); color: var(--on); text-align: left; transition: transform .3s, border-color .3s; }
.sw:hover { transform: translateY(-4px); border-color: var(--line-2); }
.sw-face { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; }
.sw-logo { font: 600 26px/1 var(--sans); letter-spacing: .32em; padding-left: .32em; }
.sw-cap { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.sw-cap b { font: 600 22px/1.1 var(--serif); }
.sw-cap span { font-size: 13.5px; color: var(--on-2); line-height: 1.5; }
.sw-soft .sw-face { background: radial-gradient(120% 90% at 30% 20%, #3A3D45 0%, #24262C 55%, #1A1B20 100%); }
.sw-soft .sw-logo { color: rgba(255, 255, 255, .78); }
.sw-soft .sw-face::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 80%, rgba(255, 255, 255, .06), transparent 70%); opacity: 0; transition: opacity .6s; }
.sw-soft:hover .sw-face::after { opacity: 1; }
.sw-spot .sw-face { background: #141519; }
.sw-spot .sw-logo { color: transparent; background: linear-gradient(110deg, #44464e 30%, #a9aab2 46%, #ffffff 50%, #a9aab2 54%, #44464e 70%); background-size: 260% 100%; background-position: 92% 0; -webkit-background-clip: text; background-clip: text; transition: background-position 1.2s ease; }
.sw-spot:hover .sw-logo { background-position: 0 0; }
.sw-gold .sw-face { background: radial-gradient(120% 100% at 30% 20%, #1D2A44 0%, #121A2C 70%); }
.sw-silver .sw-face { background: radial-gradient(120% 100% at 30% 20%, #2B2E35 0%, #17191E 70%); }
.sw-copper .sw-face, .sw-deboss .sw-face { background: radial-gradient(120% 100% at 30% 20%, #C7A072 0%, #A98156 75%); }
.sw-gold .sw-logo, .sw-silver .sw-logo, .sw-copper .sw-logo, .sw-holo .sw-logo { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 240% 100%; background-position: 90% 0; transition: background-position 1.4s ease; }
.sw:hover .sw-logo { background-position: 10% 0; }
.sw-gold .sw-logo { background-image: linear-gradient(105deg, #8C6B2A 0%, #E9CF86 22%, #FFF3C6 30%, #B8913F 42%, #E9CF86 60%, #FFF0BC 70%, #9C7A33 85%); }
.sw-silver .sw-logo { background-image: linear-gradient(105deg, #7d838b 0%, #e7eaee 22%, #ffffff 30%, #a3a9b1 42%, #dfe3e7 60%, #ffffff 70%, #868c94 85%); }
.sw-copper .sw-logo { background-image: linear-gradient(105deg, #6E3615 0%, #E7A274 22%, #FFD9BC 30%, #A65A2B 42%, #E09766 60%, #FFD2B0 70%, #7E4019 85%); }
.sw-holo .sw-face { background: radial-gradient(120% 100% at 30% 20%, #ECEEF2 0%, #CDD2DA 80%); }
.sw-holo .sw-logo { background-image: linear-gradient(105deg, #9fb3c8, #ff9ad5 15%, #9ad7ff 30%, #b3ffcf 45%, #fff59a 60%, #ffb08a 75%, #c9a6ff 90%); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.sw-emboss .sw-face { background: radial-gradient(120% 100% at 30% 20%, #F7F4EE 0%, #E7E2D8 80%); }
.sw-emboss .sw-logo { color: #ECE7DE; text-shadow: -1px -1px 0 rgba(255, 255, 255, .95), 1.5px 1.5px 1px rgba(90, 70, 40, .35), 3px 4px 8px rgba(90, 70, 40, .18); }
.sw-deboss .sw-logo { color: #B08A5E; text-shadow: 1px 1px 0 rgba(255, 235, 200, .45), -1px -1px 1px rgba(60, 35, 10, .55); }
.sw-more { margin-top: 26px; color: var(--on-3); font-size: 14px; }

/* ---------- ціна ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.price-grid article { background: var(--card); padding: 28px 28px 32px; }
.price-grid .n, .steps .n { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.price-grid h3 { margin-top: 14px; font: 600 26px/1.1 var(--serif); }
.price-grid p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.save { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; padding: 28px; border-radius: var(--r); background: var(--night); color: var(--on); }
.save h3 { font: 600 32px/1.05 var(--serif); }
.save p { margin-top: 12px; color: var(--on-2); }
.save-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.save-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--on-2); }
.save-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--y); }
.save-list li:nth-child(2)::before { background: var(--c); }
.save-list li:nth-child(3)::before { background: var(--m); }
.save-sheet svg { width: 100%; height: auto; }

/* ---------- процес ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px 22px 26px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.steps h3 { margin-top: 14px; font: 600 26px/1.1 var(--serif); }
.steps p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.promise { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise div { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--rule); }
.promise h3 { font-size: 17px; font-weight: 600; }
.promise p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- виробництво ---------- */
.chain { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--ink); }
.chain li { position: relative; padding: 18px 12px 0 0; }
.chain li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.chain li:nth-child(4n+1)::before { background: var(--c); }
.chain li:nth-child(4n+2)::before { background: var(--m); }
.chain li:nth-child(4n+3)::before { background: var(--y); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.chain b { display: block; font-size: 15px; font-weight: 600; }
.chain span { display: block; margin-top: 4px; font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eq-grid article { padding: 22px 22px 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.eq-grid h3 { margin-top: 12px; font: 600 23px/1.12 var(--serif); }
.eq-grid p:last-child { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.plant-note { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- галузі ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 0; text-align: left; color: var(--ink); transition: transform .3s; }
.ind:hover { transform: translateY(-4px); }
.ind .ind-h { font: 600 24px/1.1 var(--serif); }
.ind .ind-p { font-size: 14px; color: var(--ink-2); }
.ind .ind-go { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; }
.ind .ind-go::after { content: ' →'; }

/* ---------- пакети ---------- */
.bags { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bag-spec { margin: 28px 0 30px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.bag-spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.bag-spec dt { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bag-spec dd { margin: 0; font-size: 15px; }
.bags-art { border-radius: var(--r); background: radial-gradient(80% 80% at 50% 45%, #FFFFFF 0%, #EFE9DE 70%); padding: 20px; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--sans); color: var(--ink-3); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- контакти ---------- */
.contact-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.contact .cta.big { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.card-person { padding: 28px; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--line); }
.card-person .pname { margin-top: 10px; font: 600 40px/1 var(--serif); }
.card-person ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.card-person li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.card-person li > span:first-child { font: 500 11.5px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-3); }
.card-person a { text-decoration: none; }
.card-person a:hover { color: #fff; text-decoration: underline; }

.foot { background: var(--night); color: var(--on-3); border-top: 1px solid var(--line); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 18px; height: auto; }

.mbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--on); color: var(--night); font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
  .menu { gap: 16px; }
  .menu a:nth-child(n+6) { display: none; }
  .kind-grid, .eq-grid, .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .ins-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .chain { grid-template-columns: repeat(4, 1fr); row-gap: 26px; border-top: 0; }
  .chain li { border-top: 1px solid var(--ink); }
}
@media (max-width: 1040px) {
  :root { --panel-w: 380px; }
  .menu { display: none; }
  .top-cta { margin-left: auto; }
  .stage-copy h1 { font-size: clamp(40px, 5vw, 56px); }
  .stage-copy .lede { display: none; }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .facts-row div:nth-child(4) { border-left: 0; padding-left: 0; }
  .sw-grid { grid-template-columns: repeat(2, 1fr); }
  .save { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --nav: 56px; }
  .top { padding: 0 14px; gap: 12px; }
  .logo b { font-size: 14px; }
  .studio { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .stage { position: relative; inset: auto; display: flex; flex-direction: column; }
  .stage-copy { position: relative; left: auto; top: auto; max-width: none; padding: 22px 16px 0; }
  .stage-copy .kicker { margin-bottom: 10px; }
  .stage-copy h1 { font-size: clamp(36px, 10vw, 48px); }
  .stage-copy .lede { display: block; font-size: 15px; margin-top: 10px; }
  .view { position: relative; inset: auto; height: min(56svh, 440px); min-height: 300px; }
  .stage-tag { left: 16px; bottom: 12px; }
  .stage-hint { left: 50%; bottom: auto; top: 14px; }
  .stage-tag b { font-size: 18px; }
  .stage-bar { position: relative; left: auto; right: auto; bottom: auto; margin: 0 12px 14px; max-width: none; flex-wrap: wrap; border-radius: 20px; gap: 8px; }
  .sb-fold { order: 2; flex-basis: calc(100% - 56px); }
  .sb-fold span { display: none; }
  .sb-group { order: 3; flex: 1 1 100%; justify-content: space-between; }
  .sb-btn { flex: 1; padding: 0 8px; }
  .dieline svg { top: 54px; left: 12px; width: calc(100% - 24px); height: calc(100% - 70px); }
  .dl-legend { left: 12px; top: 12px; gap: 6px 12px; font-size: 11px; }
  .dl-legend .lg-note { display: none; }
  .panel { position: relative; inset: auto; width: auto; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: var(--night-2); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; overflow: visible; }
  .panel-in { overflow: visible; padding: 0 16px 24px; }
  .panel-foot { display: none; }
  .prod-grid { grid-template-columns: repeat(5, 1fr); }
  .wrap { width: calc(100% - 32px); }
  .sec .lede { font-size: 16px; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row div { padding: 22px 14px 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-row div:nth-child(-n+2) { border-top: 0; }
  .facts-row div:last-child { grid-column: 1 / -1; }
  .facts-row b { font-size: 36px; }
  .kind-grid, .eq-grid, .ind-grid, .ins-grid, .steps, .promise, .price-grid { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .bags, .faq-wrap, .contact-in { grid-template-columns: 1fr; gap: 32px; }
  .mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(20, 22, 27, .92); border: 1px solid var(--line-2); color: var(--on-2); font: 500 12px/1.3 var(--mono); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(150%); transition: transform .35s; }
  .mbar.on { transform: none; }
  body { padding-bottom: 0; }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .kind-grid, .eq-grid, .ind-grid, .steps, .promise, .price-grid, .sw-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .pchip { font-size: 10.5px; padding: 8px 1px 7px; }
  .kind-pick, .boards { grid-template-columns: 1fr 1fr; }
  .kchip { grid-template-columns: 44px 1fr; gap: 8px; padding: 7px 8px 7px 7px; }
  .kchip .kimg { width: 44px; height: 38px; }
  .cta { grid-template-columns: 1fr 1fr; }
  .save { padding: 20px; }
  .bag-spec div { grid-template-columns: 96px 1fr; }
  .card-person li { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
