/* kotygon · lab items, round 3 (12.10.2026): cell menu, heavier icons, condensed page words, micro-interactions,
   thermal scan band in the catalog, thermal on the home department cards, desk / sky hero, studio motion illustrations,
   process flow on /business/, product exhibit, 404 game.
   Loaded last on every page; removing this file and lab*.js returns the previous look. */
:root { --err: #ff5c5c; }
:root[data-theme="light"] { --err: #c62828; }

/* ---------- cell menu (no corner ticks) ---------- */
@media (min-width: 961px) {
  .site-header .header-inner { align-items: stretch; }
  :root:not([data-menu="cells"]) .site-header .nav a { border: 0 !important; }
  .site-header .brand, .site-header .header-actions { align-self: center; }
  .site-header .nav { gap: 0; align-self: stretch; justify-content: center; }
  .site-header .nav a { position: relative; min-height: 0; padding: 0 20px; border-left: 1px solid var(--line); border-bottom: 0; transition: background .12s, color .12s; }
  .site-header .nav a:last-child { border-right: 1px solid var(--line); }
  :root[data-menu="cells"] .site-header .nav a[aria-current=page] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--hot); }
  :root[data-menu="cells"] .site-header .nav a:hover, :root[data-menu="cells"] .site-header .nav a:focus-visible { background: var(--ink); color: var(--bg); }
}

/* ---------- heavier geometric icons ---------- */
.site-header svg, .site-footer svg, .shop-arrow, .shop-search svg, .home-dept-cta svg { stroke-width: 2.3; stroke-linecap: square; stroke-linejoin: miter; }
.kit-arrow { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='square'%3E%3Cpath d='M2.6 9.4 9 3M4.2 2.8H9.2v5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='square'%3E%3Cpath d='M2.6 9.4 9 3M4.2 2.8H9.2v5'/%3E%3C/svg%3E"); }

/* ---------- condensed page words ---------- */
.shop-word, .page-word h1, .kit-designed-page .page-word h1, .kit-order-page .page-word .word { font-stretch: 75%; }

/* ---------- micro-interactions ---------- */
.cart-count { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.cart-count.kit-pop { transform: scale(1.45); }
input.kit-err, textarea.kit-err, select.kit-err { border-color: var(--err) !important; animation: kit-shake .45s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes kit-shake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(2px); } 30%,50%,70% { transform: translateX(-4px); } 40%,60% { transform: translateX(4px); } }
.kit-err-msg { display: block; margin-top: 4px; font-size: 12.5px; color: var(--err); }

/* ---------- thermal: a scan band over the real photo in the catalog; full thermal on the home department cards ---------- */
.kit-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.kit-shop .shop-card-media .kit-band { opacity: 0; pointer-events: none; filter: url(#kit-f-thermal);
  -webkit-mask-image: linear-gradient(100deg, transparent 0 43%, #000 47.5% 52.5%, transparent 57%); mask-image: linear-gradient(100deg, transparent 0 43%, #000 47.5% 52.5%, transparent 57%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
:root[data-fx="xray"] .kit-shop .shop-card-media .kit-band { filter: url(#kit-f-xray); }
@media (hover: hover) {
  .kit-shop .shop-card:hover .shop-card-media .kit-band { opacity: 1; animation: kit-band 1.9s cubic-bezier(.45,0,.55,1) infinite; }
}
@keyframes kit-band { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ---------- desk hero: windows on the page itself, only the four corner marks ---------- */
.kit-desk { position: relative; height: 700px; margin-top: 18px; touch-action: pan-y; color: var(--ink); }
.kit-desk .kd-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink); opacity: .55; }
.kd-corner.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; } .kd-corner.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.kd-corner.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; } .kd-corner.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.kd-win { position: absolute; background: #0e0e0e; border: 1px solid #3a3936; box-shadow: 0 24px 50px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.kit-desk.run .kd-win { opacity: 1; transform: none; transition-delay: var(--wd, .3s); }
.kd-tag { position: absolute; left: -1px; bottom: 100%; padding: 3px 7px; background: #262523; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: #c4c0b8; white-space: nowrap; }
.kd-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: #2a2927; border-bottom: 1px solid #4a4843; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #c4c0b8; user-select: none; white-space: nowrap; overflow: hidden; }
.kd-win[data-drag] .kd-bar { cursor: grab; }
.kd-win[data-drag] .kd-bar:active { cursor: grabbing; }
.kd-grip { flex: none; width: 10px; height: 14px; background: radial-gradient(circle, #77746d 1.2px, transparent 1.6px) 0 0 / 5px 5px; }
.kd-stage { position: relative; display: block; background: radial-gradient(ellipse 70% 60% at 50% 48%, #2a2a2a, #151515 60%, #0e0e0e); }
.kd-stage img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.7)); pointer-events: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.kd-win:hover .kd-stage img { transform: translateY(-4px) scale(1.03); }
.kd-foot { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-top: 1px solid #2c2b29; font-family: var(--mono); font-size: 10px; color: #86837c; letter-spacing: .04em; }
.kd-foot b { color: #f1eee7; font-weight: 500; }
.kd-main { z-index: 9; background: #050505; }
.kd-main .kd-body { padding: 28px; display: grid; gap: 24px; }
.kd-main h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 54px; line-height: .98; letter-spacing: -.02em; color: #f1eee7; text-wrap: balance; }
.kd-main h1 span { color: var(--hot); }
.kd-main .btn.ghost { color: #f1eee7; border-color: #5f5d58; }
:root[data-theme="light"] .kit-desk .kd-corner { border-color: var(--ink); }
@media (max-width: 960px) {
  .kit-desk { height: auto; padding: 26px 10px 12px; }
  .kit-desk .kd-win { position: relative; left: auto !important; top: auto !important; width: auto !important; margin-top: 28px; }
  .kit-desk .kd-main { margin-top: 18px; }
  .kd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .kd-strip .kd-win { scroll-snap-align: start; }
  .kd-main h1 { font-size: 38px; }
}
@media (min-width: 961px) { .kd-strip { display: contents; } }

/* ---------- 404 game ---------- */
.kit-404 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 96px); position: relative; }
.kit-404-copy { display: grid; gap: 16px; justify-items: start; }
.kit-404-big { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: clamp(110px, 16vw, 200px); line-height: .82; letter-spacing: -.03em; }
.kit-404-big span { color: var(--hot); }
.kit-console { position: relative; background: linear-gradient(170deg, #e9e3d8, #d5cdc0); border-radius: 14px 14px 36px 14px; padding: 26px 22px 24px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 30px 60px rgba(0,0,0,.45); color: #1a1917; margin-top: 30px; }
.kit-console::before { content: ""; position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 120px; height: 30px; background: var(--hot); border-radius: 6px 6px 0 0; }
.kit-bezel { background: #2b2b2e; border-radius: 8px 8px 26px 8px; padding: 14px 18px 12px; }
.kit-bezel-lbl { display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #9b9aa0; }
.kit-bezel canvas { display: block; width: 100%; aspect-ratio: 16 / 11; background: #c4cf6a; image-rendering: pixelated; border-radius: 2px; touch-action: manipulation; cursor: pointer; }
.kit-pad { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.kit-dpad { position: relative; width: 84px; height: 84px; }
.kit-dpad i { position: absolute; background: var(--hot); border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.kit-dpad i:nth-child(1) { left: 28px; top: 0; width: 28px; height: 84px; } .kit-dpad i:nth-child(2) { left: 0; top: 28px; width: 84px; height: 28px; }
.kit-ab { display: grid; grid-template-columns: repeat(2, 44px); gap: 10px; transform: rotate(-18deg); }
.kit-ab button { width: 44px; height: 44px; border-radius: 50%; background: var(--hot); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); font-family: var(--mono); font-size: 11px; font-weight: 700; color: #3a1406; }
.kit-ab button:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); }
.kit-speaker { display: flex; gap: 5px; justify-content: flex-end; margin-top: 16px; transform: rotate(-22deg); transform-origin: right; }
.kit-speaker i { width: 4px; height: 30px; background: #b6ad9f; border-radius: 2px; }
.kit-console .kit-cmark { position: absolute; left: 24px; bottom: 22px; font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: -.03em; color: #3a3833; }
@media (max-width: 860px) { .kit-404 { grid-template-columns: minmax(0, 1fr); } .kit-console { max-width: 420px; } }

/* ---------- product page: exhibit first frame (straight, no tilt), bottom buy bar ---------- */
.kit-parity-product .pdp-photo.kit-museum { background: #0c0b0a radial-gradient(ellipse 58% 58% at 50% 48%, #2c2824, #0c0b0a 72%); border-color: var(--line); }
.kit-parity-product .pdp-photo.kit-museum img { object-fit: contain; padding: 9% 8% 12%; background: transparent; filter: drop-shadow(0 30px 30px rgba(0,0,0,.75)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.kit-parity-product .pdp-photo.kit-museum:hover img { transform: translateY(-4px) scale(1.02); }
:root[data-theme="light"] .kit-parity-product .pdp-photo.kit-museum { background: #eee9df radial-gradient(ellipse 58% 58% at 50% 48%, #faf8f3, #e6e0d5 75%); }
:root[data-theme="light"] .kit-parity-product .pdp-photo.kit-museum img { filter: drop-shadow(0 18px 18px rgba(52,42,28,.22)); }
.kit-museum-note { position: absolute; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #a39f97; pointer-events: none; }
.kit-museum-note::before { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: #5f5d58; }
.kit-museum-note.n1 { left: 5%; bottom: 9%; } .kit-museum-note.n1::before { left: 100%; margin-left: 6px; }
.kit-museum-note.n2 { right: 5%; top: 14%; } .kit-museum-note.n2::before { right: 100%; margin-right: 6px; }
.pdp-photo:not(.kit-museum) .kit-museum-note { display: none; }
:root[data-theme="light"] .kit-museum-note { color: #575148; }
.kit-product-gallery button.is-cutout { background: #151515 radial-gradient(circle at 50% 50%, #2a2a2a, #121212); }
.kit-product-gallery button.is-cutout img { object-fit: contain; padding: 6px; }
.kit-buybar { position: fixed; z-index: 100000; left: 50%; bottom: 16px; transform: translate(-50%, 0); display: flex; gap: 6px; align-items: stretch; max-width: calc(100vw - 24px); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.kit-buybar[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 24px); }
.kit-buybar > * { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: #e6e0d5; color: #151412; white-space: nowrap; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.kit-buybar-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; display: block !important; line-height: 46px; }
.kit-buybar-price { font-weight: 700; }
.kit-buybar-opt i { width: 10px; height: 10px; border: 1.5px solid #151412; border-radius: 50%; background: #151412; }
.kit-buybar-opt b { font-size: 10px; }
.kit-buybar-add { background: var(--hot) !important; color: var(--on-hot) !important; font-family: var(--display); font-weight: 700; font-size: 13px; }
.kit-buybar-add:hover { background: var(--hot-2) !important; }
@media (max-width: 680px) {
  .kit-buybar { left: 0; right: 0; bottom: 0; transform: none; max-width: none; gap: 0; padding: 8px; background: var(--bg); border-top: 1px solid var(--line-2); }
  .kit-buybar[hidden] { transform: translateY(100%); }
  .kit-buybar > * { box-shadow: none; min-height: 48px; padding: 0 10px; }
  .kit-buybar-name { display: none !important; }
  .kit-buybar-add { flex: 1; justify-content: center; }
  .kit-buybar > * + * { margin-left: 6px; }
  .kit-buybar-opt span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  body:has(.kit-buybar) .site-footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .kit-desk .kd-win { opacity: 1 !important; transform: none !important; transition: none !important; }
  input.kit-err, textarea.kit-err, select.kit-err { animation: none; }
  .kit-shop .shop-card:hover .shop-card-media .kit-band { animation: none; -webkit-mask-position: 50% 0; mask-position: 50% 0; }
  .kit-buybar, .kit-parity-product .pdp-photo.kit-museum img { transition: none; }
}

/* ================= round 4 (12.10.2026): small type, Triumph frame, REP word, HUD delivery, spool cat ================= */
/* delivery HUD (ref 9) */
.kit-hud { position: relative; margin: 8px 0 clamp(40px, 5vw, 64px); border: 1px solid var(--line); background: #070707 radial-gradient(ellipse 60% 70% at 33% 34%, #161616, #070707 70%); overflow: hidden; }
.kh-map { display: block; width: 100%; height: auto; }
.kh-land { fill: rgba(241,238,231,.035); stroke: rgba(241,238,231,.42); stroke-width: 1.1; stroke-linejoin: round; }
.kh-ring { fill: none; stroke: rgba(241,238,231,.12); stroke-dasharray: 2 5; }
.kh-rl { font-family: var(--mono); font-size: 11px; fill: #5f5d58; }
.kh-axis { stroke: rgba(241,238,231,.06); }
.kh-sweep { transform-box: view-box; animation: kh-spin 6s linear infinite; }
@keyframes kh-spin { to { transform: rotate(-360deg); } }
.kh-route { fill: none; stroke: rgba(241,238,231,.22); stroke-dasharray: 3 5; }
.kh-pulse { fill: #ff5a1f; }
.kh-city rect { fill: #0b0b0b; stroke: #f1eee7; stroke-width: 1.4; }
.kh-city text, .kh-home text { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; fill: #c4c0b8; }
.kh-home text { fill: #ff6a33; font-weight: 700; }
.kh-dot { fill: #ff5a1f; }
.kh-halo { fill: rgba(255,90,31,.12); stroke: #ff5a1f; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: kh-halo 2.4s ease-out infinite; }
@keyframes kh-halo { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.kh-panel { position: absolute; z-index: 2; display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--line-2); background: rgba(10,10,10,.82); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.kh-panel span { font-size: 9.5px; color: var(--dim); }
.kh-panel b { font-size: 11.5px; font-weight: 500; color: var(--ink); }
.kh-stage { position: relative; }
.kh-top { right: 14px; top: 14px; } .kh-bottom { left: 14px; bottom: 14px; max-width: calc(100% - 28px); }
.kh-panel b { overflow-wrap: anywhere; }
/* source note sits under the map, not on it, so it never runs into the pickup panel */
.kh-note { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; line-height: 1.5; color: var(--dim); }
:root[data-theme="light"] .kit-hud { background: #0b0b0b; }
@media (max-width: 680px) { .kh-panel { position: static; margin: 10px; max-width: none; } .kh-note { padding: 10px 12px 12px; } .kh-city text { font-size: 15px; } }

@media (prefers-reduced-motion: reduce) {
  .kh-sweep, .kh-halo, .lab-spoolcat .kmo-sp { animation: none; }
}

/* ================= round 5 (12.10.2026) ================= */
/* Single-line wordmark, centered alongside the cat. */
.lab-brand { display: flex; align-items: center; line-height: 1; }

/* inversion test on the desk: windows invert on hover (default) or a difference lens follows the pointer (?inv=lens) */
.kit-desk .kd-win { transition: opacity .45s, transform .45s, translate .35s ease-out; }

/* empty cart: the cat assembles itself from filament spools */
.lab-spoolcat { max-width: 240px; margin: 8px 0 18px; }
.empty-art.lab-spoolcat { background: none; border: 0; }
.lab-spoolcat svg { display: block; width: 100%; overflow: visible; }
.lab-spoolcat .kmo-sp { transform-box: fill-box; transform-origin: center; animation: sp-in 1.2s cubic-bezier(.34,1.56,.64,1) both; animation-delay: var(--d); }
@keyframes sp-in { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lab-spoolcat .kmo-sp { animation: none; } .kit-desk .kd-win { translate: none !important; } }
.kit-hud, .home-studio, .home-depts { scroll-margin-top: 90px; }

/* ================= round 6 (12.10.2026) ================= */
/* menu · sliding line (default) */
@media (min-width: 961px) {
  .site-header .nav { position: relative; }
  :root:not([data-menu="cells"]) .site-header .nav a { box-shadow: none; transition: color .15s; }
  :root[data-menu="line"] .site-header .nav a[aria-current=page] { color: var(--ink); }
  :root[data-menu="line"] .site-header .nav a[aria-current=page]::before { content: ""; width: 6px; height: 6px; margin-right: 8px; background: var(--hot); }
  .kit-navbar { position: absolute; bottom: 16px; height: 2px; background: var(--hot); pointer-events: none; transition: left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  /* menu · sliding inverted block */
  .kit-navblk { position: absolute; top: 14px; bottom: 14px; background: var(--ink); pointer-events: none; z-index: 0; transition: left .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  :root[data-menu="block"] .site-header .nav a { position: relative; z-index: 1; transition: color .2s; }
  :root[data-menu="block"] .site-header .nav a.kit-inv { color: var(--bg); }
  .kit-noanim { transition: none !important; }
}
.kit-devswitch { position: fixed; left: 12px; bottom: 12px; z-index: 99990; display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: rgba(10,10,10,.92); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.kit-devswitch a { padding: 4px 8px; border: 1px solid var(--line-2); color: var(--mute); }
.kit-devswitch a[aria-current=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* mobile menu · full screen, big condensed words with numbers */
@media (max-width: 960px) {
  html.kit-menu-open { overflow: hidden; }
  html.kit-menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  html.kit-menu-open .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--kit-hh, 68px); z-index: 45; display: grid; align-content: start; padding: 10px 16px 28px; background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; counter-reset: kitm; animation: kit-shade .45s cubic-bezier(.6,0,.2,1) both; }
  html.kit-menu-open .mobile-nav > a { counter-increment: kitm; justify-content: flex-start; gap: 12px; align-items: baseline; min-height: 0; padding: 12px 0; font-stretch: 75%; font-size: clamp(34px, 11vw, 48px); font-weight: 900; line-height: 1; animation: kit-rise .4s cubic-bezier(.2,.8,.2,1) both; }
  html.kit-menu-open .mobile-nav > a::before { content: counter(kitm, decimal-leading-zero); font-family: var(--mono); font-size: 11px; font-weight: 500; font-stretch: 100%; color: var(--hot); }
  html.kit-menu-open .mobile-nav > a .kit-arrow { margin-left: auto; width: .4em; height: .4em; }
  html.kit-menu-open .mobile-nav > a:nth-child(2) { animation-delay: .05s; } html.kit-menu-open .mobile-nav > a:nth-child(3) { animation-delay: .1s; }
  html.kit-menu-open .mobile-nav > a:nth-child(4) { animation-delay: .15s; } html.kit-menu-open .mobile-nav > a:nth-child(5) { animation-delay: .2s; }
  html.kit-menu-open .mobile-nav > a:nth-child(6) { animation-delay: .25s; }
  html.kit-menu-open .mobile-nav .mobile-theme { margin-top: 18px; }
}
@keyframes kit-shade { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kit-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* «Хочу такий» */
.kit-wish-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink); }
.kit-wish-link:not(.has) { display: none; }
.kit-wish-link:hover { border-color: var(--ink); }
.kit-wish-link svg path { fill: var(--hot); stroke: var(--hot); }
.kit-wish-count { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; font-size: 11px; background: var(--panel-2); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.kit-wish-count.pop { transform: scale(1.45); }
@media (max-width: 680px) { .kit-wish-word { display: none; } }
.kit-wish-btn { position: absolute; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); background: rgba(10,10,10,.65); color: var(--ink); }
.kit-wish-btn.on-card { top: 34px; right: 8px; opacity: 0; transition: opacity .2s, border-color .2s; }
.kit-shop .shop-card:hover .kit-wish-btn, .kit-wish-btn.on, .kit-wish-btn:focus-visible { opacity: 1; }
@media (hover: none) { .kit-wish-btn.on-card { opacity: 1; } }
.kit-wish-btn:hover { border-color: var(--ink); }
.kit-wish-btn svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.kit-wish-btn.on svg { transform: scale(1.18); } .kit-wish-btn.on svg path { fill: var(--hot); stroke: var(--hot); }
.kit-wish-btn i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: var(--hot); opacity: 0; pointer-events: none; }
.kit-wish-btn.go i { animation: kit-spark .6s ease-out forwards; }
@keyframes kit-spark { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) translateX(0); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) translateX(26px); } }
.kit-wish-pdp { display: flex; align-items: center; gap: 10px; margin-top: -4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.kit-wish-btn.on-pdp { position: relative; }
.kit-wish-drawer { position: fixed; inset: 0; z-index: 99995; background: rgba(0,0,0,0); transition: background .25s; }
.kit-wish-drawer.open { background: rgba(0,0,0,.55); }
.kwd-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line-2); padding: 18px; display: flex; flex-direction: column; gap: 12px; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.kit-wish-drawer.open .kwd-panel { transform: none; }
.kwd-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kwd-head h2 { font-size: 30px; }
.kwd-close { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); min-height: 40px; }
.kwd-close:hover { color: var(--hot); }
.kwd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kwd-list li { display: grid; grid-template-columns: 1fr 40px; border: 1px solid var(--line); background: var(--panel); }
.kwd-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px; }
.kwd-img { aspect-ratio: 1 / 1; background: radial-gradient(ellipse at 50% 50%, #262626, #121212 70%); display: grid; place-items: center; }
.kwd-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.kwd-t { display: grid; gap: 4px; } .kwd-t strong { font-size: 14px; } .kwd-t small { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.kwd-list button { border-left: 1px solid var(--line); color: var(--mute); font-size: 18px; }
.kwd-list button:hover { color: var(--hot); }
.kwd-empty, .kwd-note { font-size: 13px; color: var(--dim); }

/* «Як замовити» cube */
.kit-steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; }
.kit-steps-wrap .shop-steps li { cursor: default; transition: opacity .2s; }
.kit-steps-wrap .shop-steps li.kit-on b { color: var(--hot); }
.kit-cube-scene { perspective: 700px; width: 190px; height: 190px; }
.kit-cube { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; transform: translateZ(-95px) rotateY(var(--ry, 0deg)); transition: transform .8s cubic-bezier(.34,1.3,.64,1); }
.kit-cube > div { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 16px; background: var(--panel-2); border: 1px solid var(--line-3); }
.kit-cube > div b { font-family: var(--mono); font-size: 11px; color: var(--hot); }
.kit-cube > div strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 19px; line-height: 1.02; }
.kit-cube > div span { font-size: 12.5px; line-height: 1.4; color: var(--mute); }
.kit-cube .f1 { transform: rotateY(0) translateZ(95px); } .kit-cube .f2 { transform: rotateY(90deg) translateZ(95px); }
.kit-cube .f3 { transform: rotateY(180deg) translateZ(95px); } .kit-cube .f4 { transform: rotateY(-90deg) translateZ(95px); place-items: center; }
.kit-cube .f4 img { width: 90px; height: 90px; }
@media (max-width: 680px) { .kit-steps-wrap { grid-template-columns: minmax(0, 1fr); } .kit-cube-scene { display: none; } }

/* desk: comet behind the pointer; phone layout = main window + 2×2 product grid */
.kd-comet { position: absolute; left: 0; top: 0; z-index: 30; background: var(--hot); pointer-events: none; opacity: 0; transition: opacity .22s; will-change: transform; }
.kit-desk.comet-on .kd-comet { opacity: var(--o, 1); }
@media (max-width: 960px) {
  .kd-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 26px 10px; overflow: visible; margin-top: 4px; }
  .kd-strip .kd-win { margin-top: 18px; }
  .kd-strip .kd-stage { height: 120px !important; }
  .kd-strip .kd-bar { font-size: 9.5px; padding: 0 7px; } .kd-strip .kd-grip { display: none; }
  .kd-strip .kd-foot { flex-direction: column; gap: 2px; font-size: 9.5px; }
  .kd-strip .kd-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kit-cube, .kit-navbar, .kit-navblk, .kwd-panel { transition: none; } html.kit-menu-open .mobile-nav, html.kit-menu-open .mobile-nav > a { animation: none; } }

/* C6 test · glass card over a large cut-out (?glass=1) */
.kit-glass { padding-top: clamp(64px, 7vw, 104px); }
.kit-glass-stage { position: relative; min-height: 460px; border: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 32% 50%, #1c1a18, #0b0b0b 70%); overflow: hidden; }
.kit-glass-stage > img { position: absolute; left: 6%; top: 8%; width: 72%; height: 84%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.7)); }
.kit-glass-glow { position: absolute; left: 18%; top: 22%; width: 38%; height: 56%; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 65%); filter: blur(12px); }
.kit-glass-card { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: min(400px, 40%); padding: 24px; display: grid; gap: 14px; background: rgba(255,255,255,.06); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255,255,255,.26); border-radius: 0; box-shadow: inset 0 0 40px rgba(255,255,255,.05); color: #f1eee7; }
.kit-glass-card h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .98; }
.kit-glass-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #a39f97; }
.kit-glass-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-family: var(--mono); font-size: 12.5px; }
.kit-glass-card dt { color: #86837c; text-transform: uppercase; font-size: 10.5px; padding-top: 2px; } .kit-glass-card dd { margin: 0; }
.kit-glass-card .actions { margin: 0; align-items: center; }
.kit-glass-alt { font-family: var(--mono); font-size: 11.5px; color: #b4b0a8; }
@media (max-width: 860px) { .kit-glass-stage { min-height: 0; padding: 230px 14px 14px; } .kit-glass-stage > img { left: 6%; top: 10px; width: 88%; height: 260px; } .kit-glass-card { position: relative; right: auto; top: auto; transform: none; width: auto; } }



/* ================= round 7 (12.10.2026) ================= */
/* studio cards: neon illustration series (generated, GPT Image) */
.home-studio .cap-media:has(.kit-neon) { background: #0b0b0b; }
.home-studio .cap-illustration.kit-neon { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(.92); transition: filter .35s, transform .5s cubic-bezier(.2,.7,.2,1); }
.home-studio .cap:hover .cap-illustration.kit-neon { filter: brightness(1.08) saturate(1.08); transform: scale(1.03); }
/* desk: crosshair cursor (the comet follows it) */
@media (hover: hover) and (pointer: fine) and (min-width: 961px) { .kit-desk { cursor: crosshair; } .kit-desk .kd-bar { cursor: grab; } .kit-desk a.kd-win .kd-stage, .kit-desk a.kd-win .kd-foot { cursor: pointer; } }
/* banner test: hand and paw illustration with the copy on its dark left side */
.home-custom-poster.kit-hand-banner { grid-template-columns: minmax(0, 1fr); min-height: clamp(360px, 38vw, 520px); background: #0a0a0a var(--hand) right center / auto 100% no-repeat; position: relative; overflow: hidden; }
.home-custom-poster.kit-hand-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 36%, rgba(10,10,10,0) 48%); pointer-events: none; }
.home-custom-poster.kit-hand-banner .poster-copy { position: relative; z-index: 1; max-width: 440px; align-self: center; }
@media (max-width: 760px) { .home-custom-poster.kit-hand-banner { background-position: 70% bottom; background-size: 180% auto; padding-bottom: 54vw; } .home-custom-poster.kit-hand-banner::before { background: linear-gradient(180deg, rgba(10,10,10,.95) 45%, rgba(10,10,10,0) 75%); } }

/* ================= hero test «Рука і лапа» (?hero=hand, 12.10.2026) ================= */
/* two cut-out layers of the lab-3 illustration: the hand (with sketch, part and print lines) wipes in from the left,
   the paw comes in from the right; they stop a finger apart. Calm: no loops except a slow breath of the paw. */
.kit-handhero { position: relative; margin-top: 18px; color: var(--ink); }
.khp-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; text-align: center; }
.khp-copy h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 4.6vw, 64px); line-height: .96; letter-spacing: -.02em; color: #f1eee7; text-wrap: balance; max-width: 15ch; }
.khp-copy h1 span { color: var(--hot); }
.khp-copy .actions { margin: 0; justify-content: center; }
.khp-copy .btn.ghost { color: #f1eee7; border-color: #5f5d58; }
.khp-stage { position: relative; width: min(1060px, 100%); aspect-ratio: 1536 / 860; margin: -28px auto 0; }
.khp-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
/* the arm and the paw are cut by the picture edge: let them dissolve instead of ending in a hard line mid-page */
.khp-hand { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.khp-paw { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 16%); mask-image: linear-gradient(270deg, transparent 0, #000 16%); }
.khp-hand { clip-path: inset(0 100% 0 0); transform: translateX(-3%); transition: clip-path 1.6s cubic-bezier(.55,.1,.25,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.khp-paw { opacity: 0; transform: translateX(16%); transition: opacity .8s .5s, transform 1.5s .5s cubic-bezier(.2,.75,.15,1); }
.kit-handhero.run .khp-hand { clip-path: inset(0 0 0 0); transform: none; }
.kit-handhero.run .khp-paw { opacity: 1; transform: translateX(var(--pawx, 0px)); }
.kit-handhero.met .khp-paw { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.khp-tags { list-style: none; margin: 0; padding: 0; }
.khp-tags li { position: absolute; display: grid; gap: 3px; padding: 7px 10px; border: 1px solid var(--line-2); background: rgba(10,10,10,.82); font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #a39f97; max-width: 230px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.khp-tags b { font-weight: 600; color: #f1eee7; }
.khp-tags b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--hot); vertical-align: 1px; }
.khp-t1 { left: 21%; bottom: 3%; } .khp-t2 { right: 1%; top: 10%; } .khp-t3 { left: 52%; bottom: 13%; }
.kit-handhero.run .khp-tags li { opacity: 1; transform: none; }
.kit-handhero.run .khp-t1 { transition-delay: 1.3s; } .kit-handhero.run .khp-t3 { transition-delay: 1.6s; } .kit-handhero.run .khp-t2 { transition-delay: 1.9s; }
:root[data-theme="light"] .kit-handhero .khp-stage { background: #0a0a0a; }
:root[data-theme="light"] .kit-handhero .khp-copy h1 { color: var(--ink); }
:root[data-theme="light"] .kit-handhero .khp-copy .btn.ghost { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 760px) {
  .khp-copy { justify-items: start; text-align: left; }
  .khp-copy .actions { justify-content: flex-start; }
  .khp-stage { margin-top: 10px; width: calc(100% + 32px); margin-left: -16px; aspect-ratio: auto; }
  .khp-stage > img { height: auto; aspect-ratio: 1536 / 860; }
  .khp-tags { display: grid; gap: 8px; margin: 0 16px; padding-top: calc(56% + 8px); }
  .khp-tags li { position: static; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .khp-hand, .khp-paw, .khp-tags li { transition: none; } }

/* ================= hero test «Мінімал» (?hero=min, after orage.studio/404, 12.10.2026) ================= */
body.home { overflow-x: clip; }
.kdm { position: relative; height: 760px; margin-top: 6px; color: #f1eee7; touch-action: pan-y; isolation: isolate; }
.kdm-marks { position: absolute; inset: 0; pointer-events: none; }
.kdm-c { position: absolute; width: 10px; height: 10px; border: 0 solid rgba(241,238,231,.6); }
.kdm-c.tl { left: 0; top: 0; border-width: 1px 0 0 1px; } .kdm-c.tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.kdm-c.bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; } .kdm-c.br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.kdm-tick { position: absolute; top: 50%; width: 10px; height: 1px; background: rgba(241,238,231,.6); } .kdm-tick.l { left: 0; } .kdm-tick.r { right: 0; }
.kdm-m { position: absolute; display: block; opacity: .3; }
.kdm-plus { width: 15px; height: 15px; background: linear-gradient(#f1eee7, #f1eee7) center / 100% 1px no-repeat, linear-gradient(#f1eee7, #f1eee7) center / 1px 100% no-repeat; }
.kdm-ring { width: 19px; height: 19px; border: 1px solid #f1eee7; border-radius: 50%; }
.kdm-box { width: 21px; height: 21px; border: 1px solid #f1eee7; background: linear-gradient(45deg, transparent calc(50% - .5px), #f1eee7 50%, transparent calc(50% + .5px)), linear-gradient(-45deg, transparent calc(50% - .5px), #f1eee7 50%, transparent calc(50% + .5px)); }
/* windows */
.kdm-win { position: absolute; display: block; z-index: 2; background: #0d0d0d; border: 1px solid #2f2f2f; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; color: inherit; text-decoration: none; }
.kdm.run .kdm-win { opacity: 1; transform: none; transition-delay: var(--wd, .2s); }
.kdm.dragging .kdm-win { transition: none; }
.kdm-tag { position: absolute; left: -1px; bottom: 100%; padding: 3px 7px; background: #3a3a3a; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: #d8d5ce; white-space: nowrap; user-select: none; }
.kdm-main { z-index: 9; background: #000; border-color: #444; }
.kdm-bar { height: 32px; display: flex; align-items: center; padding: 0 14px; background: #3d3d3d; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e8e5df; user-select: none; white-space: nowrap; overflow: hidden; }
.kdm-body { padding: 26px 28px 30px; display: grid; gap: 24px; }
.kdm-main h1 { position: relative; }
.kdm.run .kdm-main h1 { animation: kdm-print 1.15s steps(16) .35s both; }
.kdm.run .kdm-main h1::after { content: ""; position: absolute; left: -6px; right: -6px; height: 2px; background: var(--hot); box-shadow: 0 0 10px var(--hot); animation: kdm-nozzle 1.15s steps(16) .35s both; }
@keyframes kdm-print { from { clip-path: inset(100% -12px 0 -12px); } to { clip-path: inset(-4px -12px 0 -12px); } }
@keyframes kdm-nozzle { 0% { bottom: 0; opacity: 1; } 94% { bottom: 100%; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
.kdm-main h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 3.7vw, 52px); line-height: .98; letter-spacing: -.02em; color: #f1eee7; text-wrap: balance; }
.kdm-main h1 span { color: var(--hot); }
.kdm-main .actions { margin: 0; }
.kdm-main .btn.ghost { color: #f1eee7; border-color: #5f5d58; }
.kdm-stage { position: relative; display: block; overflow: hidden; background: radial-gradient(ellipse 60% 55% at 50% 50%, #1b1b1b, #0d0d0d 70%); }
.kdm-stage img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.7)); pointer-events: none; user-select: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.kdm-prod:hover .kdm-stage img { transform: scale(1.03); }
/* the chip sits on the outer side, away from the main window that overlaps the inner edge */
.kdm-chip { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: grid; gap: 2px; padding: 5px 9px; line-height: 1.35; background: rgba(58,58,58,.92); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #d8d5ce; }
.kdm-chip b { color: #fff; font-weight: 600; white-space: nowrap; }
.kdm-r .kdm-chip { left: auto; right: 10px; text-align: right; }
.kdm-prod:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) and (min-width: 961px) {
  .kdm-prod { cursor: grab; } .kdm-main .kdm-bar { cursor: grab; }
  .kdm.dragging, .kdm.dragging .kdm-prod, .kdm.dragging .kdm-bar { cursor: grabbing; }
}
@media (max-width: 960px) {
  .kdm { height: auto; padding: 30px 0 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
  .kdm-win { position: relative; left: auto !important; right: auto !important; top: auto !important; width: auto !important; }
  .kdm-main { grid-column: 1 / -1; }
  .kdm-main h1 { font-size: 38px; }
  .kdm-stage { height: 130px !important; }
  .kdm-chip { position: static; display: block; max-width: none; font-size: 9.5px; }
  .kdm-prod .kdm-tag { display: none; }
  .kdm-m, .kdm-tick { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kdm-win { transition: none; } .kdm.run .kdm-main h1, .kdm.run .kdm-main h1::after { animation: none; } }

/* site background (test, 12.10.2026, after orage): fine 22px grid + sparse grain drifting very slowly, no jumps */
.app, .app.mode-studio { position: relative; isolation: isolate; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; background-position: center top; }
.app::before { content: ""; position: fixed; inset: -160px; z-index: -1; pointer-events: none; background: url(../img/kdm-grain.png) 0 0 / 160px 160px; opacity: .3; animation: kit-grain-drift 90s linear infinite; }
:root[data-theme="light"] .app::before { filter: invert(1); opacity: .18; }
@keyframes kit-grain-drift { to { transform: translate(160px, 160px); } }
@media (prefers-reduced-motion: reduce) { .app::before { animation: none; } }

/* ================= hero tests «Іскра» (?hero=spark / spark2, 13.10.2026, after the user's mockups) ================= */
.ksp { position: relative; color: #f1eee7; }
.ksp h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; color: #f1eee7; }
.ksp h1 span { color: var(--hot); }
.ksp .actions { margin: 0; align-items: center; gap: 22px; }
.ksp-art { position: relative; }
.ksp-art img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
/* the only motion: a slow breathing glow where the finger meets the paw */
.ksp-glow { position: absolute; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,120,50,.55), rgba(255,90,31,.18) 35%, transparent 68%); mix-blend-mode: screen; animation: ksp-breath 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes ksp-breath { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.ksp-art img { animation: ksp-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ksp-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
/* wide: art runs edge to edge, copy sits in the empty lower left */
.ksp-wide { min-height: clamp(460px, 42vw, 640px); margin-top: 6px; }
.ksp-wide .ksp-art { position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; }
.ksp-wide .ksp-copy { position: relative; z-index: 1; padding-top: clamp(220px, 21vw, 320px); display: grid; gap: 28px; justify-items: start; }
.ksp-wide h1 { font-size: clamp(52px, 6vw, 92px); }
.ksp-wide h1 span { display: block; }
/* centre: art in the middle, heading in the empty top-right corner, one action under the gesture */
.ksp-center .ksp-stage { position: relative; width: min(1040px, 100%); margin: 0 auto; }
/* the arms are cut by the picture edge: dissolve them into the page instead of a hard line */
.ksp-center .ksp-art img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(#000 80%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(#000 80%, transparent); mask-composite: intersect; }
.ksp-wide .ksp-art img { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.ksp-center h1 { position: absolute; right: 0; top: 4%; max-width: 44%; text-align: right; font-size: clamp(34px, 3.8vw, 58px); text-wrap: balance; }
.ksp-center .actions { position: absolute; left: 0; right: 0; bottom: 3%; justify-content: center; }
@media (max-width: 760px) {
  .ksp-wide { min-height: 0; }
  .ksp-wide .ksp-art { position: relative; left: -16px; width: calc(100% + 32px); }
  .ksp-wide .ksp-art img { width: 150%; max-width: none; margin-left: -12%; }
  .ksp-wide .ksp-art { overflow: hidden; }
  .ksp-wide .ksp-copy { padding-top: 8px; }
  .ksp-center h1 { position: static; max-width: none; text-align: left; margin: 10px 0 0; }
  .ksp-center .actions { position: static; justify-content: flex-start; margin-top: 18px; }
  .ksp-center .ksp-stage { display: flex; flex-direction: column; }
  .ksp-center .ksp-art { order: 2; margin-top: 10px; }
  .ksp-center .actions { order: 3; }
}
@media (prefers-reduced-motion: reduce) { .ksp-glow, .ksp-art img { animation: none; } }

/* home: delivery map in place of «Що робить студія» */
.home-map { margin-top: clamp(56px, 7vw, 96px); }
.home-map .kit-hud { margin-bottom: 0; }

/* catalog: author lines (M1LITECH) read as a separate author, not as a product type */
/* 14.10.2026: the sidebar item looks like the others (no dashed frame, orange icon or bold name); only the «автор» mark stays */
.shop-dept-switch a.is-author { position: relative; }

/* ================= 14.10.2026: «Робочий стіл» in the «Мінімал» window style (no coordinate tags) ================= */
.kdm.kdm-desk { height: 700px; margin-top: 18px; }
/* 14.10.2026: card buttons are neutral by default and turn orange only on hover (user) */
.kit-shop .shop-card-cta { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3, #4a4843); }
@media (hover: hover) and (pointer: fine) {
  .kit-shop .shop-card:hover .shop-card-cta { background: var(--hot); color: var(--on-hot); box-shadow: none; }
}
.kit-shop .shop-card:focus-within .shop-card-cta { background: var(--hot); color: var(--on-hot); box-shadow: none; }

/* 14.10 «Що робить студія»: service list + six-face cube that turns on both axes (front-page.php .kstu, lab-ui.js). */
.kstu-wrap { --s: clamp(260px, 25vw, 340px); --h: calc(var(--s) / 2); display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--s) * 1.55); gap: clamp(24px, 4vw, 64px); align-items: center; }
.kstu-list { list-style: none; margin: 0; padding: 0; }
.kstu-list li + li { margin-top: 6px; }
.kstu-list a { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; padding: 18px 20px 18px 16px; border: 1px solid transparent; border-left: 2px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; transition: background-color .3s, border-color .3s; }
.kstu-list b { align-self: start; display: grid; place-items: center; width: 40px; height: 28px; border: 1px solid var(--line-3); font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); transition: color .3s, border-color .3s, background-color .3s; }
.kstu-list strong { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.1; color: var(--dim); transition: color .3s; }
.kstu-list em { display: grid; grid-template-rows: 0fr; font-style: normal; transition: grid-template-rows .45s ease; }
.kstu-list em > span { overflow: hidden; }
.kstu-list em > span > span { display: block; max-width: 52ch; padding-top: 8px; font-size: 15px; line-height: 1.5; color: var(--mute); }
.kstu-list i { display: inline-block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); transition: color .3s; }
.kstu-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hot); transform: scaleX(0); transform-origin: left; opacity: 0; }
.kstu-list a.kit-on { background: linear-gradient(90deg, rgba(255, 90, 31, .09), rgba(255, 90, 31, 0) 70%), var(--panel-2); border-color: var(--line); border-left-color: var(--hot); }
.kstu-list a.kit-on b { color: #fff; background: var(--hot); border-color: var(--hot); }
.kstu-list a.kit-on strong, .kstu-list a:hover strong { color: var(--ink); }
.kstu-list a.kit-on em { grid-template-rows: 1fr; }
.kstu-list a.kit-on i, .kstu-list a:hover i, .kstu-list a:focus-visible i { color: var(--hot); }
.kstu-run .kstu-list a.kit-on::after { opacity: .7; animation: kstu-prog 3.6s linear forwards; }
@keyframes kstu-prog { to { transform: scaleX(1); } }

.kstu-scene { position: relative; display: grid; place-items: center; height: calc(var(--s) * 1.5); perspective: calc(var(--s) * 4.2); }
.kstu-scene::before { content: ""; position: absolute; inset: 6% 2%; background: radial-gradient(closest-side, rgba(255, 90, 31, .16), rgba(255, 90, 31, .04) 55%, transparent); pointer-events: none; }
.kstu-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px; opacity: .35; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); pointer-events: none; }
.kstu-float { position: relative; z-index: 1; transform-style: preserve-3d; animation: kstu-float 6s ease-in-out infinite; }
@keyframes kstu-float { 50% { transform: translateY(-10px); } }
.kstu-cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: translateZ(calc(var(--h) * -1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.kstu-face { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: 18px 20px 20px; background: radial-gradient(120% 90% at 0 0, rgba(255, 90, 31, .10), transparent 55%), linear-gradient(160deg, #1d1c1a, #121211); border: 1px solid var(--line-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 -60px 80px -40px rgba(0, 0, 0, .6); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kstu-face::before { content: ""; position: absolute; left: -1px; top: -1px; border: 9px solid transparent; border-left-color: var(--hot); border-top-color: var(--hot); }
.kstu-face::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 12px; height: 12px; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.kstu-face b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--hot); }
.kstu-face b span { margin-left: 6px; color: var(--dim); }
.kstu-face img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.kstu-face strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.05; color: var(--ink); }
.kstu-logo { grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: 4px; padding-top: 34px; background: radial-gradient(70% 60% at 50% 40%, rgba(255, 90, 31, .18), transparent 70%), linear-gradient(160deg, #1d1c1a, #121211); }
.kstu-logo img { width: 46%; filter: none; }
.kstu-logo strong { font-size: clamp(22px, 2vw, 28px); text-transform: none; }
.kstu-logo span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.kstu-p0 { transform: translateZ(var(--h)); }
.kstu-p1 { transform: rotateY(90deg) translateZ(var(--h)); }
.kstu-p2 { transform: rotateX(90deg) translateZ(var(--h)); }
.kstu-p3 { transform: rotateY(-90deg) translateZ(var(--h)); }
.kstu-p4 { transform: rotateX(-90deg) translateZ(var(--h)); }
.kstu-p5 { transform: rotateY(180deg) translateZ(var(--h)); }
.kstu-shadow { position: absolute; left: 50%; bottom: 4%; width: calc(var(--s) * 1.05); height: 30px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); animation: kstu-shadow 6s ease-in-out infinite; pointer-events: none; }
@keyframes kstu-shadow { 50% { transform: translateX(-50%) scale(.88); opacity: .75; } }
@media (max-width: 860px) {
  .kstu-wrap { --s: min(230px, 60vw); grid-template-columns: minmax(0, 1fr); }
  .kstu-scene { order: -1; height: calc(var(--s) * 1.55); }
  .kstu-list a { padding: 16px 14px 16px 12px; grid-template-columns: 44px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .kstu-cube, .kstu-list em { transition: none; } .kstu-float, .kstu-shadow { animation: none; } .kstu-run .kstu-list a.kit-on::after { animation: none; } }

/* 14.10: «Як замовити» uses the home-page cube (.kstu-*), sized down; the old .kit-cube rules above are unused. */
.kit-steps-wrap { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
.kit-shopcube { --s: 150px; --h: 75px; order: 0; width: 200px; height: 220px; perspective: 640px; }
.kit-shopcube::after { background-size: 20px 20px; }
.kit-shopcube .kstu-face { grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; padding: 12px 12px 14px; }
.kit-shopcube .kstu-face::before { border-width: 7px; }
.kit-shopcube .kstu-face::after { right: 8px; bottom: 8px; width: 8px; height: 8px; }
.kit-shopcube .kstu-face b { font-size: 11px; }
.kit-shopcube .kstu-face strong { align-self: center; font-size: 15px; line-height: 1.05; }
.kit-shopcube .kstu-face > span { font-size: 11.5px; line-height: 1.35; color: var(--mute); }
.kit-shopcube .kstu-logo { grid-template-rows: minmax(0, 1fr) auto auto; padding-top: 16px; }
.kit-shopcube .kstu-logo img { width: 52px; height: 52px; align-self: center; }
.kit-shopcube .kstu-logo strong { font-size: 17px; align-self: auto; }
.kit-shopcube .kstu-logo span { font-size: 9px; }
.kit-shopcube .kstu-shadow { width: 160px; height: 18px; bottom: 2%; }
.kit-steps-wrap .shop-steps li { cursor: default; }
.kit-steps-wrap .shop-steps li.kit-on b { color: var(--hot); }
@media (max-width: 680px) { .kit-steps-wrap { grid-template-columns: minmax(0, 1fr); } .kit-shopcube { display: none; } }

/* Shared theme and touch corrections, 14.10.2026. */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
:is(a,button,input,textarea,select):focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
input,textarea,select { accent-color: var(--hot); }
.kit-hud { --ink: #f1eee7; --mute: #c9c5bd; --dim: #a7a29a; --line: #343434; --line-2: #4a4843; }
.kh-rl { fill: #a7a29a; }
:is(main h1,main h2,main section[id]) { scroll-margin-top: 96px; }
.woocommerce-cart .kit-cart-page .woocommerce.kit-empty-cart-wrap { grid-template-columns: minmax(0,1fr); }
:root[data-theme="light"] .kstu-face { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="light"] .kstu-face img { filter: drop-shadow(0 12px 14px rgba(52,42,28,.18)); }
.kit-build-option:focus-within { outline: 2px solid var(--hot); outline-offset: 2px; }
@media (max-width: 680px) {
  .kit-buybar { display: grid; grid-template-columns: max-content minmax(0,1fr) max-content; gap: 6px; padding: 8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  .kit-buybar > * { min-width: 0; padding: 0 8px; margin: 0 !important; }
  .kit-buybar-opt { gap: 5px; overflow: hidden; }
  .kit-buybar-opt span { min-width: 0; max-width: none; }
  .kit-buybar-opt i { flex: none; }
  .kit-buybar-price { font-size: 11px; letter-spacing: 0; }
  body:has(.kit-buybar) .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .theme-switch button, .menu-toggle, .cart-link, .track-link { min-height: 44px; min-width: 44px; }
}

/* 14.10: keep the author label in the catalog subsection list. */
.shop-index-tag .shop-author-mark { flex: none; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--hot) 60%, transparent); color: var(--hot); font-family: var(--mono); font-size: 9px; font-style: normal; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
