:root {
  --bg: #0d0b11;
  --ink: #f7f2ea;
  --mute: #b6aebf;
  --amber: #ffb866;
  --coral: #ff6a45;
  --paper: #f3ede4;
  --dark: #17131c;
  --head: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--body); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }

.eyebrow { font: 800 12px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.big { font: 900 clamp(30px, 6.2vw, 84px)/1.04 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 28px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(100deg, var(--amber), var(--coral)); color: #1c0e08; font: 800 15px/1.2 var(--body); box-shadow: 0 10px 34px -12px var(--coral); transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--coral); }
.btn:active { transform: scale(.97); }
.btn.light { background: var(--ink); color: var(--dark); box-shadow: 0 14px 40px -16px #000; }
.link { color: var(--amber); text-decoration: underline; font-weight: 700; }

.rise { opacity: 0; translate: 0 34px; transition: opacity .7s var(--d, 0ms), translate .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.rise.seen { opacity: 1; translate: 0 0; }

/* ---------- шапка ---------- */
.top { --k: 0; position: fixed; inset: 0 0 auto; z-index: 2000; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(16px - 8px * var(--k)) clamp(14px, 3vw, 40px); }
.top::before { content: ""; position: absolute; inset: 0 0 -10px; z-index: -1; background: linear-gradient(#0d0b11 55%, #0d0b11d9 78%, #0d0b1100); opacity: var(--k); pointer-events: none; }
.top nav { display: flex; gap: 24px; align-items: center; font: 700 14px/1 var(--body); }
.top nav.right { justify-content: flex-end; }
.top nav a { text-decoration: none; opacity: .85; text-shadow: 0 1px 10px #000a; }
.top nav a:hover { opacity: 1; color: var(--amber); }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-word { font: 900 calc(clamp(30px, 4vw, 54px) - (clamp(30px, 4vw, 54px) - 22px) * var(--k, 1))/1 var(--head); letter-spacing: -.03em; }
.logo svg { width: 0; min-width: 92%; height: auto; margin-top: 2px; overflow: visible; }
.logo path { fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 8 7; animation: stitch 1.6s linear infinite; }
.logo.static { --k: 1; }
@keyframes stitch { to { stroke-dashoffset: -30; } }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #ffffff17; border: 1px solid #ffffff26; backdrop-filter: blur(8px); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-btn i { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font: 800 11px/20px var(--body); }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }

/* ---------- 1. стежка ---------- */
#snake { height: 400vh; position: relative; }
#snake .stage { --tone: #c8102e; position: sticky; top: 0; height: var(--vh); min-height: 480px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; isolation: isolate; }
#snake .stage.grabbing { cursor: grabbing; }
.sky { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 50% 105%, color-mix(in srgb, var(--tone) 70%, #0d0b11), #0d0b11 68%); background-color: var(--bg); transition: background .8s; }
.sky i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--tone), transparent); opacity: .3; transition: background 1s; animation: drift 14s ease-in-out infinite alternate; }
.sky i:nth-child(1) { left: -25vmax; top: -20vmax; }
.sky i:nth-child(2) { right: -28vmax; top: 20%; animation-delay: -6s; }
.sky i:nth-child(3) { left: 30%; top: -40vmax; background: radial-gradient(closest-side, var(--amber), transparent); opacity: .16; animation-delay: -10s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.giant { position: absolute; inset: 13% 0 auto; z-index: 1; text-align: center; pointer-events: none; }
.giant span { display: inline-block; font: 900 40px/1 var(--head); font-size: min(calc(92vw / var(--n, 6)), 30vh); letter-spacing: -.03em; white-space: nowrap; color: transparent;
  background: linear-gradient(#ffffff52, #ffffff05 90%); -webkit-background-clip: text; background-clip: text; }
.giant span.swap { animation: word .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes word { from { opacity: 0; transform: translateY(30px) scale(.94); letter-spacing: .06em; } }
.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.pairs { position: absolute; inset: 0; pointer-events: none; }
.pair { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform; }
.pair .turn { position: absolute; inset: 0; transform-origin: 50% 70%; }
.pair img { position: absolute; bottom: 0; max-width: none; visibility: hidden; }
.pair img.on { visibility: visible; }
.pair .shade { position: absolute; left: 10%; right: 10%; bottom: -5%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, #000000a8, transparent); }
.hero-title { position: absolute; z-index: 130; left: 0; right: 0; top: 92px; text-align: center; pointer-events: none; }
.hero-title h1 { font: 900 clamp(28px, 8.4vw, 40px)/1.06 var(--head); letter-spacing: -.02em; text-shadow: 0 6px 30px #000a; }
.hero-title .eyebrow { margin-bottom: 10px; }
.now { position: absolute; z-index: 1200; left: 14px; right: 14px; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 20px; border-radius: 99px; background: #14101acc; border: 1px solid #ffffff1f; backdrop-filter: blur(14px); }
.now-text { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; align-items: baseline; min-width: 0; }
.now small { grid-column: 1 / -1; font-size: 11px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now b { font: 700 18px/1.3 var(--head); }
.now span { font-weight: 800; color: var(--amber); white-space: nowrap; }
.now.swap .now-text { animation: nowin .45s ease-out; }
@keyframes nowin { from { opacity: 0; transform: translateY(10px); } }
.swipe-hint { position: absolute; z-index: 1200; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; color: #ffffffb0; pointer-events: none; }
.swipe-hint svg { width: 42px; height: 14px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 6; animation: stitch 1s linear infinite; }

@media (min-aspect-ratio: 21/20) {
  .hero-title { left: clamp(24px, 4vw, 72px); right: auto; top: 17%; text-align: left; }
  .hero-title h1 { font-size: min(4.4vw, 8.4vh); }
  .now { left: auto; right: clamp(20px, 3vw, 48px); bottom: 36px; min-width: 360px; }
  .giant { inset: 15% 0 auto; }
  .swipe-hint { left: clamp(24px, 4vw, 72px); right: auto; bottom: 36px; font-size: 14px; }
}

/* ---------- стрічки ---------- */
.ribbons { position: relative; z-index: 3; padding: 34px 0; overflow: hidden; background: var(--bg); }
.ribbon { overflow: hidden; width: 110%; margin-left: -5%; padding: 14px 0; white-space: nowrap; }
.ribbon .run { display: flex; width: max-content; gap: 34px; will-change: transform; }
.ribbon span { font: 700 clamp(18px, 2.6vw, 34px)/1.2 var(--head); text-transform: uppercase; display: flex; align-items: center; gap: 34px; }
.ribbon span::after { content: ""; width: 40px; border-top: 4px dashed currentColor; opacity: .6; }
.r1 { background: linear-gradient(100deg, var(--amber), var(--coral)); color: #1c0e08; transform: rotate(-2.2deg); position: relative; z-index: 2; }
.r2 { background: var(--paper); color: var(--dark); transform: rotate(1.6deg); margin-top: -8px; }

/* ---------- 2. шари ---------- */
#inside { height: 620vh; position: relative; background: var(--bg); }
#inside .stage { position: sticky; top: 0; height: var(--vh); min-height: 520px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 78px 20px 24px;
  background: radial-gradient(70% 55% at 50% 58%, #1d2f6e, #0d0b11 78%); }
#inside .head { text-align: center; min-height: 132px; }
#inside .step-title { font: 900 clamp(28px, 5.4vw, 68px)/1.08 var(--head); letter-spacing: -.02em; }
#inside .step-text { color: #d5d2e6; margin: 8px auto 0; max-width: 34ch; font-size: clamp(15px, 1.5vw, 19px); }
#inside .head.swap > h2, #inside .head.swap > .step-text { animation: nowin .45s ease-out; }
.rig { position: relative; min-height: 0; }
.stack, img.whole, .flash, .rig .shadow { position: absolute; left: 50%; top: 50%; }
.stack { width: 0; height: 0; }
.stack img { position: absolute; left: 0; top: 0; max-width: none; transition: filter .3s, opacity .3s, scale .3s; }
.stack img.dim { opacity: .3; }
.stack img.hot { filter: drop-shadow(0 0 22px #8fb0ffaa); }
.stack img.hot[data-layer="out"] { filter: brightness(2.3) drop-shadow(0 0 3px #fff) drop-shadow(0 0 20px #8fb0ff); }
img.whole { max-width: none; transform-origin: 50% 50%; filter: drop-shadow(0 26px 30px #0009); }
.flash { width: min(120vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff, #cfe0ffcc 25%, #6f95ff55 50%, transparent); opacity: 0; pointer-events: none; z-index: 9; }
.rig .shadow { height: 34px; border-radius: 50%; background: radial-gradient(closest-side, #000c, transparent); }
.inside-end { text-align: center; min-height: 54px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .45s; position: relative; z-index: 10; }
.inside-end.on { opacity: 1; transform: none; pointer-events: auto; }
.ticks { position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; }
.ticks i { width: 5px; height: 14px; border-radius: 3px; background: #ffffff33; transition: .3s; }
.ticks i.on { height: 34px; background: var(--amber); }
@media (min-aspect-ratio: 21/20) {
  #inside .stage { grid-template-columns: minmax(280px, 34%) 1fr; grid-template-rows: 1fr auto 1fr; padding: 90px clamp(24px, 5vw, 80px) 30px; }
  #inside .head { grid-column: 1; grid-row: 2; text-align: left; align-self: center; min-height: 220px; }
  #inside .step-text { margin-inline: 0; }
  .rig { grid-column: 2; grid-row: 1 / -1; }
  .inside-end { grid-column: 1; grid-row: 3; text-align: left; align-self: start; }
  .ticks { right: 24px; }
}

/* ---------- 3. фарба ---------- */
#paint { height: 480vh; position: relative; }
#paint .stage { position: sticky; top: 0; height: var(--vh); min-height: 520px; overflow: hidden; }
.coats, .coat, .edge { position: absolute; inset: 0; }
.coat { overflow: hidden; background: radial-gradient(90% 70% at 50% 45%, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 55%, #07060a) 100%); }
.coat .word { position: absolute; left: 50%; top: 31%; font: 900 min(calc(94vw / var(--n)), 34vh)/1 var(--head); letter-spacing: -.04em; color: #ffffffee; white-space: nowrap; }
.coat .shoe { position: absolute; left: 50%; top: 47%; translate: -50% -50%; width: min(104vw, 980px, 118vh); }
.coat img { width: 100%; filter: drop-shadow(0 40px 34px #0008); will-change: transform; }
.edge { background: #fff; opacity: 0; pointer-events: none; }
@media (min-aspect-ratio: 21/20) {
  .coat .word { top: 25%; }
  .coat .shoe { top: 49%; width: min(70vw, 96vh); }
}
.paint-ui { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 14px; text-align: center; }
.paint-ui p { font: 700 14px/1 var(--head); letter-spacing: .06em; text-shadow: 0 2px 12px #0008; }
.swatches { display: flex; gap: 12px; padding: 10px 14px; border-radius: 99px; background: #0000004d; backdrop-filter: blur(10px); }
.swatches button, .pm-colors button, .dots button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ffffffb3; transition: transform .25s, box-shadow .25s; }
.swatches button[aria-pressed="true"], .pm-colors button[aria-pressed="true"] { transform: scale(1.18); box-shadow: 0 0 0 3px #fff; }

/* ---------- 4. хіти ---------- */
#hits { padding: 90px 0 40px; }
.hit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.hit { container-type: inline-size; position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 3 / 4.3; text-align: left; isolation: isolate;
  background: radial-gradient(110% 70% at 50% 38%, color-mix(in srgb, var(--tone) 85%, #fff), color-mix(in srgb, var(--tone) 45%, #0d0b11) 100%); transition: transform .35s, box-shadow .35s; }
.hit:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -26px var(--tone); }
.hit .word { position: absolute; left: 0; right: 0; top: 6%; text-align: center; font: 900 min(24cqw, calc(108cqw / var(--n, 6)))/1 var(--head); color: #ffffff2e; z-index: -1; white-space: nowrap; }
.hit img { position: absolute; left: 3%; right: 3%; top: 8%; width: 94%; height: 60%; object-fit: contain; filter: drop-shadow(0 22px 18px #0007); }
.hit .meta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; }
.hit .meta b { font: 700 clamp(16px, 1.8vw, 24px)/1.2 var(--head); }
.hit .meta small { font-size: 12px; opacity: .85; line-height: 1.3; }
.hit .meta em { font: 800 15px/1.6 var(--body); font-style: normal; }
.hit i { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--dark); font: 800 11px/1 var(--body); font-style: normal; text-transform: uppercase; }
.cats { display: grid; gap: 12px; margin-top: 12px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 20px; border-radius: 24px; text-decoration: none; overflow: hidden;
  background: linear-gradient(115deg, #1d1824, color-mix(in srgb, var(--tone) 75%, #1d1824)); }
.cat b { font: 700 clamp(18px, 2vw, 26px)/1.25 var(--head); position: relative; max-width: 55%; }
.cat small { opacity: .85; position: relative; }
.cat img { position: absolute; right: -3%; top: 50%; translate: 0 -50%; width: 58%; max-height: 108%; object-fit: contain; rotate: -12deg; filter: drop-shadow(0 18px 16px #0008); transition: rotate .45s, scale .45s; }
.cat:hover img { rotate: 0deg; scale: 1.08; }
@media (min-width: 900px) {
  .hit-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
  .cat { min-height: 230px; }
}

/* ---------- 5. на ногах ---------- */
#looks { padding: 80px 0 60px; overflow: hidden; }
.strip { overflow: hidden; margin-top: 34px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.strip .run { display: flex; width: max-content; gap: 14px; will-change: transform; }
.look { position: relative; flex: none; width: clamp(230px, 26vw, 400px); aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: #221d29; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.look:hover img { scale: 1.05; }
.look span { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 99px; background: #14101ac7; backdrop-filter: blur(8px); font-size: 13px; white-space: nowrap; }
.strip-note { text-align: center; color: var(--mute); font-size: 13px; margin-top: 16px; }

/* ---------- 6. розмір ---------- */
#size { background: var(--paper); color: var(--dark); padding: 80px 0; scroll-margin-top: 0; }
#size .eyebrow { color: #c0431f; }
.size-in { display: grid; gap: 34px; }
.size-copy p:last-child { margin-top: 18px; max-width: 42ch; color: #4d4556; font-size: 17px; }
.size-tool { background: #fff; border-radius: 30px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; box-shadow: 0 40px 70px -50px #4a2a10; }
.ruler { height: 220px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.foot-box { height: 100%; display: flex; align-items: flex-end; }
.foot { width: auto; height: 80%; fill: #f0b58a; transition: height .3s cubic-bezier(.2, .8, .2, 1); }
.cm-line { position: relative; width: 14px; height: 80%; border-block: 2px solid var(--dark); transition: height .3s cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(var(--dark), var(--dark)) center / 2px 100% no-repeat; }
.cm-line b { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-size: 12px; white-space: nowrap; }
.size-result { text-align: center; display: grid; justify-items: center; }
.size-result small { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: #7d7386; font-weight: 800; }
.size-result .eu { font: 900 clamp(64px, 12vw, 130px)/1.05 var(--head); color: var(--dark); }
.size-result .eu.pop { animation: pop .3s ease-out; }
@keyframes pop { 40% { transform: scale(1.1); color: var(--coral); } }
.size-result .cm { font-weight: 700; color: #4d4556; font-size: 14px; }
.size-tool input[type=range] { grid-column: 1 / -1; width: 100%; height: 44px; appearance: none; -webkit-appearance: none; background: transparent; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--coral) var(--fill, 30%), #e6ded2 var(--fill, 30%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border-radius: 50%; background: #fff; border: 8px solid var(--coral); box-shadow: 0 4px 12px #0004; }
input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: #e6ded2; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 8px solid var(--coral); }
.size-tool .note { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #7d7386; }
.size-tool .btn { grid-column: 1 / -1; background: var(--dark); color: #fff; box-shadow: none; }
@media (min-width: 900px) {
  .size-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .size-tool { padding: 40px; }
  .ruler { height: 300px; }
}

/* ---------- 7. як замовити ---------- */
#how { padding: 90px 0; }
.steps { --draw: 0%; position: relative; display: grid; gap: 18px; margin-top: 40px; }
.steps-path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 10; vector-effect: non-scaling-stroke;
  clip-path: inset(0 0 calc(100% - var(--draw)) 0); }
.steps-path path { vector-effect: non-scaling-stroke; }
.steps article { position: relative; padding: 24px; border-radius: 24px; background: #1c1725e8; border: 1px solid #ffffff17; width: 86%; }
.steps article:nth-of-type(2) { justify-self: end; }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(100deg, var(--amber), var(--coral)); color: #1c0e08; font: 900 17px/1 var(--head); margin-bottom: 14px; }
.steps h3 { font: 700 19px/1.3 var(--head); margin-bottom: 8px; }
.steps p { color: var(--mute); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 30px 0; }
  .steps article, .steps article:nth-of-type(2) { width: auto; justify-self: stretch; z-index: 1; background: #1c1725; }
  .steps article:nth-of-type(2) { translate: 0 30px; }
  .steps article:nth-of-type(2).seen { translate: 0 30px; }
  .steps-path { display: none; }
  .steps::before { content: ""; position: absolute; left: 0; top: 52px; width: var(--draw); border-top: 3px dashed var(--amber); }
}

/* ---------- 8. фінал ---------- */
#final { position: relative; height: var(--vh); min-height: 560px; overflow: hidden; }
#final picture, #final picture img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
#final picture img { object-fit: cover; object-position: 50% 75%; }
#final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0d0b11, #0d0b1100 22%, #0d0b1100 80%, #0d0b11); pointer-events: none; }
.final-shoe { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.final-shoe img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(0 16px 12px #000a); will-change: transform; opacity: 0; }
.final-copy { position: absolute; z-index: 2; left: 20px; right: 20px; top: 14%; text-align: center; display: grid; justify-items: center; gap: 22px; }
.final-copy h2 { font: 900 clamp(28px, 5.4vw, 76px)/1.1 var(--head); text-shadow: 0 6px 30px #000c; text-wrap: balance; }

footer { padding: 56px 20px 46px; text-align: center; display: grid; justify-items: center; gap: 14px; color: var(--mute); background: var(--bg); }
footer .logo { color: var(--ink); }
footer .logo-word { font-size: 34px; }
footer .demo { font-size: 12px; max-width: 52ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: 14px; }

/* ---------- каталог ---------- */
.catalog { padding: 118px 0 40px; min-height: 100vh; }
body[data-page="catalog"] .top::before { inset: 0; background: var(--bg); }
.filters { position: sticky; top: 60px; z-index: 50; padding: 14px 0; margin-top: 8px; background: linear-gradient(#0d0b11 82%, #0d0b1100); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.chip { flex: none; padding: 10px 18px; border-radius: 99px; border: 1px solid #ffffff2b; font: 700 14px/1.2 var(--body); transition: .25s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.filters .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: 14px; color: var(--mute); }
.filters select { margin-left: 4px; padding: 7px 10px; border-radius: 10px; background: #1c1725; border: 1px solid #ffffff2b; color: var(--ink); }
#f-count { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.card { container-type: inline-size; position: relative; border-radius: 22px; overflow: hidden; background: #17131e; display: flex; flex-direction: column; }
.card .open { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.06; overflow: hidden; isolation: isolate;
  background: radial-gradient(100% 80% at 50% 45%, color-mix(in srgb, var(--tone) 88%, #fff), color-mix(in srgb, var(--tone) 52%, #0d0b11) 100%); transition: background .45s; }
.card .word { position: absolute; left: 0; right: 0; top: 8%; text-align: center; font: 900 min(22cqw, calc(108cqw / var(--n, 6)))/1 var(--head); color: #ffffff30; z-index: -1; white-space: nowrap; }
.card .pic { position: absolute; inset: 12% 4% 8%; display: block; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 14px #0007); transition: opacity .3s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.card .pic img.b { opacity: 0; transform: translateX(30%) rotate(8deg); }
@media (hover: hover) {
  .card .open:hover img.a { transform: scale(1.1) rotate(-7deg); }
  .card .open:hover img.a:has(+ img.b) { opacity: 0; transform: translateX(-30%) rotate(-10deg); }
  .card .open:hover img.b { opacity: 1; transform: scale(1.06); }
}
@media (hover: none) {
  .card.center .pic img.a { animation: floaty 2.6s ease-in-out infinite; }
}
@keyframes floaty { 50% { transform: translateY(-9px) rotate(-6deg) scale(1.05); } }
.card .badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--dark); font: 800 10px/1 var(--body); font-style: normal; text-transform: uppercase; pointer-events: none; }
.card .meta { padding: 12px 12px 14px; display: grid; gap: 2px; flex: 1; align-content: start; }
.card h3 { font: 700 16px/1.3 var(--head); }
.card small { color: var(--mute); font-size: 12px; line-height: 1.35; min-height: 2.7em; }
.card .line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.card .line b { font-weight: 800; white-space: nowrap; }
.dots { display: flex; gap: 6px; }
.dots button { width: 22px; height: 22px; border-width: 1px; }
.dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.empty { text-align: center; padding: 60px 0; color: var(--mute); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .card small { min-height: 0; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card h3 { font-size: 19px; } .card .meta { padding: 16px 18px 18px; } }

/* ---------- вікна по центру ---------- */
.overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 14px; background: #07050abf; backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.overlay.on { opacity: 1; }
.overlay.off { pointer-events: none; }
.box { --tone: #6b4a8a; position: relative; width: min(100%, 440px); max-height: calc(100dvh - 28px); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #17131e; border: 1px solid #ffffff1f;
  transform: translateY(30px) scale(.94); transition: transform .4s cubic-bezier(.2, .9, .25, 1.1); }
.overlay.on .box { transform: none; }
.box-body { overflow-y: auto; overscroll-behavior: contain; }
.close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #0000007a; color: #fff; font: 400 26px/38px var(--body); }
.pm-photo { background: radial-gradient(100% 80% at 50% 40%, color-mix(in srgb, var(--tone) 88%, #fff), color-mix(in srgb, var(--tone) 50%, #17131e) 100%); transition: background .4s; padding-bottom: 12px; }
.pm-main { position: relative; height: min(30vh, 280px); touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.pm-main.is-worn { height: min(46vh, 420px); }
.pm-word { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font: 900 clamp(34px, 11vw, 64px)/1 var(--head); color: #ffffff2e; white-space: nowrap; }
.pm-shoe { position: absolute; inset: 8% 5% 2%; }
.is-worn .pm-shoe { inset: 0; }
.pm-shoe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 16px #0007); animation: shoein .5s cubic-bezier(.2, .8, .2, 1); }
.pm-shoe img.worn { object-fit: contain; filter: none; animation: nowin .35s; }
@keyframes shoein { from { opacity: 0; transform: translateX(50px) rotate(8deg) scale(.9); } }
.pm-thumbs { display: flex; justify-content: center; gap: 8px; padding: 8px 8px 0; }
.pm-thumbs button { width: 60px; height: 48px; border-radius: 12px; background: #ffffff21; border: 2px solid transparent; padding: 3px; overflow: hidden; }
.pm-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pm-thumbs button.worn { padding: 0; }
.pm-thumbs button.worn img { object-fit: cover; object-position: 50% 85%; }
.pm-thumbs button[aria-pressed="true"] { border-color: #fff; }
.pm-info { padding: 18px 20px 22px; display: grid; gap: 8px; }
.pm-info small { color: var(--mute); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 800; }
.pm-info h3 { font: 900 30px/1.15 var(--head); }
.price { font: 800 22px/1.3 var(--body); color: var(--amber); }
.price em { font: 500 12px/1 var(--body); color: var(--mute); font-style: normal; }
.pm-text { color: #d3ccdb; font-size: 15px; }
.pm-label { font-weight: 800; font-size: 14px; margin-top: 6px; }
.pm-label span { font-weight: 500; color: var(--mute); }
.pm-label .warn { display: none; color: var(--coral); font-weight: 800; }
.pm-label .warn.show { display: inline; }
.pm-colors { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.pm-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-sizes button { min-width: 48px; height: 44px; border-radius: 12px; border: 1px solid #ffffff33; font-weight: 800; transition: .2s; }
.pm-sizes button[aria-pressed="true"] { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.pm-sizes.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-9px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-5px); } }
.buy { margin-top: 10px; min-height: 56px; font-size: 17px; position: sticky; bottom: 12px; z-index: 3; }
@media (min-width: 860px) {
  .product .box { width: min(1060px, 100%); }
  .product .box-body { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; height: min(640px, calc(100dvh - 40px)); }
  .pm-photo { display: flex; flex-direction: column; min-height: 0; padding-bottom: 18px; }
  .pm-main, .pm-main.is-worn { height: auto; flex: 1; min-height: 0; }
  .pm-info { overflow-y: auto; padding: 34px 34px 30px; align-content: center; align-content: safe center; }
}

.cart .box-body { padding: 24px 20px; }
.cart h3 { font: 900 22px/1.3 var(--head); margin: 0 44px 14px 0; }
.cart p { color: var(--mute); margin-bottom: 14px; }
.cart ul { list-style: none; display: grid; gap: 10px; }
.cart li { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 16px; background: #ffffff0d; }
.cart li img { width: 84px; height: 64px; object-fit: contain; border-radius: 12px; padding: 4px; background: color-mix(in srgb, var(--tone) 70%, #17131e); }
.cart li div { display: grid; }
.cart li small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.cart li span { font-weight: 800; color: var(--amber); font-size: 14px; }
.cart .qty { grid-auto-flow: column; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff33; }
.qty i { font-style: normal; font-weight: 800; min-width: 16px; text-align: center; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px; }
.sum b { font: 900 22px/1 var(--head); }
.cart form { display: grid; gap: 10px; }
.cart input { width: 100%; padding: 14px 16px; border-radius: 14px; background: #0d0b11; border: 1px solid #ffffff2b; font-size: 16px; }
.cart .err { color: var(--coral); margin: 0; font-weight: 700; font-size: 14px; }
.cart .demo { font-size: 12px; margin: 0; text-align: center; }
.done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 0; }
.done svg { width: 76px; height: 76px; fill: none; stroke: var(--amber); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 150; animation: draw 1s ease-out; }
.done h3 { margin: 8px 0 0; }
@keyframes draw { from { stroke-dashoffset: 150; } }

/* ---------- преміальний курсор ---------- */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 5000; pointer-events: none; transform: translate3d(-99px, -99px, 0); }
.cur-dot::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px #fff8; }
.cur-ring span { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--amber); font: 800 11px/1 var(--body); color: transparent;
  transition: left .25s, top .25s, width .25s, height .25s, background .25s, scale .2s; box-shadow: 0 0 12px #0005; }
.cur-ring.link span { left: -26px; top: -26px; width: 52px; height: 52px; background: #ffb86626; }
.cur-ring.label span { left: -44px; top: -44px; width: 88px; height: 88px; background: var(--ink); border-color: var(--ink); color: var(--dark); }
.cur-ring.down span { scale: .85; }
.cur-ring.hide, .cur-dot.hide { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type=range]), .has-cursor select, .has-cursor option { cursor: auto !important; }

@media (max-width: 759px) {
  .top nav.left a:first-child, .wide-only { display: none; }
  .top nav { font-size: 13px; }
  .hit .meta small { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-title { top: 70px; }
  .hero-title .eyebrow { display: none; }
}
