@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/pt-serif-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/pt-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/pt-serif-cyrillic-400-italic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/pt-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/pt-serif-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/pt-serif-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --fg: #1a1a1a;
  --fg-soft: #44403a;
  --fg-muted: #6b6459;
  --bg: #fdfdfc;
  --bg-warm: #faf7f2;
  --surface: #ffffff;
  --bg-soft: #f5f1ea;
  --accent: #b53e16;
  --accent-strong: #97330f;
  --accent-soft: #f3ddd1;
  --accent-tint: #fbeee7;

  --dgm-1: #97330f;
  --dgm-2: #b53e16;
  --dgm-3: #c9673d;
  --dgm-4: #e0a17c;
  --dgm-5: #f3ddd1;
  --border: #e7e1d7;
  --border-soft: #efe9e0;
  --table-stripe: #faf7f2;
  --shadow-sm: 0 1px 2px rgba(60, 40, 15, .04);
  --shadow-md: 0 6px 24px rgba(60, 40, 15, .08);
  --radius: 10px;
  --radius-lg: 16px;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 760px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .font-sans { font-family: var(--font-sans); }
h1, h2, h3, h4 { color: var(--fg); letter-spacing: -.01em; }
p { margin: 0 0 18px; }
a { color: var(--accent-strong); text-decoration: none; }
.prose a { border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent-strong); }
strong { font-weight: 700; }
em { font-style: italic; color: var(--fg-soft); }
hr { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.proto-bar {
  background: #2c2622; color: #f3ede4; font-family: var(--font-sans);
  font-size: 13px; text-align: center; padding: 7px 16px; line-height: 1.4;
}
.proto-bar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 253, 252, .88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: 19px; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { color: var(--fg); }
.brand__ai { color: var(--accent); }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; color: var(--fg-soft);
  padding: 8px 12px; border-radius: 7px;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--fg-muted); font-family: var(--font-sans); font-size: 14px; cursor: pointer; min-width: 190px;
}
.header-search:hover { border-color: var(--accent); color: var(--fg-soft); }
.header-search kbd {
  margin-left: auto; font-family: var(--font-sans); font-size: 11px; color: var(--fg-muted);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
}
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); }

.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: var(--bg); }
.site-footer__inner { padding: 48px 24px 56px; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { font-family: var(--font-sans); font-size: 14.5px; color: var(--fg-soft); }
.site-footer a:hover { color: var(--accent-strong); }
.footer-about { font-size: 15px; color: var(--fg-soft); max-width: 320px; }
.footer-legal { font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted); padding: 18px 0 0; border-top: 1px solid var(--border-soft); }

.hero { text-align: center; padding: 60px 0 48px; }
.kicker { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -.015em; margin: 4px auto 24px; max-width: 16em; text-wrap: balance; font-weight: 700; }
.hero__lead { font-size: 18.5px; line-height: 1.6; color: var(--fg-soft); max-width: 520px; margin: 0 auto 36px; text-wrap: balance; }
.searchbox {
  display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 7px 7px 7px 18px; box-shadow: var(--shadow-md);
}
.searchbox:focus-within { border-color: var(--accent); }
.searchbox input {
  flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--font-serif);
  font-size: 17px; color: var(--fg); padding: 10px 0;
}
.searchbox input::placeholder { color: var(--fg-muted); }
.hero__hint { font-family: var(--font-sans); font-size: 13.5px; color: var(--fg-muted); margin-top: 16px; }
.hero__hint a { color: var(--fg-soft); border-bottom: 1px dotted var(--border); }

.section { padding: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { font-size: 26px; margin: 0; font-weight: 700; }
.section__head .more { font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 5px; }

.silo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.silo-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px 20px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.silo-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.silo-card h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--fg); }
.silo-card p { font-size: 14.5px; line-height: 1.5; color: var(--fg-soft); margin: 0 0 14px; }
.silo-card__count { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--fg-muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.acard {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.acard:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acard h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; line-height: 1.3; margin: 12px 0 8px; color: var(--fg); }
.acard p { font-size: 15px; line-height: 1.55; color: var(--fg-soft); margin: 0 0 18px; }
.acard__meta { margin-top: auto; display: flex; gap: 16px; font-family: var(--font-sans); font-size: 12.5px; color: var(--fg-muted); }
.acard__meta span { display: inline-flex; align-items: center; gap: 5px; }

.badge {
  display: inline-flex; align-items: center; font-family: var(--font-sans); font-size: 11.5px;
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-strong);
  background: var(--accent-tint); border-radius: 6px; padding: 3px 9px;
}
.badge--muted { color: var(--fg-muted); background: var(--bg-soft); }

.trust { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 8px; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: center; }
.trust__item { font-family: var(--font-sans); font-size: 14.5px; color: var(--fg-soft); display: inline-flex; align-items: center; gap: 9px; }

.crumbs { font-family: var(--font-sans); font-size: 13.5px; color: var(--fg-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 20px 0 0; }
.crumbs a { color: var(--fg-soft); }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs [aria-current] { color: var(--fg); }

.page-hero { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0 8px; }
.page-hero h1 { font-size: 36px; margin: 2px 0 8px; font-weight: 700; }
.page-hero p { font-size: 18px; color: var(--fg-soft); margin: 0; max-width: 620px; }
.page-hero__count { font-family: var(--font-sans); font-size: 13.5px; color: var(--fg-muted); margin-top: 10px; }

.article-wrap { padding-top: 8px; }
@media (min-width: 1040px) {
  .article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; align-items: start; }
}
.article-main { min-width: 0; max-width: var(--measure); }
.article-header { padding: 12px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.article-header h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.16; margin: 12px 0 16px; font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-sans); font-size: 14px; color: var(--fg-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.prose { font-size: 18px; }
.prose h2 { font-size: 25px; line-height: 1.28; margin: 46px 0 16px; font-weight: 700; scroll-margin-top: 84px; }
.prose h3 { font-family: var(--font-sans); font-size: 19px; line-height: 1.35; margin: 30px 0 10px; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 7px; }
.prose li > strong:first-child { color: var(--fg); }

.callout { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 0 0 28px; font-size: 17px; }
.callout p { margin: 0; }
.callout strong:first-child { color: var(--accent-strong); }

.specs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0 0 30px; background: var(--surface); }
.specs__title { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.specs dl { margin: 0; }
.specs__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.specs__row:last-child { border-bottom: 0; }
.specs dt { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--accent-strong); }
.specs dd { margin: 0; font-size: 15.5px; color: var(--fg-soft); }

.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 14.5px; }
caption { caption-side: bottom; font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted); text-align: left; padding: 10px 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th.cell-right, td.cell-right { text-align: right; }
thead th { background: var(--bg-soft); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--fg-soft); white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--table-stripe); }
tbody tr:last-child td { border-bottom: 0; }
.src-note { font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted); margin: -8px 0 24px; }

.figure-ph { margin: 8px 0 28px; }
.figure-ph__box {
  aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px dashed var(--border);
  background:
    repeating-linear-gradient(135deg, #f0e7da 0 14px, #ece1d1 14px 28px);
  display: grid; place-items: center; color: #b09a7e; font-family: var(--font-sans); font-size: 13.5px;
}
.figure-ph figcaption { font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted); margin-top: 8px; }

.faq { margin-top: 12px; }
.faq__item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q { font-family: var(--font-sans); font-size: 17.5px; font-weight: 600; margin: 0 0 8px; color: var(--fg); }
.faq__a { margin: 0; color: var(--fg-soft); }

.sources { font-family: var(--font-sans); font-size: 15px; }
.sources li { margin-bottom: 10px; color: var(--fg-soft); }

.related { margin-top: 8px; }

.toc { display: none; }
@media (min-width: 1040px) {
  .toc { display: block; position: sticky; top: 84px; align-self: start; font-family: var(--font-sans); }
  .toc__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }
  .toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
  .toc li { margin: 0; }
  .toc a { display: block; font-size: 13.5px; line-height: 1.4; color: var(--fg-muted); padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; }
  .toc a:hover { color: var(--fg); }
  .toc a.is-active { color: var(--accent-strong); border-left-color: var(--accent); font-weight: 500; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 26px; }
.chip { font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--fg-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 960px) {
  .silo-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards--two { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-nav { display: none; }
  .header-search { min-width: 0; }
  .header-search kbd, .header-search span { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--fg); cursor: pointer; }
  .silo-grid, .cards, .cards--two { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .page-hero { gap: 14px; }
  .page-hero__icon { width: 46px; height: 46px; }
  .page-hero h1 { font-size: 28px; }
  .prose h2 { font-size: 22px; }
  .specs__row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.dgm { margin: 10px 0 30px; }
.dgm__svg { display: block; width: 100%; height: auto; }
.dgm__svg text { font-family: var(--font-sans); }
.dgm figcaption {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.5;
  color: var(--fg-muted); margin-top: 10px;
}
.dgm figcaption b { color: var(--fg-soft); font-weight: 600; }

.fig-callout { position: relative; margin: 10px 0 30px; }
.fig-callout > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.fig-callout > .callout-layer {
  position: absolute; inset: 0 0 auto 0; display: block;
  width: 100%; height: auto; pointer-events: none;
}
.fig-callout .callout-panel {
  fill: #fff; fill-opacity: .94; stroke: var(--border); stroke-width: 2;
}
.fig-callout .callout-rule { stroke: var(--dgm-3); stroke-width: 2; }
.fig-callout .callout-title {
  font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .06em; fill: var(--dgm-1);
}
.fig-callout .callout-code {
  font-family: var(--font-sans); font-weight: 700; fill: var(--fg);
}
.fig-callout .callout-copy {
  font-family: var(--font-sans); font-weight: 500; fill: var(--fg-soft);
}
.fig-callout figcaption {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.5;
  color: var(--fg-muted); margin-top: 10px;
}

.fig-photo { margin: 10px 0 30px; }
.fig-photo > img {
  display: block; width: 100%; height: auto; border-radius: 6px;
  background: var(--bg-soft);
}
.fig-photo figcaption {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.5;
  color: var(--fg-muted); margin-top: 10px;
}

.calc {
  margin: 28px 0 32px;
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-warm);
  font-family: var(--font-sans);
}
.calc__head { display: block; margin-bottom: 16px; }
.calc__title {
  display: block; font-size: 15px; font-weight: 700; color: var(--fg);
}
.calc__lead {
  display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5;
  color: var(--fg-muted);
}
.calc__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 16px; margin-bottom: 18px;
}
.calc__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.calc__label {
  font-size: 12.5px; line-height: 1.35; color: var(--fg-soft); font-weight: 500;
}
.calc__in {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--fg); padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 5px; background: var(--surface); width: 100%; min-width: 0;
}
.calc__in:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.calc__in--bad { border-color: var(--dgm-2); background: var(--accent-tint); }
.calc__in--clamped { border-color: var(--dgm-3); }
.calc__out { border-top: 1px solid var(--border); padding-top: 14px; }
.calc__res {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 7px; font-size: 14px;
}
.calc__res-label { color: var(--fg-soft); flex: 1 1 auto; }
.calc__res-value {
  font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums;
}
.calc__res-unit { color: var(--fg-muted); font-size: 13px; }
.calc__res--primary {
  font-size: 16px; padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.calc__res--primary .calc__res-value { font-size: 22px; color: var(--accent-strong); }
.calc__flag {
  margin: 8px 0 0; font-size: 13px; line-height: 1.5; padding: 8px 11px;
  border-radius: 5px; border-left: 3px solid var(--dgm-3);
  background: var(--surface); color: var(--fg-soft);
}
.calc__flag[data-state="no"] { border-left-color: var(--dgm-2); background: var(--accent-tint); }
.calc__flag b { color: var(--fg); }
.calc__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 640px) {
  .calc { padding: 16px 14px; }
  .calc__grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
}

.crumbs > *:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--border);
}
.crumbs > *:not(:last-child) { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span::after { content: "·"; margin-left: 18px; color: var(--border); }
.article-meta span:last-child::after { content: none; }
.article-meta { gap: 0 12px; }

.gl-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-sans); font-size: 14px;
  padding: 14px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.gl-nav a {
  min-width: 30px; text-align: center; padding: 4px 7px; border-radius: 6px;
  color: var(--fg-soft); background: var(--surface); border: 1px solid var(--border);
}
.gl-nav a:hover { border-color: var(--accent); color: var(--accent-strong); }
.gl-letter { padding-top: 26px; }
.gl-letter h2 {
  font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: var(--accent-strong);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  scroll-margin-top: 78px;
}
.gl-list {
  list-style: none; margin: 0; padding: 0;
  columns: 3; column-gap: 28px;
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.9;
}
.gl-list li { break-inside: avoid; }
.gl-list a { color: var(--fg-soft); }
.gl-list a:hover { color: var(--accent-strong); }
@media (max-width: 900px) { .gl-list { columns: 2; } }
@media (max-width: 560px) { .gl-list { columns: 1; } }

.article-main--narrow { max-width: 72ch; margin: 0 auto; }
.gl-source {
  margin: 26px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent-soft);
  background: var(--bg-soft); font-family: var(--font-sans); font-size: 14.5px;
  color: var(--fg-soft);
}

.dgm__viewport { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.dgm__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .dgm__viewport svg { min-width: 640px; }
  .dgm__viewport + figcaption::before {
    content: "Схему можно прокрутить по горизонтали.";
    display: block; margin-bottom: 6px; color: var(--fg-muted); font-size: 12px;
  }
}

@media (max-width: 640px) {
  table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
}
