/* Срез v12 — editorial / brutalist + motion */

:root {
  --paper: #f3ede3;
  --paper-2: #ebe3d6;
  --ink: #121212;
  --mute: rgba(18, 18, 18, 0.62);
  --rule: #121212;
  --accent: #b42318;
  --accent-ink: #fff8f6;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
  --thick: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* —— Ambient background —— */
.edition-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.edition-bg__grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotate(-4deg);
  animation: grid-drift 90s linear infinite;
}
.edition-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, p, li, dd, dt, span, strong, em { overflow-wrap: break-word; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.7rem;
}

/* —— Edition bar —— */
.edition-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  padding: 0.45rem var(--pad);
  border-bottom: var(--thick) solid var(--rule);
  background: var(--ink);
  color: #f6f2ea;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edition-bar__mid { text-align: center; opacity: 0.72; overflow: hidden; }
.edition-bar__ticker span {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.edition-bar span:last-child { text-align: right; }

/* —— Header —— */
.shell-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 237, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--thick) solid var(--rule);
}
.shell-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding: 0.85rem var(--pad);
}
.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.mark__logo {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--thick) solid var(--rule);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mark:hover .mark__logo { transform: rotate(-3deg) scale(1.04); }
.mark__sig {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--thick) solid var(--rule);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
}
.mark__text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.mark__text strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mark__text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shell-nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.shell-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.shell-nav a:hover,
.shell-nav a.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.shell {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--dark { color: var(--ink); }

.section-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: var(--thick) solid var(--rule);
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* —— Hero spread —— */
.spread {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border: var(--thick) solid var(--rule);
  background: #fff;
}
.spread__lead {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-bottom: var(--thick) solid var(--rule);
}
.spread__lead .deck {
  margin-top: 0.65rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.58;
  color: var(--mute);
}
.deck-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
.deck-tags li {
  padding: 0.35rem 0.65rem;
  border: 2px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--paper-2);
}
.deck-note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(18, 18, 18, 0.14);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mute);
  max-width: 52ch;
}

.spread__rail {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--paper-2);
}
.rail-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.rail-spec {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.rail-spec div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  font-size: 0.88rem;
  line-height: 1.4;
}
.rail-spec dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.rail-spec dd { margin: 0; font-weight: 600; }
.spec-live.spec-pulse { animation: spec-pulse 0.45s ease; }
.rail-cta {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.55rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

/* —— Stat strip —— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.25rem;
  border: var(--thick) solid var(--rule);
  background: var(--ink);
  color: #f6f2ea;
}
.stat-strip li {
  padding: 0.85rem 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}
.stat-strip li:nth-child(2n) { border-right: 0; }
.stat-strip li:nth-last-child(-n+2) { border-bottom: 0; }
.stat-strip__n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
}
.stat-strip__l {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* —— Why section —— */
.why { margin-top: 2.5rem; }
.why__grid {
  display: grid;
  gap: 0;
  border: var(--thick) solid var(--rule);
}
.why__grid li {
  padding: 1rem 1.1rem;
  border-bottom: 2px solid var(--rule);
  background: #fff;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.5s ease var(--cell-delay, 0s),
    transform 0.5s ease var(--cell-delay, 0s);
}
.why__grid.cells-visible li {
  opacity: 1;
  transform: none;
}
.why__grid li:last-child { border-bottom: 0; }
.why__idx {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.45rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.why__grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}
.why__grid p {
  margin-top: 0.35rem;
  color: var(--mute);
  line-height: 1.55;
  font-size: 0.94rem;
}

/* —— Formats —— */
.formats { margin-top: 2.5rem; }
.formats__cols {
  display: grid;
  gap: 0;
  border: var(--thick) solid var(--rule);
}
.formats__cols > div {
  padding: 1rem 1.1rem;
  background: #fff;
  border-bottom: var(--thick) solid var(--rule);
}
.formats__cols > div:last-child { border-bottom: 0; }
.formats__cols h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.formats__cols ul {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}
.formats__cols li {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--mute);
  padding-left: 1rem;
  position: relative;
}
.formats__cols li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-family: var(--mono);
}

/* —— Scanner instrument —— */
.instrument {
  margin-top: 2.5rem;
}
.instrument__head {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--thick) solid var(--rule);
}
.instrument__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}
.instrument__note {
  color: var(--mute);
  line-height: 1.5;
  max-width: 42ch;
}

.instrument__body {
  margin-top: 1rem;
  border: var(--thick) solid var(--rule);
  background: #fff;
  padding: clamp(0.85rem, 3vw, 1.15rem);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--rule);
}
.mode-tab {
  min-height: 3rem;
  padding: 0.65rem 0.5rem;
  border: 0;
  background: var(--paper);
  color: var(--mute);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border-right: 2px solid var(--rule);
}
.mode-tab:last-child { border-right: 0; }
.mode-tab.is-on {
  background: var(--ink);
  color: #f6f2ea;
}

.scan-stage { padding-top: 1rem; }

.view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vw, 24rem);
  background: #1a1a1a;
  border: 2px solid var(--rule);
}
.view video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view-idle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: 1.5rem 1rem;
  color: rgba(246, 242, 234, 0.82);
  text-align: center;
  line-height: 1.55;
  font-size: 0.95rem;
}
.view-idle p { max-width: 30ch; margin: 0; }
.view.is-live .view-idle { display: none; }

.frame {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(68%, 16rem);
  aspect-ratio: 1 / 1.414;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.48);
}
.frame span {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: #f6f2ea;
  border-style: solid;
}
.frame span:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.frame span:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.frame span:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.qr-aim {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(52%, 13rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid #f6f2ea;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.48);
}

.scan-status {
  min-height: 1.35em;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.45;
}

.scan-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0 1.1rem;
  border: 2px solid var(--rule);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: #f6f2ea;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--ink);
}
.btn-save {
  background: var(--accent);
  border-color: var(--accent);
}
.file-btn { position: relative; cursor: pointer; }
.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pages {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
}
.pages-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.page-list {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin: 0.75rem 0 0.9rem;
  padding-bottom: 0.25rem;
}
.page-list li { position: relative; flex: 0 0 auto; }
.page-list img {
  width: 4.5rem;
  height: 6.2rem;
  object-fit: cover;
  border: 2px solid var(--rule);
  background: #fff;
}
.page-del {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid var(--rule);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.qr-out {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--rule);
  background: var(--paper-2);
}
.qr-kind {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.qr-value {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  color: var(--mute);
}
.qr-out__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

/* —— Matrix / flow / limits / faq —— */
.matrix,
.flow,
.limits,
.qa {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}

.matrix__grid {
  display: grid;
  gap: 0;
  border: var(--thick) solid var(--rule);
  background: #fff;
}
.matrix__grid li {
  padding: 1rem 1.1rem;
  border-bottom: 2px solid var(--rule);
  display: grid;
  gap: 0.35rem;
  background: #fff;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.5s ease var(--cell-delay, 0s),
    transform 0.5s ease var(--cell-delay, 0s);
}
.matrix__grid.cells-visible li {
  opacity: 1;
  transform: none;
}
.matrix__grid li:last-child { border-bottom: 0; }
.matrix__grid strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
}
.matrix__grid span {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.5;
}

.flow__track {
  display: grid;
  gap: 0;
  border: var(--thick) solid var(--rule);
  background: #fff;
}
.flow__track li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 2px solid var(--rule);
  align-items: start;
}
.flow__track li:last-child { border-bottom: 0; }
.flow__idx {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--rule);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.flow__track strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}
.flow__track p {
  margin-top: 0.35rem;
  color: var(--mute);
  line-height: 1.55;
  font-size: 0.94rem;
}

.limits__list {
  border: var(--thick) solid var(--rule);
  background: var(--paper-2);
}
.limits__list li {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(18, 18, 18, 0.14);
  font-size: 0.94rem;
  line-height: 1.55;
  list-style: disc;
  margin-left: 1.5rem;
}
.limits__list li:last-child { border-bottom: 0; }

.qa__list {
  display: grid;
  gap: 0;
  border: var(--thick) solid var(--rule);
}
.qa__list > div {
  padding: 1rem 1.1rem;
  border-bottom: 2px solid var(--rule);
  background: #fff;
}
.qa__list > div:last-child { border-bottom: 0; }
.qa__list dt {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.25;
}
.qa__list dd {
  margin: 0.45rem 0 0;
  color: var(--mute);
  line-height: 1.58;
  font-size: 0.94rem;
}

.qa__list dd a { text-decoration: underline; color: var(--ink); }

@keyframes grid-drift {
  to { transform: rotate(-4deg) translate(48px, 48px); }
}
@keyframes ticker {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(-50%); }
}
@keyframes spec-pulse {
  0% { color: var(--accent); transform: scale(1.08); }
  100% { color: inherit; transform: scale(1); }
}
@keyframes frame-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.view.is-live .frame,
.view.is-live .qr-aim {
  animation: frame-pulse 2.4s ease-in-out infinite;
}

/* —— Footer (shared with legal pages) —— */
.site-foot {
  margin-top: 3rem;
  padding: 2rem var(--pad) 1.25rem;
  border-top: var(--thick) solid var(--rule);
  background: var(--ink);
  color: #f0ebe2;
}
.site-foot-inner,
.req-grid,
.site-foot-bottom,
.site-foot-requisites,
.site-foot-dev {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.site-foot-inner {
  display: grid;
  gap: 1.35rem;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}
.brand-tag,
.site-foot a,
.req-grid span {
  color: rgba(240, 235, 226, 0.68);
}
.brand-tag { max-width: 38ch; line-height: 1.55; margin-top: 0.45rem; }
.foot-mail { display: inline-block; margin-top: 0.85rem; text-decoration: underline; }
.foot-phone { display: inline-block; margin-top: 0.45rem; text-decoration: underline; }
.foot-col h3 {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 235, 226, 0.45);
}
.foot-col ul { display: grid; gap: 0.4rem; font-size: 0.92rem; }
.foot-col a:hover { color: #fff; }
.site-foot-requisites {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.req-grid {
  display: grid;
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.req-grid strong { display: block; margin-bottom: 0.25rem; color: #fff; }
.site-foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(240, 235, 226, 0.45);
}
.foot-legal-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* —— Legal / cookie (other pages) —— */
body.legal {
  background: var(--paper);
  color: var(--ink);
}
body.legal .mast {
  margin: 0;
  padding: 0.4rem var(--pad);
  background: var(--ink);
  color: rgba(246, 242, 234, 0.82);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
body.legal .head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: var(--thick) solid var(--rule);
}
body.legal .head-inner {
  display: flex;
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding: 0.85rem var(--pad);
}
body.legal .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
body.legal .brand-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}
body.legal .brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--mute);
}
.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.5rem;
}
.doc h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
}
.doc-meta { margin-top: 0.55rem; color: var(--mute); }
.doc-body { margin-top: 1.4rem; }
.doc-body h2 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}
.doc-body p, .doc-body li {
  color: rgba(18, 18, 18, 0.78);
  line-height: 1.65;
}
.doc-body ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.doc-body a { text-decoration: underline; }

.cookie-overlay {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 0.65rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}
.cookie-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1rem 1.05rem;
  border: var(--thick) solid var(--rule);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.cookie-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}
.cookie-card p {
  margin-top: 0.4rem;
  color: var(--mute);
  line-height: 1.5;
  font-size: 0.92rem;
}
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.btn-necessary,
.btn-accept {
  width: 100%;
  min-height: 2.85rem;
  border: 2px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-necessary { background: var(--paper-2); color: var(--ink); }
.btn-accept { background: var(--ink); color: #f6f2ea; }

@media (min-width: 760px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .stat-strip li { border-bottom: 0; }
  .stat-strip li:not(:last-child) { border-right: 2px solid rgba(255, 255, 255, 0.12); }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__grid li:nth-child(odd) { border-right: 2px solid var(--rule); }
  .why__grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .formats__cols { grid-template-columns: 1fr 1fr; }
  .formats__cols > div:first-child { border-right: var(--thick) solid var(--rule); border-bottom: 0; }
  .spread {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .spread__lead { border-bottom: 0; border-right: var(--thick) solid var(--rule); }
  .scan-actions { flex-direction: row; flex-wrap: wrap; }
  .scan-actions .btn { width: auto; min-width: 11rem; }
  .qr-out__actions { flex-direction: row; flex-wrap: wrap; }
  .matrix__grid { grid-template-columns: 1fr 1fr; }
  .matrix__grid li:nth-child(odd) { border-right: 2px solid var(--rule); }
  .matrix__grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .site-foot-inner { grid-template-columns: 1.2fr 0.8fr 0.9fr; }
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .cookie-actions { flex-direction: row; }
  .btn-necessary, .btn-accept { width: auto; min-width: 10rem; }
}

@media (min-width: 1020px) {
  .shell-nav { flex-wrap: nowrap; }
  .req-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .view { min-height: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edition-bg__grid,
  .edition-bar__ticker span,
  .view.is-live .frame,
  .view.is-live .qr-aim { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .matrix__grid li,
  .why__grid li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mark__logo { transition: none; }
}
