/* Prompt Journal Lab — прототип. Одна гарнітура на весь сайт (Arial або Inter), лише regular і bold.
   Три дизайни перемикаються атрибутом body[data-design]: gallery / index / cover. */
@font-face { font-family: "Heading Now"; src: url("fonts/HeadingNowVariable-Regular.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Thermo"; src: url("fonts/Thermo-Light.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #fff; --ink: #000; --dim: #8c8c8c; --ghost: #e6e6e6; --soft: #f3f3f3; --line: #e4e4e4;
  --acc: #0b57d6; --on: #fff; --r: 0px; --pink: #ff48d8;
  --f: Arial, Helvetica, sans-serif;
  --pad: clamp(16px, 2.4vw, 36px); --ease: cubic-bezier(.2, .7, .2, 1);
}
body[data-font="inter"] { --f: "Inter", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.4 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--acc); color: var(--on); }

.cap { font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; }
.dim { color: var(--dim); }
.big { font-weight: 700; letter-spacing: -.045em; line-height: .9; }
.dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-bottom: 7px; }
.dot.in::before { display: inline-block; margin: 0 7px 0 0; vertical-align: 1px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--pad); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); }
.logo { display: flex; gap: 9px; }
.lg { display: flex; }
.lg i { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -1.5px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 11px; line-height: 1; font-style: normal; font-weight: 700; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--dim); transition: color .2s; }
.top nav a.on, .top nav a:hover { color: var(--ink); }
.acc { justify-self: end; }
.acc::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--dim); vertical-align: 1px; }
.acc.sub::before { background: var(--acc); }

/* ---------- спільне: кнопки, фото ---------- */
.btn { display: inline-block; padding: 12px 18px; background: var(--ink); color: var(--bg); font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; border-radius: var(--r); transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--acc); color: var(--on); }
.btn:active { transform: scale(.98); }
.lnk { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lnk:hover { color: var(--acc); }
.row { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.ph { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; border-radius: var(--r); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
a:hover > .ph img, button:hover > .ph img { transform: scale(1.045); }
.ph.none { display: grid; place-items: center; color: var(--dim); }
.acs.sub, .acs.pack { color: var(--acc); }

.bar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 var(--pad) 22px; }
.bar h2 { font-size: clamp(30px, 4.4vw, 64px); }
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.chip { color: var(--dim); padding: 4px 0; }
.chip.on { color: var(--ink); }

/* ---------- сторінка колекції (спільна основа) ---------- */
.chead { position: relative; padding: clamp(18px, 3vw, 46px) var(--pad) clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; overflow: hidden; }
.crumb { grid-column: 1 / -1; position: relative; z-index: 1; }
.crumb a { color: var(--dim); }
.chead h1 { position: relative; z-index: 1; grid-column: 1 / 5; margin-top: clamp(30px, 6vw, 100px); font-size: clamp(44px, 8.6vw, 150px); overflow-wrap: anywhere; }
.side { position: relative; z-index: 1; grid-column: 5 / 7; align-self: end; display: flex; flex-direction: column; gap: 16px; }
.side p { font-size: 15px; line-height: 1.35; max-width: 34ch; }
.spec { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 0; }
.spec dt { color: var(--dim); }
.igrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 40px) clamp(10px, 1.2vw, 18px); padding: 0 var(--pad) clamp(60px, 8vw, 120px); }
.it { display: block; width: 100%; }
.it .nm { display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; }
.it .nm span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it.locked .ph img { filter: grayscale(1) contrast(.92) brightness(1.06); }
.it.locked:hover .ph img { filter: none; }
.it.locked .nm span:last-child { color: var(--dim); }

/* ---------- explore ---------- */
.mason { columns: 5 210px; column-gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--pad) 80px; }
.mason button { display: block; width: 100%; margin: 0 0 clamp(10px, 1.2vw, 18px); break-inside: avoid; position: relative; background: var(--soft); overflow: hidden; border-radius: var(--r); }
.mason img { width: 100%; transition: transform .9s var(--ease); }
.mason button:hover img { transform: scale(1.04); }
.mason .cap { position: absolute; left: 10px; bottom: 9px; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .25s; }
.mason button:hover .cap { opacity: 1; }

/* ---------- доступ ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); padding: 0 var(--pad) 40px; }
.plan { display: flex; flex-direction: column; gap: 14px; min-height: 380px; padding: 22px; background: var(--soft); border-radius: var(--r); }
.plan.main { background: var(--acc); color: var(--on); }
.plan.main .dim { color: inherit; opacity: .7; }
.plan h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.plan .price { margin-top: auto; font-size: clamp(72px, 9vw, 150px); }
.plan .price small { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; }
.plan p { max-width: 30ch; }
.plan.main .btn { background: var(--on); color: var(--acc); }
.plan.main .btn:hover { background: var(--ink); color: var(--bg); }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); padding: 20px var(--pad) 90px; }
.how p { margin-top: 8px; max-width: 34ch; color: var(--dim); }

/* ---------- картка ---------- */
.modal { position: fixed; inset: 0; z-index: 20; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px); }
.sheet { position: absolute; inset: clamp(0px, 2.4vw, 36px); background: var(--bg); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 44px); padding: clamp(16px, 2vw, 30px); box-shadow: 0 30px 90px rgba(0, 0, 0, .13); overflow: hidden; border-radius: var(--r); animation: up .45s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.shots { overflow-y: auto; scrollbar-width: none; display: grid; gap: 10px; align-content: start; }
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 100%; background: var(--soft); border-radius: var(--r); }
.info { position: relative; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding-right: 4px; }
.x { position: absolute; right: 0; top: 0; z-index: 3; }
.x:hover { color: var(--acc); }
.info h2 { margin-top: 18px; padding-right: 70px; font-size: clamp(32px, 4.2vw, 68px); overflow-wrap: anywhere; }
.pr { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.pr > .cap:first-child { font-weight: 700; padding-top: 3px; }
.prompt { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.params { display: grid; gap: 3px; }
.coded { font-size: 14px; line-height: 1.5; color: var(--ghost); overflow-wrap: anywhere; max-height: 9em; overflow: hidden; user-select: none; font-variant-numeric: tabular-nums; }
.locknote { display: grid; gap: 14px; max-width: 46ch; }

.toast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 30; padding: 11px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); }
.toast[hidden] { display: none; }
.foot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: end; padding: 40px var(--pad) 70px; }
.foot .scr { grid-column: 1 / 3; }
.foot > div:nth-child(2) { grid-column: 3 / 4; } .foot > div:nth-child(3) { grid-column: 4 / 6; } .foot > div:nth-child(4) { text-align: right; }
.foot a:hover { color: var(--acc); }

/* ---------- перемикач дизайнів ---------- */
.sw { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 40; display: flex; gap: 10px; }
.sw div { display: flex; gap: 2px; padding: 4px; background: #111; border-radius: 99px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.sw button { padding: 7px 12px; border-radius: 99px; color: #fff; font: 400 11px/1 Arial, sans-serif; white-space: nowrap; }
.sw button.on { background: #fff; color: #111; }

/* =====================================================================
   ДИЗАЙН 1 · GALLERY — за структурою slp.gallery: чорний фон, вузька
   центральна колонка, знак по центру, картки-рамки, мікропідписи
   ===================================================================== */
body[data-design="gallery"] { --bg: #000; --ink: #fff; --dim: rgba(255, 255, 255, .5); --ghost: #2b2b2b; --soft: #0d0d0d; --line: #232323; --acc: #fff; --on: #000; --r: 24px; font-size: 16px; }
body[data-design="gallery"] .cap { font-size: 10px; letter-spacing: .06em; }
.top .tag2 { display: none; }
body[data-design="gallery"] .top { grid-template-columns: 1fr auto 1fr; align-items: start; background: none; backdrop-filter: none; position: absolute; left: 0; right: 0; }
body[data-design="gallery"] .logo { align-items: flex-start; gap: 14px; }
body[data-design="gallery"] .top .tag2 { display: block; }
body[data-design="gallery"] .top nav a.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-right: 10px; }
body[data-design="gallery"] .top nav { gap: 40px; }
.g-wrap { width: min(880px, 100%); margin: 0 auto; padding-inline: 0; }
.g-hero { display: grid; justify-items: center; gap: 34px; padding: 74px 0 70px; }
.g-mark { width: 104px; height: 104px; perspective: 600px; }
.g-mark img { width: 100%; filter: invert(1); animation: coin 9s cubic-bezier(.45, 0, .2, 1) infinite; transform-style: preserve-3d; }
@keyframes coin { 0%, 18% { transform: rotateY(0) rotateZ(-8deg); } 50%, 68% { transform: rotateY(180deg) rotateZ(8deg); } 100% { transform: rotateY(360deg) rotateZ(-8deg); } }
.g-soc { display: flex; }
.g-soc a { display: grid; justify-items: center; gap: 5px; padding: 2px 44px; }
.g-soc a + a { border-left: 1px solid var(--line); }
.g-soc b { font-weight: 400; font-size: 16px; }
.g-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 22px; }
.g-bar h2 { font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 37px; padding-bottom: 120px; }
.g-card { display: block; }
.g-card .ph { aspect-ratio: 267 / 396; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: var(--soft); }
.g-card .ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); pointer-events: none; }
.g-card .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.g-card h3 { font-size: 16px; font-weight: 400; }
.g-card .sub { display: block; color: var(--dim); }
body[data-design="gallery"] .chead { display: block; width: min(880px, 100%); margin: 0 auto; padding: 150px 0 34px; }
body[data-design="gallery"] .crumb { display: none; }
body[data-design="gallery"] .chead h1 { margin: 0 0 18px; font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
body[data-design="gallery"] .chead h1::before { content: "All / "; color: var(--dim); }
body[data-design="gallery"] .side { display: block; }
body[data-design="gallery"] .side p { display: none; }
body[data-design="gallery"] .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: auto auto; gap: 0 16px; border-top: 1px solid var(--line); }
body[data-design="gallery"] .spec dt { padding: 8px 0; font-size: 10px; border-bottom: 1px solid var(--line); }
body[data-design="gallery"] .spec dd { padding: 10px 0; text-transform: none; font-size: 14px; letter-spacing: 0; border-bottom: 1px solid var(--line); }
body[data-design="gallery"] .side .row { padding-top: 18px; }
body[data-design="gallery"] .igrid { width: min(880px, 100%); margin: 0 auto; padding-inline: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 37px; }
body[data-design="gallery"] .it .ph { aspect-ratio: 1; border-radius: 24px; }
body[data-design="gallery"] .it .ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); pointer-events: none; }
body[data-design="gallery"] .it .nm { display: block; padding-top: 12px; text-transform: none; font-size: 16px; letter-spacing: 0; }
body[data-design="gallery"] .it .nm span:last-child { display: block; color: var(--dim); font-size: 14px; }
body[data-design="gallery"] .mason, body[data-design="gallery"] .plans, body[data-design="gallery"] .how { width: min(1100px, 100%); margin-inline: auto; }
body[data-design="gallery"] .sheet { inset: clamp(0px, 3vw, 44px); border-radius: 28px; box-shadow: 0 0 0 1px var(--line); background: #0a0a0a; padding: 0; gap: 0; }
body[data-design="gallery"] .shots { background: #000; } body[data-design="gallery"] .shots img { border-radius: 0; }
body[data-design="gallery"] .info { padding: 28px 30px; gap: 18px; }
body[data-design="gallery"] .x { right: 26px; top: 26px; }
body[data-design="gallery"] .info h2 { margin-top: 2px; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; font-weight: 400; }
body[data-design="gallery"] .info .spec { grid-template-columns: 120px minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
body[data-design="gallery"] .pr { display: block; padding: 16px 18px; border-radius: 12px; background: #141414; box-shadow: inset 0 0 0 1px var(--line); max-height: 240px; overflow: auto; }
body[data-design="gallery"] .pr > .cap:first-child { display: none; }
body[data-design="gallery"] .prompt, body[data-design="gallery"] .coded { font: 400 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
body[data-design="gallery"] .locknote { padding: 22px; border-radius: 14px; background: #d6d6d6; color: #000; max-width: none; }
body[data-design="gallery"] .locknote .cap { font-size: 22px; text-transform: none; letter-spacing: -.01em; }
body[data-design="gallery"] .locknote p { color: #555; }
body[data-design="gallery"] .locknote .btn { background: #000; color: #fff; }
body[data-design="gallery"] .btn { border-radius: 4px; text-transform: none; font-size: 13px; letter-spacing: 0; padding: 11px 16px; }
body[data-design="gallery"] .plan { border-radius: 24px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
body[data-design="gallery"] .plan.main { background: #d6d6d6; color: #000; } body[data-design="gallery"] .plan.main .btn { background: #000; color: #fff; }
body[data-design="gallery"] .dot::before { display: none; }
body[data-design="gallery"] .foot { width: min(880px, 100%); margin: 0 auto; padding-inline: 0; }

/* =====================================================================
   ДИЗАЙН 2 · INDEX — білий типографічний індекс
   ===================================================================== */
body[data-design="index"] { --acc: #000; --soft: #f5f5f3; }
.x-hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding: clamp(30px, 5vw, 80px) var(--pad) 26px; align-items: end; }
.x-hero h1 { grid-column: 1 / -1; font-size: clamp(64px, 15.4vw, 300px); line-height: .82; letter-spacing: -.065em; margin-left: -.045em; }
.x-hero p { grid-column: 1 / 3; font-size: 15px; max-width: 34ch; }
.x-hero .st b { display: block; font-size: 15px; font-weight: 700; }
.x-hero .st:first-of-type { grid-column: 4 / 5; }
.x-list { padding: 0 var(--pad) 100px; }
.x-head, .x-row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) minmax(0, 1.2fr) 70px 110px minmax(0, 1.6fr); gap: 16px; align-items: center; }
.x-head { padding: 10px 0; border-bottom: 1px solid var(--ink); color: var(--dim); }
.x-row { padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .25s; }
.x-row:hover { background: var(--soft); padding-left: 14px; padding-right: 14px; }
.x-row h3 { font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -.045em; line-height: 1; font-weight: 700; }
.x-row .th { display: flex; gap: 6px; justify-content: flex-end; }
.x-row .th img { width: 56px; height: 70px; object-fit: cover; filter: grayscale(1); transition: filter .3s, transform .5s var(--ease); }
.x-row:hover .th img { filter: none; }
.x-row:hover .th img:nth-child(2n) { transform: translateY(-6px); }
body[data-design="index"] .chead { padding-bottom: 20px; }
body[data-design="index"] .chead h1 { grid-column: 1 / -1; font-size: clamp(54px, 13vw, 250px); letter-spacing: -.065em; line-height: .82; margin-left: -.045em; }
body[data-design="index"] .side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: start; padding-top: 14px; border-top: 1px solid var(--ink); }
body[data-design="index"] .side p { grid-column: 1 / 3; }
body[data-design="index"] .side .spec { grid-column: 4 / 6; }
body[data-design="index"] .side .row { grid-column: 6 / 7; justify-content: flex-end; }
body[data-design="index"] .igrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 20px; padding-top: 30px; }
body[data-design="index"] .it .nm { padding-top: 10px; border-top: 1px solid var(--ink); margin-top: 10px; }
body[data-design="index"] .dot::before { display: none; }
body[data-design="index"] .plan.main { background: var(--ink); }
body[data-design="index"] .info h2 { letter-spacing: -.055em; }

/* =====================================================================
   ДИЗАЙН 3 · COVER — обкладинка журналу, розкидана сітка
   ===================================================================== */
.bin { position: absolute; margin: 0; font: 400 10px/1.05 var(--f); font-variant-numeric: tabular-nums; color: var(--ghost); white-space: pre; pointer-events: none; user-select: none; z-index: 0; overflow: hidden; }
.plus { position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 2; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; }
body:not([data-design="cover"]):not([data-design="journal"]):not([data-design="lab"]) :is(.bin, .plus) { display: none; }
.hero { position: relative; padding: clamp(10px, 2vw, 28px) var(--pad) clamp(40px, 6vw, 90px); }
.cover { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15.5vw, 250px); gap: clamp(8px, 1vw, 14px); z-index: 1; }
.cover .im { overflow: hidden; background: var(--soft); opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.cover .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cover .im:hover img { transform: scale(1.04); }
@keyframes rise { to { opacity: 1; transform: none; } }
.i1 { grid-area: 1 / 2 / 2 / 3; } .i2 { grid-area: 1 / 4 / 3 / 6; } .i3 { grid-area: 2 / 1 / 4 / 2; } .i4 { grid-area: 3 / 3 / 4 / 4; }
.i5 { grid-area: 2 / 6 / 4 / 7; } .i6 { grid-area: 4 / 4 / 6 / 5; } .i7 { grid-area: 5 / 6 / 6 / 7; }
.cover .t { position: relative; z-index: 2; align-self: start; }
.t-steps { grid-area: 1 / 1; } .t-date { grid-area: 1 / 6; justify-self: end; }
.t-ghost { grid-area: 1 / 3; color: var(--ghost); font-size: 12px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }
.t-handle { grid-area: 3 / 4 / 4 / 6; align-self: center; } .t-count { grid-area: 4 / 5; } .t-free { grid-area: 4 / 6; }
.lock { grid-area: 4 / 1 / 6 / 4; align-self: end; z-index: 3; position: relative; padding-top: 24px; font-size: clamp(40px, 7.6vw, 132px); line-height: .86; letter-spacing: -.055em; font-weight: 700; pointer-events: none; }
.hero .bin { left: 0; bottom: 4%; width: 62%; height: 58%; }
.chead .bin { right: 0; top: 0; width: 40%; height: 100%; }
.info .bin { right: 0; bottom: 0; width: 70%; height: 46%; }
.info > * { position: relative; z-index: 1; }
.info > .x { position: absolute; z-index: 3; }
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px) clamp(14px, 2vw, 32px); padding: 8px var(--pad) clamp(120px, 12vw, 190px); }
.cgrid > :nth-child(4n+2), .cgrid > :nth-child(4n+4) { transform: translateY(clamp(48px, 7vw, 110px)); }
.cc { display: block; }
.cc .meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-top: 12px; }
.cc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.cc .meta .cap:last-child { grid-column: 1 / -1; }

/* =====================================================================
   ДИЗАЙН 4 · ATELIER — за структурою benditomockup.com: білий, Inter,
   тонкий serif у заголовках, панелі-банери, фільтри текстом, великі фото
   ===================================================================== */
@font-face { font-family: "Cormorant"; src: url("fonts/Cormorant-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
body[data-design="atelier"] { --f: "Inter", Arial, sans-serif; --serif: "Cormorant", "Times New Roman", serif; --acc: #000; --soft: #e6e6e6; --line: #000; font-size: 15px; letter-spacing: -.015em; }
body[data-design="atelier"] .logo .lg { display: none; }
body[data-design="atelier"] .logo::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: #000; }
body[data-design="atelier"] .top nav a, body[data-design="atelier"] .acc { text-transform: lowercase; font-size: 22px; letter-spacing: -.02em; color: #000; }
body[data-design="atelier"] .top nav { gap: 18px; } body[data-design="atelier"] .acc::before { display: none; }
body[data-design="atelier"] :is(.chead h1, .info h2, .bar h2) { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.a-ban { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; padding: 70px var(--pad) 0; }
.a-ban > * { border: 1px solid #000; border-radius: 14px; min-height: clamp(260px, 30vw, 440px); }
.a-ban .p1 { background: var(--soft); padding: clamp(20px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; transition: background .25s; }
.a-ban .p1:hover { background: #dadada; }
.a-ban .p1 h2 { font: 500 clamp(34px, 3.6vw, 56px)/.95 var(--serif); letter-spacing: -.035em; margin-bottom: 14px; }
.a-ban .p1 li { list-style: none; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.22; letter-spacing: -.02em; }
.a-ban .p1 ul { margin: 0; padding: 0; } .a-ban .p1 small { font-size: 11px; max-width: 46ch; }
.a-ban .p2 { display: grid; place-items: center; font: 500 clamp(60px, 9.4vw, 170px)/.9 var(--serif); letter-spacing: -.05em; text-align: center; padding: 20px; }
.a-rows { padding: clamp(50px, 7vw, 110px) var(--pad) clamp(40px, 6vw, 90px); display: grid; gap: 22px; }
.a-rows > div { display: grid; grid-template-columns: 190px minmax(0, 760px); }
.a-rows a, .a-rows button { margin-right: 2px; } .a-rows a:hover, .a-rows button:hover, .a-rows .on { text-decoration: underline; text-underline-offset: 3px; }
.a-rows i { font-style: normal; color: #9a9a9a; }
.a-title { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad) 46px; }
.a-title h2 { font: 500 clamp(40px, 4.6vw, 72px)/1 var(--serif); letter-spacing: -.035em; }
.oval { display: inline-block; padding: 22px 34px; border: 1px solid #000; border-radius: 50%; text-decoration: underline; text-underline-offset: 3px; transform: rotate(-2deg); transition: transform .4s var(--ease); }
.oval:hover { transform: rotate(2deg) scale(1.04); }
.a-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 30px; padding: 0 var(--pad) 120px; }
.a-card .ph { aspect-ratio: 4 / 5; }
.a-card .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 17px; font-weight: 500; }
.a-card .sub { color: #9a9a9a; font-size: 17px; }
body[data-design="atelier"] .crumb { text-transform: lowercase; font-size: 14px; letter-spacing: -.01em; }
body[data-design="atelier"] .chead { padding-top: 40px; }
body[data-design="atelier"] .chead h1 { font-size: clamp(48px, 6.4vw, 110px); margin-top: 30px; }
body[data-design="atelier"] .side .btn { display: block; width: 100%; text-align: center; background: none; color: #000; border-block: 2px solid #000; border-radius: 0; padding: 16px; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: -.01em; }
body[data-design="atelier"] .side .btn:hover { background: #000; color: #fff; }
body[data-design="atelier"] .side .row { display: grid; gap: 12px; }
body[data-design="atelier"] .igrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 26px; }
body[data-design="atelier"] .it .nm { text-transform: none; font-size: 16px; letter-spacing: -.015em; font-weight: 500; }
body[data-design="atelier"] .info h2 { font-size: clamp(38px, 4vw, 64px); }
body[data-design="atelier"] .btn { text-transform: none; font-size: 14px; letter-spacing: -.01em; border-radius: 99px; padding: 13px 22px; }
body[data-design="atelier"] .plan { border: 1px solid #000; border-radius: 14px; background: none; } body[data-design="atelier"] .plan.main { background: var(--soft); color: #000; }
body[data-design="atelier"] .plan.main .btn { background: #000; color: #fff; }
body[data-design="atelier"] .price { font-family: var(--serif); font-weight: 500 !important; }
body[data-design="atelier"] .dot::before { display: none; }

/* =====================================================================
   ДИЗАЙН 5 · SCATTER — з дошки New Promt Journal: тихе поле кольору
   кістки, дрібні картинки розкидані з повітрям, мікропідписи
   ===================================================================== */
body[data-design="scatter"] { --bg: #ece8df; --ink: #1a1915; --dim: #8e897c; --ghost: #d9d4c7; --soft: #e2ddd1; --line: #cfc9bb; --acc: #1a1915; --on: #ece8df; font-size: 13px; }
body[data-design="scatter"] .top { background: none; backdrop-filter: none; }
.s-field { position: relative; height: max(640px, calc(100vh - 60px)); margin: 0 var(--pad); }
.s-im { position: absolute; display: block; transform: translate(-50%, -50%); transition: transform .6s var(--ease), z-index 0s .3s; z-index: 1; }
.s-im img { width: 100%; display: block; transition: filter .4s; }
.s-im:hover { transform: translate(-50%, -50%) scale(1.9); z-index: 6; transition: transform .6s var(--ease); }
.s-im span { position: absolute; left: 0; top: calc(100% + 5px); white-space: nowrap; font-size: 6px; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
.s-im:hover span { opacity: 1; }
.s-field:hover .s-im:not(:hover) img { filter: grayscale(1) opacity(.55); }
.s-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; pointer-events: none; }
.s-mid h1 { font-size: clamp(20px, 2vw, 30px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.s-mid p { margin-top: 10px; color: var(--dim); }
.s-tl { position: absolute; left: 0; top: 14px; } .s-br { position: absolute; right: 0; bottom: 18px; text-align: right; }
.s-field .ln { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.s-list { padding: 30px var(--pad) 120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; }
.s-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); transition: padding .3s var(--ease); }
.s-list a:hover { padding-left: 8px; }
body[data-design="scatter"] .chead h1 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin-top: 60px; }
body[data-design="scatter"] .side p { font-size: 13px; }
body[data-design="scatter"] .igrid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(22px, 3vw, 54px); padding-top: 50px; }
body[data-design="scatter"] .it:nth-child(3n+2) { transform: translateY(26px); } body[data-design="scatter"] .it:nth-child(5n+4) { transform: translateY(-18px); }
body[data-design="scatter"] .it .nm { font-size: 8px; padding-top: 6px; }
body[data-design="scatter"] .it .ph, body[data-design="scatter"] .ph { background: var(--soft); }
body[data-design="scatter"] .info h2 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 400; letter-spacing: -.03em; }
body[data-design="scatter"] .sheet { box-shadow: 0 30px 90px rgba(60, 50, 30, .16); }
body[data-design="scatter"] .dot::before { display: none; }
body[data-design="scatter"] .price { font-weight: 400 !important; }

/* =====================================================================
   ЄДИНИЙ ДИЗАЙН · JOURNAL — мова журналу Віки: обкладинка, сині крапки,
   хрестики, бінарна текстура; Explore — полотно, яке тягнеш (як на slp.gallery)
   ===================================================================== */
body[data-theme="dark"]:is([data-design="journal"], [data-design="lab"], [data-design="cover"], [data-design="index"]) { --bg: #000; --ink: #fff; --dim: #7c7c7c; --ghost: #232323; --soft: #101010; --line: #262626; --acc: #2f6dff; --on: #fff; }
body[data-theme="dark"]:is([data-design="journal"], [data-design="lab"], [data-design="cover"], [data-design="index"]) .sheet { box-shadow: 0 0 0 1px var(--line); }
body[data-theme="dark"] .scr { filter: none; }
.j-list { padding: 0 var(--pad) clamp(90px, 10vw, 160px); }
.j-list .x-head { border-bottom-color: var(--ink); }
.j-list .x-row h3 { display: flex; align-items: center; gap: 14px; }
.j-list .x-row h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); flex: none; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); margin-left: -23px; }
.j-list .x-row:hover h3::before { opacity: 1; transform: none; margin-left: 0; }
.j-list .x-row:hover { background: none; padding-left: 0; padding-right: 0; }
.j-list .x-row .th img { filter: none; width: 60px; height: 75px; }
.j-list .x-row:hover .th img:nth-child(2n) { transform: translateY(-8px); }
.j-list .x-row:hover .th img:nth-child(2n+1) { transform: translateY(6px); }

/* полотно Explore */
.cv { position: relative; height: calc(100vh - 52px); overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: var(--bg); }
.cv.drag { cursor: grabbing; }
.cv-in { position: absolute; left: 0; top: 0; will-change: transform; }
.cv-it { position: absolute; display: block; text-align: left; }
.cv-fr { position: relative; display: block; border: 1px solid var(--line); background: var(--soft); transition: border-color .25s; }
.cv-fr img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cv-fr i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); transform: translate(-50%, -50%) scale(0); transition: transform .3s var(--ease); z-index: 2; }
.cv-fr i:nth-child(1) { left: 0; top: 0; transform: translate(-50%, -50%); } .cv-fr i:nth-child(2) { left: 100%; top: 0; }
.cv-fr i:nth-child(3) { left: 0; top: 100%; } .cv-fr i:nth-child(4) { left: 100%; top: 100%; transform: translate(-50%, -50%); }
.cv-it:hover .cv-fr { border-color: var(--ink); } .cv-it:hover .cv-fr i { transform: translate(-50%, -50%); }
.cv-it:hover { z-index: 3; }
.cv-cap { display: block; padding-top: 12px; }
.cv-cap b { display: block; font-weight: 400; font-size: 15px; letter-spacing: -.01em; text-transform: none; margin-top: 2px; }
.cv-deco { position: absolute; pointer-events: none; }
.cv-deco.gh { color: var(--ghost); font-weight: 700; font-size: 30px; line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em; }
.cv-deco.bn { font: 400 10px/1.05 var(--f); font-variant-numeric: tabular-nums; color: var(--ghost); white-space: pre; }
.cv .plus { display: block !important; }
.cv-ui { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; padding: 9px 14px; background: var(--bg); border: 1px solid var(--line); }
.cv-ui button { color: var(--dim); } .cv-ui button.on { color: var(--ink); }
.cv-hint { position: absolute; left: var(--pad); bottom: 22px; z-index: 4; pointer-events: none; }
.cv-pos { position: absolute; right: var(--pad); bottom: 22px; z-index: 4; pointer-events: none; font-variant-numeric: tabular-nums; }
body.on-canvas .foot { display: none; } body.on-canvas { overflow: hidden; }
.sw { left: auto; right: 14px; transform: none; }
@media (max-width: 820px) { .j-list .x-row h3::before { display: none; } .cv-hint { display: none; } .sw { right: 8px; bottom: 8px; flex-direction: row; } .cv-ui { bottom: 54px; } }

@media (max-width: 820px) {
  .top { grid-template-columns: auto 1fr; row-gap: 10px; }
  .top nav { grid-column: 1 / -1; order: 3; gap: 22px; }
  .bar { flex-direction: column; align-items: flex-start; }
  .chead { grid-template-columns: minmax(0, 1fr); } .chead h1, .side, .crumb { grid-column: 1; } .chead h1 { font-size: 15vw; }
  .igrid, body[data-design="index"] .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mason { columns: 2; }
  .plans, .how { grid-template-columns: minmax(0, 1fr); } .plan { min-height: 280px; }
  .sheet { inset: 0; grid-template-columns: minmax(0, 1fr); overflow-y: auto; align-content: start; border-radius: 0 !important; }
  .shots { display: flex; overflow-x: auto; overflow-y: hidden; } .shots img { width: 84%; flex: none; }
  .info { overflow: visible; padding-bottom: 60px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > * { grid-column: auto !important; text-align: left !important; }
  .sw { flex-direction: column; align-items: center; gap: 6px; } .sw button { padding: 7px 9px; }
  .g-wrap { padding-inline: 16px; } .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } .g-card .ph { border-radius: 16px; }
  .top .tag2 { display: none !important; }
  .a-ban { grid-template-columns: minmax(0, 1fr); } .a-ban .p2 { font-size: 15vw; min-height: 170px; } .a-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .a-grid, body[data-design="atelier"] .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .s-field { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 14px; padding: 90px 16px 40px; } .s-field .s-im { position: static; width: auto !important; transform: none !important; }
  .s-mid { position: static; grid-column: 1 / -1; transform: none; order: -1; padding-bottom: 20px; } .s-tl, .s-br, .s-field .ln { display: none; }
  body[data-design="scatter"] .igrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 14px; }
  body[data-design="gallery"] .side, body[data-design="index"] .side { grid-template-columns: minmax(0, 1fr); }
  body[data-design="index"] .side > * { grid-column: 1 !important; justify-content: flex-start !important; }
  body[data-design="gallery"] .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-template-rows: none; }
  .x-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .x-hero p { grid-column: 1 / -1; } .x-hero .st:first-of-type { grid-column: auto; }
  .x-head { display: none; } .x-row { grid-template-columns: 30px minmax(0, 1fr) auto; } .x-row > :nth-child(3), .x-row > :nth-child(4), .x-row .th { display: none; }
  .cover { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 33vw; }
  .i1 { grid-area: 1 / 2 / 2 / 3; } .i2 { grid-area: 2 / 2 / 4 / 4; } .i3 { grid-area: 2 / 1 / 3 / 2; } .i4 { grid-area: 4 / 1 / 5 / 2; } .i5 { grid-area: 1 / 3 / 2 / 4; } .i6 { grid-area: 6 / 3 / 7 / 4; } .i7 { display: none; }
  .t-date, .t-ghost, .t-free { display: none; } .t-handle { grid-area: 4 / 2 / 5 / 4; } .t-count { grid-area: 3 / 1; }
  .lock { grid-area: 5 / 1 / 7 / 4; font-size: 17.5vw; } .hero .bin { width: 80%; height: 34%; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 90px; }
  .cgrid > :nth-child(4n+2), .cgrid > :nth-child(4n+4) { transform: none; } .cgrid > :nth-child(2n) { transform: translateY(42px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .cover .im { opacity: 1; transform: none; } }

/* ---------- гострі кути в усіх дизайнах (скруглення лишаються тільки в кіл) ---------- */
body :is(.ph, .ph::after, .g-card .ph, .it .ph, .it, .sheet, .shots img, .pr, .locknote, .plan, .btn, .toast, .mason button, .a-ban > *, .cover .im, .tile) { border-radius: 0 !important; }
body .ph::after { border-radius: 0 !important; }

/* ---------- JOURNAL v2: сміливіша обкладинка, більше повітря ---------- */
.jh { position: relative; min-height: calc(100vh - 52px); padding: 18px var(--pad) clamp(60px, 8vw, 130px); overflow: hidden; }
.jh .bin { right: -2%; top: 6%; width: 58%; height: 78%; font-size: 12px; }
.jh-top { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.jh-top > :nth-child(1) { grid-column: 1 / 3; } .jh-top > :nth-child(2) { grid-column: 4 / 7; color: var(--ghost); font-weight: 700; font-size: 12px; line-height: 1.15; text-transform: uppercase; }
.jh-top > :nth-child(3) { grid-column: 8 / 10; } .jh-top > :nth-child(4) { grid-column: 11 / 13; text-align: right; }
.jh-type { position: relative; z-index: 1; margin: clamp(26px, 4vw, 60px) 0 0; font-weight: 700; text-transform: uppercase; font-size: clamp(70px, 16.6vw, 330px); line-height: .8; letter-spacing: -.075em; margin-left: -.05em; }
.jh-type span { display: block; }
.jh-type span:nth-child(2) { padding-left: 9vw; }
.jh-type span:nth-child(3) { padding-left: 4vw; color: var(--acc); }
.jh-im { position: absolute; z-index: 3; display: block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
.jh-im .cv-fr { height: 100%; border-color: transparent; background: var(--soft); }
.jh-im:hover .cv-fr { border-color: var(--ink); } .jh-im:hover .cv-fr i { transform: translate(-50%, -50%); }
.jh-im .cap { display: block; padding-top: 8px; opacity: 0; transition: opacity .25s; }
.jh-im:hover .cap { opacity: 1; }
.jh-im.a { left: 55.5%; top: 9%; width: 12.5vw; height: 15.6vw; }
.jh-im.b { left: 4.5%; top: 39%; width: 9.4vw; height: 11.8vw; }
.jh-im.c { left: 71%; top: 30%; width: 24vw; height: 30vw; }
.jh-im.d { left: 35%; top: 66%; width: 8vw; height: 10vw; }
.jh-im.e { left: 50%; top: 58%; width: 13.5vw; height: 17vw; }
.jh-lab { position: absolute; z-index: 4; }
.jh-lab.l1 { left: 30%; top: 47%; } .jh-lab.l2 { left: 88%; top: 13%; } .jh-lab.l3 { left: 21%; top: 84%; } .jh-lab.l4 { right: var(--pad); bottom: 30px; text-align: right; }
.jh .plus { z-index: 4; }
.j-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: clamp(60px, 9vw, 150px) var(--pad) clamp(30px, 4vw, 60px); }
.j-bar h2 { font-size: clamp(54px, 10vw, 190px); font-weight: 700; letter-spacing: -.07em; line-height: .8; text-transform: uppercase; margin-left: -.05em; }
.j-bar h2 sup { font-size: .16em; letter-spacing: 0; font-weight: 400; vertical-align: top; position: relative; top: .5em; margin-left: .5em; }
.j-list { position: relative; }
.j-list .x-head, .j-list .x-row { grid-template-columns: 44px minmax(0, 3fr) minmax(0, 1fr) 70px 110px; }
.j-list .x-row { position: relative; padding: clamp(18px, 2vw, 30px) 0; }
.j-list .x-row h3 { font-size: clamp(34px, 5.6vw, 96px); letter-spacing: -.06em; line-height: .9; text-transform: uppercase; }
.j-list .x-row .pv { position: absolute; right: 16%; top: 50%; width: clamp(150px, 17vw, 270px); aspect-ratio: 4 / 5; z-index: 5; pointer-events: none; opacity: 0; transform: translateY(-46%) rotate(4deg) scale(.92); transition: opacity .25s, transform .5s var(--ease); }
.j-list .x-row .pv img { width: 100%; height: 100%; object-fit: cover; }
.j-list .x-row .pv i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); left: -4px; top: -4px; } .j-list .x-row .pv i + i { left: auto; top: auto; right: -4px; bottom: -4px; }
.j-list .x-row:hover .pv { opacity: 1; transform: translateY(-50%) rotate(-3deg); }
.j-list .x-row:nth-child(odd) .pv { right: 30%; }
.j-list:hover .x-row:not(:hover) h3 { color: var(--ghost); }
.j-list .x-row h3 { transition: color .25s; }
.j-end { position: relative; padding: clamp(40px, 7vw, 120px) var(--pad) 0; overflow: hidden; }
.j-end .big { font-size: clamp(60px, 15vw, 290px); text-transform: uppercase; letter-spacing: -.07em; line-height: .78; color: var(--ghost); margin-left: -.05em; }
.j-end a { position: absolute; left: var(--pad); top: clamp(40px, 7vw, 120px); }

/* ---------- GALLERY: трохи сміливіше ---------- */
body[data-design="gallery"] { --acc: #2f6dff; }
.g-hero { position: relative; }
.g-mark { width: clamp(130px, 13vw, 190px); height: clamp(130px, 13vw, 190px); }
.g-ghost { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: clamp(70px, 15vw, 250px); font-weight: 700; letter-spacing: -.07em; line-height: .8; text-transform: uppercase; color: #121212; white-space: nowrap; z-index: -1; pointer-events: none; }
.g-card { position: relative; }
.g-card .ph i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); z-index: 3; transform: scale(0); transition: transform .3s var(--ease); }
.g-card .ph { overflow: visible; } .g-card .ph img { position: relative; z-index: 1; }
.g-card .ph i:nth-of-type(1) { left: -4px; top: -4px; } .g-card .ph i:nth-of-type(2) { right: -4px; top: -4px; } .g-card .ph i:nth-of-type(3) { left: -4px; bottom: -4px; } .g-card .ph i:nth-of-type(4) { right: -4px; bottom: -4px; }
.g-card:hover .ph i { transform: none; }
.g-card:hover .ph img { transform: none !important; }
.g-card .no { position: absolute; left: 12px; top: 10px; z-index: 3; color: #fff; mix-blend-mode: difference; }
.g-grid > :nth-child(3n+2) { margin-top: 70px; }
body[data-design="gallery"] .g-bar h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; }

/* ---------- ATELIER: більше Віки ---------- */
body[data-design="atelier"] { --acc: #0b57d6; }
body[data-design="atelier"] .logo::before { background: var(--acc); }
.a-ban .p2 { position: relative; overflow: hidden; }
.a-ban .p2 .bin { display: block !important; left: 0; top: 0; width: 100%; height: 100%; }
.a-ban .p2 .plus { display: block !important; }
.a-ban .p2 span { position: relative; z-index: 2; }
.a-ban .p2 img { position: absolute; right: 22px; bottom: 18px; width: clamp(60px, 7vw, 110px); z-index: 2; }
.a-ban .p2 small { position: absolute; left: 22px; top: 18px; z-index: 2; font: 400 11px/1.35 var(--f); letter-spacing: .04em; text-transform: uppercase; text-align: left; }
.a-ban .p2 small::before, .a-rows > div > span:first-child::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-bottom: 7px; }
.a-rows > div > span:first-child::before { display: inline-block; margin: 0 8px 0 0; }
.a-card { position: relative; }
.a-card:hover .ph::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); z-index: 2; }
.a-card .ph { overflow: visible; } .a-card .ph img { transition: none; } .a-card:hover .ph img { transform: none; }
.oval { border-color: var(--acc); color: var(--acc); }
@media (max-width: 820px) {
  .jh-im { position: relative; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; }
  .jh-ims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; } .jh-im.d, .jh-im.e { display: none; }
  .jh-lab, .jh-top > :nth-child(2), .jh-top > :nth-child(3) { display: none; } .jh-top > :nth-child(4) { grid-column: 8 / 13; } .jh-top > :nth-child(1) { grid-column: 1 / 7; }
  .jh { min-height: 0; } .jh-type span:nth-child(2) { padding-left: 8vw; }
  .j-list .x-head, .j-list .x-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .j-list .x-row > :nth-child(3), .j-list .x-row > :nth-child(4), .j-list .pv { display: none; }
  .g-grid > :nth-child(3n+2) { margin-top: 0; } .g-ghost { display: none; }
}

/* ---------- JOURNAL: «стандартні» сторінки — мікротипографія й нестандартна сітка ---------- */
.mt { font-size: 9px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.jc { position: relative; padding: 18px var(--pad) clamp(40px, 6vw, 90px); overflow: hidden; }
.jc .bin { right: 0; top: 0; width: 46%; height: 100%; font-size: 12px; }
.jc-top { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.jc-top > :nth-child(1) { grid-column: 1 / 3; } .jc-top > :nth-child(2) { grid-column: 4 / 6; } .jc-top > :nth-child(3) { grid-column: 7 / 9; } .jc-top > :nth-child(4) { grid-column: 10 / 12; } .jc-top > :nth-child(5) { grid-column: 12 / 13; text-align: right; }
.jc-top a { color: var(--dim); }
.jc-no { position: absolute; right: var(--pad); top: clamp(60px, 9vw, 150px); font-size: clamp(120px, 26vw, 520px); font-weight: 700; letter-spacing: -.08em; line-height: .74; color: var(--ghost); z-index: 0; pointer-events: none; }
.jc-t { position: relative; z-index: 2; margin: clamp(70px, 13vw, 230px) 0 0 -.05em; font-size: clamp(54px, 13.4vw, 270px); font-weight: 700; text-transform: uppercase; letter-spacing: -.075em; line-height: .78; overflow-wrap: anywhere; }
.jc-t sup { font-size: .1em; font-weight: 400; letter-spacing: 0; vertical-align: top; position: relative; top: 1.2em; margin-left: .8em; }
.jc-meta { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 4vw, 60px); align-items: start; }
.jc-meta p { grid-column: 1 / 5; font-size: clamp(15px, 1.5vw, 22px); line-height: 1.22; letter-spacing: -.02em; }
.jc-meta dl { grid-column: 7 / 10; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 0; }
.jc-meta dt { color: var(--dim); } .jc-meta .buy { grid-column: 10 / 13; display: grid; gap: 12px; justify-items: start; }
.jc-rule { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 10px var(--pad); border-top: 1px solid var(--ink); margin-top: 0; }
.jc-rule > :nth-child(1) { grid-column: 1 / 4; } .jc-rule > :nth-child(2) { grid-column: 7 / 10; } .jc-rule > :nth-child(3) { grid-column: 10 / 13; text-align: right; }
.jg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(46px, 5vw, 90px) clamp(12px, 1.4vw, 22px); padding: clamp(30px, 4vw, 60px) var(--pad) clamp(90px, 10vw, 160px); align-items: start; }
.jg .ji { position: relative; display: block; width: 100%; }
.jg .ji .cv-fr { aspect-ratio: 4 / 5; }
.jg .ji .cv-fr img { transition: filter .4s; }
.jg .ji:hover .cv-fr { border-color: var(--ink); } .jg .ji:hover .cv-fr i { transform: translate(-50%, -50%); }
.jg .ji.big { grid-column: span 2; grid-row: span 2; }
.jg .ji.wide { grid-column: span 2; } .jg .ji.wide .cv-fr { aspect-ratio: 8 / 5; }
.jg .ji:nth-child(4n+2) { margin-top: clamp(30px, 4vw, 70px); } .jg .ji:nth-child(6n+5) { margin-top: clamp(-40px, -2.4vw, -16px); }
.jg .ji.gap { visibility: hidden; }
.jg .cp { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding-top: 9px; text-align: left; }
.jg .cp span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg .cp .st { color: var(--dim); }
.jg .ji.locked .cv-fr img { filter: grayscale(1) contrast(.9) brightness(1.08); } .jg .ji.locked:hover .cv-fr img { filter: none; }
.jg .note { grid-column: span 2; align-self: center; color: var(--ghost); font-weight: 700; font-size: clamp(20px, 2.4vw, 38px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.03em; }

/* картка як слайд журналу */
body:is([data-design="journal"], [data-design="lab"]) .sheet { inset: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 18px var(--pad) 22px; box-shadow: none; gap: clamp(20px, 4vw, 70px); }
body:is([data-design="journal"], [data-design="lab"]) .modal-bg { background: var(--bg); backdrop-filter: none; }
body:is([data-design="journal"], [data-design="lab"]) .shots { padding: 54px 0 0; gap: 26px; overflow: visible; overflow-y: auto; }
body:is([data-design="journal"], [data-design="lab"]) .shots .fr { position: relative; border: 1px solid var(--line); }
body:is([data-design="journal"], [data-design="lab"]) .shots .fr::before, body:is([data-design="journal"], [data-design="lab"]) .shots .fr::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); z-index: 2; }
body:is([data-design="journal"], [data-design="lab"]) .shots .fr::before { left: -5px; top: -5px; } body:is([data-design="journal"], [data-design="lab"]) .shots .fr::after { right: -5px; bottom: -5px; }
body:is([data-design="journal"], [data-design="lab"]) .shots .fr + .fr { width: 46%; } body:is([data-design="journal"], [data-design="lab"]) .shots .fr:nth-child(3n) { margin-left: 54%; margin-top: -30%; }
body:is([data-design="journal"], [data-design="lab"]) .info { gap: 0; padding: 0; }
.jm-top { display: none; }
body:is([data-design="journal"], [data-design="lab"]) .jm-top { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-right: 90px; }
body:is([data-design="journal"], [data-design="lab"]) .jm-top > :nth-child(1) { grid-column: 1 / 3; } body:is([data-design="journal"], [data-design="lab"]) .jm-top > :nth-child(2) { grid-column: 3 / 5; } body:is([data-design="journal"], [data-design="lab"]) .jm-top > :nth-child(3) { grid-column: 5 / 7; }
.jm-no { display: none; }
body:is([data-design="journal"], [data-design="lab"]) .jm-no { display: block; position: absolute !important; right: -.04em; bottom: -.12em; font-size: clamp(120px, 21vw, 400px); font-weight: 700; letter-spacing: -.08em; line-height: .74; color: var(--ghost); z-index: 0 !important; pointer-events: none; }
body:is([data-design="journal"], [data-design="lab"]) .info > .cap.dot { display: none; }
body:is([data-design="journal"], [data-design="lab"]) .info h2 { margin: clamp(40px, 8vw, 130px) 0 clamp(24px, 3vw, 44px) -.04em; padding: 0; font-size: clamp(40px, 6.4vw, 124px); text-transform: uppercase; letter-spacing: -.07em; line-height: .8; }
body:is([data-design="journal"], [data-design="lab"]) .info .spec { grid-template-columns: 90px minmax(0, 1fr); font-size: 9px; letter-spacing: .06em; margin-bottom: 30px; width: 60%; }
body:is([data-design="journal"], [data-design="lab"]) .pr { grid-template-columns: 90px minmax(0, 1fr); gap: 0; margin-bottom: 22px; max-width: 620px; }
body:is([data-design="journal"], [data-design="lab"]) .pr > .cap:first-child { font-size: 9px; letter-spacing: .28em; font-weight: 700; }
body:is([data-design="journal"], [data-design="lab"]) .prompt { font-size: 13px; line-height: 1.38; letter-spacing: -.005em; }
body:is([data-design="journal"], [data-design="lab"]) .params { margin: 0 0 26px 90px; font-size: 9px; letter-spacing: .06em; }
body:is([data-design="journal"], [data-design="lab"]) .info .row { margin-left: 90px; }
body:is([data-design="journal"], [data-design="lab"]) .locknote { margin-left: 90px; }
body:is([data-design="journal"], [data-design="lab"]) .info .bin { display: none; }
body:is([data-design="journal"], [data-design="lab"]) .x { top: 0; right: 0; }

/* доступ рядками */
.jp { padding: 0 var(--pad) clamp(60px, 8vw, 120px); }
.jp-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; padding: clamp(18px, 2.4vw, 36px) 0; border-top: 1px solid var(--line); }
.jp-row:first-child { border-top-color: var(--ink); }
.jp-row .n { grid-column: 1 / 2; align-self: start; } .jp-row .pr2 { grid-column: 2 / 7; font-size: clamp(80px, 15vw, 300px); font-weight: 700; letter-spacing: -.08em; line-height: .74; margin-left: -.05em; }
.jp-row .pr2 small { font-size: 9px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-left: 1.4em; }
.jp-row .nm2 { grid-column: 7 / 10; } .jp-row .nm2 b { display: block; font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.03em; line-height: 1.05; margin: 8px 0; }
.jp-row .nm2 p { color: var(--dim); max-width: 32ch; } .jp-row .go { grid-column: 11 / 13; justify-self: end; }
.jp-row.main .pr2 { color: var(--acc); }
@media (max-width: 820px) {
  .jc-top > * { grid-column: auto / span 6 !important; text-align: left !important; } .jc-no { display: none; }
  .jc-meta > * { grid-column: 1 / -1 !important; } .jc-rule > * { grid-column: auto / span 6 !important; } .jc-rule > :nth-child(2) { display: none; }
  .jg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jg .ji { margin-top: 0 !important; } .jg .ji.big, .jg .ji.wide, .jg .note { grid-column: span 2; } .jg .ji.gap { display: none; }
  body:is([data-design="journal"], [data-design="lab"]) .sheet { grid-template-columns: minmax(0, 1fr); } body:is([data-design="journal"], [data-design="lab"]) .shots { padding-top: 40px; display: grid; }
  body:is([data-design="journal"], [data-design="lab"]) .shots .fr + .fr { display: none; } body:is([data-design="journal"], [data-design="lab"]) .jm-top { display: none; }
  body:is([data-design="journal"], [data-design="lab"]) .params, body:is([data-design="journal"], [data-design="lab"]) .info .row, body:is([data-design="journal"], [data-design="lab"]) .locknote { margin-left: 0; } body:is([data-design="journal"], [data-design="lab"]) .info .spec { width: 100%; }
  .jp-row > * { grid-column: 1 / -1 !important; justify-self: start !important; }
}

/* ---------- ATELIER v2: пройдено за benditomockup.com — герой-фото з рознесеними serif-словами,
   маніфест, нахилений стікер, стрічка «улюблене», колекції з назвою поверх фото ---------- */
body[data-design="atelier"] { --serif: "Times New Roman", Times, serif; }
body[data-design="atelier"] .top { background: none; backdrop-filter: none; mix-blend-mode: difference; color: #fff; }
body[data-design="atelier"] .top nav a, body[data-design="atelier"] .acc { color: #fff; }
body[data-design="atelier"] .logo::before { background: #fff; }
body[data-design="atelier"] :is(.chead h1, .info h2, .bar h2, .a-title h2, .price) { font-family: var(--serif); font-weight: 400 !important; letter-spacing: -.045em; }
.b-hero { display: block; position: relative; height: 100vh; min-height: 560px; margin-top: -66px; overflow: hidden; background: #111; color: #fff; }
.b-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .34) 1.4px, transparent 1.9px) 0 0 / 9px 9px; mix-blend-mode: overlay; pointer-events: none; }
.b-hero .w { position: absolute; z-index: 2; font: 400 clamp(64px, 11.5vw, 220px)/.86 var(--serif); letter-spacing: -.055em; }
.b-hero .w1 { left: var(--pad); top: 27%; } .b-hero .w2 { right: 7%; top: 27%; }
.b-hero .bar2 { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 22px var(--pad); background: #000; font-size: clamp(15px, 1.5vw, 22px); letter-spacing: -.02em; line-height: 1.2; }
.b-hero .bar2 span:first-child { max-width: 46ch; } .b-hero .bar2 .ar { font-size: 30px; transition: transform .3s var(--ease); } .b-hero .bar2:hover .ar { transform: translateX(8px); }
.b-man { position: relative; padding: 26px var(--pad) clamp(80px, 9vw, 150px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.b-man .up { grid-column: 1 / -1; font-size: clamp(16px, 1.6vw, 24px); text-transform: uppercase; letter-spacing: -.01em; }
.b-man .txt { grid-column: 1 / 9; margin-top: 30px; font: 400 clamp(30px, 4.3vw, 74px)/1.02 var(--serif); letter-spacing: -.04em; }
.b-man .stk { grid-column: 3 / 6; margin-top: 40px; justify-self: start; display: grid; gap: 22px; padding: 22px 26px; background: var(--pink); font: 400 clamp(20px, 2.2vw, 34px)/1 var(--serif); letter-spacing: -.02em; text-transform: uppercase; transform: rotate(-7deg); width: clamp(220px, 21vw, 340px); transition: transform .5s var(--ease); }
.b-man .stk:hover { transform: rotate(3deg) scale(1.04); }
.b-man .stk span:nth-child(2) { text-align: right; } .b-man .stk span:nth-child(3) { text-align: center; }
.b-man .side2 { grid-column: 9 / 13; margin-top: 40px; display: grid; gap: 14px; align-content: start; }
.b-man .side2 p { max-width: 30ch; font-size: 15px; line-height: 1.25; }
.b-man .box { display: block; padding: 60px 22px 26px; border: 1px solid #000; text-transform: uppercase; font-size: 15px; transition: background .25s, color .25s; }
.b-man .box:hover { background: #000; color: #fff; }
.b-man .dotm { position: absolute; left: var(--pad); bottom: 60px; }
.b-fav { display: flex; gap: clamp(18px, 2.4vw, 40px); overflow-x: auto; padding: 0 var(--pad) clamp(90px, 10vw, 170px); scrollbar-width: none; scroll-snap-type: x proximity; }
.b-fav::-webkit-scrollbar { display: none; }
.b-fav button { flex: none; width: clamp(220px, 23vw, 360px); scroll-snap-align: start; opacity: .28; transition: opacity .35s; }
.b-fav button:first-child, .b-fav button:hover, .b-fav:hover button:hover { opacity: 1; } .b-fav:hover button:first-child:not(:hover) { opacity: .28; }
.b-fav .ph { aspect-ratio: 2 / 3; } .b-fav .ph img { transition: none; }
.b-fav .cp2 { display: block; padding-top: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.b-fav .cp2 i { display: block; font-style: normal; font-weight: 400; color: #9a9a9a; }
.a-title { border-bottom: 1px solid #000; margin: 0 var(--pad) 30px; padding: 0 0 clamp(30px, 4vw, 60px); }
.b-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(50px, 6vw, 100px) 16px; padding: 0 var(--pad) clamp(100px, 12vw, 190px); align-items: start; }
.b-col a { position: relative; display: block; grid-column: span 3; }
.b-col a:nth-child(6n+1) { grid-column: 2 / span 3; } .b-col a:nth-child(6n+2) { grid-column: 6 / span 3; } .b-col a:nth-child(6n+3) { grid-column: 10 / span 3; }
.b-col a:nth-child(6n+4) { grid-column: 1 / span 3; margin-top: 40px; } .b-col a:nth-child(6n+5) { grid-column: 4 / span 3; margin-top: 110px; } .b-col a:nth-child(6n) { grid-column: 9 / span 4; margin-top: 20px; }
.b-col .ph { aspect-ratio: 5 / 6; } .b-col .ph img { transition: transform 1.2s var(--ease); }
.b-col .ttl { position: absolute; left: 12px; top: 8px; right: 12px; z-index: 2; color: #fff; mix-blend-mode: difference; font: 400 clamp(28px, 3.3vw, 56px)/.9 var(--serif); letter-spacing: -.045em; pointer-events: none; }
.b-col .cp2 { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.b-col .cp3 { display: block; font-size: 17px; color: #9a9a9a; }
@media (max-width: 820px) {
  .b-hero .w { font-size: 21vw; } .b-hero .w1 { top: 20%; } .b-hero .w2 { top: 44%; right: auto; left: var(--pad); }
  .b-man > * { grid-column: 1 / -1 !important; } .b-man .stk { margin-left: 20px; }
  .b-col a { grid-column: span 6 !important; margin-top: 0 !important; }
}

/* ============ JOURNAL v3: цікава головна + спокійні каталог і колекція; без жирності ============ */
.hm { position: relative; padding: 18px var(--pad) 0; }
.hm-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.hm-top > :nth-child(1) { grid-column: 1 / 3; } .hm-top > :nth-child(2) { grid-column: 4 / 6; } .hm-top > :nth-child(3) { grid-column: 7 / 9; } .hm-top > :nth-child(4) { grid-column: 11 / 13; text-align: right; }
.hm-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(50px, 8vw, 130px); align-items: end; }
.hm-t { grid-column: 1 / 8; font-size: clamp(34px, 5.4vw, 96px); font-weight: 400; letter-spacing: -.055em; line-height: .92; }
.hm-t span { color: var(--acc); }
.hm-lead { grid-column: 9 / 13; font-size: 15px; line-height: 1.3; max-width: 34ch; }
.hm-mq { overflow: hidden; margin: clamp(30px, 4vw, 60px) calc(var(--pad) * -1) 0; border-block: 1px solid var(--line); padding: 9px 0; white-space: nowrap; }
.hm-mq div { display: inline-block; animation: mq 46s linear infinite; }
.hm-mq span { margin-right: 46px; } .hm-mq b { font-weight: 400; color: var(--acc); }
@keyframes mq { to { transform: translateX(-50%); } }
.hm .jg { padding-inline: 0; padding-top: clamp(50px, 6vw, 100px); gap: clamp(60px, 7vw, 130px) clamp(12px, 1.4vw, 22px); }
.hm .jg .ji { will-change: transform; }
.hm .jg .cp { grid-template-columns: minmax(0, 1fr) auto; }
.hm-say { grid-column: span 2; align-self: center; font-size: clamp(18px, 2vw, 32px); line-height: 1.08; letter-spacing: -.03em; will-change: transform; }
.hm-say.g { color: var(--ghost); font-weight: 700; text-transform: uppercase; }
.hm-say small { display: block; margin-top: 12px; }
.hm-jump { align-self: end; display: grid; gap: 4px; will-change: transform; }
.hm-jump a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.hm-jump a:hover { color: var(--acc); }
.hm-go { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 0 0 clamp(60px, 8vw, 120px); }
.hm-go a { grid-column: span 4; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ink); }
.hm-go b { font-size: clamp(26px, 3.2vw, 54px); font-weight: 400; letter-spacing: -.05em; line-height: 1; transition: transform .4s var(--ease); }
.hm-go a:hover b { transform: translateX(12px); color: var(--acc); }
.hm-go span { color: var(--dim); max-width: 30ch; }

.kt { padding: 18px var(--pad) clamp(80px, 9vw, 140px); }
.kt-top { display: flex; justify-content: space-between; gap: 20px; }
.kt-top a { color: var(--dim); }
.kt-h { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: clamp(40px, 6vw, 90px) 0 clamp(26px, 3vw, 44px); align-items: end; }
.kt-h h1 { grid-column: 1 / 7; font-size: clamp(30px, 4vw, 64px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.kt-h h1 sup { font-size: 11px; letter-spacing: .04em; vertical-align: top; position: relative; top: .5em; margin-left: 8px; color: var(--dim); }
.kt-h p { grid-column: 7 / 10; font-size: 15px; line-height: 1.3; max-width: 36ch; }
.kt-h .r { grid-column: 10 / 13; justify-self: end; display: grid; gap: 10px; justify-items: end; }
.kt-h dl { grid-column: 10 / 13; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 3px 0; } .kt-h dt { color: var(--dim); }
.kt-row { display: grid; grid-template-columns: 34px 58px minmax(0, 3fr) minmax(0, 2fr) 70px 110px 20px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); transition: background .2s; }
.kt-row:first-of-type { border-top-color: var(--ink); } .kt-row:last-child { border-bottom: 1px solid var(--line); }
.kt-row img { width: 58px; height: 72px; object-fit: cover; }
.kt-row b { font-size: clamp(18px, 1.9vw, 30px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.kt-row .go { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.kt-row:hover .go { opacity: 1; transform: none; color: var(--acc); } .kt-row:hover b { color: var(--acc); }
.kt-bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ink); }
.kg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(12px, 1.4vw, 22px); padding-top: 22px; }
.kg .ji { display: block; width: 100%; } .kg .ji .cv-fr { aspect-ratio: 4 / 5; }
.kg .ji:hover .cv-fr { border-color: var(--ink); } .kg .ji:hover .cv-fr i { transform: translate(-50%, -50%); }
.kg .cp { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; padding-top: 9px; text-align: left; }
.kg .cp span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kg .cp .st { color: var(--dim); }
.kg .ji.locked .cv-fr img { filter: grayscale(1) contrast(.9) brightness(1.08); transition: filter .4s; } .kg .ji.locked:hover .cv-fr img { filter: none; }

/* без жирності: картка й доступ */
body:is([data-design="journal"], [data-design="lab"]) .info h2 { font-size: clamp(28px, 3.6vw, 62px); font-weight: 400; text-transform: none; letter-spacing: -.05em; line-height: .96; margin-top: clamp(40px, 7vw, 110px); }
body:is([data-design="journal"], [data-design="lab"]) .jm-no { display: none; }
.jp-row .pr2 { font-size: clamp(54px, 8.4vw, 160px); font-weight: 400; letter-spacing: -.07em; line-height: .82; }
.jp-row { align-items: end; }
@media (max-width: 820px) {
  .hm-top > * { grid-column: auto / span 6 !important; text-align: left !important; } .hm-head > *, .kt-h > * { grid-column: 1 / -1 !important; justify-self: start !important; justify-items: start !important; }
  .hm-say, .hm-jump { grid-column: span 2; } .hm-go a { grid-column: 1 / -1; }
  .kt-row { grid-template-columns: 26px 46px minmax(0, 1fr) auto; } .kt-row > :nth-child(4), .kt-row > :nth-child(5), .kt-row .go { display: none; } .kt-row img { width: 46px; height: 58px; }
  .kg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt-bar > :nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-mq div { animation: none; } }

.hm .jg .cp span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- ATELIER v3: настрій (serif + фото) лишається, але композиція й графіка — Вікині, не копія ---------- */
body[data-design="atelier"] .top { mix-blend-mode: normal; color: var(--ink); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); }
body[data-design="atelier"] .top nav a, body[data-design="atelier"] .acc { color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
body[data-design="atelier"] .logo .lg { display: flex; } body[data-design="atelier"] .logo::before { display: none; }
.at { position: relative; padding: 18px var(--pad) clamp(60px, 8vw, 120px); }
.at-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.at-top > :nth-child(1) { grid-column: 1 / 3; } .at-top > :nth-child(2) { grid-column: 5 / 7; } .at-top > :nth-child(3) { grid-column: 9 / 11; } .at-top > :nth-child(4) { grid-column: 12 / 13; text-align: right; }
.at-st { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.at-w { font: 400 clamp(54px, 9.6vw, 190px)/.84 var(--serif); letter-spacing: -.055em; }
.at-w.a { grid-column: 1 / 5; grid-row: 1; } .at-w.b { grid-column: 6 / 13; grid-row: 2; text-align: right; margin-top: clamp(-70px, -4vw, -20px); font-style: italic; }
.at-st .ji { display: block; } .at-st .ji .cv-fr { aspect-ratio: 4 / 5; } .at-st .ji:hover .cv-fr { border-color: var(--ink); } .at-st .ji:hover .cv-fr i { transform: translate(-50%, -50%); }
.at-st .i1 { grid-column: 6 / 9; grid-row: 1; } .at-st .i2 { grid-column: 10 / 12; grid-row: 1; margin-top: 90px; } .at-st .i3 { grid-column: 2 / 4; grid-row: 2; margin-top: 30px; }
.at-st .cp { display: flex; justify-content: space-between; padding-top: 8px; }
.at-man { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(70px, 9vw, 150px); align-items: start; }
.at-man .l { grid-column: 1 / 3; } .at-man p { grid-column: 4 / 10; font: 400 clamp(24px, 3vw, 50px)/1.06 var(--serif); letter-spacing: -.035em; }
.at-man img { grid-column: 11 / 13; width: 100%; max-width: 150px; justify-self: end; }
.at-rule { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--ink); padding-top: 12px; margin-top: clamp(70px, 9vw, 150px); }
.at-rule h2 { font: 400 clamp(30px, 3.6vw, 60px)/1 var(--serif); letter-spacing: -.04em; }
.at .b-fav { padding: 30px 0 0; margin-right: calc(var(--pad) * -1); }
.at .b-col { padding: 34px 0 0; }
.at .b-col .ttl { position: static; display: block; color: var(--ink); mix-blend-mode: normal; font-size: clamp(22px, 2.3vw, 38px); line-height: 1; padding-top: 12px; }
.at .b-col .cp2 { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; padding-top: 6px; }
.at .b-col .cp3 { display: none; }
@media (max-width: 820px) { .at-top > *, .at-st > *, .at-man > * { grid-column: 1 / -1 !important; grid-row: auto !important; text-align: left !important; margin-top: 0 !important; } .at-man img { max-width: 90px; justify-self: start; } }

/* ============ JOURNAL: прохід на стильність — курсор, поява, технічні мітки, годинник, футер ============ */
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
.cur i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); transition: transform .25s var(--ease), background .2s; }
.cur span { position: absolute; left: 14px; top: 10px; white-space: nowrap; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease); }
.cur.on i { transform: scale(2.6); background: transparent; box-shadow: inset 0 0 0 1px var(--acc); } .cur.on span { opacity: 1; transform: none; }
@media (pointer: fine) {
  body:is([data-design="journal"], [data-design="lab"]) .cur { display: block; }
  body:is([data-design="journal"], [data-design="lab"]), body:is([data-design="journal"], [data-design="lab"]) :is(a, button, .cv) { cursor: none; }
  body:is([data-design="journal"], [data-design="lab"]) .sw, body:is([data-design="journal"], [data-design="lab"]) .sw button { cursor: pointer; }
}
body:is([data-design="journal"], [data-design="lab"]) .rv .cv-fr img, body:is([data-design="journal"], [data-design="lab"]) .rv > img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s var(--ease), transform 1.4s var(--ease), filter .4s; }
body:is([data-design="journal"], [data-design="lab"]) .rv.in .cv-fr img, body:is([data-design="journal"], [data-design="lab"]) .rv.in > img { clip-path: inset(0); transform: none; }
body:is([data-design="journal"], [data-design="lab"]) .rv .cp, body:is([data-design="journal"], [data-design="lab"]) .rv .cv-fr i { opacity: 0; transition: opacity .5s .5s, transform .3s var(--ease); }
body:is([data-design="journal"], [data-design="lab"]) .rv.in .cp, body:is([data-design="journal"], [data-design="lab"]) .rv.in .cv-fr i { opacity: 1; }
.jg .ji.gap { visibility: visible; position: relative; min-height: 120px; pointer-events: none; }
.jg .ji.gap .plus { display: block; left: 50%; top: 50%; }
.jg .ji.gap .mt { position: absolute; left: calc(50% + 12px); top: calc(50% + 10px); color: var(--dim); white-space: nowrap; }
body:is([data-design="journal"], [data-design="lab"]) .top nav a sup { font-size: 8px; margin-left: 3px; color: var(--dim); }
.clk { font-variant-numeric: tabular-nums; }
.hm-t { position: relative; }
.hm-t i { position: absolute; left: -2px; top: -18px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.hm-go a { position: relative; overflow: hidden; }
.kt-row { position: relative; }
.kt-row .pv { position: absolute; right: 22%; top: 50%; width: clamp(140px, 13vw, 210px); aspect-ratio: 4 / 5; z-index: 5; pointer-events: none; opacity: 0; transform: translateY(-44%) scale(.94); transition: opacity .2s, transform .45s var(--ease); border: 1px solid var(--ink); background: var(--soft); }
.kt-row .pv img { width: 100%; height: 100%; object-fit: cover; }
.kt-row .pv::before, .kt-row .pv::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.kt-row .pv::before { left: -5px; top: -5px; } .kt-row .pv::after { right: -5px; bottom: -5px; }
.kt-row:hover .pv { opacity: 1; transform: translateY(-50%); }
body:is([data-design="journal"], [data-design="lab"]) .foot { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; border-top: 1px solid var(--ink); margin: 0 var(--pad); padding: 12px 0 76px; font-size: 9px; letter-spacing: .06em; }
body:is([data-design="journal"], [data-design="lab"]) .foot .cap { font-size: 9px; letter-spacing: .06em; }
body:is([data-design="journal"], [data-design="lab"]) .foot .scr { grid-column: 1 / 3; width: 46px; }
body:is([data-design="journal"], [data-design="lab"]) .foot > div:nth-child(2) { grid-column: 4 / 6; } body:is([data-design="journal"], [data-design="lab"]) .foot > div:nth-child(3) { grid-column: 7 / 10; } body:is([data-design="journal"], [data-design="lab"]) .foot > div:nth-child(4) { grid-column: 11 / 13; }
body:is([data-design="journal"], [data-design="lab"]) .btn { font-size: 9px; letter-spacing: .08em; padding: 13px 18px; }
body:is([data-design="journal"], [data-design="lab"]) .btn::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 9px; vertical-align: 0; transition: background .2s; }
body:is([data-design="journal"], [data-design="lab"]) .btn:hover { background: var(--acc); } body:is([data-design="journal"], [data-design="lab"]) .btn:hover::before { background: var(--on); }
body:is([data-design="journal"], [data-design="lab"]) .top { padding-block: 12px; }
body:is([data-design="journal"], [data-design="lab"]) .top nav a, body:is([data-design="journal"], [data-design="lab"]) .acc { font-size: 9px; letter-spacing: .08em; }
body:is([data-design="journal"], [data-design="lab"]) .sheet .x { font-size: 9px; letter-spacing: .08em; }
@media (max-width: 820px) { .kt-row .pv { display: none; } body:is([data-design="journal"], [data-design="lab"]) .foot > * { grid-column: auto / span 6 !important; } }
@media (prefers-reduced-motion: reduce) { body:is([data-design="journal"], [data-design="lab"]) .rv .cv-fr img { clip-path: none; transform: none; } body:is([data-design="journal"], [data-design="lab"]) .rv .cp, body:is([data-design="journal"], [data-design="lab"]) .rv .cv-fr i { opacity: 1; } }

.hm-mq { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-inline: 0; white-space: normal; }
.hm-mq span { margin: 0; }

/* ============ JOURNAL: деталі з резюме Віки + структура з Atelier ============ */
body[data-theme="grey"]:is([data-design="journal"], [data-design="lab"], [data-design="cover"], [data-design="index"]) { --bg: #e9e9e9; --soft: #dcdcdc; --line: #cbcbcb; --ghost: #d3d3d3; --dim: #7d7d7d; }
/* шрифт Heading Now, як у резюме: капс середньої жирності в заголовках, ширший дрібний текст */
body[data-font="hn"] { --f: "Heading Now", Arial, sans-serif; font-variation-settings: "wdth" 640, "wght" 430; }
body[data-font="hn"] :is(.hm-t, .kt-h h1, .info h2, .pr2, .kt-row b, .hm-go b, .rz-h, .hm-say:not(.g), .wk h3, .ins-t b) { font-variation-settings: "wdth" 360, "wght" 520; text-transform: uppercase; letter-spacing: -.01em; }
body[data-font="hn"] :is(.mt, .cap, .btn) b, body[data-font="hn"] .ins-t dt { font-variation-settings: "wdth" 640, "wght" 760; }
/* розділ із двокрапкою */
.rz-h { font-size: clamp(15px, 1.4vw, 21px); text-transform: uppercase; letter-spacing: .01em; font-weight: 400; margin-bottom: 18px; }
/* «що всередині:» — таблиця як досвід у резюме */
.ins { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: clamp(60px, 8vw, 130px) 0 0; align-items: start; }
.ins-l { grid-column: 1 / 6; } .ins-l p { font-size: clamp(18px, 2vw, 32px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.ins-l img { width: clamp(70px, 8vw, 120px); margin-top: 26px; transform: rotate(-8deg); }
.ins-t { grid-column: 7 / 13; }
.ins-t a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 60px; gap: 6px 16px; padding: 13px 0 15px; border-top: 1px solid var(--line); }
.ins-t a:first-of-type { border-top-color: var(--ink); }
.ins-t b { font-weight: 700; text-transform: uppercase; } .ins-t .ds { grid-column: 1 / -1; text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.3; max-width: 62ch; color: var(--dim); }
.ins-t a:hover b { color: var(--acc); } .ins-t .y { text-align: right; }
/* «нове цього тижня:» — горизонтальна стрічка (структура з Atelier) */
.wk { padding: clamp(60px, 8vw, 130px) 0 0; }
.wk-h { display: flex; justify-content: space-between; align-items: baseline; }
.wk-s { display: flex; gap: clamp(14px, 1.6vw, 26px); overflow-x: auto; margin-right: calc(var(--pad) * -1); padding: 4px var(--pad) 10px 0; scrollbar-width: none; align-items: flex-end; }
.wk-s::-webkit-scrollbar { display: none; }
.wk-s .ji { flex: none; width: clamp(170px, 17vw, 270px); display: block; } .wk-s .ji:nth-child(3n+2) { width: clamp(130px, 12vw, 190px); } .wk-s .ji:nth-child(4n) { width: clamp(210px, 22vw, 340px); }
.wk-s .ji .cv-fr { aspect-ratio: 4 / 5; } .wk-s .ji:hover .cv-fr { border-color: var(--ink); } .wk-s .ji:hover .cv-fr i { transform: translate(-50%, -50%); }
.wk-s .cp { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; } .wk-s .cp span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* низ сторінки як низ резюме: чотири колонки списків */
body:is([data-design="journal"], [data-design="lab"]) .foot { display: none; }
.rz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: clamp(70px, 9vw, 140px) var(--pad) 0; padding: 14px 0 80px; border-top: 1px solid var(--ink); align-items: start; }
.rz > div { grid-column: span 3; } .rz ul { margin: 0; padding: 0; list-style: none; }
.rz li { font-size: 12px; line-height: 1.35; padding-left: 10px; text-indent: -10px; } .rz li::before { content: "· "; }
.rz a:hover { color: var(--acc); }
.rz .sig { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 30px; color: var(--dim); }
.hm-go { padding-top: clamp(60px, 8vw, 130px); padding-bottom: 0; }
@media (max-width: 820px) { .ins > *, .rz > div { grid-column: 1 / -1 !important; } .rz > div { grid-column: auto / span 6 !important; } .ins-t a { grid-template-columns: minmax(0, 1fr) 50px; } .ins-t a > :nth-child(2) { display: none; } }

.hm-mq { display: grid; grid-template-columns: repeat(7, auto); justify-content: space-between; gap: 16px; overflow: hidden; }
.hm-mq span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) { .hm-mq { grid-template-columns: repeat(3, auto); } }

/* таблиця характеристик колекції: колонки з тонкими лініями (момент із Gallery) */
.sp4 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.sp4 dt { padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--dim); }
.sp4 dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: -.01em; }
.sp4-buy { display: flex; align-items: center; gap: 18px; padding: 18px 0 clamp(30px, 4vw, 54px); }
.kt-h h1 .dim { color: var(--dim); }
@media (max-width: 820px) { .sp4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body[data-design="atelier"] { --f: Arial, Helvetica, sans-serif; }

/* ============ JOURNAL: лабораторний шар — лог, мітки зразків, сканер, приводні мітки ============ */
.lg2 { grid-column: 9 / 13; align-self: end; display: grid; gap: 2px; color: var(--dim); min-height: 62px; }
.lg2 span { opacity: 0; transform: translateX(-6px); animation: lgin .4s var(--ease) forwards; animation-delay: calc(var(--n) * 520ms + 300ms); }
.lg2 span b { font-weight: 400; color: var(--ink); } .lg2 span:last-child b { color: var(--acc); }
.lg2 span:last-child::after { content: "▍"; margin-left: 3px; color: var(--acc); animation: blink 1s steps(2) infinite; }
@keyframes lgin { to { opacity: 1; transform: none; } } @keyframes blink { 50% { opacity: 0; } }
.hm-head .hm-lead { grid-column: 9 / 13; grid-row: 1; } .hm-head .lg2 { grid-row: 2; margin-top: 14px; }
.hm-head .hm-t { grid-row: 1 / 3; align-self: end; }
.hm > .bin { display: block; right: 0; top: 150px; width: 34%; height: 300px; font-size: 10px; opacity: .8; z-index: 0; }
.hm > * { position: relative; z-index: 1; } .hm > .bin { position: absolute; }
/* мітка зразка під кадром: номер, назва, тег у дужках */
body[data-design="lab"] .cp .st, body[data-design="lab"] .tg { white-space: nowrap; }
body[data-design="lab"] .ji.locked .cp .st { color: var(--dim); }
body[data-design="lab"] .ji:not(.locked) .cp .st { color: var(--acc); }
/* сканер: тонка синя лінія проходить кадром при наведенні */
body[data-design="lab"] :is(.jg, .kg, .wk-s) .cv-fr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--acc); box-shadow: 0 0 12px 1px var(--acc); opacity: 0; z-index: 2; pointer-events: none; }
body[data-design="lab"] :is(.jg, .kg, .wk-s) .ji:hover .cv-fr::after { animation: scan 1.1s cubic-bezier(.4, 0, .2, 1) 1; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
body[data-design="lab"] :is(.jg, .kg, .wk-s) .cv-fr { overflow: visible; }
body[data-design="lab"] .cv-fr .rd { position: absolute; right: 6px; top: 6px; z-index: 3; padding: 2px 5px; background: var(--bg); color: var(--ink); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
body[data-design="lab"] .ji:hover .cv-fr .rd { opacity: 1; transform: none; }
/* приводні мітки по кутах екрана і лічильник прокрутки */
.reg { display: none; }
body[data-design="lab"] .reg { display: block; position: fixed; z-index: 30; pointer-events: none; }
.reg.c { width: 11px; height: 11px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; opacity: .55; }
.reg.c1 { left: 6px; top: 52px; } .reg.c2 { right: 6px; top: 52px; } .reg.c3 { left: 6px; bottom: 6px; } .reg.c4 { right: 6px; bottom: 60px; }
.reg.sc { left: 6px; top: 50%; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.reg.pr { right: 10px; top: 76px; bottom: 84px; width: 1px; background: var(--line); }
.reg.pr i { position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); top: 0; transform: translateY(-50%); }
body.on-canvas .reg.sc, body.on-canvas .reg.pr { display: none; }
/* попередження привидом унизу головної */
.wrn { padding: clamp(60px, 8vw, 130px) 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.wrn p { grid-column: 1 / 9; color: var(--ghost); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 3.2vw, 54px); line-height: 1; letter-spacing: -.035em; }
.wrn span { grid-column: 10 / 13; text-align: right; color: var(--dim); }
body[data-design="lab"] .toast { font-size: 9px; letter-spacing: .08em; padding: 10px 14px; }
body[data-design="lab"] .sp4 dd b { font-weight: 400; color: var(--acc); }
@media (max-width: 820px) { .lg2, .hm-head .hm-lead { grid-column: 1 / -1 !important; grid-row: auto !important; } .hm-head .hm-t { grid-row: auto; } .hm > .bin, .reg.sc, .reg.pr { display: none !important; } .wrn > * { grid-column: 1 / -1 !important; text-align: left !important; } }
@media (prefers-reduced-motion: reduce) { .lg2 span { opacity: 1; transform: none; animation: none; } }

/* ============ ЧЕК: довгий, вузький, із дивною версткою ============ */
.rc { --p: #f3f2ee; --k: #111; position: relative; width: clamp(250px, 23vw, 330px); padding: 22px 18px 44px 30px; background: var(--p); color: var(--k); font-size: 10px; line-height: 1.45; letter-spacing: .05em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 96% 100%, 92% calc(100% - 9px), 88% 100%, 84% calc(100% - 9px), 80% 100%, 76% calc(100% - 9px), 72% 100%, 68% calc(100% - 9px), 64% 100%, 60% calc(100% - 9px), 56% 100%, 52% calc(100% - 9px), 48% 100%, 44% calc(100% - 9px), 40% 100%, 36% calc(100% - 9px), 32% 100%, 28% calc(100% - 9px), 24% 100%, 20% calc(100% - 9px), 16% 100%, 12% calc(100% - 9px), 8% 100%, 4% calc(100% - 9px), 0 100%);
  transform: rotate(-2.2deg); transform-origin: 30% 0; transition: transform .6s var(--ease); }
.rc:hover { transform: rotate(0deg); }
body[data-theme="dark"] .rc { --p: #f3f2ee; }
.rc a { color: inherit; } .rc a:hover { color: var(--acc); }
.rc .side { position: absolute; left: 9px; top: 22px; bottom: 50px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8px; letter-spacing: .3em; color: #9b9a94; white-space: nowrap; overflow: hidden; }
.rc .hd { text-align: center; } .rc .hd b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; }
.rc .hd .ring { display: inline-flex; gap: 0; margin-bottom: 8px; } .rc .hd .ring i { width: 15px; height: 15px; margin-left: -1px; border: 1px solid var(--k); border-radius: 50%; font-style: normal; font-size: 8px; line-height: 13px; text-align: center; letter-spacing: 0; }
.rc hr { border: 0; border-top: 1px dashed var(--k); margin: 10px 0; opacity: .7; } .rc hr.d { border-top: 3px double var(--k); }
.rc .row2 { display: flex; justify-content: space-between; gap: 8px; }
.rc .it2 { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 1px 0; }
.rc .it2 span:nth-child(2) { display: flex; gap: 4px; overflow: hidden; white-space: nowrap; } .rc .it2 span:nth-child(2)::after { content: "· · · · · · · · · · · · · · · · · · · · · · · · · · · ·"; color: #a8a7a0; overflow: hidden; flex: 1; }
.rc .it2.off { margin-left: 26px; grid-template-columns: minmax(0, 1fr) auto; color: #7c7b75; text-transform: none; letter-spacing: .01em; font-size: 9px; } .rc .it2.off span:first-child::after { content: none; }
.rc .wide { letter-spacing: .62em; text-align: center; margin: 4px 0; } .rc .r { text-align: right; } .rc .c { text-align: center; }
.rc .tot { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px; margin: 6px 0 2px; }
.rc .tot b { font-size: 58px; font-weight: 700; letter-spacing: -.07em; line-height: .8; text-align: right; } .rc .tot small { display: block; text-align: right; font-size: 9px; }
.rc .shift { margin-left: 38%; } .rc .shift2 { margin-left: -12px; margin-right: 34%; }
.rc .bc { height: 46px; margin: 12px 0 4px; background: repeating-linear-gradient(90deg, var(--k) 0 2px, transparent 2px 3px, var(--k) 3px 4px, transparent 4px 7px, var(--k) 7px 10px, transparent 10px 11px, var(--k) 11px 12px, transparent 12px 16px, var(--k) 16px 17px, transparent 17px 19px); }
.rc .stamp { position: absolute; right: 12px; bottom: 132px; padding: 5px 8px; border: 1.5px solid var(--acc); color: var(--acc); transform: rotate(-11deg); font-weight: 700; letter-spacing: .12em; }
.rc .tiny { font-size: 8px; text-transform: none; letter-spacing: .01em; color: #7c7b75; line-height: 1.3; }
.ins-l .rc { margin-top: 34px; margin-left: clamp(0px, 5vw, 80px); }
.jp-rc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 0 var(--pad); margin-top: clamp(-40px, -3vw, -10px); }
.jp-rc .rc { grid-column: 9 / 13; justify-self: end; margin-bottom: 40px; transform: rotate(2deg); transform-origin: 70% 0; }
.jp-rc p { grid-column: 1 / 6; align-self: end; color: var(--dim); max-width: 40ch; padding-bottom: 60px; }
@media (max-width: 820px) { .ins-l .rc { margin-left: 0; } .jp-rc > * { grid-column: 1 / -1 !important; justify-self: start !important; } .rc { width: min(330px, 100%); } }
@media print { .rc { transform: none; } }

/* ============ LAB v2: «чекова» типографіка — вузький високий моно-капс, сіре поле, острівці тексту ============ */
body[data-design="lab"] { --bg: #e6e6e6; --soft: #d9d9d9; --line: #c8c8c8; --ghost: #d0d0d0; --dim: #7a7a7a; }
/* термошрифт: моноширинний, стиснутий по горизонталі до ~0.56, щільний інтерліньяж */
.tk { font-family: "Thermo", ui-monospace, monospace; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.04; font-size: 15px; transform: scaleX(.56); transform-origin: 0 0; width: 178.6%; margin: 0; }
.tk.r { transform-origin: 100% 0; margin-left: -78.6%; text-align: right; }
.tk b { font-weight: 400; } .tk .dm { opacity: .5; }
.tk.s { font-size: 13px; } .tk.l { font-size: clamp(30px, 3.6vw, 58px); line-height: .98; letter-spacing: 0; } .tk.xl { font-size: clamp(44px, 6vw, 96px); line-height: .96; letter-spacing: 0; }
.tk .ind { display: block; padding-left: 2.6em; }
.tk.jus { text-align: justify; text-align-last: justify; }
.tk.kv { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0 0; } .tk.kv dt, .tk.kv dd { margin: 0; }
.tk .bx { display: inline-block; padding: 1px 5px 0; border: 1px solid currentColor; font-size: .8em; }
/* шапка головної Lab */
body[data-design="lab"] .hm-head { margin-top: clamp(40px, 6vw, 90px); align-items: start; }
body[data-design="lab"] .hm-t { grid-column: 1 / 5; grid-row: 1; font-size: clamp(15px, 1.4vw, 21px); letter-spacing: -.01em; line-height: 1.15; align-self: start; }
body[data-design="lab"] .hm-t i { display: none; }
body[data-design="lab"] .hm-lead { display: none; }
.lb-co { grid-column: 5 / 9; grid-row: 1; } .lb-tx { grid-column: 5 / 8; grid-row: 2; margin-top: clamp(50px, 7vw, 110px); display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: start; }
.lb-tx > div { width: clamp(150px, 15vw, 230px); }
.lb-sp { grid-column: 10 / 13; grid-row: 1 / 3; }
.lb-sp .tk + .tk { margin-top: 22px; }
body[data-design="lab"] .lg2 { display: none; }
body[data-design="lab"] .hm-mq { border-color: transparent; margin-top: clamp(50px, 7vw, 110px); }
body[data-design="lab"] .hm > .bin { display: none; }
/* у сітці: вузька колонка капсу поруч із фото, розмиті кадри */
body[data-design="lab"] .hm-say { font-size: inherit; letter-spacing: 0; }
body[data-design="lab"] .hm-say.g { color: var(--ink); font-weight: 400; }
.lb-col { width: clamp(110px, 10vw, 150px); }
body[data-design="lab"] .hm .jg .ji.bl .cv-fr img { filter: blur(9px); transform: scale(1.08); transition: filter .5s var(--ease), transform .8s var(--ease); }
body[data-design="lab"] .hm .jg .ji.bl:hover .cv-fr img { filter: none; transform: none; }
body[data-design="lab"] .hm .jg .ji.bl .cv-fr { border-color: transparent; overflow: hidden; } body[data-design="lab"] .hm .jg .ji.bl .cv-fr i, body[data-design="lab"] .hm .jg .ji.bl .cp { opacity: 0 !important; transition: opacity .3s; }
body[data-design="lab"] .hm .jg .ji.bl:hover .cp, body[data-design="lab"] .hm .jg .ji.bl:hover .cv-fr i { opacity: 1 !important; }
body[data-design="lab"] .hm .jg .ji.bl .cv-fr::after { display: none; }
body[data-design="lab"] .wrn p { color: var(--ink); font-weight: 400; font-size: inherit; letter-spacing: 0; text-transform: none; }
/* сторінка колекції Lab: специфікація як на бирці + TOTAL */
.lb-pr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: clamp(30px, 4vw, 60px) 0 clamp(30px, 4vw, 54px); align-items: end; }
.lb-pr .a { grid-column: 1 / 6; } .lb-pr .b { grid-column: 7 / 13; } .lb-pr .c { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; margin-top: 14px; }
body[data-design="lab"] .kt-h h1 { font-size: clamp(15px, 1.4vw, 21px); letter-spacing: -.01em; }
body[data-design="lab"] .kt-h p { display: none; }
body[data-design="lab"] .kt-h { margin-bottom: 0; }
/* картка Lab */
body[data-design="lab"] .info h2 { font-size: clamp(15px, 1.4vw, 21px); letter-spacing: -.01em; line-height: 1.15; margin: clamp(30px, 5vw, 80px) 0 22px; }
body[data-design="lab"] .info .lb-k { margin-bottom: 30px; }
body[data-design="lab"] .info .spec { display: none; }
body[data-design="lab"] .prompt { font-family: "Thermo", ui-monospace, monospace; font-size: 14px; line-height: 1.12; text-transform: uppercase; transform: scaleX(.6); transform-origin: 0 0; width: 166.6%; }
body[data-design="lab"] .pr > .cap:first-child { font-weight: 400; letter-spacing: .06em; }
/* доступ Lab */
body[data-design="lab"] .jp-row .pr2 { font-size: 0; } body[data-design="lab"] .jp-row .pr2 small { display: none; }
.lb-tot { display: none; } body[data-design="lab"] .lb-tot { display: block; }
/* низ: специфікація «паперу» */
.rz .pp { display: none; } body[data-design="lab"] .rz .pp { display: block; } body[data-design="lab"] .rz > div { grid-column: span 2; } body[data-design="lab"] .rz > div.pp { grid-column: 10 / 13; }
@media (max-width: 820px) { .lb-co, .lb-tx, .lb-sp, .lb-pr > * { grid-column: 1 / -1 !important; grid-row: auto !important; } body[data-design="lab"] .hm-t { grid-column: 1 / -1; } .lb-tx { margin-top: 30px; } }

.sp4[hidden] { display: none; }
.lb-tx > div { width: clamp(92px, 8.6vw, 132px); }
.lb-tx { grid-template-columns: 4em minmax(0, 1fr); }
.lb-col .tk.s { font-size: 14px; }

/* ============ LAB v3: власні тексти, каталог машинописним списком, підписи моно-капсом ============ */
body[data-design="lab"] .hm-t { display: none; }
.lb-co { grid-column: 1 / 9; }
.lb-tx { grid-column: 3 / 7; }
/* підписи під кадрами — тим самим термошрифтом */
body[data-design="lab"] :is(.jg, .kg, .wk-s) .cp { font-family: "Thermo", ui-monospace, monospace; font-size: 13px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; transform: scaleX(.6); transform-origin: 0 0; width: 166.6%; padding-top: 8px; }
body[data-design="lab"] .hm .jg .cp span:first-child { white-space: normal; }
/* каталог Lab */
.lb-ch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: clamp(50px, 7vw, 110px) 0 clamp(50px, 7vw, 110px); align-items: start; }
.lb-ch > :first-child { grid-column: 1 / 8; } .lb-ch > dl { grid-column: 10 / 13; }
.lb-ls { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lb-ls > div:first-child { grid-column: 1 / 6; } .lb-ls > div:last-child { grid-column: 7 / 12; }
.lb-li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 3.4em 5.4em; font-size: clamp(17px, 1.7vw, 26px); line-height: 1.1; padding-top: .5em; transition: color .15s; }
.lb-li:hover { color: var(--acc); } .lb-li span:nth-child(3), .lb-li span:nth-child(4) { text-align: right; }
.lb-ld { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); }
body[data-design="lab"] .kg .ji[href] .cv-fr { aspect-ratio: 1; }
body[data-design="lab"] .kt-top a, body[data-design="lab"] .chip { font-size: inherit; }
/* доступ Lab: рядки з TOTAL */
body[data-design="lab"] .jp-row { align-items: start; } body[data-design="lab"] .jp-row .pr2 { line-height: 1; margin-left: 0; }
body[data-design="lab"] .jp-row .nm2 b { font-size: 15px; letter-spacing: -.01em; font-weight: 400; }
body[data-design="lab"] .jc-t { font-size: clamp(15px, 1.4vw, 21px); letter-spacing: -.01em; text-transform: none; font-weight: 400; line-height: 1.15; margin-top: clamp(40px, 6vw, 90px); }
body[data-design="lab"] .jc .bin, body[data-design="lab"] .jc .plus { display: none; }
body[data-design="lab"] .rz-h { font-size: 11px; letter-spacing: .04em; }
@media (max-width: 820px) { .lb-co, .lb-tx { grid-column: 1 / -1 !important; } .lb-ch > *, .lb-ls > div { grid-column: 1 / -1 !important; } }

/* ============ LAB v4: увесь дизайн на одному вузькому моно-шрифті (справжній файл, без трюків зі стисканням) ============ */
.tk, .tk.r { transform: none; width: auto; margin-left: 0; }
body[data-design="lab"] .prompt, body[data-design="lab"] :is(.jg, .kg, .wk-s) .cp { transform: none; width: auto; }
body[data-design="lab"] { --f: "Thermo", ui-monospace, Menlo, monospace; font-size: 15px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
body[data-design="lab"] * { font-weight: 400 !important; }
body[data-design="lab"] :is(.mt, .cap, .top nav a, .acc, .btn, .toast, .rz li, .hm-go span, .ins-t .ds, .jp-row .nm2 p, .cv-cap, .cv-cap b, .chip, .lnk, .sheet .x, .foot, .foot .cap) { font-size: 13px; letter-spacing: .02em; line-height: 1.08; text-transform: uppercase; }
body[data-design="lab"] .top nav a sup { font-size: 10px; }
body[data-design="lab"] :is(.kt-h h1, .info h2, .jc-t, .rz-h, .jp-row .nm2 b, .ins-l p, .jc-meta p, .side p) { font-size: 17px; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
body[data-design="lab"] .ins-l p { max-width: 30ch; }
body[data-design="lab"] .hm-go b { font-size: clamp(30px, 3.6vw, 58px); letter-spacing: 0; line-height: 1; }
body[data-design="lab"] .btn { padding: 11px 14px 10px; }
body[data-design="lab"] .cur span { font-family: "Thermo", monospace; font-size: 12px; }
body[data-design="lab"] .lg i { font-size: 13px; }
body[data-design="lab"] .prompt { font-size: 15px; line-height: 1.12; max-width: 62ch; }
body[data-design="lab"] .coded { font-size: 15px; }
body[data-design="lab"] .ins-t a { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 60px; }
body[data-design="lab"] .reg.sc { font-family: "Thermo", monospace; font-size: 12px; }
.sw button { font: 400 11px/1 Arial, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; }
/* ефект сканування прибрано */
body[data-design="lab"] :is(.jg, .kg, .wk-s) .cv-fr::after { display: none !important; animation: none !important; }

body[data-design="lab"] .rz > div.sig { grid-column: 1 / -1; }
body[data-design="lab"] .pr > .cap:first-child { font-size: 13px; }

/* ============ ШЛІФУВАННЯ: спільні деталі для Journal і Lab ============ */
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }
#app.pg { animation: pg .5s var(--ease); }
@keyframes pg { from { opacity: 0; transform: translateY(8px); } }
body:is([data-design="journal"], [data-design="lab"]) .top { border-bottom: 1px solid transparent; transition: border-color .3s; }
body.scrolled:is([data-design="journal"], [data-design="lab"]) .top { border-bottom-color: var(--line); }
/* навігація між картками */
.nv { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 26px; position: relative; z-index: 2; }
.nv button { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; } .nv button:hover { color: var(--acc); border-color: currentColor; }
.nv .esc { margin-left: auto; }
body:not([data-design="journal"]):not([data-design="lab"]) .nv { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pr.tip { opacity: .75; } .pr.tip .prompt { font-size: 13px; }
.btn.ok { background: var(--acc); color: var(--on); }
.wk-h { gap: 18px; } .wk-h .rz-h { margin-right: auto; }
.rz .sig a:hover { color: var(--acc); }
/* Journal: дрібні доведення */
body[data-design="journal"] .kt-row { transition: padding .35s var(--ease); } body[data-design="journal"] .kt-row:hover { padding-left: 10px; }
body[data-design="journal"] .ins-t a { transition: padding .3s var(--ease); } body[data-design="journal"] .ins-t a:hover { padding-left: 8px; }
body[data-design="journal"] .hm-go a { transition: border-color .3s; } body[data-design="journal"] .hm-go a:hover { border-color: var(--acc); }
body[data-design="journal"] .sp4 dd { transition: color .2s; }
body[data-design="journal"] .kg .ji .cv-fr img, body[data-design="journal"] .hm .jg .ji .cv-fr img { transition: clip-path 1s var(--ease), transform 1.4s var(--ease), filter .4s; }
body[data-design="journal"] :is(.kg, .jg, .wk-s) .ji { position: relative; }
/* Lab: дрібні доведення в «чековій» стилістиці */
body[data-design="lab"] .top nav a.on::before { content: "[ "; } body[data-design="lab"] .top nav a.on::after { content: " ]"; }
body[data-design="lab"] .lb-li { border-top: 1px dashed var(--line); margin-top: .35em; } body[data-design="lab"] .lb-ls > div > .lb-li:first-child { border-top: 1px solid var(--ink); }
body[data-design="lab"] .lb-li.hot { color: var(--acc); }
body[data-design="lab"] .kt .kg .ji.hot .cv-fr { border-color: var(--ink); } body[data-design="lab"] .kt .kg .ji.hot .cv-fr i { transform: translate(-50%, -50%); }
body[data-design="lab"] .kt .kg .ji:not(.hot) .cv-fr img { transition: filter .25s; } body[data-design="lab"] .kt:has(.hot) .kg .ji[data-k]:not(.hot) .cv-fr img { filter: grayscale(1) opacity(.45); }
body[data-design="lab"] .ins-t a { border-top-style: dashed; } body[data-design="lab"] .ins-t a:first-of-type { border-top-style: solid; }
body[data-design="lab"] .jp-row { border-top-style: dashed; } body[data-design="lab"] .jp-row:first-child { border-top-style: solid; }
body[data-design="lab"] .rz, body[data-design="lab"] .hm-go a { border-top-style: dashed; }
body[data-design="lab"] .hm-mq { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
body[data-design="lab"] .btn { border: 1px solid var(--ink); } body[data-design="lab"] .btn:hover { border-color: var(--acc); }
body[data-design="lab"] .btn::before { content: "> "; background: none; width: auto; height: auto; margin: 0; border-radius: 0; display: inline; }
body[data-design="lab"] .acs.sub, body[data-design="lab"] .acs.pack { color: var(--acc); }
body[data-design="lab"] .nv { gap: 22px; }
body[data-design="lab"] .pr.tip .prompt { font-size: 14px; }
@media (max-width: 820px) {
  body[data-design="lab"] .reg.c { display: none; }
  .sw { gap: 6px; } .sw div { padding: 3px; } .sw button { padding: 6px 8px !important; }
  .nv { flex-wrap: wrap; gap: 14px; } .nv .esc { display: none; }
}

@media (max-width: 820px) {
  body:is([data-design="journal"], [data-design="lab"]) .sheet { display: block; padding-bottom: 90px; }
  body:is([data-design="journal"], [data-design="lab"]) .shots { display: block; overflow: visible; height: auto; padding-top: 44px; }
  body:is([data-design="journal"], [data-design="lab"]) .shots .fr { width: 100%; margin: 0 0 22px; }
  body:is([data-design="journal"], [data-design="lab"]) .shots img { width: 100%; height: auto; flex: none; }
}

/* ---- випуск: один sref-код, серія «картинка + промт» ---- */
.sn { font-style: normal; color: var(--dim); margin-left: .6em; }
.sh-h { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 14px; padding-top: 10px; border-top: 1px solid var(--ink); max-width: 620px; }
.pr.sh { padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 16px !important; }
.pr.sh .shn { text-align: left; align-self: start; font-weight: 700; }
.pr.sh .shn:hover { color: var(--acc); }
.shp { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }
.shp .lnk { flex: none; }
.pr.sh .tp { margin-top: 8px; opacity: .7; font-size: 12px; }
.shots .fr .fn { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 1px 5px; background: var(--bg); color: var(--ink); }
.shots .fr.hot { outline: 1px solid var(--acc); outline-offset: 4px; }
body[data-design="lab"] .sh-h { border-top-style: dashed; } body[data-design="lab"] .pr.sh { border-top-style: dashed; }

/* ---- Доступ (Journal + Lab): рядки рівнів, таблиця, паки ---- */
.ac-row { display: grid; grid-template-columns: 34px minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1.6fr) minmax(0, 2.4fr) auto; gap: 16px; align-items: center; padding: clamp(16px, 1.8vw, 26px) 0; border-top: 1px solid var(--line); }
.ac-row:first-child { border-top-color: var(--ink); } .ac-row:last-child { border-bottom: 1px solid var(--line); }
.ac-row b { font-size: clamp(18px, 1.9vw, 30px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.ac-row .ds { color: var(--dim); max-width: 34ch; }
.ac-row .pc { font-size: clamp(30px, 4vw, 64px); letter-spacing: -.06em; line-height: .9; white-space: nowrap; }
.ac-row .pc small { margin-left: 10px; letter-spacing: .06em; color: var(--dim); }
.ac-row.main .pc, .ac-row.main b { color: var(--acc); }
.ac-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: clamp(60px, 8vw, 120px); }
.ac-h .rz-h { margin-bottom: 14px; }
.ac-tb > * { display: grid; grid-template-columns: minmax(0, 4fr) repeat(6, minmax(0, 1fr)); gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ac-tb > .hd { color: var(--dim); border-top-color: var(--ink); }
.ac-tb > :last-child { border-bottom: 1px solid var(--line); }
.ac-tb .nm { font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.ac-tb .y { color: var(--acc); } .ac-tb a:hover .nm { color: var(--acc); }
.ac-pk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-pk > a { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--ink); }
.ac-pk img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 6px; transition: opacity .2s; }
.ac-pk a:hover img { opacity: .82; } .ac-pk a:hover b { color: var(--acc); }
.ac-pk b { font-size: clamp(16px, 1.5vw, 22px); font-weight: 400; letter-spacing: -.03em; }
.ac-go > div { grid-column: span 4; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ink); align-content: start; }
@media (max-width: 820px) {
  .ac-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .ac-row .ds { grid-column: 2 / -1; } .ac-row .mt:nth-of-type(2) { grid-column: 2 / -1; } .ac-row .pc { grid-column: 2; } 
  .ac-tb > * { grid-template-columns: minmax(0, 3fr) repeat(6, minmax(0, 1fr)); gap: 6px; } .ac-pk { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-go > div { grid-column: 1 / -1; }
}
body[data-design="lab"] :is(.ac-row, .ac-tb > *, .ac-pk a, .ac-go > div) { border-top-style: dashed; border-bottom-style: dashed; }
body[data-design="lab"] .ac-row b, body[data-design="lab"] .ac-pk b, body[data-design="lab"] .ac-tb .nm { font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
body[data-design="lab"] .ac-row .pc { letter-spacing: 0; } body[data-design="lab"] .ac-row .pc .tk { font-size: clamp(24px, 2.6vw, 42px); }
body[data-design="lab"] .ac-row .ds { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }

/* ---- мікрографіка Lab ---- */
.ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1; vertical-align: -3px; flex: none; overflow: visible; }
.sy { display: flex; gap: 9px; align-items: center; }
.bcd { display: flex; align-items: stretch; height: 30px; } .bcd i { background: var(--ink); flex: none; }
.tk.sp, .sp { letter-spacing: .34em; margin-top: 5px; display: block; }
.ww i { display: inline-block; width: .9em; }
.rul { display: flex; margin: clamp(30px, 4vw, 60px) 0 0; height: 26px; align-items: flex-end; color: var(--dim);
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 100% 11px no-repeat; }
.rul span { flex: 1; }
.lb-st { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: clamp(60px, 8vw, 130px); padding: 14px 0 0 30px; border-top: 1px dashed var(--ink); }
.lb-st .vt { position: absolute; left: 0; top: 14px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; color: var(--dim); }
.lb-st .c1 { grid-column: 1 / 4; } .lb-st .c2 { grid-column: 4 / 7; display: grid; gap: 12px; } .lb-st .c2 p { max-width: 24ch; }
.lb-st .c3 { grid-column: 8 / 10; display: grid; } .lb-st .c4 { grid-column: 10 / 13; display: grid; }
.lb-st .dm2 { color: var(--dim); margin-top: 14px; } .lb-st .ind2 { padding-left: 2.6em; }
.stp { justify-self: start; margin-top: 16px; padding: 6px 10px 5px; border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; display: grid; }
.stp b { font-weight: 400; font-size: 1.5em; line-height: 1; }
.lb-pr .b .sy { margin-bottom: 12px; } .bcw { margin-top: 14px; }
.lb-mf { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 22px; align-items: end; margin: 30px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); max-width: 620px; }
.lb-mf .bcd { height: 22px; }
.rz .thx { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; padding: clamp(30px, 4vw, 60px) 0 16px; }
.rz .thx > :nth-child(1) { grid-column: 1 / 7; } .rz .thx > :nth-child(2) { grid-column: 7 / 10; } .rz .thx > :nth-child(3) { grid-column: 10 / 13; justify-content: flex-end; }
body[data-design="lab"] .cp .st .ic { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
@media (max-width: 820px) { .lb-st > :not(.vt) { grid-column: 1 / -1 !important; } .rz .thx > * { grid-column: 1 / -1 !important; justify-content: flex-start !important; } .rul span:nth-child(n+6) { display: none; } .lb-mf { grid-template-columns: auto minmax(0, 1fr); } }

body[data-design="lab"] .rz > div.thx { grid-column: 1 / -1; }
.rz > div.thx { grid-column: 1 / -1; }
.thw { font-size: clamp(26px, 3.2vw, 54px); letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.sp4-buy .sp4-mk { margin-left: auto; display: flex; gap: 26px; align-items: flex-end; }
body[data-design="journal"] .cp .st .ic { width: 8px; height: 8px; vertical-align: -1px; margin-right: 3px; }
body[data-design="journal"] .lb-st { border-top-style: solid; } body[data-design="journal"] .lb-st .c3 span, body[data-design="journal"] .lb-st .c4 > span:not(.stp) { line-height: 1.5; }
body[data-design="journal"] .sp { letter-spacing: .3em; }
@media (max-width: 820px) { .sp4-buy { flex-wrap: wrap; } .sp4-buy .sp4-mk { margin-left: 0; } }
.pr.sh .shn img { display: block; width: 58px; aspect-ratio: 4 / 5; object-fit: cover; margin-top: 8px; transition: opacity .2s; } .pr.sh .shn:hover img { opacity: .8; }
@media (max-width: 820px) { .pr.sh .shn img { width: 44px; } }

/* ---- мікрографіка Journal: кружечки, fig., виноски, фоліо ---- */
.rgd { display: inline-flex; gap: 3px; vertical-align: middle; } .rgd i { width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0; }
.j-st { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: clamp(60px, 8vw, 130px); padding-top: 12px; border-top: 1px solid var(--ink); }
.j-st .a { grid-column: 1 / 4; display: grid; gap: 12px; justify-items: start; } .j-st .b { grid-column: 4 / 8; } .j-st .c { grid-column: 8 / 11; display: grid; gap: 4px; } .j-st .d { grid-column: 11 / 13; display: grid; gap: 6px; position: relative; }
.j-st .b a { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; padding: 4px 0; border-bottom: 1px solid var(--line); } .j-st .b a:hover { color: var(--acc); }
.j-st sup { font-size: .8em; margin-left: 2px; color: var(--acc); } .j-st .c .sy { margin-top: 14px; color: var(--ink); }
.j-st .nx:hover { color: var(--acc); } .j-st .d .plus { right: 0; bottom: -34px; }
.j-mf { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 620px; }
.rz > div.j-end { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; padding: clamp(30px, 4vw, 60px) 0 10px; }
.j-end .e1 { grid-column: 1 / 6; font-size: clamp(26px, 3.2vw, 54px); letter-spacing: -.05em; line-height: 1; } .j-end > :nth-child(2) { grid-column: 7 / 9; } .j-end > :nth-child(3) { grid-column: 9 / 12; } .j-end .sy { grid-column: 12 / 13; justify-content: flex-end; }
.sp4-buy .sp4-mk { align-items: center; }
body[data-design="journal"] .cp .st .ic { width: 7px; height: 7px; vertical-align: 0; margin-right: 4px; }
@media (max-width: 820px) { .j-st > *, .j-end > * { grid-column: 1 / -1 !important; justify-content: flex-start !important; } .j-end .sy { display: none; } }

/* ---- без штрихкодів; лінійка лише в Lab (колишній Journal), точна шкала ---- */
.rul { position: relative; display: flex; overflow: hidden; height: 30px; align-items: flex-end; margin: clamp(30px, 4vw, 60px) 0 0; color: var(--dim);
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 4px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 100% 8px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100px) 0 0 / 100% 14px no-repeat; }
.rul span { flex: none; width: 100px; padding-left: 4px; } .rul b { position: absolute; right: 0; bottom: 0; padding-left: 8px; background: var(--bg); font-weight: 400; color: var(--acc); }
.bcw { margin-top: 14px; }
/* ---- Lab: зразок із виносками ---- */
.spx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-top: clamp(60px, 8vw, 130px); }
.spx-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; }
.spx-l { grid-column: 1 / 4; display: grid; gap: 5px; align-content: start; } .spx-l .sy { margin: 14px 0 22px; }
.spx-l dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 0; margin: 0; max-width: 250px; } .spx-l dt { color: var(--dim); } .spx-l dd { margin: 0; position: relative; padding-top: 7px; }
.spx-l dd i { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--line); } .spx-l dd i::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: var(--v); background: var(--acc); }
.spx-im { grid-column: 5 / 9; position: relative; display: block; text-align: left; }
.spx-im .cv-fr { display: block; position: relative; overflow: visible; } .spx-im img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spx-im .mk { position: absolute; z-index: 3; width: 17px; height: 17px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--acc); color: var(--on); display: grid; place-items: center; font-size: 9px; font-weight: 700; text-transform: lowercase; }
.spx-im .ld { position: absolute; z-index: 2; right: -32px; height: 1px; background: var(--acc); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.spx-im .ld::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--acc); background: var(--bg); }
.spx-im .hd { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--dim); } .spx-im .hd i { flex: 1; height: 7px; border-left: 1px solid var(--ink); border-right: 0; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat; } .spx-im .hd i:last-child { border-left: 0; border-right: 1px solid var(--ink); }
.spx-im .vd { position: absolute; left: -18px; top: 0; bottom: 30px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; color: var(--dim); border-right: 1px solid var(--line); padding-right: 5px; }
.spx-r { grid-column: 9 / 13; position: relative; margin-left: 28px; margin-bottom: 30px; }
.spx-r div { position: absolute; left: 0; right: 0; transform: translateY(-7px); display: grid; grid-template-columns: 18px 84px minmax(0, 1fr); } .spx-r b { color: var(--acc); text-transform: lowercase; }
/* ---- Lab: колекції як таблиця елементів ---- */
.pt { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(36px, 5vw, 70px); border-left: 1px solid var(--line); }
.pt a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 4px; padding: 8px 8px 10px; border: 1px solid var(--line); border-left: 0; transition: background .2s, color .2s; }
.pt b { grid-column: 1 / -1; font-size: clamp(26px, 3vw, 50px); font-weight: 400; letter-spacing: -.06em; line-height: 1; margin: 14px 0 12px; }
.pt .nm, .pt .dim { grid-column: 1 / -1; } .pt .r { text-align: right; } .pt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt a.free b { color: var(--acc); } .pt a:hover { background: var(--ink); color: var(--bg); } .pt a:hover b, .pt a:hover .dim { color: inherit; }
body[data-design="lab"] .pt { display: none; }
/* ---- Чек: проста сторінка «Доступ» ---- */
.ck-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(50px, 7vw, 110px); align-items: start; }
.ck-t { grid-column: 1 / -1; margin-bottom: clamp(40px, 6vw, 90px); } .ck-l { grid-column: 1 / 7; } .ck-r { grid-column: 9 / 13; }
.ck-p { padding: 14px 0 26px; border-top: 1px dashed var(--ink); } .ck-p p { max-width: 44ch; margin: 6px 0 0 2.4em; }
.ck-n { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; font-size: clamp(17px, 1.7vw, 26px); }
.ck-b { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 22px 0 0 calc(2.4em * .86); }
.ck-p.main .ck-b .tk { color: var(--acc); }
.ck-r .lb-li { border-bottom: 1px dashed var(--line); padding-bottom: .4em; }
@media (max-width: 820px) { .spx > *, .ck-g > * { grid-column: 1 / -1 !important; } .spx-r { position: static; margin: 0; display: grid; gap: 6px; } .spx-r div { position: static; transform: none; } .spx-im .ld { display: none; } .spx-im .vd { display: none; } .pt { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ck-b { margin-left: 0; } }

/* ---- зразок: спокійний аркуш (картинка · дані · кадри серії) ---- */
.spx { align-items: start; }
.spx-im { grid-column: 1 / 4; } .spx-im .cv-fr { overflow: hidden; }
.spx-m { grid-column: 5 / 9; display: grid; gap: 14px; justify-items: start; align-content: start; }
.spx-m .cd { font-size: clamp(24px, 2.8vw, 46px); letter-spacing: -.05em; line-height: 1; margin: 0 0 8px; }
.spx-m dl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0; margin: 0; width: 100%; max-width: 420px; }
.spx-m dt, .spx-m dd { margin: 0; padding: 6px 0; border-top: 1px solid var(--line); } .spx-m dt { color: var(--dim); }
.spx-m .row { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.spx-s { grid-column: 10 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.spx-s button { display: grid; gap: 4px; text-align: left; } .spx-s img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .2s; } .spx-s button:hover img { opacity: .8; }
@media (max-width: 820px) { .spx-s { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== прохід читабельності ===== */
:root { --dim: #737373; }
body[data-theme="grey"]:is([data-design="journal"], [data-design="lab"]) { --dim: #666; }
body[data-design="lab"] { --dim: #626262; }
body[data-design="journal"] .mt { font-size: 10px; line-height: 1.35; letter-spacing: .05em; }
body[data-design="journal"] :is(.jg, .kg, .wk-s) .cp { font-size: 10px; }
/* підписи карток: дві строки замість обрізаних трьох крапок */
:is(.jg, .kg, .wk-s) .cp span:nth-child(2) { white-space: normal !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.kg .cp { align-items: start; }
/* головна: списки колекцій стоять на місці */
.hm-jump { transform: none !important; } .hm-jump .jh { padding-bottom: 6px; }
/* каталог: групи */
.kt-gr { display: flex; justify-content: space-between; gap: 16px; padding: clamp(34px, 4vw, 60px) 0 10px; border-bottom: 1px solid var(--ink); }
.kt-gr:first-of-type { padding-top: 0; }
.kt-gr + .kt-row { border-top: 0; }
body[data-design="journal"] .kt-gr span:first-child { font-size: 12px; letter-spacing: .04em; color: var(--ink); }
.lb-gr { margin: 1.6em 0 .2em; color: var(--dim); border-bottom: 1px dashed var(--ink); padding-bottom: .3em; }
.lb-ls > div > .lb-gr:first-child { margin-top: 0; }
/* колекція: фільтр і розділи */
.kt-f { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.kt-f .chip { margin-right: 6px; }
.kg-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-top: clamp(30px, 4vw, 60px); border-top: 1px solid var(--ink); }
/* плитка без картинки */
.cv-fr .tl { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--soft); text-align: left; }
.cv-fr .tl b { font-size: clamp(15px, 1.4vw, 21px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.cv-fr .tl .mt:last-child { margin-top: auto; text-transform: none; letter-spacing: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
body[data-design="lab"] .cv-fr .tl b { font-family: "Thermo", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .02em; font-size: 17px; }
.cv-fr:has(> .tl) { aspect-ratio: 4 / 5; position: relative; display: block; }
/* пост випуску */
.pst { max-width: 620px; margin: 4px 0 6px; }
.pst summary { cursor: pointer; color: var(--dim); list-style: none; padding: 8px 0; border-top: 1px solid var(--line); }
.pst summary::before { content: "+ "; } .pst[open] summary::before { content: "− "; }
.pst summary:hover { color: var(--acc); }
.pst .prompt { color: var(--ink); padding: 4px 0 12px; }
/* модалка: промти легше читати */
body[data-design="journal"] .pr.sh .prompt { font-size: 14px; line-height: 1.45; max-width: 60ch; }
.hm-jump { align-self: center; align-content: start; height: auto; }
@media (max-width: 820px) {
  .rz .sig { flex-wrap: wrap; gap: 6px 16px; }
  .kg .cp .st { font-size: 0; } .kg .cp .st .ic { font-size: 10px; }
  .kt-f { flex-wrap: wrap; }
}

/* ===== головна секціями (без рандому) ===== */
.hgs { padding: clamp(40px, 5vw, 80px) var(--pad) 0; }
.hg-h { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(0, 6fr) auto; gap: 16px; align-items: baseline; padding: 12px 0 18px; border-top: 1px solid var(--ink); }
.hg-h .t { font-weight: 400; font-size: clamp(20px, 2vw, 32px); letter-spacing: -.04em; text-transform: none; line-height: 1; color: var(--ink); }
.hg-h .l { display: flex; flex-wrap: wrap; gap: 4px 22px; } .hg-h .l a:hover { color: var(--acc); }
.hg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(26px, 3vw, 46px) clamp(12px, 1.4vw, 22px); align-items: start; margin-bottom: clamp(60px, 7vw, 120px); }
.hg .ji { display: block; width: 100%; text-align: left; } .hg .ji.big { grid-column: span 2; grid-row: span 2; }
.hg .ji .cv-fr { display: block; position: relative; aspect-ratio: 4 / 5; } .hg .ji .cv-fr img { width: 100%; height: 100%; object-fit: cover; }
.hg .cp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 8px; }
.hg .cp .tg { text-align: right; white-space: nowrap; }
.hg .ji:hover .cv-fr { border-color: var(--ink); }
.hg-say { margin: 0 0 clamp(60px, 7vw, 120px); max-width: 22ch; font-size: clamp(22px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.04em; color: var(--ghost); text-transform: uppercase; }
body[data-design="lab"] .hg-say { max-width: none; color: var(--ink); text-transform: none; }
body[data-design="lab"] .hg-h { border-top-style: dashed; } body[data-design="lab"] .hg-h .t { font-family: "Thermo", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .02em; font-size: 22px; }
@media (max-width: 820px) { .hg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hg-h { grid-template-columns: 30px minmax(0, 1fr) auto; } .hg-h .l { grid-column: 1 / -1; grid-row: 2; } }
.hg .cp { grid-template-columns: minmax(0, 1fr); gap: 2px; } .hg .cp .tg { text-align: left; }

/* ===== головна: щільна розкидана мозаїка (колонки, без дірок) ===== */
.msn { columns: 5; column-gap: clamp(16px, 2vw, 34px); padding: clamp(40px, 5vw, 80px) var(--pad) clamp(40px, 5vw, 80px); }
.msn > * { break-inside: avoid; display: block; margin: 0 0 clamp(26px, 3.2vw, 54px); }
.msn .ji.ms { width: 100%; text-align: left; }
.msn .ji.w2 { width: 78%; } .msn .ji.w3 { width: 60%; } .msn .ji.r { margin-left: auto; }
.msn .ji.w3:not(.r) { margin-left: 12%; }
.msn .ji .cv-fr { display: block; position: relative; } .msn .ji .cv-fr img { width: 100%; height: auto; display: block; }
.msn .cp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 7px; }
.msn .ji:hover .cv-fr { border-color: var(--ink); }
.ms-say { font-size: clamp(17px, 1.6vw, 26px); line-height: 1.08; letter-spacing: -.035em; padding: 10px 0; }
.ms-say.j { color: var(--ink); } .ms-say.j::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-bottom: 12px; }
.ms-ix { display: grid; gap: 3px; } .ms-ix > span { margin-top: 12px; } .ms-ix > span:first-child { margin-top: 0; }
.ms-ix a { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); } .ms-ix a:hover { color: var(--acc); }
body[data-design="lab"] .ms-ix a { border-top-style: dashed; }
@media (max-width: 1100px) { .msn { columns: 4; } }
@media (max-width: 820px) { .msn { columns: 2; } .msn .ji.w3 { width: 80%; } }
.msn { columns: 4; } @media (min-width: 1700px) { .msn { columns: 5; } }
@media (max-width: 1100px) { .msn { columns: 3; } }
@media (max-width: 820px) { .msn { columns: 2; } }
/* Чек: довгі промти — звичайний моноширинний рядковими, щоб читалось; мікродеталі лишаються вузьким капсом */
body[data-design="lab"] .prompt { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: none; font-size: 13px; line-height: 1.55; letter-spacing: 0; transform: none; width: auto; max-width: 64ch; }
body[data-design="lab"] .pr.tip .prompt, body[data-design="lab"] .pr.sh .tp { font-size: 12px; }

/* ===== мікродеталі Чека, перекладені мовою Lab ===== */
.jstp { position: relative; display: inline-grid; place-items: center; width: 96px; height: 96px; color: var(--acc); transform: rotate(-12deg); flex: none; }
.jstp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jstp circle { fill: none; stroke: currentColor; stroke-width: 1.1; } .jstp circle + circle { stroke-width: .7; }
.jstp text { font: 400 8.6px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.jstp b { position: relative; font-weight: 400; font-size: 21px; letter-spacing: -.04em; }
.jstp.s { width: 72px; height: 72px; } .jstp.s text { font-size: 9.4px; } .jstp.s b { font-size: 16px; }
.jck { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.jck li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); margin-right: 8px; vertical-align: 0; }
.jck li.on::before { background: var(--acc); border-color: var(--acc); } .jck li:not(.on) { color: var(--dim); text-decoration: line-through; }
.jsp { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0; margin: 0; }
.jsp dt, .jsp dd { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); } .jsp dt { color: var(--dim); }
/* герой */
.j-hs { grid-column: 9 / 13; grid-row: 2; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: end; }
.j-hs .jsp { grid-column: 1 / -1; }
.j-hs .tot { display: grid; } .j-hs .tot b { font-weight: 400; font-size: clamp(34px, 4vw, 64px); letter-spacing: -.06em; line-height: .9; }
.hm-head .lg2 { grid-row: 3; }
/* попередження */
.j-wrn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; padding: clamp(60px, 8vw, 130px) 0 0; }
.j-wrn p { grid-column: 1 / 8; margin: 0; font-size: clamp(26px, 3.4vw, 56px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.j-wrn .mt { grid-column: 9 / 11; } .j-wrn .jstp { grid-column: 12 / 13; justify-self: end; }
/* смужка */
.j-st .e { grid-column: 1 / 4; margin-top: 30px; } .j-st .f { grid-column: 4 / 8; margin-top: 30px; display: grid; gap: 3px; }
.j-st .g { grid-column: 9 / 13; margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.j-st .g .sig { width: 92px; transform: rotate(-6deg); margin-left: -34px; }
/* колекція */
.j-tot { display: grid; margin-left: auto; } .j-tot b { font-weight: 400; font-size: clamp(28px, 3vw, 48px); letter-spacing: -.05em; line-height: .9; }
.sp4-buy .jstp { margin: -10px 0; } .sp4-buy .sp4-mk { margin-left: 0; }
/* картка */
.j-mf { flex-wrap: wrap; align-items: center; } .j-mf .jck { margin-left: auto; } .j-mf .jstp { margin: -8px 0 -8px 8px; }
/* футер */
.j-end .jsp { grid-column: 7 / 9; } .j-end > :nth-child(3) { grid-column: 9 / 10; } .j-end > :nth-child(4) { grid-column: 10 / 12; } .j-end .sy { grid-column: 12 / 13; }
body[data-design="lab"] :is(.jstp, .jck, .jsp) { display: none; }
@media (max-width: 820px) { .j-hs, .j-wrn > *, .j-st > *, .j-end > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; justify-content: flex-start !important; } .j-tot { margin-left: 0; } .j-mf .jck { margin-left: 0; } }
.sw [hidden] { display: none !important; }
.j-st .g[hidden] { display: none; }

/* ===== бокові вертикальні написи (з Чека) мовою Lab ===== */
body[data-design="journal"] .reg.sc, body[data-design="journal"] .reg.sr, body[data-design="journal"] .reg.pr { display: block; position: fixed; z-index: 30; pointer-events: none; }
body[data-design="journal"] .reg.sc { left: 8px; top: 50%; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg.sr { display: none; }
body[data-design="journal"] .reg.sr { right: 18px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
body[data-design="journal"] .reg.pr { right: 8px; top: 76px; bottom: 84px; width: 1px; background: var(--line); }
body[data-design="journal"] .reg.pr i { position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); transform: translateY(-50%); }
body.on-canvas .reg.sr { display: none !important; }
.j-st { position: relative; } .j-st .vt { position: absolute; left: calc(var(--pad) * -1 + 8px); top: 14px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; color: var(--dim); display: none; }
@media (max-width: 820px) { body[data-design="journal"] :is(.reg.sc, .reg.sr, .reg.pr) { display: none !important; } }

/* ===== одна сітка для низу сторінки: чверті 1 · 4 · 7 · 10 (як колонки футера) ===== */
.j-st .a { grid-column: 1 / 4; } .j-st .b { grid-column: 4 / 7; } .j-st .c { grid-column: 7 / 10; } .j-st .d { grid-column: 10 / 13; }
.j-st .e { grid-column: 1 / 4; } .j-st .f { grid-column: 4 / 7; } .j-st .d .plus { display: none; }
.hm-go { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hm-go a, .ac-go > div { grid-column: span 1 !important; }
.rz > div { grid-column: span 3; }
.rz > div.j-end { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.j-end .e1 { grid-column: 1 / 3 !important; } .j-end .jsp { grid-column: 3 / 4 !important; }
.j-end > :nth-child(3) { grid-column: 4 / 5 !important; display: none; }
.j-end > :nth-child(4) { grid-column: 4 / 5 !important; } .j-end .sy { grid-column: 4 / 5 !important; justify-content: flex-start; }
.j-end > :nth-child(4), .j-end .sy { grid-row: 1; }
.j-end .sy { align-self: start; }
@media (max-width: 820px) { .hm-go { grid-template-columns: 1fr; } .j-end > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }

/* ===== низ сторінки: щільний блок на 4 колонки ===== */
.j-st { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; margin-top: clamp(50px, 6vw, 100px); }
.j-st .a { grid-column: 1; grid-row: 1; } .j-st .e { grid-column: 1; grid-row: 2; margin-top: 0; }
.j-st .b { grid-column: 2; grid-row: 1 / 3; }
.j-st .c { grid-column: 3; grid-row: 1; } .j-st .f { grid-column: 3; grid-row: 2; margin-top: 0; }
.j-st .d { grid-column: 4; grid-row: 1; }
.j-st .c .sy { margin-top: 10px; }
.hm-go { padding-top: clamp(50px, 6vw, 100px); }
.rz > div.j-end { grid-template-rows: auto auto; align-items: end; }
.j-end .e1 { grid-row: 1 / 3; } .j-end .jsp { grid-row: 1 / 3; }
.j-end .sy { grid-column: 4 / 5 !important; grid-row: 1 !important; align-self: end; margin-bottom: 10px; }
.j-end > :nth-child(4) { grid-column: 4 / 5 !important; grid-row: 2 !important; }
@media (max-width: 820px) { .j-st { grid-template-columns: 1fr; } .j-st > * { grid-column: 1 !important; grid-row: auto !important; } }

/* каталог = таблиця-фільтр + картки (iter 24) */
.pt a.free b { color: inherit; }
.pt a.on { background: var(--ink); color: var(--bg); } .pt a.on b, .pt a.on .dim { color: var(--acc); }
.kc-h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: baseline; margin: clamp(48px, 6vw, 90px) 0 0; padding-top: 14px; border-top: 1px solid var(--ink); }
.kt-f + .kc-h { margin-top: 18px; }
.kc-h h2 { margin: 0; font-size: clamp(28px, 3.4vw, 56px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.kc-h h2 sup { font-size: 11px; letter-spacing: .06em; margin-left: 6px; vertical-align: top; }
.kc-h h2 a:hover, .kc-h .lnk:hover { color: var(--acc); }
.dsc { max-width: 52ch; margin: 18px 0 22px; font-size: 16px; line-height: 1.45; }
@media (max-width: 820px) { .kc-h { grid-template-columns: 1fr auto; } .kc-h > .dim { display: none; } }
@media (max-width: 820px) { .pt { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* кнопки в стилі терміналу (з Чек), шрифт не змінюємо (iter 25) */
body[data-design="journal"] .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); white-space: nowrap; padding: 11px 16px 10px; }
body[data-design="journal"] .btn::before { content: "> "; background: none; width: auto; height: auto; margin: 0; border-radius: 0; display: inline; color: var(--acc); }
body[data-design="journal"] .btn:hover::before { background: none; color: var(--acc); }
body[data-design="journal"] .plan.main .btn { background: var(--on); color: var(--acc); border-color: var(--on); }
body:is([data-design="journal"], [data-design="lab"]) .locknote .row { margin-left: 0; }
.locknote > .cap.dot { display: inline-flex; align-items: center; gap: 8px; }
.locknote > .cap.dot::before { margin: 0; }
.sh-t { display: block; margin: 0 0 6px; font-weight: 400; font-size: 15px; }
.shots video { width: 100%; display: block; background: var(--soft); }
.kt-m { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0 0; }
.kt-m .chip sup { font-size: 8px; margin-left: 2px; color: var(--dim); }
.kt-m .chip.on sup { color: var(--acc); }
.gd { margin: -8px 0 22px; color: var(--dim); } .gd a, .gd .lnk { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } .gd a:hover, .gd .lnk:hover { color: var(--acc); }

/* кнопка як у Чек: чорна, «>», + мікроанімація: заливка синім зліва, «>» зсувається, курсор блимає (iter 29) */
body[data-design="journal"] .btn { position: relative; background: var(--ink) linear-gradient(var(--acc), var(--acc)) no-repeat 0 0 / 0 100%; color: var(--bg); border: 1px solid var(--ink); white-space: nowrap; padding: 12px 16px 11px; transition: background-size .35s var(--ease), border-color .35s, color .2s, transform .2s var(--ease); }
body[data-design="journal"] .btn::before { content: ">"; display: inline-block; width: auto; height: auto; margin: 0 8px 0 0; border-radius: 0; background: none; color: var(--acc); transition: transform .3s var(--ease), color .2s; }
body[data-design="journal"] .btn::after { content: "▍"; display: inline-block; margin-left: 4px; color: var(--acc); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease); }
body[data-design="journal"] .btn:hover { background: var(--ink) linear-gradient(var(--acc), var(--acc)) no-repeat 0 0 / 100% 100%; border-color: var(--acc); color: var(--on); }
body[data-design="journal"] .btn:hover::before { transform: translateX(3px); color: var(--on); background: none; }
body[data-design="journal"] .btn:hover::after { opacity: 1; transform: none; color: var(--on); animation: blink 1s steps(2) infinite; }
body[data-design="journal"] .btn:active { transform: scale(.98); }
body[data-design="journal"] .btn.ok { background: var(--ink) linear-gradient(var(--acc), var(--acc)) no-repeat 0 0 / 100% 100%; border-color: var(--acc); color: var(--on); }
body[data-design="journal"] .btn.ok::before { color: var(--on); }
body[data-design="journal"] .plan.main .btn { background-color: var(--on); color: var(--acc); border-color: var(--on); }
body[data-design="journal"] .plan.main .btn::before, body[data-design="journal"] .plan.main .btn::after { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { body[data-design="journal"] .btn:hover::after { animation: none; } }
.sw [hidden] { display: none !important; } .j-end .e1 a:hover { color: var(--acc); }
.j-end .e1 a { display: inline; }
.j-end .e1 a { position: static; }
@media (max-width: 820px) {
  .rz > div.j-end, .rz > .sig { grid-column: 1 / -1 !important; }
  .rz > div.j-end { grid-template-columns: 1fr !important; gap: 22px; }
  .j-end > *, .j-end .e1, .j-end .jsp { grid-column: 1 / -1 !important; }
  .rz .sig { flex-direction: column; gap: 4px; }
}

/* Explore: точкова сітка на полотні, їде разом з картками (iter 31) */
body[data-design="journal"] .cv-in {
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--ink) 42%, transparent) 1.4px, transparent 1.9px),
    radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) .9px, transparent 1.3px);
  background-size: 120px 120px, 24px 24px;
  background-position: 0 0, 0 0;
}
.ac-pk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-pk .pk { display: grid; gap: 6px; align-content: start; padding-top: 10px; border-top: 1px solid var(--ink); }
.ac-pk .pk .row { margin-top: 10px; }
.ac-pk .pk:hover b { color: var(--acc); }
@media (max-width: 820px) { .ac-pk { grid-template-columns: 1fr; } }
.ac-pk .pk img { aspect-ratio: 1 / 1; }
.ac-pk .pk .row { display: flex; align-items: center; gap: 18px; }
.pk-ok { color: var(--acc); }
.ac-pk { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
.ac-pk .pk-im { display: block; padding: 0; background: var(--soft); }
.ac-pk .pk img { aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
@media (max-width: 1100px) { .ac-pk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ac-pk { grid-template-columns: 1fr; } }
.ji.gd-c .cv-fr img { object-position: left top; }
.sn.nw { color: var(--acc); }
/* вхід через Telegram */
.lg-tb > * { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 3fr); }
.lg-tb > * > span:last-child { text-transform: none; letter-spacing: 0; font-size: 13px; }
.tgw { margin: 24px 0 40px; min-height: 48px; }
@media (max-width: 620px) { .lg-tb > * { grid-template-columns: 1fr; gap: 4px; } }
.tg-demo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tg-btn { display: inline-flex; align-items: center; gap: 10px; background: #54a9eb; color: #fff; font-size: 16px; padding: 10px 20px; opacity: .45; }
.tg-btn::before { content: ""; width: 18px; height: 18px; background: #fff; clip-path: polygon(0 45%, 100% 0, 80% 100%, 50% 70%, 35% 95%, 35% 65%); }

/* жива текстура в картці (колекція Textures) */
.fr.tex { position: relative; }
.fr.tex canvas { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; display: block; touch-action: pan-y; cursor: crosshair; background: #000; }
.fr.tex .tx-h { display: block; padding-top: 8px; color: var(--dim, #888); pointer-events: none; }
canvas.tx-live { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; background: #000; filter: none !important; opacity: 1 !important; }
.fr.tex .tx-ctl { display: grid; grid-template-columns: 84px 1fr 44px; gap: 8px 12px; align-items: center; padding: 10px 0 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.fr.tex .tx-ctl input { width: 100%; accent-color: #1c44d6; }
.fr.tex .tx-ctl span { text-align: right; font-variant-numeric: tabular-nums; }
.fr.tex .tx-ctl [data-txreset] { grid-column: 1 / -1; justify-self: start; }

/* вітрина генераторів */
.tl-g { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: clamp(16px, 2vw, 32px) !important; }
.tl-g .ji { display: grid; gap: 0; color: inherit; text-decoration: none; }
.tl-g .ji .cv-fr { aspect-ratio: 4 / 5; }
.tl-g .ji:hover .cv-fr { border-color: var(--ink); } .tl-g .ji:hover .cv-fr i { transform: translate(-50%, -50%); }
.tl-g .cp { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding-top: 9px; }
.tl-g .cp .st { color: var(--dim); }
.tl-g .tl-d { color: var(--dim); font-size: 13px; line-height: 1.3; padding: 6px 0 0 28px; max-width: 34ch; }
@media (max-width: 820px) { .tl-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* генератор усередині сайту */
.tl-pg { padding-bottom: clamp(40px, 6vw, 90px); }
.tl-fr { display: block; width: calc(100% - 2 * var(--pad)); margin: 14px var(--pad); height: calc(100vh - 150px); min-height: 620px; border: 1px solid var(--line); background: #f2f2f0; }
@media (max-width: 820px) { .tl-fr { height: 160vh; } }
