/* «Импульс» theme: loud poster storefront with hard edges and signal-yellow labels.
   Light and dark tokens: system preference by default, [data-theme] when the visitor picks one. */
:root {
  --bg: #F6F6F1; --surface: #FFFFFF; --surface-2: #ECECE4; --fg: #111214; --muted: #55575D;
  --line: #D6D6CC; --line-strong: #111214; --accent: #FFD20A; --accent-hover: #FFDF4A; --on-accent: #111214;
  --accent-soft: #FFF1A8; --accent-text: #111214; --accent-ring: #111214; --ok: #0A7A44; --err: #B3261E; --err-soft: #FBE9E7;
  --art-fill: #FFFFFF; --art-line: #111214; --media-bg: #ECECE4; --dot-bg: #111214;
  --head-bg: #F6F6F1; --foot-bg: #111214; --demo-bg: #FFD20A; --demo-fg: #111214; --chat-head-bg: #FFD20A;
  --shadow: 6px 6px 0 #111214;
  --f-display: "Unbounded", "Onest", system-ui, sans-serif; --f-body: "Onest", system-ui, sans-serif;
  --r-ctl: 0px; --r-card: 0px; --r-panel: 0px; --gap: 16px; --ease: cubic-bezier(.3, 1.4, .5, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111214; --surface: #18191C; --surface-2: #212226; --fg: #F2F2EC; --muted: #A2A4AA;
  --line: #2C2E33; --line-strong: #F2F2EC; --accent: #FFD20A; --accent-hover: #FFDF4A; --on-accent: #111214;
  --accent-soft: #3A3310; --accent-text: #FFD20A; --accent-ring: #FFD20A; --ok: #4AD08A; --err: #FF8A80; --err-soft: #3A1A18;
  --art-fill: #212226; --art-line: #F2F2EC; --media-bg: #1D1E21; --dot-bg: #F2F2EC;
  --head-bg: #111214; --foot-bg: #0B0B0D; --demo-bg: #FFD20A; --demo-fg: #111214; --chat-head-bg: #FFD20A;
  --shadow: 6px 6px 0 #FFD20A; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #111214; --surface: #18191C; --surface-2: #212226; --fg: #F2F2EC; --muted: #A2A4AA;
  --line: #2C2E33; --line-strong: #F2F2EC; --accent: #FFD20A; --accent-hover: #FFDF4A; --on-accent: #111214;
  --accent-soft: #3A3310; --accent-text: #FFD20A; --accent-ring: #FFD20A; --ok: #4AD08A; --err: #FF8A80; --err-soft: #3A1A18;
  --art-fill: #212226; --art-line: #F2F2EC; --media-bg: #1D1E21; --dot-bg: #F2F2EC;
  --head-bg: #111214; --foot-bg: #0B0B0D; --demo-bg: #FFD20A; --demo-fg: #111214; --chat-head-bg: #FFD20A;
  --shadow: 6px 6px 0 #FFD20A; color-scheme: dark; }

.demo-bar { font-weight: 600; }
.site-head { border-bottom: 2px solid var(--line-strong); }
.logo, .foot-logo { gap: 0 !important; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; }
.logo b { background: var(--accent); color: var(--on-accent); padding: 2px 6px; font-weight: 800; }
.main-nav a { font-weight: 500; }
.main-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }
.search, .lang, .icon-btn, .sort select { border: 2px solid var(--line-strong); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.cart-btn .count { border: 2px solid var(--line-strong); }
.card { border: 2px solid var(--line-strong); transition: transform .18s var(--ease), box-shadow .18s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-media { border-bottom: 2px solid var(--line-strong); }
.card-type { text-transform: uppercase; font-weight: 600; letter-spacing: .06em; font-size: 11.5px; }
.card-name { font-family: var(--f-body); font-weight: 700; font-size: 17px; }
.price, .pdp-price, .line-price { font-weight: 700; }
.add-mini { border: 2px solid var(--line-strong); }
.cat { border: 2px solid var(--line-strong); font-weight: 600; }
.cat:hover { background: var(--accent); color: var(--on-accent); }
.cat:hover .art .l { stroke: #111214; }
.sec-head h2, .how-copy h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.toolbar h1, .page-title, .pdp-name { font-weight: 800; letter-spacing: -.02em; }
.toolbar h1, .page-title { text-transform: uppercase; }
.f-item[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn { border: 2px solid var(--line-strong); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; font-weight: 700; }
.btn-primary:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.stepper { border-width: 2px; }
.facts, .line, .summary, .chat, .pdp-main, .thumb { border: 2px solid var(--line-strong); }
.facts { background: var(--line-strong); gap: 2px; }
.facts svg { stroke: var(--fg); }
.chat { box-shadow: var(--shadow); }
.chat-head, .chat-head p { color: #111214; }
.chat-head .icon-btn { background: transparent; border-color: #111214; color: #111214; }
.chat-fab { border: 2px solid var(--line-strong); border-radius: 0; box-shadow: var(--shadow); }
.msg { border-radius: 0; }
.msg.bot { border: 2px solid var(--line-strong); background: var(--surface); }
.msg .tag { background: var(--accent); color: #111214; border-radius: 0; }
.pipe-node { border: 2px solid var(--line-strong); font-weight: 600; }
.pipe-router, .pipe-check { background: var(--accent); color: #111214; }
.site-foot { color: #F2F2EC; --muted: #A2A4AA; border-top: 0; }
.foot-brand { text-transform: uppercase; }

/* hero */
.hero { border-bottom: 2px solid var(--line-strong); }
.hero-band { position: relative; height: clamp(300px, 38vw, 470px); border-bottom: 2px solid var(--line-strong); touch-action: pan-y; cursor: crosshair; }
.hero-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-band .tag-line { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: 14px; background: var(--accent); color: #111214; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; pointer-events: none; }
.hero-band .tag-hint { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; padding-block: 36px 40px; align-items: end; }
.hero h1 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; }
.hero h1 mark { background: var(--accent); color: #111214; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-side { display: grid; gap: 22px; }
.hero-text { font-size: 17px; color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn-primary { flex: none; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--line-strong); }
.hero-facts div { padding: 16px 16px 18px 0; display: grid; gap: 2px; }
.hero-facts div + div { padding-left: 16px; border-left: 2px solid var(--line-strong); }
.hero-facts strong { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }
.hero-facts span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 2px solid var(--line-strong); }
}

/* shop pages in the theme's hard-edged style */
.choice, .field input, .status-form input, .chat-form textarea, .chat-contact input, .status-card, .empty, .order-hero, .co-block, .help section, .notice { border: 2px solid var(--line-strong); }
.choice:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.choice:has(input:checked) small { color: var(--on-accent); opacity: .8; }
.order-num { background: var(--accent); color: #111214; padding: 0 .15em; }
.op-btn { border: 2px solid var(--line-strong); }
.ai-notice { border-bottom: 2px solid var(--line-strong); }
.msg.err { border: 2px solid var(--err); }
.msg.bot.is-esc { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.nav-btn { font-weight: 500; }
