:root {
  --ink: #f1f0ec;
  --soft: #a8acb6;
  --line: #33363e;
  --paper: #121317;
  --stage: #2b2e36;
  --tag: #ffc83d;
  --tag-soft: #3a2f12;
  --on-tag: #15161a;
  --pad: clamp(16px, 4vw, 48px);
  --display: 'Fira Sans Extra Condensed', 'Golos Text', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 'Golos Text', system-ui, sans-serif; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 900; line-height: .95; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 16px; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 9; background: var(--tag); color: var(--on-tag); padding: 8px 12px; }
.price { font-variant-numeric: tabular-nums; }
s { color: var(--soft); font-size: .85em; }
main { outline: none; min-height: 60vh; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 28px var(--pad) 40px; }
.narrow { max-width: 760px; }

.demo { padding: 4px var(--pad); background: var(--tag); color: var(--on-tag); font-size: 12px; text-align: center; }
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px clamp(12px, 2.5vw, 32px); padding: 8px var(--pad); background: rgba(18, 19, 23, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); view-transition-name: top; }
.logo { font: 900 28px/44px var(--display); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: clamp(12px, 2vw, 24px); overflow-x: auto; scrollbar-width: none; }
.top nav a { flex: 0 0 auto; line-height: 44px; font-size: 15px; text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 3px no-repeat; transition: background-size .3s var(--ease); }
.top nav a:hover, .top nav a[aria-current] { background-size: 100% 3px; }
.top nav a[aria-current] { font-weight: 600; }
#search input { width: 190px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.bag { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.bag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bag b { position: absolute; top: -3px; right: -3px; min-width: 20px; padding: 0 5px; border-radius: 99px; background: var(--tag); color: var(--on-tag); font-size: 12px; line-height: 20px; text-align: center; }
.bag.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (max-width: 899px) {
  .top { grid-template-columns: 1fr auto auto; }
  .top nav { grid-column: 1 / -1; grid-row: 2; }
  #search input { width: min(150px, 34vw); }
}

/* Перший екран: одна велика річ, назва позаду */
.hero { position: relative; height: clamp(440px, calc(100svh - 150px), 720px); background: var(--stage); overflow: hidden; }
.word { position: absolute; left: var(--pad); top: 5%; font: 900 clamp(80px, 24vw, 220px)/.82 var(--display); letter-spacing: -.02em; user-select: none; }
.stage li { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.stage li.on { opacity: 1; visibility: visible; }
.stage a { position: absolute; inset: 0; text-decoration: none; }
.stage img { position: absolute; left: 12%; top: 24%; width: 76%; height: 50%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(16, 21, 34, .35)); transform: translateX(40px) scale(.96); transition: transform .7s var(--ease); }
.stage .on img { transform: none; }
.hang { position: absolute; left: var(--pad); bottom: 88px; display: grid; max-width: min(260px, 70%); padding: 8px 14px 10px 32px; background: var(--tag); color: var(--on-tag); font-size: 14px; line-height: 1.3; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%); }
.hang b { font: 900 32px/1.05 var(--display); }
.picker { position: absolute; left: var(--pad); bottom: 14px; display: flex; gap: 8px; }
.picker button { width: 56px; height: 62px; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: var(--paper); transition: transform .2s var(--ease), border-color .2s; }
.picker button[aria-current="true"] { border-color: var(--ink); transform: translateY(-4px); }
.picker img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 860px) {
  .stage img { left: 46%; top: 5%; width: 48%; height: 90%; }
  .word { top: 9%; font-size: min(15vw, 28svh); }
}

/* Фільтри */
.sizes { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; }
.sizes button { flex: 0 0 auto; min-width: 46px; height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 99px; background: var(--paper); font-weight: 600; transition: background-color .2s, color .2s; }
.sizes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; margin-bottom: 20px; font-size: 14px; color: var(--soft); }
.bar p { margin-right: auto; align-self: center; }
.bar label { display: grid; gap: 2px; }
.bar select { height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.link { background: none; border: 0; min-height: 44px; text-decoration: underline; display: inline-flex; align-items: center; justify-content: center; }

/* Картки */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card > a { display: grid; align-content: start; text-decoration: none; flex: 1; }
.shot { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: 10px; background: var(--stage); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.shot.cut img:first-child { inset: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(16, 21, 34, .25)); }
.shot img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .shot img.alt { opacity: 1; }
  .card:hover .shot img { transform: scale(1.04); }
}
.tag { position: absolute; z-index: 1; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: var(--tag); color: var(--on-tag); font-size: 13px; font-weight: 600; }
.row b { font: 900 26px/1.1 var(--display); margin-right: 6px; }
.name { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.meta { font-size: 13px; color: var(--soft); }
.fav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.fav svg { width: 22px; height: 22px; fill: transparent; stroke: var(--ink); stroke-width: 1.7; transition: fill .2s, transform .25s var(--ease); }
.fav[aria-pressed="true"] svg { fill: var(--ink); transform: scale(1.12); }
.card .fav { position: absolute; right: 8px; top: 8px; }
.quick { margin-top: 8px; min-height: 44px; border: 1px solid var(--ink); border-radius: 99px; background: var(--paper); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s; }
.quick:hover { background: var(--ink); color: var(--paper); }

.steps { padding: 48px var(--pad); background: var(--stage); }
.steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 2px solid var(--tag); }
.steps li::before { content: counter(step); grid-row: span 2; font: 900 48px/1 var(--display); color: var(--tag); }
.steps li span { font-size: 15px; opacity: .8; }

.foot { padding: 32px var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.giant { font: 900 clamp(56px, 14vw, 200px)/.9 var(--display); white-space: nowrap; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .bar p { width: 100%; margin: 0; }
  .bar label { flex: 1; }
  .bar .link { order: 1; width: 100%; }
}
