:root {
  --bg: #0c0d0b;
  --ink: #e7e4dc;
  --muted: #a7aa9f;
  --faint: #8b8e84;
  --line: rgba(231, 228, 220, 0.14);
  --line-strong: rgba(231, 228, 220, 0.32);
  --brass: #c6a36a;
  --up: #8eae98;
  --down: #d0988c;
  --paper: #e6e1d6;
  --paper-ink: #1c1d19;
  --paper-muted: #4e4c45;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

main { flex: 1 0 auto; min-width: 0; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

::selection {
  background: rgba(198, 163, 106, 0.35);
  color: #fff;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 2;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  min-width: 0;
}

.top { border-bottom: 1px solid var(--line); }

.top-inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 1 1 220px;
  max-width: 100%;
  min-width: 0;
}

.lang button {
  appearance: none;
  margin: 0;
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  white-space: nowrap;
}

.lang button:hover { color: var(--ink); }

.lang button[aria-checked="true"] {
  border-color: var(--brass);
  color: var(--brass);
}

.mark {
  width: 22px;
  height: 22px;
  align-self: center;
  color: var(--brass);
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--brass);
}

.stub-flag {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(198, 163, 106, 0.5);
  padding: 4px 8px;
}

main { padding-bottom: 80px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero { padding: 64px 0 8px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 0.98;
}

.sentences {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.sentences li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
}

.sentences .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  padding-top: 7px;
}

.sentences p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.15vw, 26px);
  line-height: 1.35;
  text-wrap: pretty;
}

.panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 24px 24px 22px;
}

.price {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.panel .price {
  margin-top: 12px;
  font-size: clamp(48px, 5vw, 68px);
  overflow-wrap: normal;
}

.live-flag {
  margin-top: 10px;
  color: var(--brass);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: normal;
}

.formula > .live-note {
  margin-top: 28px;
  overflow-wrap: normal;
  word-break: normal;
}

.status-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.status-list li {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.mint-mock {
  margin-top: 36px;
  max-width: 28rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 22px 22px 20px;
}

.mint-label,
h2.mint-label {
  display: block;
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mint-mock input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px;
  box-sizing: border-box;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font: inherit;
}

.mint-mock input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.mint-out {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.mint-btn {
  margin-top: 16px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--line);
  cursor: not-allowed;
}

/* Ссылка на тестнет с главной: тот же .mint-btn, но активный */
.testnet-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
}
.testnet-cta .mint-btn { margin-top: 0; }
.testnet-cta .stub-flag { margin-left: 0; }
a.mint-btn.is-live {
  display: inline-block;
  text-decoration: none;
  color: var(--bg);
  background: var(--brass);
  border-color: var(--brass);
  cursor: pointer;
}
a.mint-btn.is-live:hover { background: transparent; color: var(--brass); }

.mint-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.mint-mock + .section-note {
  margin-top: 28px;
  overflow-wrap: normal;
  word-break: normal;
}

.power-quotes {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.power-quotes li {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 12px 10px 14px;
}

.power-quotes .quote-num {
  overflow-wrap: normal;
}

.power-quotes .quote-num.is-gap {
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.2;
}

.power-figure {
  margin-top: 28px;
  font-size: clamp(48px, 6vw, 72px);
  overflow-wrap: normal;
}

.fx-caption {
  margin: 12px 0 0;
  max-width: 22rem;
  color: var(--brass);
  font-size: 15px;
  overflow-wrap: normal;
}

.unit {
  margin-top: 8px;
  color: var(--muted);
}

.index-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.index-note + .index-note { margin-top: 8px; }

.buffer-card {
  margin-top: 28px;
  min-width: 0;
  max-width: 48rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 16px 18px 14px;
}

.buffer-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  line-height: 1.4;
}

.buffer-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 22px 0 0;
}

.stats div { min-width: 0; }

.stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.stats dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 18px;
}

.panel-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
  border-bottom: 1px solid rgba(198, 163, 106, 0.45);
  padding-bottom: 2px;
}

.up { color: var(--up); }
.down { color: var(--down); }

.strip-caption {
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
}

.strip-caption a { text-underline-offset: 3px; }

.strip {
  list-style: none;
  margin: 16px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
}

.strip li { min-width: 0; }

.track {
  height: 88px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.fill {
  display: block;
  width: 1.5px;
  background: var(--brass);
}

.wv-code {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
}

.wv-name,
.wv-pct {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.wv-pct {
  margin-top: 2px;
  font-family: var(--mono);
  color: var(--ink);
}

.page-head { padding: 52px 0 0; }

.page-head h1 {
  margin-top: 10px;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1;
}

.deck {
  margin-top: 16px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 17px;
}

.deck a,
.section-note a,
.copy a,
.note a { text-underline-offset: 3px; }

.copy {
  margin-top: 28px;
  max-width: 40rem;
}

.copy p + p { margin-top: 14px; }

.anchor {
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 32px;
  align-items: end;
  margin-top: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.readout .price { font-size: clamp(56px, 7vw, 84px); }

.quotes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quotes button,
.quotes .quote-tile {
  appearance: none;
  margin: 0;
  min-width: 0;
  overflow-wrap: normal;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 12px 12px 14px;
}

.quote-num {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.quote-unit {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.section { margin-top: 52px; min-width: 0; }

.section h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
}

.section-note {
  margin-top: 10px;
  max-width: 42rem;
  color: var(--muted);
}

.intact {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ranges button {
  appearance: none;
  margin: 0;
  min-width: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
}

.ranges button[aria-checked="true"] {
  border-color: var(--brass);
  color: var(--brass);
}

.chart-wrap { margin-top: 18px; --plot-left: 68px; --plot-right: 12px; }

.chart-readout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.chart-readout strong {
  color: var(--ink);
  font-weight: 500;
}

.chart { min-height: 240px; }

.chart svg { display: block; width: 100%; height: auto; cursor: crosshair; }

.chart-foot {
  display: grid;
  grid-template-columns: var(--plot-left) minmax(0, 1fr) var(--plot-right);
  margin-top: 6px;
}

.chart-foot input {
  grid-column: 2;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  accent-color: var(--brass);
  -webkit-appearance: none;
  appearance: none;
}

.chart-foot input::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(231, 228, 220, 0.4);
}

.chart-foot input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--brass);
}

.chart-foot input::-moz-range-track {
  height: 1px;
  background: rgba(231, 228, 220, 0.4);
  border: 0;
}

.chart-foot input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--brass);
}

.formula { margin-top: 36px; }

.formula-block + .formula-block { margin-top: 34px; }

.formula-label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.eq span { min-width: 0; }

.eq-small {
  margin-top: 28px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.eq sub { font-size: 0.48em; }

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72em;
  line-height: 1.15;
}

.frac .top {
  padding: 0 10px 5px;
  border-bottom: 1px solid currentColor;
}

.frac .bottom { padding: 5px 10px 0; }

.formula-note {
  margin-top: 12px;
  color: var(--muted);
  max-width: 40rem;
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.legend div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.legend dt {
  font-family: var(--serif);
  font-size: 22px;
}

.legend dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

ol.rules {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

ol.rules li { margin: 10px 0; padding-left: 6px; }

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table.wide { min-width: 760px; }

table.cpi { min-width: 920px; }

th,
td {
  padding: 12px 14px 12px 0;
  vertical-align: baseline;
  text-align: left;
}

th.num,
td.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

thead th.num {
  font-family: var(--sans);
  font-size: 11px;
}

thead th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}

tbody th[scope="row"] {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

tbody th,
tbody td,
tfoot th,
tfoot td { border-bottom: 1px solid var(--line); }

tfoot th,
tfoot td { border-bottom: 0; }

tr.total th,
tr.total td {
  border-bottom: 0;
  box-shadow: inset 0 1px 0 var(--line-strong);
}

caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.code {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.flag {
  display: inline-block;
  margin-left: 10px;
  color: var(--down);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

tr.is-outside [data-k="gap"] { color: var(--down); }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tile-num {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.tile-unit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.stack { display: none; }

.stack-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.stack-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

.stack-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  margin: 0;
  align-items: baseline;
}

.stack-card dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.stack-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: normal;
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
}

details.series { margin-top: 18px; }

details.series summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

details.series summary:hover { color: var(--ink); }

.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.sheet {
  background: var(--paper);
  color: var(--paper-ink);
  min-height: 560px;
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--brass);
}

.sheet-brand {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.sheet-title {
  margin-top: 28px;
  font-size: 40px;
  line-height: 1;
  color: var(--paper-ink);
}

.sheet-sub {
  margin-top: 10px;
  color: var(--paper-muted);
}

.sheet-rule {
  height: 1px;
  margin: 24px 0;
  background: rgba(28, 29, 25, 0.22);
}

.sheet-empty {
  margin-top: auto;
  min-height: 220px;
  border: 1px dashed rgba(28, 29, 25, 0.35);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sheet-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.sheet-wait {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sheet-help {
  margin-top: 10px;
  max-width: 26rem;
  color: var(--paper-muted);
}

.sheet-file { margin-top: auto; font-family: var(--serif); font-size: 28px; }

.sheet-file a { color: var(--paper-ink); }

.meta { margin: 8px 0 0; }

.meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.meta dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.meta dd { margin: 0; }

.dev-note {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dev-note p { max-width: 42rem; margin-top: 10px; color: var(--muted); }

.mono { font-family: var(--mono); font-size: 0.92em; }

#cny-raw {
  margin: 12px 0 0;
  max-width: 40rem;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: normal;
  overflow-x: auto;
}

.dev-note pre {
  margin: 16px 0 0;
  max-width: 36rem;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.app-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: #3a2422;
  color: #f3ddd8;
}

.noscript-note { margin-top: 18px; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--faint);
  font-size: 13px;
}

.colophon p + p { margin-top: 6px; }

html[lang="ja"] {
  --sans: "Noto Sans JP", "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Noto Sans JP", "Instrument Serif", Palatino, Georgia, serif;
}

html[lang="zh"] {
  --sans: "Noto Sans SC", "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Noto Sans SC", "Instrument Serif", Palatino, Georgia, serif;
}

html[lang="ko"] {
  --sans: "Noto Sans KR", "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Noto Sans KR", "Instrument Serif", Palatino, Georgia, serif;
}

html[lang="hi"] {
  --sans: "Noto Sans Devanagari", "Nirmala UI", "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Noto Sans Devanagari", "Nirmala UI", "Instrument Serif", Palatino, Georgia, serif;
}

html[lang="ja"] body,
html[lang="zh"] body { line-height: 1.7; }

html[lang="ja"] h1,
html[lang="zh"] h1,
html[lang="ja"] h2,
html[lang="zh"] h2,
html[lang="ja"] .hero h1,
html[lang="zh"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.25;
}

html[lang="ja"] .sentences p,
html[lang="zh"] .sentences p { line-height: 1.6; }

html[lang="ja"] thead th,
html[lang="zh"] thead th,
html[lang="ja"] .kicker,
html[lang="zh"] .kicker,
html[lang="ja"] .mint-label,
html[lang="zh"] .mint-label,
html[lang="ja"] .mint-btn,
html[lang="zh"] .mint-btn,
html[lang="ja"] .formula-label,
html[lang="zh"] .formula-label,
html[lang="ja"] .stub-flag,
html[lang="zh"] .stub-flag,
html[lang="ja"] .stats dt,
html[lang="zh"] .stats dt,
html[lang="ja"] .stack-card dt,
html[lang="zh"] .stack-card dt {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="ja"] .kicker,
html[lang="zh"] .kicker,
html[lang="ja"] .section-note,
html[lang="zh"] .section-note,
html[lang="ja"] .formula-note,
html[lang="zh"] .formula-note,
html[lang="ja"] .deck,
html[lang="zh"] .deck,
html[lang="ja"] .fx-caption,
html[lang="zh"] .fx-caption,
html[lang="ja"] .power-quotes,
html[lang="zh"] .power-quotes,
html[lang="ja"] .sentences p,
html[lang="zh"] .sentences p,
html[lang="ja"] .colophon p,
html[lang="zh"] .colophon p,
html[lang="ja"] .buffer-card,
html[lang="zh"] .buffer-card,
html[lang="ko"] .buffer-card,
html[lang="hi"] .buffer-card,
html[lang="ja"] .buffer-card p,
html[lang="zh"] .buffer-card p,
html[lang="ko"] .buffer-card p,
html[lang="hi"] .buffer-card p { overflow-wrap: normal; word-break: normal; }

html[lang="ja"] .buffer-title,
html[lang="zh"] .buffer-title,
html[lang="ko"] .buffer-title,
html[lang="hi"] .buffer-title {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="ja"] .eq,
html[lang="zh"] .eq,
html[lang="ja"] .legend dt,
html[lang="zh"] .legend dt,
html[lang="ja"] .price,
html[lang="zh"] .price,
html[lang="ja"] .quote-num,
html[lang="zh"] .quote-num,
html[lang="ja"] .brand-name,
html[lang="zh"] .brand-name {
  font-family: "Instrument Serif", Palatino, Georgia, serif;
}

html[lang="ko"] .kicker,
html[lang="hi"] .kicker,
html[lang="ko"] .mint-label,
html[lang="hi"] .mint-label,
html[lang="ko"] .mint-btn,
html[lang="hi"] .mint-btn,
html[lang="ko"] thead th,
html[lang="hi"] thead th {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="ja"] .power-quotes .quote-num.is-gap,
html[lang="zh"] .power-quotes .quote-num.is-gap,
html[lang="ko"] .power-quotes .quote-num.is-gap,
html[lang="hi"] .power-quotes .quote-num.is-gap {
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: 13px;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .top-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 8px 16px;
  }

  .stub-flag { margin-left: auto; }

  .hero-grid,
  .readout,
  .audit-grid,
  .legend { grid-template-columns: 1fr; }

  .tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  .hero { padding-top: 36px; }

  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }

  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .power-quotes { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .sentences li { grid-template-columns: 28px minmax(0, 1fr); }

  .sheet { padding: 28px 22px; min-height: 0; }

  .sheet-title { font-size: 32px; }

  .meta div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  .wide-host { display: none; }
  .stack { display: block; }
}

@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .quotes,
  .power-quotes,
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  :root {
    --bg: #fff;
    --ink: #161616;
    --muted: #333;
    --faint: #444;
    --line: #ccc;
    --line-strong: #999;
  }

  body { background: #fff; }
  .lang, .stub-flag, .skip, .more, .chart-foot { display: none !important; }
  .sheet { break-inside: avoid; }
  a { text-decoration: none; }
}

/* Статус: блок со ссылкой на тестнет вместо макета минта */
.status-cta { margin-top: 28px; }
.status-cta .index-note { flex-basis: 100%; margin: 0; }
.status-cta + .section-note { margin-top: 24px; }
