/* GrafSyntheos — „Жив организъм“. Токените са от DESIGN.md; не добавяй цветове извън тях. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Grenze Gotisch"; font-weight: 500; font-display: swap; src: url("/assets/fonts/grenze-gotisch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Grenze Gotisch"; font-weight: 600; font-display: swap; src: url("/assets/fonts/grenze-gotisch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Grenze Gotisch"; font-weight: 700; font-display: swap; src: url("/assets/fonts/grenze-gotisch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --void: #0a0b0a; --flesh: #131411; --sinew: #1e1f1a; --scar: #2d2c25;
  --bone: #ebe3d0; --ash: #9d9584; --dust: #807a6c;
  --blood: #c8321f; --blood-hot: #ea4a2c; --brass: #b99a63; --uv: #8a6cff;
  --display: "Cinzel", "Grenze Gotisch", "Georgia", serif;
  --display-alt: "Grenze Gotisch", "Georgia", serif;
  --sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Consolas", monospace;
  --r: 2px; --gut: 16px; --max: 1320px;
  --beat: 0; --breath: 0.5;               /* пише ги organism.js */
  --ease-grow: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font: 400 16px/1.55 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--scar); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--blood); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 2px; box-shadow: 0 0 0 4px rgb(200 50 31 / .35); }
::selection { background: var(--blood); color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bone); color: var(--void); padding: 8px 12px; }

#veins, #veins-glow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#veins { opacity: .9; }
main, .top, .foot { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--ash); }
.small { font-size: 14px; }
.label, .eyebrow {
  font: 600 12px/1.3 var(--sans); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); margin: 0;
}
.eyebrow { color: var(--brass); }
.display { font: 700 clamp(48px, 9vw, 104px)/.92 var(--display); letter-spacing: .005em; margin: 28px 0 28px; font-optical-sizing: auto; }
.h1 { font: 600 clamp(36px, 5.2vw, 64px)/.95 var(--display); margin: 8px 0 16px; }
.h1--product { font-size: clamp(32px, 4vw, 52px); }
.h2 { font: 600 clamp(32px, 3.6vw, 48px)/.95 var(--display); margin: 8px 0 0; }
.h3 { font: 700 22px/1.2 var(--sans); font-stretch: 85%; margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--ash); max-width: 62ch; margin: 0 0 24px; }
.lede b, .lede strong { color: var(--bone); }
.note { border-left: 2px solid var(--blood); padding: 8px 12px; background: var(--flesh); color: var(--bone); font-size: 14px; }
mark.todo { background: var(--blood); color: #fff; padding: 0 4px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- бутони ---------- */
.btn {
  --glow: calc(var(--beat) * 18px);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r); cursor: pointer; text-decoration: none;
  font: 700 14px/1 var(--sans); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn small { font: 500 11px var(--mono); letter-spacing: 0; color: var(--brass); }
.btn--blood { background: var(--blood); color: #fff; box-shadow: 0 0 var(--glow) rgb(234 74 44 / calc(.15 + var(--beat) * .35)); }
.btn--blood:hover { background: var(--blood-hot); color: #fff; }
.btn--blood:active { transform: scale(.98); }
.btn--blood[disabled] { background: var(--sinew); color: var(--dust); box-shadow: none; cursor: not-allowed; }
.btn--ghost { border-color: var(--scar); color: var(--bone); background: rgb(10 11 10 / .4); }
.btn--ghost:hover { border-color: var(--brass); color: #fff; }
.btn--wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brass); text-decoration: underline; cursor: pointer; }

/* ---------- горна лента ---------- */
.ticker { display: block; overflow: hidden; white-space: nowrap; text-decoration: none; background: var(--blood); color: #fff; font: 600 13px/30px var(--sans); letter-spacing: .04em; border-bottom: 1px solid rgb(0 0 0 / .3); }
.ticker:hover { color: #fff; background: var(--blood-hot); }
.ticker__run { display: inline-flex; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__run { animation-play-state: paused; }
.ticker__set { display: inline-flex; flex-shrink: 0; }
.ticker__set span { padding: 0 18px; }
.ticker__set i { font-style: normal; opacity: .7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { white-space: normal; text-align: center; line-height: 1.5; padding: 4px 8px; } .ticker__run { animation: none; display: inline; } .ticker__set[aria-hidden] { display: none; } .ticker__set { display: inline; } }
.band--deliv { border-block: 1px solid var(--scar); }
.deliv { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.deliv__card { background: var(--flesh); border: 1px solid var(--scar); border-top: 3px solid var(--blood); border-radius: var(--r); padding: 20px 22px; }
.deliv__t { margin: 0 0 10px; font: 700 18px/1.25 var(--display); color: var(--bone); }
.deliv__card p { margin: 0 0 12px; color: var(--ash); font-size: 15px; }
.deliv__card p:last-child { margin-bottom: 0; }
.top { position: sticky; top: 0; z-index: 20; background: rgb(10 11 10 / .78); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--scar); }
.top__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 24px; }
.mark { text-decoration: none; font: 700 30px/1 var(--display); letter-spacing: .01em; display: inline-flex; align-items: baseline; white-space: nowrap; }
.mark__graf { color: var(--bone); }
.mark__syn { color: var(--blood-hot); text-shadow: 0 0 calc(4px + var(--beat) * 14px) rgb(234 74 44 / calc(.25 + var(--beat) * .5)); }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 12px; font: 600 14px var(--sans); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); border-radius: var(--r); }
.nav a:hover { color: var(--bone); background: var(--flesh); }
.nav small { font: 500 10px var(--mono); color: var(--uv); vertical-align: 2px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 8px;
  background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--ash); cursor: pointer; text-decoration: none; }
.tool:hover { color: var(--bone); border-color: var(--scar); }
.tool--ship { font: 600 12px var(--sans); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; }
.tool--ship b { font: 500 13px var(--mono); color: var(--bone); letter-spacing: 0; }
.ship-label { display: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blood);
  color: #fff; font: 600 11px/18px var(--mono); text-align: center; transform: scale(calc(1 + var(--beat) * .18)); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .tool--menu { display: none; }
  .ship-label { display: inline; }
}

/* ---------- starfield (space depth) ---------- */
.starfield { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.starfield canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .starfield { opacity: calc(.75 + var(--breath) * .25); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--scar); }
.hero::before { content: ""; position: absolute; inset: -2%; z-index: -3; background: var(--hero, radial-gradient(60% 70% at 70% 50%, #3a0f08, var(--void))) center right / cover no-repeat;
  transform: scale(calc(1.06 + var(--breath) * .02)) translateY(calc(var(--scroll, 0) * -18px));
  filter: brightness(calc(.86 + var(--beat) * .14)) saturate(calc(1 - var(--scroll, 0) * .12)); transition: filter .1s linear; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 11 10 / .96) 0%, rgb(10 11 10 / .88) 26%, rgb(10 11 10 / .68) 48%, rgb(10 11 10 / .35) 74%, rgb(10 11 10 / .05) 100%),
              linear-gradient(0deg, var(--void) 0%, rgb(10 11 10 / 0) 30%); }
.hero__in { width: 100%; padding-block: 96px 64px; }
.hero__in > * { max-width: 620px; }
.hero__in > .display { max-width: 820px; }
.eyebrow--hero { color: var(--brass); letter-spacing: .16em; }
.hero .lede { text-shadow: 0 1px 3px rgb(10 11 10 / .9), 0 0 24px rgb(10 11 10 / .75); color: var(--bone); font-size: 17px; line-height: 1.6; }
.hero .eyebrow--hero { margin-bottom: 0; }
.hero__in > .display { text-shadow: 0 2px 24px rgb(10 11 10 / .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero .btn--blood { box-shadow: 0 0 var(--glow) rgb(234 74 44 / calc(.2 + var(--beat) * .4)), 0 4px 14px rgb(0 0 0 / .45); }
.hero .btn--ghost { border-width: 1.5px; border-color: rgb(154 143 122 / .55); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { border-color: var(--brass); }
.hero__pulse { position: absolute; right: 22%; top: 50%; width: 30vmin; height: 30vmin; margin: -15vmin; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgb(234 74 44 / .35), transparent 70%); opacity: calc(.2 + var(--beat) * .8); pointer-events: none; }
@media (max-width: 700px) {
  .hero { min-height: auto; align-items: flex-end; }
  .hero::before { background-position: 72% center; }
  .hero::after { background: linear-gradient(0deg, var(--void) 18%, rgb(10 11 10 / .75) 55%, rgb(10 11 10 / .25) 100%); }
  .hero__in { padding-top: 45vh; }
  .hero__pulse { right: 10%; top: 30%; }
}

.vitals { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1px solid var(--scar); }
.vitals > div { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--scar); }
.vitals > div:last-child { border-right: 0; }
.vitals dt { font: 600 11px var(--sans); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--dust); }
.vitals dd { margin: 4px 0 0; font: 500 28px/1 var(--mono); color: var(--bone); }
.vitals dd small { font-size: 13px; color: var(--ash); margin-left: 2px; }
.vitals dd.dd-text { font: 700 18px/1.4 var(--sans); font-stretch: 85%; }
.vitals--small dd { font-size: 22px; }
@media (max-width: 520px) { .vitals > div { padding-right: 16px; margin-right: 16px; } .vitals dd { font-size: 22px; } }

/* ---------- ленти ---------- */
.band { padding-block: 72px; position: relative; }
.band + .band { border-top: 1px solid rgb(45 44 37 / .5); }
.band--flush { padding-block: 16px 72px; }
.band__head { margin-bottom: 32px; max-width: 760px; }
.band__lede { color: var(--ash); margin: 12px 0 0; }
.more { margin-top: 32px; text-align: center; }
.also { margin-top: 20px; color: var(--ash); font-size: 14px; }

/* ---------- легиони ---------- */
.legions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.legion { position: relative; min-height: 240px; border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; background: var(--flesh); isolation: isolate; }
.legion::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--mood, none) center / cover; opacity: .55; transition: opacity .5s, transform 1.2s var(--ease-grow); }
.legion::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--void) 8%, rgb(10 11 10 / .55) 55%, rgb(10 11 10 / .15)); }
.legion a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; text-decoration: none; }
.legion__cover { position: absolute; right: 12px; top: 12px; width: 38%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--scar);
  filter: saturate(.85) brightness(.9); transition: transform .6s var(--ease-grow), filter .4s; }
.legion__name { font: 600 38px/.95 var(--display); margin: 6px 0 8px; }
.legion__meta { margin: 0; color: var(--ash); font-size: 14px; }
.legion__meta b { font: 500 15px var(--mono); color: var(--bone); }
.legion:hover::before { opacity: .8; transform: scale(1.04); }
.legion:hover .legion__cover { transform: translateY(-4px) rotate(-1.5deg); filter: none; }
.legion:hover .legion__name { color: #fff; }
.legion--big { min-height: 320px; }
.legion--big .legion__name { font-size: 52px; }
@media (min-width: 900px) { .legions:not(.legions--compact):not(.legions--groups) { grid-template-columns: repeat(4, 1fr); } .legion--big { grid-column: span 2; } }
.legions--compact .legion { min-height: 170px; }
@media (min-width: 900px) { .legions--groups { grid-template-columns: repeat(3, 1fr); } }
.legions--compact .legion__name { font-size: 30px; }
.legions--compact .legion__cover { width: 30%; }

/* ---------- карти ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card { position: relative; background: var(--flesh); border: 1px solid var(--scar); border-radius: var(--r); transition: border-color .25s, transform .35s var(--ease-grow), box-shadow .35s; transform-origin: center bottom; }
.card a { display: block; text-decoration: none; height: 100%; }
.card:hover { border-color: rgb(185 154 99 / .6); transform: translateY(-3px) perspective(900px) rotateX(2deg); box-shadow: inset 0 1px rgb(235 227 208 / .15), 0 8px 16px rgb(0 0 0 / .5), 0 20px 44px rgb(0 0 0 / .62); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--r);
  background: radial-gradient(ellipse at 22% 0%, rgb(235 227 208 / .14), transparent 62%), linear-gradient(135deg, transparent 62%, rgb(200 50 31 / .07));
  opacity: 0; transition: opacity .35s; }
.card:hover::after { opacity: 1; }
.card { background: linear-gradient(160deg, var(--sinew) 0%, var(--flesh) 45%, #101108 100%);
  box-shadow: inset 0 1px 0 rgb(235 227 208 / .05), inset 0 -12px 24px -18px rgb(0 0 0 / .6), 0 1px 2px rgb(0 0 0 / .4); }
.card--hot { border-color: rgb(185 154 99 / .35);
  box-shadow: inset 0 1px 0 rgb(235 227 208 / .07),
    0 0 0 1px rgb(200 50 31 / calc(var(--heat, .5) * .18)),
    0 0 calc(var(--heat, .5) * 24px) rgb(200 50 31 / calc(var(--heat, .5) * .12)),
    0 2px 6px rgb(0 0 0 / .45); }
.card__img { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--sinew); border-bottom: 1px solid var(--scar); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-grow), filter .4s; filter: saturate(.92); }
.card:hover .card__img img { transform: scale(1.05); filter: none; }
.card__body { padding: 12px 14px 16px; }
.card__body .eyebrow { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ash); letter-spacing: .14em; }
.card__title { font: 700 16px/1.3 var(--sans); font-stretch: 88%; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; color: var(--bone); }
.card__price { margin: 0; font: 500 18px var(--mono); color: var(--brass); letter-spacing: -.01em; }
.card__price .muted { font: 500 11px var(--sans); color: var(--dust); margin-right: 6px; letter-spacing: .02em; text-transform: uppercase; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--bone); color: var(--void); font: 700 10px/1 var(--sans); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--r); }
.vital { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--blood-hot);
  box-shadow: 0 0 0 calc(var(--beat) * 7px) rgb(234 74 44 / calc(.45 - var(--beat) * .35)), 0 0 12px rgb(234 74 44 / .7); }
.card[hidden] { display: none; }

/* ---------- филтри ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 24px; padding: 16px 0; border-block: 1px solid var(--scar); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips .label { margin-right: 6px; }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--scar); border-radius: var(--r); background: var(--flesh); color: var(--ash); cursor: pointer;
  font: 600 13px var(--sans); font-stretch: 85%; }
.chip small { font: 400 11px var(--mono); color: var(--dust); margin-left: 4px; }
.chip:hover { color: var(--bone); border-color: var(--dust); }
.chip.is-on { color: var(--bone); border-color: var(--blood); background: rgb(200 50 31 / .14); }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
select { background: var(--flesh); color: var(--bone); border: 1px solid var(--scar); border-radius: var(--r); min-height: 40px; padding: 0 10px; font: 500 14px var(--sans); }
.count { margin: 0; color: var(--ash); font-size: 14px; }
.count b { font: 500 15px var(--mono); color: var(--bone); }
.empty { padding: 48px 0; text-align: center; color: var(--ash); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

/* ---------- заглавни ---------- */
.head { padding-block: 32px 16px; }
.head--mood { position: relative; isolation: isolate; padding-block: 40px 40px; border-bottom: 1px solid var(--scar); overflow: hidden; }
.head--mood::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--mood, none) center / cover; opacity: .45; transform: scale(calc(1 + var(--breath) * .015)); }
.head--mood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--void) 20%, rgb(10 11 10 / .6) 60%, rgb(10 11 10 / .3)), linear-gradient(0deg, var(--void), transparent 50%); }
.crumbs { font-size: 13px; color: var(--dust); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.crumbs .sep { color: var(--scar); }

/* ---------- продукт ---------- */
.product { padding-block: 24px 48px; }
.product__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; } .buybox { position: sticky; top: 88px; } }
.gallery__main { position: relative; margin: 0; background: var(--flesh); border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.zoom { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border: 1px solid var(--scar); border-radius: var(--r); background: rgb(10 11 10 / .7); color: var(--bone); cursor: zoom-in; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { padding: 0; aspect-ratio: 1; border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; background: var(--flesh); cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-on { opacity: 1; border-color: var(--brass); }
.hint { font-size: 13px; color: var(--dust); margin: 10px 0 0; }
.price { margin: 0 0 24px; font: 500 30px var(--mono); color: var(--brass); }
.price .muted { font: 400 14px var(--sans); color: var(--dust); }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend, .opt > .label { margin-bottom: 10px; padding: 0; display: block; }
.picked { color: var(--bone); letter-spacing: .02em; text-transform: none; font: 500 13px var(--mono); margin-left: 6px; }
.specimens { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.specimen { position: relative; min-height: 56px; padding: 6px 4px; border: 1px solid var(--scar); border-radius: var(--r); background: var(--flesh); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color .2s, background .2s, transform .15s; }
.specimen .n { font: 500 17px var(--mono); color: var(--brass); }
.specimen .s { font: 500 10px var(--sans); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; color: var(--dust); text-align: center; line-height: 1.1; }
.specimen:hover { border-color: var(--dust); transform: translateY(-1px); }
.specimen[aria-pressed="true"] { border-color: var(--blood); background: rgb(200 50 31 / .16); }
.specimen[aria-pressed="true"] .n { color: #fff; }
.specimen[aria-pressed="true"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--blood-hot); box-shadow: 0 0 calc(4px + var(--beat) * 10px) var(--blood-hot); }
.specimen--set { grid-column: span 2; }
.specimen--set .n { font: 700 15px var(--sans); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; }
.specimen .n:not(:only-child) { line-height: 1; }
.specimens .specimen .n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.segbtn { min-height: 44px; padding: 6px 14px; border: 1px solid var(--scar); border-radius: var(--r); background: var(--flesh); cursor: pointer; text-align: left;
  display: inline-flex; flex-direction: column; justify-content: center; }
.segbtn .n { font: 600 14px var(--sans); font-stretch: 90%; }
.segbtn .s { font: 400 12px var(--sans); color: var(--dust); }
.segbtn:hover { border-color: var(--dust); }
.segbtn[aria-pressed="true"] { border-color: var(--blood); background: rgb(200 50 31 / .16); }
.segbtn:disabled, .specimen:disabled { opacity: .3; cursor: not-allowed; }
.buy__row { display: flex; gap: 8px; margin-top: 8px; }
.qty { display: flex; border: 1px solid var(--scar); border-radius: var(--r); background: var(--flesh); }
.qty button { width: 40px; border: 0; background: none; cursor: pointer; color: var(--ash); font-size: 20px; }
.qty button:hover { color: var(--bone); }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: 500 16px var(--mono); color: var(--bone); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__row .btn { flex: 1; }
.etsy-btn { margin-top: 8px; }
.buy__ship { margin: 12px 0 0; font-size: 13px; color: var(--ash); }
.armoury-link { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--uv); font-size: 14px; text-decoration: none; }
.armoury-link:hover { color: #b7a6ff; }
.plate { margin: 28px 0 0; border: 1px solid var(--scar); border-radius: var(--r); background: rgb(19 20 17 / .7); }
.plate > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--scar); }
.plate > div:last-child { border-bottom: 0; }
.plate dt { font: 600 11px/1.9 var(--sans); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--dust); }
.plate dd { margin: 0; font-size: 15px; }
.highlights { margin: 20px 0 0; padding: 0; list-style: none; }
.highlights li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ash); font-size: 15px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--brass); }
.care { margin-top: 20px; border-top: 1px solid var(--scar); padding-top: 12px; color: var(--ash); font-size: 14px; }
.care summary { cursor: pointer; font: 600 12px var(--sans); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }

/* ---------- процес / доставка / отзиви ---------- */
.process { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .process { grid-template-columns: 1fr 1fr; gap: 64px; } }
.process__pic { margin: 0; border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 80px rgb(138 108 255 / calc(.06 + var(--beat) * .08)); }
.process__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--scar); color: var(--ash); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 500 20px var(--mono); color: var(--brass); }
.steps b { color: var(--bone); display: block; }
.band--ship { background: var(--flesh); border-block: 1px solid var(--scar); }
.ship-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ship-grid .num { font: 500 36px/1 var(--mono); color: var(--bone); margin: 0 0 8px; }
.ship-grid p { margin: 0; color: var(--ash); font-size: 15px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { padding: 20px; background: var(--flesh); border: 1px solid var(--scar); border-radius: var(--r); }
.stars { margin: 0 0 8px; color: var(--brass); letter-spacing: .15em; font-size: 14px; }
.review blockquote { margin: 0 0 12px; font: 600 20px/1.35 var(--sans); font-stretch: 90%; color: var(--bone); }
.review__meta { margin: 0; font-size: 13px; color: var(--dust); }
.review__meta a { color: var(--ash); }

/* ---------- оръжейната: закачка ---------- */
.band--armoury { overflow: hidden; }
.armoury-teaser { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .armoury-teaser { grid-template-columns: .9fr 1.1fr; } }
.armoury-teaser__view { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; background: var(--flesh); }
.armoury-teaser__view img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.uv-ring { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgb(138 108 255 / .6); box-shadow: 0 0 calc(20px + var(--beat) * 40px) rgb(138 108 255 / .35), inset 0 0 40px rgb(138 108 255 / .2); }

/* ---------- фракции ---------- */
.factions { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 72px; }
.faction-group ul { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--scar); }
.faction-group a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--scar); text-decoration: none; font: 600 20px var(--display); }
.faction-group a small { font: 500 14px var(--mono); color: var(--brass); }
.faction-group a:hover span { color: #fff; }

/* ---------- количка ---------- */
.cart { display: grid; gap: 32px; padding-bottom: 72px; }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 360px; align-items: start; } .cart__sum { position: sticky; top: 88px; } }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--scar); align-items: center; }
.cart-line img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--scar); }
.cart-line h3 { margin: 0 0 4px; font: 700 16px/1.3 var(--sans); font-stretch: 88%; }
.cart-line h3 a { text-decoration: none; }
.cart-line .opts { margin: 0 0 8px; font: 400 13px var(--mono); color: var(--ash); }
.cart-line .line-price { font: 500 16px var(--mono); color: var(--brass); text-align: right; }
.cart-line .remove { background: none; border: 0; color: var(--dust); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; margin-left: 12px; }
.cart-line .qty { display: inline-flex; height: 36px; }
.cart__sum { background: var(--flesh); border: 1px solid var(--scar); border-radius: var(--r); padding: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field select { width: 100%; min-height: 44px; }
.promo__row { display: flex; gap: 8px; }
.promo__row input { flex: 1; min-width: 0; min-height: 44px; background: var(--flesh); color: var(--bone); border: 1px solid var(--scar); border-radius: var(--r); padding: 0 10px; font: 500 15px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.promo__row .btn { min-height: 44px; }
.promo [data-promo-msg] { color: var(--ash); }
.promo [data-promo-msg] .remove { margin-left: 6px; }
.sum { margin: 0 0 16px; }
.sum > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--scar); }
.sum dt { color: var(--ash); }
.sum dd { margin: 0; font: 500 16px var(--mono); }
.sum__total dd { font-size: 22px; color: var(--bone); }
.cart__empty { text-align: center; grid-column: 1 / -1; }
.cart__empty img, .lost img { width: min(320px, 70%); margin: 0 auto 24px; border-radius: var(--r); border: 1px solid var(--scar); }
.lost { text-align: center; padding-block: 64px; }
.lost .lede { margin-inline: auto; }

/* ---------- текстови страници ---------- */
.prose { max-width: 760px; padding-bottom: 72px; color: var(--ash); }
.prose h2 { font: 700 20px var(--sans); font-stretch: 85%; color: var(--bone); margin: 32px 0 8px; }
.prose b { color: var(--bone); }
.prose li { margin-bottom: 8px; }
.terms li { margin-bottom: 14px; }
.plate--contact > div { grid-template-columns: 110px 1fr; }

/* ---------- долу ---------- */
.foot { border-top: 1px solid var(--scar); background: var(--void); padding-block: 56px 32px; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 10px 0 20px; }
.foot li { margin-bottom: 6px; }
.foot li a { color: var(--ash); text-decoration: none; font-size: 14px; }
.foot li a:hover { color: var(--bone); }
.foot__brand p { color: var(--ash); font-size: 14px; max-width: 32ch; }
.mark--foot { font-size: 34px; }
.foot__legal { max-width: var(--max); margin: 40px auto 0; padding: 20px var(--gut) 0; border-top: 1px solid var(--scar); font-size: 12px; color: var(--dust); }

/* ---------- прозорци ---------- */
dialog.sheet { background: var(--flesh); color: var(--bone); border: 1px solid var(--scar); border-radius: var(--r); padding: 20px; max-width: min(640px, calc(100vw - 32px)); width: 100%; }
dialog.sheet::backdrop { background: rgb(5 5 5 / .72); backdrop-filter: blur(4px); }
.sheet--search { margin-top: 72px; max-height: calc(100vh - 120px); }
.sheet--small { max-width: 440px; }
.sheet--menu { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; max-width: 360px; }
.sheet__bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.sheet__bar input { flex: 1; min-height: 48px; background: var(--void); border: 1px solid var(--scar); border-radius: var(--r); color: var(--bone); padding: 0 14px; font: 500 17px var(--sans); }
.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; text-decoration: none; border-radius: var(--r); }
.search-results a:hover, .search-results a:focus { background: var(--sinew); }
.search-results img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r); }
.search-results b { display: block; font: 600 15px var(--sans); font-stretch: 90%; }
.search-results small { color: var(--dust); }
.search-results .p { font: 500 14px var(--mono); color: var(--brass); }
.menu-nav { display: grid; margin-top: 24px; }
.menu-nav a { padding: 14px 0; border-bottom: 1px solid var(--scar); font: 600 30px var(--display); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; background: var(--bone); color: var(--void); padding: 12px 18px; border-radius: var(--r);
  font: 600 14px var(--sans); transition: transform .35s var(--ease-grow); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--blood); }
.droplet { position: fixed; z-index: 60; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--blood-hot); pointer-events: none; box-shadow: 0 0 12px var(--blood-hot); }

/* ---------- оръжейната ---------- */
.page-armoury .foot { display: none; }
.armoury { display: grid; min-height: calc(100vh - 94px); }
@media (min-width: 960px) { .armoury { grid-template-columns: 1fr 380px; } }
.armoury__stage { position: relative; min-height: 58vh; background: radial-gradient(70% 60% at 50% 55%, rgb(138 108 255 / .10), transparent 70%), var(--void); overflow: hidden; }
.armoury__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.armoury__canvas:active { cursor: grabbing; }
.armoury__hud { position: absolute; left: var(--gut); top: 20px; pointer-events: none; max-width: 420px; }
.armoury__hud .h2 { font-size: 44px; }
.armoury__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ash); font: 500 14px var(--mono); pointer-events: none; }
.armoury__panel { background: var(--flesh); border-left: 1px solid var(--scar); padding: 20px; overflow: auto; max-height: calc(100vh - 94px); }
.seg--wrap .segbtn { min-height: 38px; }
.specimens--pads { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.switch { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ash); cursor: pointer; }
.switch input { accent-color: var(--blood); width: 18px; height: 18px; }
.armoury__buy { margin: 8px 0 20px; }
.tune { display: grid; gap: 8px; margin-top: 12px; font: 400 12px var(--mono); }
.tune label { display: grid; grid-template-columns: 60px 1fr 52px; gap: 8px; align-items: center; }
.tune input[type=range] { accent-color: var(--uv); }
.tune textarea { width: 100%; min-height: 80px; background: var(--void); color: var(--bone); border: 1px solid var(--scar); font: 400 11px var(--mono); }

/* ---------- покълване ---------- */
.grow-on [data-grow] { clip-path: circle(0% at var(--gx, 50%) var(--gy, 50%)); filter: blur(8px); opacity: .3; }
.grow-on [data-grow].grown { clip-path: circle(150% at var(--gx, 50%) var(--gy, 50%)); filter: blur(0); opacity: 1;
  transition: clip-path .9s var(--ease-grow) calc(var(--i, 0) * 45ms), filter .7s ease calc(var(--i, 0) * 45ms), opacity .5s ease calc(var(--i, 0) * 45ms); }
.grow-on [data-grow].grown.settled { clip-path: none; filter: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grow-on [data-grow] { clip-path: none; filter: none; opacity: 0; }
  .grow-on [data-grow].grown { opacity: 1; transition: opacity .15s; }
  .hero::before, .head--mood::before { transform: none; }
  #veins { opacity: .5; }
}

/* ---------- езици ---------- */
.langs { display: flex; gap: 2px; align-items: center; }
.langs a, .langs span { font: 500 11px/1 var(--mono); letter-spacing: .04em; padding: 6px 5px; border-radius: var(--r); text-decoration: none; color: var(--dust); }
.langs a:hover { color: var(--bone); background: var(--flesh); }
.langs span { color: var(--bone); border-bottom: 1px solid var(--blood); border-radius: 0; }
.langs--top { display: none; margin-right: 6px; }
@media (min-width: 1100px) { .langs--top { display: flex; } }
.foot__brand .langs { margin-top: 16px; }
.langs--menu { margin-top: 24px; }
.langs--menu a, .langs--menu span { font-size: 14px; padding: 8px 10px; }
.langbar { position: fixed; left: 50%; top: 76px; z-index: 30; transform: translateX(-50%); display: flex; gap: 12px; align-items: center;
  background: var(--sinew); border: 1px solid var(--scar); border-left: 2px solid var(--brass); border-radius: var(--r); padding: 10px 14px; font-size: 14px;
  box-shadow: 0 12px 40px rgb(0 0 0 / .5); max-width: calc(100vw - 32px); }
.langbar a { color: var(--brass); font-weight: 600; }
.langbar button { background: none; border: 0; color: var(--dust); cursor: pointer; font-size: 18px; padding: 0 4px; }

/* ---------- 3D преглед (BETA) ---------- */
.badge3d { position: absolute; top: 10px; left: 10px; z-index: 3; border: 1px solid rgb(138 108 255 / .55);
  background: rgb(10 11 10 / .82); color: var(--bone); cursor: pointer;
  font: 700 12px/1 var(--mono); letter-spacing: .1em; padding: 8px 10px; border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s, transform .15s; }
.badge3d small { color: var(--uv); font-size: 9px; letter-spacing: .18em; }
.badge3d:hover { border-color: var(--uv); box-shadow: 0 0 14px rgb(138 108 255 / .35); transform: translateY(-1px); }
.tag--3d { background: transparent; color: var(--uv); border: 1px solid rgb(138 108 255 / .5); font: 700 10px/1 var(--mono); }
.chip--3d { color: var(--uv); border-color: rgb(138 108 255 / .4); }
.chip--3d small { color: var(--uv); opacity: .7; }
.chip--3d.is-on { color: #cfc4ff; border-color: var(--uv); background: rgb(138 108 255 / .16); }

.stage3d { position: absolute; left: -1px; top: -1px; right: -1px; aspect-ratio: 1; z-index: 4;
  background: transparent;
  border: 1px solid var(--scar); border-radius: var(--r); overflow: hidden; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage3d canvas:active { cursor: grabbing; }
.stage3d__flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 55% at 50% 0%, rgb(214 210 255 / .9), rgb(138 108 255 / .25) 42%, transparent 70%); }
.stage3d__flash.boom { animation: gs-bolt .5s ease-out; }
@keyframes gs-bolt { 0% { opacity: .65; } 22% { opacity: .1; } 38% { opacity: .42; } 100% { opacity: 0; } }
.stage3d__top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.stage3d__count { font: 500 12px var(--mono); color: var(--ash); }
.stage3d__x { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--scar); border-radius: var(--r);
  background: rgb(10 11 10 / .8); color: var(--bone); cursor: pointer; font-size: 14px; line-height: 1; }
.stage3d__x:hover { border-color: var(--blood); color: #fff; }
.stage3d__status { position: absolute; left: 0; right: 0; bottom: 52px; margin: 0; text-align: center;
  font: 500 13px var(--mono); color: var(--ash); letter-spacing: .08em; }
.stage3d__hint { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; text-align: center;
  font-size: 11px; color: var(--dust); letter-spacing: .04em; pointer-events: none; }
.stage3d__thumbs { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 10px; justify-content: center; }
.stage3d__thumbs .v { min-width: 30px; height: 26px; padding: 0 6px; border: 1px solid var(--scar); border-radius: var(--r);
  background: rgb(10 11 10 / .82); color: var(--ash); cursor: pointer; font: 500 11px var(--mono); }
.stage3d__thumbs .v:hover { color: var(--bone); border-color: var(--dust); }
.stage3d__thumbs .v.is-on { color: var(--bone); border-color: var(--uv); background: rgb(138 108 255 / .18); }

/* ---------- буря (storm.js) ---------- */
#storm { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; mix-blend-mode: screen; }
#storm-flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(150% 55% at 50% 0%, rgb(226 230 255 / .5), rgb(190 198 236 / .18) 42%, transparent 72%); }
@media (prefers-reduced-motion: reduce) {
  #storm-flash { display: none; }
}
