@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Tektur';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/tektur-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Tektur';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/tektur-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Токени сайту. Палітра: папір і чорнило, один акцент (кіновар) лише для головної дії. */
:root {
  --paper: #F4F1EA;
  --paper-2: #E9E4D8;
  --paper-3: #DDD6C6;
  --ink: #1C1B18;
  --ink-2: #504C43;
  --line: #D3CCBB;
  --accent: #B93A12;
  --accent-hover: #9C2F0D;
  --on-accent: #FFFFFF;
  --f-display: Tektur, "Segoe UI", system-ui, sans-serif;   /* 11.11 (TG 12497): замість Unbounded; один файл накреслення 600, у @font-face оголошено 500–700 */
  --f-body: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 4px;
  --ctl: 48px;
  --gut: 16px;
  --wrap: 1180px;
  /* схеми в розрізі й логотип */
  --sv-base: #CFC8B6; --sv-edge: #504C43; --sv-cone: #8F8B7F; --sv-cone-2: #A5A194; --sv-screw: #1C1B18; --sv-wall: #DDD6C6;
  --logo-1: #A39E90; --logo-2: #6B665A; --logo-3: #1C1B18;
  --scrim: rgba(20, 19, 17, .88);
  --scrim-soft: rgba(20, 19, 17, .6);
  color-scheme: light;
}
/* Темна тема (TG 11854): тепла майже-чорна основа, той самий кіновар, але світліший тон, щоб на темному тримав контраст.
   Текст на кнопці акценту темний (5.8:1), приглушений текст 7.2:1 на тлі. */
:root[data-theme="dark"] {
  --paper: #141311;
  --paper-2: #1C1A17;
  --paper-3: #262420;
  --ink: #ECE6DA;
  --ink-2: #A8A193;
  --line: #34302A;
  --accent: #E8693A;
  --accent-hover: #F07A48;
  --on-accent: #141311;
  --sv-base: #4A463E; --sv-edge: #8A8477; --sv-cone: #8C877B; --sv-cone-2: #6E6A60; --sv-screw: #ECE6DA; --sv-wall: #2E2B26;
  --logo-1: #6E6A60; --logo-2: #A8A193; --logo-3: #ECE6DA;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 28px; } }
@media (min-width: 1100px) { :root { --gut: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.2; font-weight: 500; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 1em; }
.prose { max-width: 62ch; }
.prose > :last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--f-display); text-decoration: none; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 719px) { .nav { margin-left: 0; width: 100%; gap: 0 18px; } }

/* Кнопки: один розмір контролу */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Мітка «Приклад» */
.tag { display: inline-block; border: 1px solid var(--ink-2); color: var(--ink-2); border-radius: 2px; padding: 1px 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* Герой: текст зліва, зображення справа з «шарами» позаду */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } .hero { padding: 64px 0 88px; } }
.hero .kicker { margin: 0 0 14px; font-weight: 600; color: var(--ink-2); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; line-height: 1.6; max-width: 52ch; margin-bottom: 28px; }
.hero .after { margin: 18px 0 0; }
.stackpic { margin: 0; }
.stackpic .frame { border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 10px 10px 0 var(--paper-3), 20px 20px 0 var(--paper-2); }
.stackpic img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.stackpic figcaption { margin-top: 34px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* Відео-шапка темної головної. Медіа на всю ширину; на десктопі текст лежить на нижньому краї поверх затемнення,
   на телефоні йде під медіа. Висота обмежена, щоб під шапкою було видно початок наступного блоку. */
.vhero { position: relative; }
.vhero-media { position: relative; aspect-ratio: 4 / 3; max-height: 72vh; width: 100%; overflow: hidden; background: var(--paper-2); }
@media (min-width: 600px) { .vhero-media { aspect-ratio: 16 / 9; } }
.vhero-media > svg, .vhero-media > video, .vhero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero-chip { position: absolute; right: var(--gut); bottom: 16px; z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r); background: var(--scrim-soft); color: var(--ink); border: 0;
  font: 600 14px/1 var(--f-body); }
.vhero-chip svg { width: 18px; height: 18px; }
/* «Відео скоро» — підпис без рамки; кнопка паузи — з рамкою й тієї ж висоти, що кнопки поруч */
.vhero-toggle { min-height: var(--ctl); border: 1.5px solid var(--ink-2); cursor: pointer; transition: background-color .15s, border-color .15s; }
.vhero-toggle:hover { background: var(--scrim); border-color: var(--ink); }
.vhero-text { padding: 28px 0 0; }
.vhero-text .kicker { margin: 0 0 12px; font-weight: 600; color: var(--ink-2); }
.vhero-text h1 { margin-bottom: 24px; max-width: 16ch; }
.vstrip { padding: 24px 0 56px; }
.vstrip .lead { font-size: 1.15rem; line-height: 1.6; max-width: 58ch; margin-bottom: 12px; }
.vstrip p:last-child { margin: 0; }
@media (min-width: 900px) {
  .vhero-media { max-height: 78vh; }
  .vhero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, var(--scrim) 0%, var(--scrim-soft) 26%, transparent 58%); }
  /* чуже відео чи постер може бути світлим: затемнення вище й щільніше, щоб підпис над заголовком читався */
  .vhero-media[data-media]::after { background: linear-gradient(to top, var(--scrim) 0%, var(--scrim) 28%, var(--scrim-soft) 52%, transparent 78%); }
  .vhero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 0 48px; pointer-events: none; }
  .vhero-text .btns { pointer-events: auto; }
  .vhero-text h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
  .vhero-chip { bottom: 48px; }
  .vstrip { padding: 40px 0 72px; }
}
.btn-ghost { background: var(--scrim-soft); }
[data-theme="dark"] .age { background: var(--paper-3); color: var(--ink); border-top: 1px solid var(--line); }

/* Секції */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 12px; }
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } .split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Схема в розрізі */
.xs { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; }
.xs svg { width: 100%; height: auto; overflow: visible; }
.xs .pl { transition: transform .25s ease; transform: translateY(calc(var(--ex, 0) * var(--i) * -1px)); }
@media (prefers-reduced-motion: reduce) { .xs .pl { transition: none; } }
.xs-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.xs-ctl label { font-weight: 600; font-size: 15px; }
.xs-ctl input[type=range] { flex: 1 1 180px; min-width: 140px; min-height: 44px; accent-color: var(--ink); }
.xs-leg { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.xs-leg li { display: inline-flex; align-items: center; gap: 7px; }
.xs-leg i { width: 14px; height: 10px; display: inline-block; border-radius: 1px; }
/* Сцена складання на прокрутці. Без класу is-js (нема JS або prefers-reduced-motion) усе стоїть у кінцевому кадрі: картина на стіні. */
.story { padding-bottom: 0; }
.story-grid { display: grid; gap: 0; }
.story-stage { position: sticky; top: 0; z-index: 2; background: var(--paper); height: 46vh; padding: 8px 0; display: flex; align-items: center; }
.story-fig { width: 100%; }
.story-fig svg { max-height: calc(46vh - 136px); margin: 0 auto; }
/* Сцена (46vh) + відступи колонки кроків зверху (29vh) і знизу (25vh) = 100vh: тоді довжина прокрутки = 5 кроків,
   і центр поточного кроку стоїть на 75vh, одразу під сценою (на початку кроку 95vh, у кінці 55vh). На десктопі сцена в сусідній колонці: відступи 50vh + 50vh, центр на 50vh. */
.story-steps { list-style: none; margin: 0; padding: 29vh 0 25vh; counter-reset: st; }
.story-step { counter-increment: st; min-height: 40vh; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 12px; align-content: center; padding: 18px 0; max-width: 52ch; }
.story-step::before { content: counter(st); font: 700 2rem/1 var(--f-display); color: var(--ink-2); letter-spacing: -0.03em; }
.story-step h3 { margin-bottom: 6px; }
.story-step p { margin: 0; color: var(--ink-2); grid-column: 2; }
.story.is-js .story-step { transition: opacity .25s; opacity: .4; }
.story.is-js .story-step[aria-current="step"] { opacity: 1; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .story-stage { height: 100vh; padding: 0; background: none; }
  .story-fig svg { max-height: calc(100vh - 180px); }
  .story-steps { padding: 50vh 0; }
  .story-step { min-height: 70vh; }
}
.story svg .stk { transform-box: view-box; transform-origin: 320px 208px; transform: translate(201px, -8px) rotate(-90deg) scale(.6); }
.story.is-js svg .stk { transform: translate(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px)) rotate(calc(var(--rot, 0) * 1deg)) scale(var(--sc, 1)); }
.story.is-js svg .cn { opacity: var(--d, 1); transform: translateY(calc((1 - var(--d, 1)) * -90px)); }
.story.is-js svg .ly { opacity: var(--d, 1); transform: translateY(calc((1 - var(--d, 1)) * -230px)); }
.story.is-js svg .sc { opacity: var(--d, 1); transform: translateY(calc((1 - var(--d, 1)) * 80px)); }
.story.is-js svg .wl { opacity: var(--d, 1); }

.facts { margin: 0; padding: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 700 1.5rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; } }

/* Галерея дизайнів */
.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card a { display: block; text-decoration: none; }
.card .ph { border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card .ph { transition: border-color .15s; }
.card a:hover .ph { border-color: var(--ink); }
.card h3 { margin: 14px 0 4px; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.empty { border: 1px dashed var(--ink-2); padding: 28px; border-radius: var(--r); max-width: 62ch; }

/* Що в наборі */
.kit { display: grid; gap: 28px; }
@media (min-width: 900px) { .kit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.list { margin: 0; padding-left: 1.2em; }
.list li { margin-bottom: .55em; padding-left: .2em; }
.note { background: var(--paper-2); border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); }
.note p:last-child { margin-bottom: 0; }

/* Як замовити */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 700 2rem/1 var(--f-display); color: var(--ink-2); letter-spacing: -0.03em; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Сторінка дизайну */
.crumbs { padding: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.pdp { padding: 24px 0 64px; display: grid; gap: 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } .pdp .info { position: sticky; top: 24px; } }
.gal .main { margin: 0; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r); overflow: hidden; }
.gal .main img { width: 100%; height: auto; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.thumbs button { display: block; padding: 0; border: 2px solid transparent; background: none; border-radius: var(--r); cursor: pointer; width: 96px; flex: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 64px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 14px; }
.spec { margin: 22px 0; padding: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.order { margin: 24px 0 0; }
.order .btns .btn { flex: 1 1 220px; }
.order .hint { margin: 14px 0 0; }
.more { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.more h2 { margin-bottom: 24px; }

/* Текстові сторінки */
.page { padding-block: 40px 72px; }
.page h1 { margin-bottom: 24px; }
.page h2 { margin: 36px 0 12px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.page .prose p, .page .prose li { max-width: 62ch; }
.kv { margin: 0 0 8px; padding: 0; max-width: 62ch; }
.kv div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2px 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; } }

/* Смуга 14+ і підвал */
.age { background: var(--ink); color: var(--paper); }
.age p { margin: 0; padding: 14px 0; font-weight: 600; font-size: 15px; }
.foot { padding: 40px 0 48px; font-size: 15px; background: var(--paper-2); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; } }
.foot h2 { font: 700 1rem/1.3 var(--f-body); margin: 0 0 10px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; }
.foot p { margin: 0 0 .6em; }
.foot .legal { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); font-size: 15px; font-weight: 600; max-width: calc(100% - 32px); z-index: 20; }
.toast[hidden] { display: none; }

/* ============================================================================
   Редизайн 10.11 (v2). Підключається після style.css лише коли config.json "redesign": true.
   Мова дизайну — «карта складання»:
   · палітра та шрифти ті самі, що в style.css (токени вище); нових кольорів теми немає;
   · «стос» (.stack): плита + два зсунуті шари позаду. Єдиний спосіб показати глибину; тіней з розмиттям немає;
   · розмірна лінія (.dim) замість підпису «ширина …»;
   · рух повторює складання: шари сідають, плити виїжджають з-під блоку. Усе вимикається з prefers-reduced-motion;
   · акцент (кіновар) — лише головна кнопка й бігунок повзунка.
   ============================================================================ */
:root {
  /* фарба шарів-прикладів (ті самі значення, що LAYER_COLS у build.py): це колір картини, не теми */
  --ly-1: #F0D2AE; --ly-2: #E4733F; --ly-3: #C58488; --ly-4: #7A5C84; --ly-5: #3C878C;
  /* стіл рендера: тло кадрів повзунка (render-shary14-1000, --ss-bg) */
  --bench: #F6ECDD;
  --shade: rgba(28, 27, 24, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 0px;
}
:root[data-theme="dark"] { --shade: rgba(11, 10, 9, .5); }
@media (min-width: 900px) { :root { --top-h: 73px; } }

html { scroll-padding-top: calc(var(--top-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { -webkit-font-smoothing: antialiased; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }

/* ---------- шапка сайту: на комп'ютері липка; логотип-стос розсувається під курсором */
.top { background: var(--paper); z-index: 30; }
@media (min-width: 900px) { .top { position: sticky; top: 0; } }
.brand polygon { transition: transform .25s var(--ease); }
.brand:hover polygon:first-child { transform: translateY(-2px); }
.brand:hover polygon:last-child { transform: translateY(2px); }
.nav a { position: relative; color: var(--ink-2); font-family: var(--f-display); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 719px) { .top .wrap { padding-top: 8px; padding-bottom: 6px; gap: 0 28px; } .nav a { min-height: 40px; } .nav a::after { bottom: 6px; } }

/* ---------- стос: плита з двома шарами позаду. Лице — дочірній елемент; --off множить зсув (0 = шари сховані) */
.stack { position: relative; isolation: isolate; --o: 5px; }
.stack::before, .stack::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: var(--r); pointer-events: none; transition: transform .45s var(--ease); }
.stack::before { z-index: -1; background: var(--paper-2); transform: translate(calc(var(--off, 1) * var(--o)), calc(var(--off, 1) * var(--o))); }
.stack::after { z-index: -2; background: var(--paper-3); transform: translate(calc(var(--off, 1) * var(--o) * 2), calc(var(--off, 1) * var(--o) * 2)); }

/* ---------- розмірна лінія */
.dim { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 1px no-repeat; opacity: .7; }
.dim::before { border-left: 1px solid var(--ink-2); }
.dim::after { border-right: 1px solid var(--ink-2); }

/* ---------- розкриття на прокрутці. Клас rv ставить ранній скрипт (є JS, нема «менше руху»); без нього все видно одразу */
.rv [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--rv-i, 0) * 80ms); }
.rv [data-rv].in { opacity: 1; transform: none; }

/* ---------- відео-шапка. Слот: 16:9 (телефон 4:3), не вище 80 % екрана. Усе, що всередині, лежить на весь слот */
.vhero-media { aspect-ratio: 4 / 3; max-height: 70vh; }
@media (min-width: 600px) { .vhero-media { aspect-ratio: 16 / 9; max-height: 80vh; } }
@media (min-width: 900px) { .vhero-media { max-height: calc(86vh - var(--top-h)); } }
.vhero-media.is-failed > video, .vhero-media.is-failed > .vhero-toggle { display: none; }
.vhero-media[data-media] .vhero-ticks { display: none; }   /* мітки кадру лише на малюнку-заглушці */
/* мітки кадру по кутах: межа безпечної зони слота */
.vhero-ticks { position: absolute; inset: 14px; z-index: 1; pointer-events: none; opacity: .55; --c: var(--ink); --l: 16px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat; }
.vhero-chip { right: 26px; bottom: 26px; }
@media (min-width: 900px) { .vhero-ticks { inset: 22px; } .vhero-chip { bottom: 56px; right: var(--gut); } }
/* малюнок-заглушка: кожен шар їде на прокрутці зі своєю швидкістю (далекі повільніше за сторінку), а при вході лягає на місце */
.vhero-ph2 .vh-l { transform: translateY(calc(var(--sy, 0) * var(--z) * 0.07px)); }
@media (prefers-reduced-motion: no-preference) {
  .js .vhero-ph2 .vh-in { animation: vh-in .9s var(--ease) both; animation-delay: calc(var(--n) * 120ms + 80ms); }
}
@keyframes vh-in { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
.vhero-text h1 { letter-spacing: -0.02em; }
@media (min-width: 900px) {
  .vhero-text { padding-bottom: 56px; }
  .vhero-text .kicker { color: var(--ink); }
  .vhero-text h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.04; max-width: 14ch; }
}
.vstrip { padding: 28px 0 64px; }
.vstrip-grid { display: grid; gap: 28px; }
.vstrip .lead { font-size: clamp(1.15rem, 1.75vw, 1.4rem); line-height: 1.5; max-width: 34em; }
@media (min-width: 900px) { .vstrip { padding: 56px 0 96px; } .vstrip-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; } }

/* ---------- секції */
.sec { padding: 72px 0; overflow-x: clip; }
@media (min-width: 900px) { .sec { padding: 104px 0; } .split, .kit { gap: 72px; } }
.sec-head { margin-bottom: 28px; }
.xs figcaption { margin-top: 10px; }


/* ---------- повзунок розбирання. Сцена 4:3 у чорному вікні (з 11.11, до того — на світлому «столі»); шари позаду сцени роз'їжджаються разом із повзунком (--xp 0..1) */
.xp { display: grid; gap: 20px; }
.xp-head h2 { margin-bottom: 12px; }
.xp-head p { margin: 0; max-width: 46ch; }
.xp-stage { position: relative; aspect-ratio: 4 / 3; }   /* position: relative раніше давав клас .stack; без нього заставка й канва летять на весь екран */
/* без «каскаду» кольорових листів і картки за картиною (TG 12453).
   11.11 (TG 12538/12539): вікно блоку чорне, як шапка (--hero-bg); кадри відрендерено на чистому чорному з прозорою акриловою основою,
   тож вони змішуються з вікном через screen: чорне зникає, лишаються картина й скло (так само, як кадри шапки) */
.xp-stage { background: var(--hero-bg, #0B0A09); border-radius: var(--r); overflow: hidden; }
.xp-stage canvas, .xp-poster { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r); mix-blend-mode: screen; }
.xp-poster { object-fit: cover; background: transparent; }
.xp-empty { background: transparent; }
.js .xp-stage[data-xp-stage] { cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.xp-empty { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); border: 1px dashed var(--ink-2); border-radius: var(--r); }
.xp-empty p { margin: 0; max-width: 30ch; }
.xp-ctl { display: none; }
.js .xp-ctl { display: grid; gap: 4px; }
.xp-ctl label { font-weight: 700; font-size: 15px; }
.xp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.xp-row input { width: 100%; margin: 0; height: var(--ctl); background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: pan-y; }
.xp-row input:active { cursor: grabbing; }
.xp-row input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--line) var(--p, 0%)); }
.xp-row input::-moz-range-track { height: 2px; background: var(--line); }
.xp-row input::-moz-range-progress { height: 2px; background: var(--ink); }
.xp-row input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 30px; margin-top: -14px; border-radius: 2px; background: var(--accent); border: 0; }
.xp-row input::-moz-range-thumb { width: 16px; height: 30px; border-radius: 2px; background: var(--accent); border: 0; }
.xp-row input:hover::-webkit-slider-thumb { background: var(--accent-hover); }
.xp-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
.xp-out { display: block; font: 700 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.xp-notes p { max-width: 46ch; }
.xp-notes p:last-child { margin: 0; }
@media (min-width: 900px) {
  .xp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 88px; row-gap: 28px; align-items: start;
    grid-template-areas: "stage head" "stage ctl" "stage notes" "stage ."; grid-template-rows: auto auto auto 1fr; }
  .xp-head { grid-area: head; padding-top: 8px; }
  .xp-stage { grid-area: stage; }
  .xp-ctl { grid-area: ctl; }
  .xp-notes { grid-area: notes; }
}

/* ---------- схема в розрізі: шари опускаються на ступені, поки блок в'їжджає в екран (--ex пише скрипт) */
.xs-scroll { padding: 24px 22px 18px; }
.xs-scroll .pl { transition: transform .3s var(--ease); }

/* ---------- дизайни: дві широкі картки; три в ряд лише коли дизайнів п'ять і більше */
.grid { grid-template-columns: minmax(0, 1fr); gap: 44px 36px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card .ph { border: 0; background: none; overflow: visible; border-radius: 0; --off: 0; }
.card .ph img { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); transition: border-color .15s; }
.card a:hover .ph, .card a:focus-visible .ph { --off: 1; }
.card a:hover .ph img { border-color: var(--ink-2); }
.card .dim { margin-top: 16px; }
.card h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.card a:hover h3 { text-decoration: none; }
.card .meta { min-height: 24px; }

/* ---------- що в наборі: рядки з малюнками деталей */
.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.kit-list li:last-child { border-bottom: 1px solid var(--line); }
.kit-list svg { width: 40px; height: 40px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.kit .note { margin: 0; }
@media (min-width: 900px) {
  .kit { grid-template-areas: "head list" "note list"; grid-template-rows: auto 1fr; row-gap: 28px; align-items: start; }
  .kit h2 { grid-area: head; } .kit-list { grid-area: list; } .kit .note { grid-area: note; max-width: 44ch; }
  .ask { position: sticky; top: calc(var(--top-h) + 24px); }
}

/* ---------- картина за вашим фото: плити роз'їжджаються віялом (--p 0..1 пише скрипт; без нього — наполовину) */
.fan { margin: 0; }
.fan svg { width: 100%; height: auto; overflow: visible; }
.fan figcaption { margin-top: 12px; }
.fan-p { transform: translate(calc(var(--p, .5) * var(--i) * 44px), calc(var(--p, .5) * var(--i) * -24px)); transition: transform .25s var(--ease); }
#sviy .btns { margin-top: 24px; }

/* ---------- як замовити: картка зв'язку поруч */
.ask { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--paper-2); }
.ask h3 { margin-bottom: 6px; }
.ask > p { margin: 0; }
.ask .btns { margin: 18px 0; }
.ask .btn { flex: 1 1 200px; }

/* ---------- лічильник шарів збоку (лише широкий екран): кожна секція кладе свою плиту на стос */
.gauge { display: none; }
@media (min-width: 1360px) {
  .js .gauge { display: flex; flex-direction: column-reverse; gap: 3px; position: fixed; left: 28px; bottom: 28px; z-index: 5; pointer-events: none; }
  .gauge i { display: block; width: 32px; height: 6px; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: var(--c, var(--ink-2)); opacity: 0; transform: translateY(-16px); transition: transform .45s var(--ease), opacity .3s; }
  .gauge i.on { opacity: 1; transform: none; }
}

/* ---------- перевірка слотів: /?slots=1 обводить місця під відео й кадри та підписує розміри */
.show-slots [data-slot] { outline: 2px dashed var(--accent); outline-offset: -2px; }
.slot-label { position: absolute; left: 12px; top: 12px; z-index: 6; margin: 0; background: var(--accent); color: var(--on-accent); font: 700 13px/1.4 var(--f-body); padding: 4px 8px; border-radius: 2px; max-width: calc(100% - 24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* сцена складання (story_enabled=true) під липкою шапкою сайту */
@media (min-width: 900px) {
  .story-stage { top: var(--top-h); height: calc(100vh - var(--top-h)); }
  .story-fig svg { max-height: calc(100vh - var(--top-h) - 180px); }
}

/* ---------- складання під прокрутку (кадри c-000…). Блок липне до екрана, поки сторінку крутять; JS ставить .is-scrub лише без «менше руху».
   Без JS і з «менше руху» стоїть останній кадр (картина зібрана), нічого не липне. Сцена 4:3 на телефоні й 16:9 на комп'ютері. */
.sq-wrap { display: grid; gap: 16px; }
.sq-head h2 { margin-bottom: 8px; }
.sq-head p { margin: 0; max-width: 46ch; }
.sq-stage { aspect-ratio: 4 / 3; --o: 4px; --off: 1; width: 100%; }
@media (min-width: 600px) { .sq-stage { aspect-ratio: 16 / 9; --o: 6px; } }
.sq-stage canvas, .sq-poster { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r); }
.sq-poster { object-fit: cover; background: var(--bench); }
.sq-stage::before { background: var(--ly-5); border-color: transparent; }
.sq-stage::after { background: var(--ly-4); border-color: transparent; }
.sq-count { margin: 0; font: 700 clamp(1.1rem, 2.4vw, 1.6rem)/1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.sq-count output { display: block; }
.sq.is-scrub { height: 340vh; padding: 0; overflow-x: visible; }
.sq.is-scrub .sq-pin { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); display: flex; align-items: center; }
.sq.is-scrub .sq-wrap { width: 100%; gap: 24px; }
.sq.is-scrub .sq-head p { display: none; }
.sq.is-scrub .sq-stage { width: min(100%, calc((100vh - var(--top-h) - 190px) * 16 / 9)); max-height: calc(100vh - var(--top-h) - 190px); margin-inline: auto; }
@media (max-width: 599px) { .sq.is-scrub { height: 300vh; } .sq.is-scrub .sq-stage { width: min(100%, calc((100vh - var(--top-h) - 190px) * 4 / 3)); max-height: none; } }
/* на телефоні й вузькому вікні заставка відео: картина правіше центру кадру, тримаємо її в кадрі */
@media (max-width: 899px) { .vhero-media[data-media] .vhero-poster, .vhero-media[data-media] .vhero-video { object-position: 75% 50%; } }

/* ---------- перший екран «вибух → картина» під прокрутку (11.11, TG 12425/12431). Стиль за прикладом власника: майже чорне тло з ледь помітними діагональними смугами,
   ліворуч заголовок, опис і дві кнопки-таблетки, праворуч анімація, зверху меню-таблетка, знизу підпис і стрічка. Усе в токенах сайту (--ink, --ink-2, --line, --paper).
   Секція висока, .vhero-pin липне до екрана; кадр залежить від прокрутки (v2.js). Кадри чорні, тож сцена змішується з тлом через screen: чорне зникає, смуги тла видно.
   Без JS / «менше руху» / низький екран: стоїть останній кадр, нічого не липне. */
:root { --hero-bg: #0B0A09; }   /* майже чорне, теплий відтінок; кадри чисто чорні, тому змішуються з ним через screen */
.vhero-scrub { --strip-h: 84px; background: var(--hero-bg); }
.vhero-scrub .vhero-pin { display: flex; flex-direction: column; justify-content: center; }
.vhero-scrub .vhero-stage { position: relative; width: 100%; margin-inline: auto; container-type: inline-size; }
.vhero-scrub .vhero-media { aspect-ratio: 4 / 3; max-height: none; background: transparent; }
/* діагональні світлові смуги: суцільне тло екрана без швів. На комп'ютері смуги малюються з background-attachment: fixed і на шапці сайту, і на липкому блоці,
   тож лінія між ними не видна і під анімацією нічого не обрізається; на телефоні смуг нема (там немає спільного тла з шапкою). */
.vhero-scrub .vhero-pin { position: relative; background: var(--hero-bg); }
.vhero-scrub .vhero-media > picture, .vhero-scrub .vhero-media > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* кадри з основою мають чорне тло: змішуємо через screen, щоб чорне зникало. Кадри з альфою (has-alpha) лягають як є, прямо на тло сторінки зі смугами */
.vhero-scrub:not(.has-alpha) .vhero-media > picture, .vhero-scrub:not(.has-alpha) .vhero-media > canvas { mix-blend-mode: screen; }
.vhero-scrub .vhero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.vhero-scrub .vhero-media::after, .vhero-scrub .vhero-media[data-media]::after { content: none; }
.vhero-scrub .vhero-media > picture.vhero-start { display: none; }
.vhero-scrub canvas { background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  /* перший кадр видно одразу (до готовності JS); без JS і з «менше руху» видно останній */
  .js .vhero-scrub:not(.is-static) .vhero-media > picture.vhero-start { display: block; }
  .js .vhero-scrub:not(.is-static) .vhero-media > picture.vhero-poster { visibility: hidden; }
}
/* текст */
.vhero-scrub .vhero-text { padding: 22px 0 8px; }
.vhero-scrub .vhero-text .kicker { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; }
.vhero-scrub .vhero-text h1 { max-width: none; margin: 0 0 14px; color: var(--ink); font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.08; }
.vhero-scrub .vhero-text .kicker { font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.vhero-tag { margin: 0 0 10px; color: var(--ink); font-size: 18px; line-height: 1.4; font-weight: 500; max-width: 34ch; }
.vhero-about { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 44ch; }
.vhero-scrub .btns { gap: 10px; }
/* кнопки-таблетки лише в цьому екрані: основна світла (колір тексту сайту), друга темна з тонкою рамкою; обидві --ctl заввишки */
.vhero-scrub .btn { border-radius: 999px; padding: 0 26px; min-height: var(--ctl); font-weight: 600; transition: background-color .15s, border-color .15s, color .15s; }
.vhero-scrub .btn-main { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vhero-scrub .btn-main:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.vhero-scrub .btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.vhero-scrub .btn-ghost:hover { background: var(--paper-3); border-color: var(--ink-2); color: var(--ink); }
.vhero-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.vhero-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.vhero-links a:hover { color: var(--ink); text-decoration: none; }
/* стрічка під сценою: підпис із лініями та рядок, що біжить */
.vhero-strip { display: grid; gap: 10px; padding: 8px 0 18px; }
.vhero-strip-cap { margin: 0; display: flex; align-items: center; gap: 16px; padding: 0 var(--gut); color: var(--ink-2); font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .12em; }
.vhero-strip-cap::before, .vhero-strip-cap::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vhero-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.vhero-marquee ul { flex: none; display: flex; align-items: center; margin: 0; padding: 0; list-style: none; min-width: 100%; justify-content: space-around; gap: 0; }
.vhero-marquee li { flex: none; padding: 0 clamp(18px, 3vw, 40px); color: var(--ink-2); font: 600 15px/1.2 var(--f-body); white-space: nowrap; }
.vhero-marquee a { color: var(--ink); text-decoration: none; transition: color .15s; }
.vhero-marquee a:hover { color: var(--accent); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .vhero-marquee ul { animation: vh-marq 38s linear infinite; justify-content: flex-start; }
  .vhero-marquee:hover ul { animation-play-state: paused; }
}
@keyframes vh-marq { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .vhero-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; } .vhero-marquee ul:last-child { display: none; } .vhero-marquee ul { flex-wrap: wrap; justify-content: center; min-width: 0; } .vhero-marquee li { padding: 6px 16px; } }
/* телефон: деталі, що вилітають за межі кадру, плавно тонуть у тлі угорі й унизу замість різкого обрізу. Маска тут не годиться (вона ізолює шар, і screen втрачає тло),
   тому два градієнти кольору тла поверх країв; тло на телефоні рівне, тож шву не видно */
@media (max-width: 899px) {
  .vhero-scrub .vhero-media::before, .vhero-scrub .vhero-media[data-media]::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; z-index: 2; pointer-events: none; }
  .vhero-scrub .vhero-media::before { top: 0; background: linear-gradient(to bottom, var(--hero-bg), rgba(11, 10, 9, 0)); }
  .vhero-scrub .vhero-media[data-media]::after { bottom: 0; background: linear-gradient(to top, var(--hero-bg), rgba(11, 10, 9, 0)); }
}
/* планшет й вище: сцена 16:9 */
@media (min-width: 600px) { .vhero-scrub .vhero-media { aspect-ratio: 16 / 9; } .vhero-scrub .vhero-text h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); } }
@media (min-width: 900px) {
  .vhero-scrub .vhero-pin { min-height: calc(100vh - var(--top-h)); }
  /* сцена на всю ширину, 16:9, не вища за екран (на дуже широких вікнах кадр обрізається по вертикалі, а не залишає поля); стрічка лежить поверх низу сцени */
  .vhero-scrub .vhero-stage { width: 100%; }
  .vhero-scrub .vhero-pin { justify-content: flex-start; }
  .vhero-scrub .vhero-media { max-height: calc(100vh - var(--top-h) - 56px); }      /* внизу лишається смуга під стрічку: пластина її не перекриває */
  /* стрічка в один рядок: підпис ліворуч, далі рядок, що біжить */
  .vhero-scrub .vhero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 var(--gut) 8px 84px; }
  .vhero-scrub .vhero-strip-cap::before, .vhero-scrub .vhero-strip-cap::after { content: none; }
  .vhero-scrub .vhero-strip-cap { flex: none; padding: 0; white-space: nowrap; }
  .vhero-scrub .vhero-marquee { flex: 1; min-width: 0; }
  .vhero-scrub .vhero-text { position: absolute; inset: 0 auto 0 0; width: 40%; display: flex; align-items: center; padding: 0 0 2% 5%; z-index: 2; }
  .vhero-scrub .vhero-text .wrap { width: auto; max-width: none; margin: 0; padding: 0; position: relative; }
  /* дуже м'яке затемнення лише під текстом (радіальне, без країв): деталі, що пролітають за описом на початку анімації, не заважають читати */
  .vhero-scrub .vhero-text .wrap::before { content: ""; position: absolute; inset: -22% -26% -22% -18%; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse closest-side, rgba(11, 10, 9, .62) 0%, rgba(11, 10, 9, .4) 55%, rgba(11, 10, 9, 0) 100%); }
  .vhero-scrub .vhero-text h1 { font-size: clamp(1.8rem, 3.5vw, 3.3rem); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
  @supports (font-size: 1cqw) { .vhero-scrub .vhero-text h1 { font-size: clamp(1.8rem, 3.1cqw, 3rem); } .vhero-about { font-size: clamp(15px, 1.25cqw, 18px); } }
}
@media (min-width: 900px) {
  .vhero-scrub .vhero-pin, .top.top-hero {
    background: radial-gradient(ellipse 80% 95% at 0% 0%, transparent 0%, var(--hero-bg) 100%) fixed,
                repeating-linear-gradient(118deg, transparent 0 70px, rgba(236, 230, 218, .05) 150px, transparent 230px 300px) fixed,
                var(--hero-bg); }
}
/* режим прокрутки: JS додає .is-scrub */
.vhero-scrub.is-scrub { height: calc(100vh - var(--top-h) + 190vh); }
.vhero-scrub.is-scrub .vhero-pin { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); min-height: 0; }
@media (min-width: 900px) { .vhero-scrub.is-scrub { height: calc(100vh - var(--top-h) + 230vh); } }

/* ---------- шапка сайту на головній із першим екраном «вибух»: чорне тло без лінії, меню-таблетка по центру, кнопка зв'язку праворуч */
.top.top-hero { background-color: var(--hero-bg); border-bottom: 0; }
.top-hero .top-act { display: none; }
@media (min-width: 900px) {
  .top-hero .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 24px; align-items: center; padding-top: 0; padding-bottom: 0; min-height: calc(var(--top-h) - 0px); box-sizing: border-box; }
  .top-hero .nav { margin: 0; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(236, 230, 218, .07); border: 1px solid var(--line); }
  .top-hero .nav a { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: background-color .15s, color .15s; }
  .top-hero .nav a::after { content: none; }
  .top-hero .nav a:hover, .top-hero .nav a[aria-current="page"] { background: rgba(236, 230, 218, .1); }
  .top-hero .top-act { display: inline-flex; align-items: center; justify-self: end; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .15s, border-color .15s; }
  .top-hero .top-act:hover { background: var(--paper-3); border-color: var(--ink-2); text-decoration: none; }
}

/* ============================================================================
   Блок «Картини за темами»: 4 горизонтальні каруселі одразу під першим екраном (TG 12456, 11.11).
   Лише токени сайту (style.css / v2.css): жодного нового кольору, шрифта чи тіні. Картка — той самий .card + .stack, що в каталозі.
   Глибину дає стос (плита й два шари позаду), а не тінь. Автопрокрутки нема: гортає людина (свайп, колесо, стрілки, клавіатура).
   ============================================================================ */
.cars { --car-gap: 20px; --car-w: 82%; padding: 8px 0 64px; background: var(--hero-bg); overflow-x: clip; }
/* на комп'ютері ті самі діагональні смуги, що на шапці: тло fixed, тож шва між шапкою й блоком не видно (правило шапки в v2.css) */
@media (min-width: 900px) {
  .cars { padding: 24px 0 96px;
    background: repeating-linear-gradient(118deg, transparent 0 70px, rgba(236, 230, 218, .05) 150px, transparent 230px 300px) fixed, var(--hero-bg); }
}
.cars-head h2 { margin: 0; }
.car { margin-top: 36px; }
.cars-head + .car { margin-top: 28px; }
@media (min-width: 900px) { .car { margin-top: 56px; } .cars-head + .car { margin-top: 40px; } }

/* рядок над каруселлю: тип зліва, «Усі» й стрілки справа */
.car-top { display: flex; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.car-name { margin: 0; flex: 1; min-width: 0; font: 500 clamp(1.15rem, 2.1vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -0.01em; }
.car-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.car-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; transition: transform .2s var(--ease); }
.car-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.car-all:hover svg { transform: translateX(3px); }
.car-nav { display: none; gap: 8px; }
.car-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.car-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car-btn[aria-disabled="true"] { border-color: var(--line); color: var(--ink-2); opacity: .55; cursor: default; background: transparent; }
/* стрілки лише з JS, лише на комп'ютері з мишею й лише коли є що гортати; на телефоні гортають пальцем */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .js .car-nav { display: flex; } .js .car.is-static .car-nav { display: none; } }

/* стрічка: scroll-snap, наступна картка визирає з-за краю, щоб було видно, що є ще */
.car-track { display: flex; gap: var(--car-gap); list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--r); }
.car-item { flex: 0 0 var(--car-w); min-width: 0; scroll-snap-align: start; padding-right: 10px; }   /* 10 px: куди виїжджає другий шар стосу */
@media (min-width: 600px) { .cars { --car-w: 52%; } }
@media (min-width: 900px) { .cars { --car-w: calc((100% - 3 * var(--car-gap)) / 2.8); } }
/* Без основи (TG 12565, 11.11: «на каруселі також забери основи прозорі»). Картинка (img/*-nobase.webp) — лише сама картина:
   вирізані деталі з альфою й м'якою тінню на стіну, без пластини, граней і ковпачків. .ph нічого не малює, крізь порожнє місце видно сторінку. */
.car .card .ph { position: relative; aspect-ratio: 3 / 2; border: 0; border-radius: 0; background: none; box-shadow: none; }
.car .card .ph > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border: 0; border-radius: 0; background: none; }
/* без основи нема й плит стосу позаду: виділення — лише вихід уперед і збільшення */
.car .card .stack::before, .car .card .stack::after { content: none; }
/* Розбирання на 10 % під наведенням (TG 12566). Поверх головної картинки — її шари (img/<slug>-l<k>.webp, робить make_layers.py);
   carousels.js додає їх перед першим наведенням і ставить .is-ready, коли всі розкодовані. У спокої шари складені й збігаються
   з головною картинкою; під наведенням (тапом, фокусом) кожен шар підіймається пропорційно глибині --t: трохи вгору-ліворуч і ближче
   (більший), як перші 10 % «вибуху» шапки. Анімується лише transform. */
.car .lays { position: absolute; inset: 0; pointer-events: none; container-type: size; opacity: 0; transition: opacity 0s linear .5s; }
.car .card .ph .lays img { position: absolute; display: block; max-width: none; height: auto; aspect-ratio: auto; object-fit: fill; border: 0; border-radius: 0; background: none; transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: translate(calc(var(--x, 0) * var(--t, 0) * -1.4cqw), calc(var(--x, 0) * var(--t, 0) * -2.6cqh)) scale(calc(1 + var(--x, 0) * var(--t, 0) * .05));
  transition: transform .5s var(--ease); }
.car .card a:hover .lays.is-ready, .car .card a:focus-visible .lays.is-ready,
.js .car-ring .ring-card.is-active .lays.is-ready { --x: 1; opacity: 1; transition-delay: 0s; }
.js .car-ring .ring-card.is-back .lays { --x: 0; }
.car .card h4 { margin: 12px 0 2px; font: 500 1.05rem/1.3 var(--f-display); letter-spacing: -0.01em; }
.car .card a { outline-offset: 6px; }
.car .card .meta { min-height: 24px; }

/* смужка прогресу під стрічкою: та сама лінія 2 px, що в повзунка розбирання. Лише показує місце, керувати нею не можна */
.car-bar { position: relative; height: 2px; margin-top: 2px; background: var(--line); }
.car-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--x, 0) * 1%); width: calc(var(--w, 100) * 1%); background: var(--ink); }
.car.is-static .car-bar { display: none; }
.js .car-bar { display: block; }

/* порожній слот: лише в прототипі й для звіту про нестачу, у збірці на сайт порожніх слотів не буде */
.car-todo { pointer-events: none; }
/* порожній слот — лише ледь помітний пунктирний контур, без скла й тіні */
.car-todo .car-ph { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--ink-2); border-radius: var(--r);
  outline: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); outline-offset: -1px; background: none; }
.car-todo h4 { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .car-track { scroll-behavior: auto; }
  .car-all svg, .car-btn, .car .stack::before, .car .stack::after { transition: none; }
  .car-all:hover svg { transform: none; }
}

/* ============================================================================
   3D-кільце (TG 12486). Кільце з N карток: rotateY + translateZ, перспектива на сцені. Обертання, наведення, фокус і жести веде carousels.js.
   Без JS (немає класу .js) кільце лишається звичайною стрічкою вище. Тут лише токени сайту.
   --cw ширина картки, --k радіус у ширинах картки (її рахує build_carousels.py з кількості карток), --step кут між картками.
   ============================================================================ */
/* 11.11 TG 12641 «ширшими і вищими»: картки ~1,4× за площею (було 240/270/300 px, стрічка 72 %/42 %/÷3.4); перспектива пропорційно */
.js .car-ring { --cw: clamp(220px, 72vw, 300px); --persp: 1050px; --ch: calc(var(--cw) * .667 + 70px); --R: calc(var(--cw) * var(--k, 1.35)); }
@media (min-width: 720px) { .js .car-ring { --cw: 320px; --persp: 1400px; } }
@media (min-width: 1100px) { .js .car-ring { --cw: 360px; --persp: 1800px; } }

.js .car-ring .ring-stage { position: relative; height: calc(var(--ch) * 1.34 + 28px); margin: 0 calc(-1 * var(--gut));
  perspective: var(--persp); perspective-origin: 50% 46%; overflow: hidden; overflow: clip;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.js .car-ring .ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; padding: 0; overflow: visible; display: block; list-style: none;
  scroll-snap-type: none; transform-style: preserve-3d; will-change: transform;
  transform: translateZ(calc(-1 * var(--R))) rotateY(0deg); }
.js .car-ring .ring-card { position: absolute; left: 0; top: 0; width: var(--cw); flex: none; padding: 0; scroll-snap-align: none; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(var(--R)); }
/* картка: усередині плита зі стосом, назва й шари. Лише цей внутрішній блок виходить уперед і росте, місце картки в кільці не міняється */
.js .car-ring .ring-link { position: relative; display: block; text-decoration: none; transform-origin: 50% 50%; transition: transform .4s var(--ease), filter .3s linear; cursor: pointer; }
.js .car-ring .ring-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); background: var(--hero-bg); pointer-events: none; z-index: 3; }
.js .car-ring .ring-link::before { opacity: var(--sh, 0); will-change: opacity; }       /* затемнення за глибиною: далі від глядача темніше. Без transition: значення міняється щокадру, а перемальовка overlay у кожному кадрі дуже дорога */
.js .car-ring .ring-card.is-back { pointer-events: none; }                                            /* задня половина кільця не приймає клік */
.js .car-ring .ring-card.is-back .ring-link { cursor: default; }
.js .car-ring .ring-card.is-back h4, .js .car-ring .ring-card.is-back .meta { visibility: hidden; }
/* задня половина кільця невидима: зі спини картка й підпис були б дзеркальні. backface-visibility на картці, на її внутрішньому блоці й на всьому вмісті */
.js .car-ring .ring-card, .js .car-ring .ring-link, .js .car-ring .ring-link * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* виділення: картка виходить уперед і росте, світла рамка (токен --ink), стос розсувається, решта темнішає */
.js .car-ring .ring-card:hover, .js .car-ring .ring-card.is-active { z-index: 2; }
.js .car-ring .ring-card:not(.ring-todo):hover .ring-link, .js .car-ring .ring-card.is-active .ring-link,
.js .car-ring .ring-card:not(.ring-todo):focus-within .ring-link:focus-visible {
  transform: translateZ(90px) rotateY(calc(var(--e, 0) * -.7deg)) scale(1.2); }
/* телефон: картка вже ~72 % екрана, тож виділена росте менше, щоб не вилазила за край (виділена ≈ 84 % екрана) */
@media (max-width: 719px) {
  .js .car-ring .ring-card:not(.ring-todo):hover .ring-link, .js .car-ring .ring-card.is-active .ring-link,
  .js .car-ring .ring-card:not(.ring-todo):focus-within .ring-link:focus-visible {
    transform: translateZ(40px) rotateY(calc(var(--e, 0) * -.7deg)) scale(1.12); }
}
.js .car-ring .ring-card:not(.ring-todo):hover .ring-link::before, .js .car-ring .ring-card.is-active .ring-link::before { --sh: 0; }
.js .car-ring .ring-card:not(.ring-todo):hover .ph, .js .car-ring .ring-card.is-active .ph, .js .car-ring .ring-card:focus-within .ring-link:focus-visible .ph { --off: 1; }
.js .car-ring .ring-card:focus-within .ring-link:focus-visible .ph { outline: 2px solid var(--ink); outline-offset: 3px; }
.js .car-ring .ring:has(.ring-card:not(.ring-todo):hover, .ring-card.is-active) .ring-card:not(:hover):not(.is-active) .ring-link { filter: brightness(.55); }   /* решта темнішає; filter лише поки є виділення, бо постійний overlay надто дорогий */
.js .car-ring .ring-link:focus-visible { outline: none; }          /* рамку фокуса малює .ph вище: облягає картину, а не всю картку з підписом */
.js .car-ring .ring-card .card { margin: 0; }


@media (prefers-reduced-motion: reduce) {
  .js .car-ring .ring-link { transition: none; }
  .car .lays { display: none; }            /* «менше руху»: без розбирання, лише головна картинка */
}

/* Сторінка картини з повзунком «розібрати ↔ зібрати» (design_slider, TG 12699, 12.11). Підключається лише з design_slider.enabled.
   Сцена, канва й повзунок — ті самі .xp-* з v2.css, що на головній; тут лише розкладка в колонці картини. Нових кольорів нема. */
.pdp-xp { display: grid; gap: 14px; }
.pdp-xp > * { grid-area: auto; }   /* на широкому екрані v2.css ставить .xp-stage/.xp-ctl у зони сітки блоку головної; тут їх нема */
.pdp-xp .xp-ctl label { font-size: 15px; }
.pdp-note { margin: 12px 0 0; max-width: 60ch; }
.pdp-xp .pdp-note { margin: 0; }
.more-links { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.more-links li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-top: 1px solid var(--line); }
.more-links a { display: flex; align-items: center; min-height: var(--ctl); padding: 8px 0; font-weight: 700; color: var(--ink); text-decoration: none; }   /* рядок списку, не посилання в абзаці: без підкреслення (anti-slop T24) */
.more-links a:hover { color: var(--accent); }
.more-links .muted { font-size: 14px; }
/* Доробка 12.11. Підказку «Потягніть повзунок…» видно лише з JS: без JS повзунка нема (.xp-ctl), стоїть перший кадр. */
.pdp-xp .xp-hint { display: none; }
.js .pdp-xp .xp-hint { display: inline; }
/* Сцена має співвідношення сторін кадрів (aspect-ratio в атрибуті style сцени, --ar у style блоку: 4:3 або 1:1 для квадратної картини).
   На комп'ютері липне колонка з картиною, а не текст: так під повзунком не лишається порожньої смуги, а картина й повзунок видно, поки читаєш опис.
   Сцена не вища за екран (мінус місце під повзунок і підпис), щоб повзунок не ховався за нижнім краєм. */
@media (min-width: 900px) {
  .pdp-has-xp .info { position: static; }
  .pdp-has-xp .pdp-xp { position: sticky; top: calc(var(--top-h, 0px) + 24px);   /* під липкою шапкою */
    width: min(100%, calc((100vh - var(--top-h, 0px) - 230px) * var(--ar, 1.3333))); }   /* сцена, повзунок і підпис однієї ширини, по лівому краю колонки */
}

/* Знак без кольору, три плити одним тоном (наказ власника 12.11, TG 12717/12719; варіант Б, TG 12838).
   Підключається лише з logo_mono.enabled (або --logo-mono on), тож без прапорця бандл CSS не змінюється.
   Світла тема: плити тоном тексту; темна: світлий тон варіанта Б. Шапка над чорним першим екраном головної
   (.top-hero) має чорне тло в обох темах, тому там знак завжди світлий. */
:root { --logo-1: #1C1C1C; --logo-2: #1C1C1C; --logo-3: #1C1C1C; }
:root[data-theme="dark"] { --logo-1: #E2E2E2; --logo-2: #E2E2E2; --logo-3: #E2E2E2; }
.top-hero { --logo-1: #E2E2E2; --logo-2: #E2E2E2; --logo-3: #E2E2E2; }
/* Наведення зсуває крайні плити на 2 px (v2.css): не обрізати їх рамкою svg. */
.brand svg { overflow: visible; }
