/* FASHION boutique. Крейда, чорний рейл, помада. Рухається лише те, що важливо. */
@font-face { font-family: Didone; src: url(/fonts/oranienbaum-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: Didone; src: url(/fonts/oranienbaum-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; font-display: swap; }
@font-face { font-family: Prata; src: url(/fonts/prata-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: Prata; src: url(/fonts/prata-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; font-display: swap; }
@font-face { font-family: Onest; font-weight: 400; src: url(/fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: Onest; font-weight: 400; src: url(/fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+20B4; font-display: swap; }
@font-face { font-family: Onest; font-weight: 500; src: url(/fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; font-display: swap; }
@font-face { font-family: Onest; font-weight: 500; src: url(/fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+20B4; font-display: swap; }

:root {
  --bg: #F5F3EF; --ink: #141311; --accent: #C6202E;
  --muted: color-mix(in srgb, var(--ink) 56%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, var(--bg));
  --soft: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --display: Didone, 'Times New Roman', serif;
  --sans: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: 16px;
  --tabs: calc(56px + env(safe-area-inset-bottom));
  --top: 52px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme='dark'] { --bg: #131210 !important; --ink: #F1EEE8 !important; }
@media (min-width: 760px) { :root { --gut: 32px; --tabs: 0px; --top: 64px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); padding-bottom: var(--tabs); transition: background-color .5s, color .5s; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--display); font-size: clamp(38px, 7vw, 92px); line-height: .98; letter-spacing: -.02em; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* завантаження */
.boot { height: 70svh; display: grid; place-items: center; font: 400 clamp(44px, 12vw, 120px) var(--display); letter-spacing: -.02em; overflow: hidden; }
.boot span { animation: boot 1s var(--ease) both; }
@keyframes boot { from { transform: translateY(70%); opacity: 0; } }

/* смужка акції */
#banner { background: var(--ink); color: var(--bg); text-align: center; font-size: 12px; padding: 7px var(--gut); letter-spacing: .02em; }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--line); }
.logo { font: 400 24px/1 var(--display); letter-spacing: .02em; text-align: center; }
.logo small { display: block; font: 400 8px/1 var(--sans); letter-spacing: .36em; text-transform: lowercase; margin-top: 3px; color: var(--muted); }
.top-nav { display: none; gap: 24px; font-size: 13px; }
.top-nav a { position: relative; padding: 6px 0; }
.top-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top-nav a:hover::after, .top-nav a[aria-current]::after { transform: scaleX(1); }
.top-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.top-left { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.icon-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.hanger-ico { transform-origin: 50% 12%; }
.hanger-ico.swing { animation: swing 1.3s var(--ease); }
@keyframes swing { 0% { rotate: 0deg; } 20% { rotate: 22deg; } 42% { rotate: -14deg; } 64% { rotate: 8deg; } 82% { rotate: -3deg; } 100% { rotate: 0deg; } }
.count { position: absolute; right: -1px; top: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 500; }
.only-desk { display: none; }
@media (min-width: 760px) { .top-nav { display: flex; } .only-desk { display: grid; } .top { grid-template-columns: 1fr auto 1fr; } .logo { font-size: 30px; } }

/* шнурок світла */
.cord { position: relative; width: 22px; height: 36px; flex: none; }
.cord i { position: absolute; left: 50%; top: 0; width: 1px; height: 24px; background: var(--ink); transform-origin: top; transition: height .25s var(--ease); }
.cord b { position: absolute; left: calc(50% - 3.5px); top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transition: top .25s var(--ease); }
.cord.pull i { height: 34px; }
.cord.pull b { top: 34px; }

/* нижні вкладки — лише телефон */
.tabs { position: fixed; z-index: 30; inset: auto 0 0 0; height: var(--tabs); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a, .tabs button { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); position: relative; white-space: nowrap; }
.tabs [aria-current] { color: var(--ink); }
.tabs [aria-current]::before { content: ''; position: absolute; top: -1px; left: 26%; right: 26%; height: 1px; background: var(--ink); }
.tabs em { font-style: normal; color: var(--accent); margin-left: 3px; }
@media (min-width: 760px) { .tabs { display: none; } }

/* ГЕРОЙ: слово за людиною */
.hero { position: relative; height: calc(100svh - var(--top) - var(--tabs)); min-height: 480px; max-height: 1100px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.hero-meta { position: absolute; z-index: 3; top: 12px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; gap: 12px; }
.hero-stage { position: relative; flex: 1; min-height: 0; }
.hero-word { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-family: var(--display); line-height: .82; letter-spacing: -.025em; white-space: nowrap; color: var(--ink); will-change: transform; pointer-events: none; }
.hero-person { position: absolute; left: 50%; bottom: 0; height: 90%; width: auto; max-width: 96%; object-fit: contain; object-position: bottom; transform: translateX(-50%); will-change: transform, clip-path, opacity; pointer-events: none; }
.hero-person.flat { mix-blend-mode: multiply; height: 74%; }
.hero-person.in { animation: heroIn .9s var(--ease) both; }
.hero-person.out { animation: heroOut .5s ease-in both; }
@keyframes heroIn { from { clip-path: inset(100% 0 0 0); transform: translateX(-50%) translateY(24px); } to { clip-path: inset(-5% -5% 0 -5%); transform: translateX(-50%); } }
@keyframes heroOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.985); } }
.hero-floor { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gut); border-top: 1px solid var(--ink); background: var(--bg); font-size: 13px; }
.hero-floor a { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hero-floor .num { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; transition: color .5s; }
.hero-floor b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-hint { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hero-meta span { white-space: nowrap; }
.hero-tag { display: none; }
.hero-vert { position: absolute; z-index: 2; right: 8px; bottom: 60px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
@media (min-width: 760px) { .hero-tag { display: inline; } .hero-vert { display: none; } }
.hero-dots { display: flex; gap: 4px; flex: none; }
.hero-dots i { width: 16px; height: 2px; background: var(--line); transition: background .4s; }
.hero-dots i.on { background: var(--ink); }
@media (max-width: 759px) { .hero-hint { display: none; } }
@media (min-width: 760px) {
  .hero-word { top: 44px; }
  .hero-person { height: 93%; }
  .hero-floor { font-size: 14px; padding: 16px var(--gut); }
}

/* бігучий рядок */
.strip { overflow: hidden; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.strip div { display: inline-flex; will-change: transform; }
.strip span { padding: 0 18px; }
.strip span::after { content: '/'; margin-left: 36px; color: var(--accent); }

/* секції */
.sec { padding: 56px var(--gut); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sec-head a { font-size: 13px; white-space: nowrap; }
@media (min-width: 760px) { .sec { padding: 96px var(--gut); } .sec-head { margin-bottom: 40px; } }

/* список категорій */
.cat-list { border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; position: relative; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 12px 0; min-height: 76px; }
.cat-row small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-name { font: 400 clamp(25px, 4.8vw, 62px)/1.05 var(--display); letter-spacing: -.015em; transition: transform .6s var(--ease), color .3s; }
.cat-desc { display: block; font: 400 12px/1.4 var(--sans); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.cat-row img { width: 46px; height: 62px; object-fit: cover; object-position: 50% 30%; background: var(--soft); }
@media (hover: hover) and (min-width: 760px) {
  .cat-row { grid-template-columns: 56px 1fr auto; padding: 16px 0; }
  .cat-row img { display: none; }
  .cat-row:hover .cat-name { transform: translateX(18px); color: var(--accent); }
  .cat-count { font-size: 13px; color: var(--muted); }
}
.cat-float { position: fixed; z-index: 20; left: 0; top: 0; width: 240px; aspect-ratio: 2/3; object-fit: cover; object-position: 50% 30%; pointer-events: none; opacity: 0; transform: translate3d(0,0,0) scale(.9); transition: opacity .3s, scale .5s var(--ease); }
.cat-float.on { opacity: 1; }

/* сітка товарів */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
.grid.one { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: block; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 2/3; overflow: hidden; background: var(--soft); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: opacity .6s, transform 1.2s var(--ease); }
.card-img img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.03); } .card:hover .card-img img.alt { opacity: 1; } }
.card-info { display: block; padding: 9px 2px 0; font-size: 13px; line-height: 1.35; }
.card-name { display: block; }
.card-price { display: block; margin-top: 2px; }
.card-price.ask { color: var(--muted); font-size: 12px; }
.card-price s { color: var(--muted); margin-right: 6px; }
.card-price.sale { color: var(--accent); }
.tag { position: absolute; left: 8px; top: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--bg); padding: 2px 6px; z-index: 1; }
.tag.red { background: var(--accent); color: #fff; }
.heart { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; display: grid; place-items: center; z-index: 2; }
.heart svg { width: 20px; height: 20px; fill: rgba(255,255,255,.35); stroke: #141311; stroke-width: 1.1; transition: fill .2s, transform .4s var(--ease); }
.heart.on svg { fill: var(--accent); stroke: var(--accent); transform: scale(1.12); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

/* РЕЙЛ */
.rail-sec { padding: 56px 0 44px; overflow: hidden; background: var(--soft); }
.rail-head { padding: 0 var(--gut); margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.rail-head p { font-size: 12px; color: var(--muted); max-width: 16ch; text-align: right; }
.rail { position: relative; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; }
.rail-in { position: relative; display: inline-flex; align-items: flex-start; gap: clamp(4px, 2vw, 24px); padding: 0 var(--gut) 12px; min-width: 100%; }
.rail-in::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 5px; background: var(--ink); border-radius: 3px; }
.hang { position: relative; flex: none; width: clamp(150px, 42vw, 280px); padding-top: 4px; transform-origin: 50% 11px; will-change: transform; display: block; }
.hang svg { display: block; width: 74px; height: 58px; margin: 0 auto -8px; stroke: var(--ink); stroke-width: 1.8; fill: none; position: relative; z-index: 0; }
.hang img { position: relative; z-index: 1; width: 100%; height: clamp(230px, 58vw, 400px); object-fit: contain; object-position: top; -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 12px 14px rgba(20,19,17,.13)); }
.hang span { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* образи */
.looks { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
.looks::-webkit-scrollbar { display: none; }
.look { position: relative; flex: none; width: clamp(150px, 42vw, 260px); aspect-ratio: 9/16; overflow: hidden; scroll-snap-align: center; text-align: left; background: var(--soft); }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look:hover img { transform: scale(1.04); }
.look span { position: absolute; inset: auto 0 0 0; padding: 40px 10px 10px; color: #fff; font: 400 19px/1.1 var(--display); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.look::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.55); z-index: 1; pointer-events: none; }

/* сторіз */
.stories { position: fixed; inset: 0; z-index: 60; background: #0d0c0b; color: #fff; display: grid; place-items: center; touch-action: none; }
.st-frame { position: relative; width: 100%; height: 100%; max-width: calc(100svh * 9 / 16); overflow: hidden; }
.st-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: stIn .5s var(--ease); }
@keyframes stIn { from { opacity: .3; transform: scale(1.03); } }
.st-bars { position: absolute; z-index: 3; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); display: flex; gap: 3px; }
.st-bars i { flex: 1; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-bars i b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.st-head { position: absolute; z-index: 3; left: 12px; right: 8px; top: calc(20px + env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: center; }
.st-head span { font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.st-close { width: 44px; height: 44px; font-size: 26px; font-weight: 400; line-height: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.st-tap { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; }
.st-tap.l { left: 0; } .st-tap.r { right: 0; }
.st-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 60px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.st-foot h3 { font: 400 32px/1 var(--display); margin-bottom: 12px; }
.st-items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.st-items a { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: #fff; color: #141311; font-size: 12px; max-width: 240px; }
.st-items img { width: 30px; height: 40px; object-fit: cover; }

/* розмір + картка */
.duo { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.duo > * { background: var(--bg); padding: 48px var(--gut); display: flex; flex-direction: column; gap: 14px; min-height: 340px; justify-content: space-between; }
.duo p { color: var(--muted); max-width: 42ch; }
.duo .dark { background: var(--ink); color: var(--bg); }
.duo .dark p { color: color-mix(in srgb, var(--bg) 66%, var(--ink)); }
.gift-amts { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-amts a { flex: 1; min-width: 86px; text-align: center; border: 1px solid currentColor; padding: 14px 8px; font: 400 24px/1 var(--display); transition: background .3s, color .3s; }
.gift-amts a:hover { background: var(--bg); color: var(--ink); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } .duo > * { padding: 64px var(--gut); min-height: 460px; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; position: relative; overflow: hidden; transition: background .4s, color .4s, transform .2s; }
.btn:active { transform: scale(.985); }
.btn::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn > * { position: relative; z-index: 1; }
@media (hover: hover) { .btn:hover::after { transform: none; } .btn:hover { color: #fff; } }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost::after { background: var(--ink); }
@media (hover: hover) { .btn.ghost:hover { color: var(--bg); } }
.btn.auto { width: auto; }

/* бутик і питання */
.shop { display: grid; gap: 28px; }
.shop-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; background: var(--soft); }
.shop h2 { margin-bottom: 14px; }
.shop > div > p { color: var(--muted); max-width: 46ch; }
.contacts { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contacts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contacts li span:first-child { color: var(--muted); }
.contacts li :last-child { text-align: right; }
.acc { margin-top: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; cursor: pointer; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 22px/1 var(--display); transition: rotate .4s var(--ease); }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 62ch; white-space: pre-line; }
@media (min-width: 760px) { .shop { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }

/* відгуки */
.revs { display: grid; gap: 28px; }
.revs blockquote { margin: 0; font: 400 clamp(21px, 2.6vw, 30px)/1.2 var(--display); }
.revs cite { display: block; font: 400 12px var(--sans); margin-top: 8px; color: var(--muted); }
.revs img { width: 100%; max-width: 320px; margin-bottom: 12px; }
@media (min-width: 760px) { .revs { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* підвал */
.foot { padding: 40px var(--gut) 24px; border-top: 1px solid var(--ink); overflow: hidden; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; margin-bottom: 32px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-word { font-family: var(--display); line-height: .84; letter-spacing: -.025em; text-align: center; white-space: nowrap; }
.foot small { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; }
@media (min-width: 760px) { .foot-links { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; } }

/* каталог */
.cat-head { padding: 28px var(--gut) 14px; }
.cat-head h1 { font: 400 clamp(42px, 9vw, 120px)/.95 var(--display); letter-spacing: -.02em; }
.cat-head p { color: var(--muted); margin-top: 8px; font-size: 13px; }
.chips { position: sticky; top: var(--top); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gut); scrollbar-width: none; border-block: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 34px; padding: 6px 12px; border: 1px solid transparent; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; }
.chip[aria-current], .chip.on { color: var(--ink); border-color: var(--ink); }
.chip.sale { color: var(--accent); }
.filters { display: flex; align-items: center; gap: 10px; padding: 12px var(--gut); font-size: 13px; flex-wrap: wrap; }
.search { flex: 1 1 100%; min-width: 0; min-height: 40px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 4px 0; border-radius: 0; font-size: 16px; }
.search:focus { outline: 0; border-color: var(--ink); }
.sel { min-height: 40px; background: none; border: 0; font-size: 13px; color: var(--ink); max-width: 44%; }
.dens { width: 40px; height: 40px; display: grid; place-items: center; margin-left: auto; }
.dens svg { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 760px) { .dens { display: none; } .search { font-size: 14px; flex-basis: 200px; } .filters { flex-wrap: nowrap; } }
.grid-wrap { padding: 8px var(--gut) 64px; }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; font: 400 32px/1.1 var(--display); }
.empty .btn { margin-top: 18px; }

/* товар */
.pd { display: grid; }
.pd-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-gallery img { flex: none; width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: 50% 35%; scroll-snap-align: start; }
.pd-gwrap { position: relative; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.pd-dots i { width: 18px; height: 2px; background: rgba(255,255,255,.55); }
.pd-dots i.on { background: #fff; }
.pd-info { padding: 20px var(--gut) 32px; }
.pd-crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pd h1 { font: 400 clamp(32px, 4vw, 54px)/1.02 var(--display); letter-spacing: -.015em; }
.pd-price { font-size: 19px; margin-top: 10px; }
.pd-price s { color: var(--muted); margin-right: 8px; font-size: 15px; }
.pd-price.sale span { color: var(--accent); }
.pd-price.ask { font-size: 14px; color: var(--muted); }
.pd-label { display: flex; justify-content: space-between; font-size: 13px; margin: 24px 0 8px; }
.pd-label a { color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes button { min-width: 48px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pd-cta { display: grid; gap: 8px; margin-top: 22px; }
.pd-desc { margin-top: 20px; color: var(--muted); max-width: 54ch; white-space: pre-line; }
.pd-sticky { position: fixed; z-index: 25; left: 0; right: 0; bottom: var(--tabs); padding: 8px var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; transform: translateY(150%); transition: transform .4s var(--ease); }
.pd-sticky.on { transform: none; }
.pd-sticky .btn { width: auto; min-height: 46px; }
.pd-sticky b { font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sticky span { font-size: 13px; }
.pd-side { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.more { padding: 8px var(--gut) 64px; }
.more h2 { margin-bottom: 20px; font: 400 32px/1 var(--display); }
@media (min-width: 760px) {
  .pd { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); align-items: start; }
  .pd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: visible; background: none; }
  .pd-gallery img:first-child:last-child { grid-column: span 2; max-width: 640px; }
  .pd-dots { display: none; }
  .pd-info { position: sticky; top: var(--top); padding: 32px clamp(24px, 4vw, 64px); }
  .pd-sticky { display: none; }
}

/* підбір розміру */
.fit { display: grid; gap: 32px; padding: 28px var(--gut) 72px; }
.fit h1 { font: 400 clamp(42px, 8vw, 100px)/.95 var(--display); letter-spacing: -.02em; }
.fit-note { color: var(--muted); margin-top: 12px; max-width: 44ch; }
.fit-row { margin-bottom: 22px; }
.fit-row label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.fit-row output { font: 400 30px/1 var(--display); color: var(--ink); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: grab; touch-action: pan-y; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type='range']::-moz-range-track { height: 1px; background: var(--ink); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); }
input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); }
.fit-res { background: var(--ink); color: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fit-res strong { font: 400 clamp(92px, 22vw, 180px)/.9 var(--display); letter-spacing: -.03em; display: block; }
.fit-res p { font-size: 13px; color: color-mix(in srgb, var(--bg) 66%, var(--ink)); }
.fit-res .btn { background: var(--bg); color: var(--ink); }
.fit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fit-table th { text-align: left; color: var(--muted); font-weight: 400; }
.fit-table th, .fit-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.fit-table tr.on td { color: var(--accent); font-weight: 500; }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 48px; } }

/* текстові сторінки */
.page { padding: 32px var(--gut) 72px; max-width: 720px; }
.page h1 { font: 400 clamp(38px, 6vw, 72px)/1 var(--display); margin-bottom: 20px; }
.page h2 { font: 400 24px/1.2 var(--display); margin: 26px 0 8px; }
.page p, .page li { color: var(--muted); }

/* шторка вішалки */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; align-items: flex-end; background: rgba(13,12,11,.32); }
.sheet-in { position: relative; width: 100%; max-height: 92svh; display: flex; flex-direction: column; background: var(--bg); animation: sheetUp .5s var(--ease); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 760px) {
  .sheet { align-items: stretch; }
  .sheet-in { width: 460px; max-height: none; height: 100%; animation-name: sheetSide; }
  @keyframes sheetSide { from { transform: translateX(100%); } }
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); border-bottom: 1px solid var(--line); }
.sheet-top h2 { font: 400 26px/1 var(--display); }
.sheet-x { width: 40px; height: 40px; font-size: 28px; font-weight: 300; line-height: 1; margin-right: -8px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 var(--gut) 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row img { width: 62px; height: 88px; object-fit: cover; object-position: 50% 30%; background: var(--soft); }
.row small { color: var(--muted); display: block; }
.row-b { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); }
.qty button { width: 34px; height: 32px; }
.qty span { min-width: 20px; text-align: center; font-size: 13px; }
.row-x { font-size: 12px; color: var(--muted); text-decoration: underline; margin-left: 10px; }
.sum { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 10px; }
.sum small { font-size: 12px; color: var(--muted); }
.promo { display: flex; gap: 8px; padding: 14px 0; }
.promo input { flex: 1; min-width: 0; }
.promo button { font-size: 13px; text-decoration: underline; }
.empty-hanger { padding: 44px 0 24px; text-align: center; }
.empty-hanger svg { width: 110px; margin: 0 auto 14px; stroke: var(--ink); fill: none; stroke-width: 1; transform-origin: 50% 8%; animation: swing 2.4s var(--ease); }
.empty-hanger h3 { font: 400 27px/1.1 var(--display); margin-bottom: 6px; }
.empty-hanger p { color: var(--muted); margin-bottom: 18px; }

/* форма */
.form { display: grid; gap: 14px; padding: 16px 0; }
.f label, .f legend { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; padding: 0; }
.f input, .f textarea, .promo input { width: 100%; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; font-size: 16px; }
.f input:focus, .f textarea:focus, .promo input:focus { outline: 0; border-color: var(--ink); }
.f.bad input { border-color: var(--accent); }
.f fieldset { border: 0; margin: 0; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { margin: 0; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.opts span { display: block; padding: 9px 12px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.opts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--ink); margin: 0; }
.consent a { text-decoration: underline; }
.trap { position: absolute; left: -9999px; }
.form-err { color: var(--accent); font-size: 13px; }
.done { padding: 44px 0; text-align: center; }
.done h3 { font: 400 40px/1 var(--display); margin-bottom: 8px; }
.done p { color: var(--muted); margin-bottom: 20px; }
.done strong { display: block; font-size: 13px; letter-spacing: .1em; margin-bottom: 16px; }

/* політ на вішалку */
.fly { position: fixed; z-index: 70; pointer-events: none; object-fit: cover; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabs) + 72px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* курсор */
.cursor { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; display: none; }
.cursor span { display: grid; place-items: center; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; }
.cursor.label span { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
@media (hover: hover) and (pointer: fine) { .cursor.ready { display: block; } }

/* переходи між сторінками */
@supports (view-transition-name: x) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  ::view-transition-group(pd-img) { animation-duration: .55s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
