/* =========================================================================
   existence — магазин собственной линии
   ========================================================================= */

@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-lat.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  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: 'Golos Text';
  src: url('assets/fonts/golos-cyr.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jbmono-lat.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: 'JetBrains Mono';
  src: url('assets/fonts/jbmono-cyr.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- темы ---------- */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --line: #27272c;
  --line-soft: #1e1e22;
  --fg: #f4f4f2;
  --fg-2: #c2c2bd;
  --muted: #8b8b84;
  --accent: #e05233;
  --accent-fg: #ffffff;
  --shot-bg: #17171a;
  --cat-o: 0.62;
  --shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.86);

  --f-ui: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --gut: clamp(1rem, 2.5vw, 2rem);
  --r: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f2f2f0;
    --surface: #ffffff;
    --surface-2: #eaeae7;
    --line: #dcdcd7;
    --line-soft: #e7e7e3;
    --fg: #121214;
    --fg-2: #43434a;
    --muted: #61615a;
    --accent: #c2381d;
    --shot-bg: #ededea;
    --cat-o: 0.95;
    --shadow: 0 18px 28px -20px rgba(18, 18, 20, 0.34);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #eaeae7;
  --line: #dcdcd7;
  --line-soft: #e7e7e3;
  --fg: #121214;
  --fg-2: #43434a;
  --muted: #61615a;
  --accent: #c2381d;
  --shot-bg: #ededea;
  --cat-o: 0.95;
  --shadow: 0 18px 28px -20px rgba(18, 18, 20, 0.34);
  color-scheme: light;
}

/* ---------- сброс и системные поверхности ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
  scrollbar-width: thin;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

::selection { background: var(--accent); color: var(--accent-fg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.mono {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 8px; top: 8px; z-index: 200;
  transform: translateY(-300%);
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r); text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap;
  clip-path: inset(50%);
}

/* ---------- шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: 1560px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; padding: 12px var(--gut);
}
.top__mark {
  grid-column: 2; justify-self: center;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.top__mark svg { width: 13px; height: 13px; color: var(--accent); }
.top__l { display: flex; gap: 8px; }
.top__r { display: flex; gap: 8px; justify-self: end; }

.iconbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.iconbtn:hover { border-color: var(--muted); background: var(--surface); }
.iconbtn svg { width: 15px; height: 15px; flex: none; }
.iconbtn svg path, .iconbtn svg circle, .iconbtn svg line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.iconbtn--sq { padding: 9px; }
.cartbtn__n {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 11px; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums;
}
.cartbtn[data-empty='true'] .cartbtn__n { background: var(--surface-2); color: var(--muted); }
@media (max-width: 720px) {
  .iconbtn .lbl { display: none; }
  .iconbtn { padding: 9px; }
}

/* ---------- панель управления ---------- */

.tools { display: flex; gap: 10px; padding-top: 18px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search svg path, .search svg circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.search input {
  width: 100%; padding: 12px 14px 12px 38px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px;
  transition: border-color 0.2s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); }
.sortwrap { position: relative; }
.sortwrap select {
  appearance: none; padding: 12px 34px 12px 14px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px; cursor: pointer;
}
.sortwrap select:focus { outline: none; border-color: var(--accent); }
.sortwrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
@media (max-width: 620px) { .tools { flex-direction: column; } .sortwrap select { width: 100%; } }

/* ---------- лента категорий ---------- */

.cats {
  display: flex; gap: 10px; padding: 18px 0 6px;
  overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { height: 6px; }
.cat {
  position: relative; flex: none; width: 172px; height: 112px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--shot-bg); overflow: hidden; cursor: pointer;
  padding: 0; scroll-snap-align: start;
  transition: border-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.cat img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: var(--cat-o);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.cat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 96%, transparent) 14%, transparent 72%);
}
.cat:hover { border-color: var(--muted); }
.cat:hover img { opacity: 1; transform: scale(1.04); }
.cat__n {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg);
}
.cat__c {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.cat.is-on { border-color: var(--accent); }
.cat.is-on .cat__n { color: var(--accent); }
.cat--all { background: var(--surface); }
.cat--all .cat__n { position: absolute; left: 12px; bottom: 10px; }

/* ---------- сетка ---------- */

.gridhead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 22px 0 14px; border-bottom: 1px solid var(--line-soft);
}
.gridhead h1 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.grid {
  display: grid; gap: 12px; padding: 16px 0 40px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
@media (max-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--muted); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card__shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--shot-bg); overflow: hidden;
}
.card__shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__shot img { transform: scale(1.03); }

.badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 4px 8px; border-radius: 3px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg-2);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--hit { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.card__b { display: flex; flex-direction: column; gap: 3px; padding: 12px; }
.card__cat {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.card__name { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.card__price { font-family: var(--f-mono); font-size: 14px; margin-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn--add { width: 100%; margin-top: 10px; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 82%, #000); border-color: transparent; color: var(--accent-fg); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--fg); border-color: var(--line); }

.empty {
  grid-column: 1 / -1; padding: 72px 0; text-align: center; color: var(--muted);
}
.empty b { display: block; color: var(--fg); font-size: 17px; margin-bottom: 6px; }

/* ---------- о студии ---------- */

.about { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; }
.about__in { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .about__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.about h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.about p { color: var(--fg-2); max-width: 60ch; margin-top: 14px; }
.about__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.about__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.about__facts div { min-width: 116px; }
.about__facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about__facts dd { font-size: 17px; font-weight: 600; margin-top: 2px; }

/* ---------- подвал ---------- */

.foot { border-top: 1px solid var(--line); padding: clamp(32px, 4vw, 56px) 0 40px; color: var(--fg-2); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot li { padding: 3px 0; }
.foot a { color: var(--fg); }
.foot__mark { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.note {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted); max-width: 92ch;
}
.note + .note { margin-top: 12px; padding-top: 0; border: 0; }
.note a { color: var(--fg-2); }

/* ---------- шторки ---------- */

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 4, 6, 0.62); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.scrim[data-on='true'] { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; top: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--bg); box-shadow: var(--shadow);
  transition: transform 0.36s var(--ease);
}
.panel--right { right: 0; border-left: 1px solid var(--line); transform: translateX(101%); }
.panel--left { left: 0; border-right: 1px solid var(--line); transform: translateX(-101%); width: min(320px, 100%); }
.panel[data-open='true'] { transform: none; }
.panel__t {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut); border-bottom: 1px solid var(--line);
}
.panel__t h2 { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.x { background: none; border: 0; padding: 6px; cursor: pointer; line-height: 0; color: var(--muted); border-radius: var(--r); }
.x:hover { color: var(--fg); }
.x svg { width: 16px; height: 16px; }
.x svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.panel__body { flex: 1; overflow-y: auto; padding: 8px var(--gut) 20px; }
.panel__foot { border-top: 1px solid var(--line); padding: 16px var(--gut) 20px; display: grid; gap: 12px; }

.navlist li a, .navlist li button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; text-align: left; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.navlist li a:hover, .navlist li button:hover { color: var(--accent); }
.navlist span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* корзина */
.empty-line { padding: 48px 0; color: var(--muted); text-align: center; font-size: 14px; }
.line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line img { width: 60px; height: 75px; object-fit: cover; border-radius: 3px; background: var(--shot-bg); }
.line__n { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line__m { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.06em; }
.line__p { font-family: var(--f-mono); font-size: 13px; text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; }
.qty button {
  width: 26px; height: 26px; border: 1px solid var(--line); background: none;
  cursor: pointer; border-radius: 3px; line-height: 0; display: grid; place-items: center; color: var(--fg);
}
.qty button:hover { border-color: var(--fg); }
.qty svg { width: 11px; height: 11px; }
.qty svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.qty span { min-width: 30px; text-align: center; font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.line__x {
  background: none; border: 0; padding: 0; margin-left: 8px; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}
.line__x:hover { color: var(--accent); }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sum b { font-family: var(--f-mono); font-size: 20px; font-weight: 500; }
.warn { font-size: 13px; line-height: 1.6; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px; }

/* ---------- карточка товара ---------- */

.sheet {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  padding: var(--gut); pointer-events: none; opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.sheet[data-open='true'] { pointer-events: auto; opacity: 1; }
.sheet__in {
  position: relative; display: grid; width: min(1000px, 100%); max-height: 92vh;
  overflow: auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.32s var(--ease);
}
.sheet[data-open='true'] .sheet__in { transform: none; }
@media (min-width: 800px) { .sheet__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sheet__shot { background: var(--shot-bg); }
.sheet__shot img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; }
.sheet__b { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 4px; }
.sheet__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet__name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sheet__price { font-family: var(--f-mono); font-size: 20px; margin-top: 10px; }
.sheet__price small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sheet__note { color: var(--fg-2); margin-top: 16px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.specs div { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-size: 14px; margin-top: 3px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.size {
  min-width: 48px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.size:hover:not([disabled]) { border-color: var(--fg); }
.size[aria-pressed='true'] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.size[disabled] { color: var(--muted); cursor: not-allowed; text-decoration: line-through; opacity: 0.6; }
.sheet__act { display: flex; gap: 10px; margin-top: 22px; }
.sheet__act .btn { flex: 1; padding: 14px 18px; }
.sheet__err { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); margin-top: 10px; min-height: 15px; }
.sheet__x { position: absolute; right: 10px; top: 10px; z-index: 3; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- всплывающее подтверждение ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r);
  background: var(--fg); color: var(--bg);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast[data-on='true'] { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ссылки-категории в подвале: обычный текст, а не системная кнопка */
.foot__cat {
  padding: 3px 0; border: 0; background: none; cursor: pointer;
  color: var(--fg); font: inherit; text-align: left;
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.foot__cat:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- полоска «это демо» ---------- */

.demo {
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut);
  background: var(--accent); color: var(--accent-fg);
  font-size: 13px; line-height: 1.45;
}
.demo[hidden] { display: none; }
.demo p { max-width: 96ch; margin: 0 auto 0 0; }
.demo b { font-weight: 700; }
.demo__x {
  flex: none; padding: 6px; margin-left: auto; line-height: 0;
  background: none; border: 0; border-radius: var(--r);
  color: inherit; cursor: pointer; opacity: 0.85;
}
.demo__x:hover { opacity: 1; background: rgba(0, 0, 0, 0.16); }
.demo__x svg { width: 14px; height: 14px; }
.demo__x svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.demo__x:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
