/* article.css — статьи «ОСЬ» на стейдже (контур «Чертёж»).
   Основа — прототип «Энциклопедия - Шестиосевой манипулятор»; добавлены prose, оглавление,
   врезки, таймлайн, шаги процесса, сноски и источники. Источник: content/tools/site/article.css */
:root {
  --lbg: #F7F8F9; --lraised: #FFFFFF; --link: #16181D; --link2: #5A6270; --lline: #D8DCE2; --muted: #98A1AD;
  --accent: #E4002B; --ok: #1E9E63; --warn: #B26A00;
  --head: 'Unbounded', sans-serif; --mono: 'JetBrains Mono', monospace; --body: 'Onest', sans-serif;
  --gutter: max(40px, calc(50% - 560px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--lbg); color: var(--link); font-family: var(--body);
  background-image: linear-gradient(rgba(22,24,29,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22,24,29,0.04) 1px, transparent 1px);
  background-size: 72px 72px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }
.acc { color: var(--accent); }

#tcpbar { position: fixed; left: 0; top: 0; bottom: 0; width: 22px; z-index: 60; pointer-events: none; }
#tcpbar i { position: absolute; left: 10px; top: 0; width: 2px; height: 0; background: var(--accent); display: block; }
#tcpbar i::after { content: ''; position: absolute; bottom: -3px; left: -2.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--lline);
  background: color-mix(in srgb, var(--lbg) 88%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand b { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
header nav { display: flex; gap: 22px; margin-left: 28px; }
header nav a { color: var(--link2); text-decoration: none; font-size: 13.5px; }
header nav a:hover { color: var(--link); }
header .cta { margin-left: auto; font-weight: 600; font-size: 13.5px; color: #fff; background: var(--accent);
  text-decoration: none; padding: 9px 17px; border-radius: 3px; white-space: nowrap; }

main { padding: 38px var(--gutter) 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--link2); margin-bottom: 22px; }
.crumb a { color: var(--link2); text-decoration: none; }
.crumb a:hover { color: var(--link); }
.kind { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h1 { margin: 0 0 12px; font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3vw, 44px); line-height: 1.14; max-width: 900px; text-wrap: balance; }
.sub-h1 { margin: 0 0 30px; font-size: 17.5px; line-height: 1.6; color: var(--link); max-width: 780px; text-wrap: pretty;
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }

.dsheet { display: grid; grid-template-columns: 1.02fr 0.98fr; border: 1px solid var(--lline); background: var(--lraised); margin-bottom: 14px; max-width: 1120px; }
.dsheet .fig { position: relative; border-right: 1px solid var(--lline); padding: 8px; overflow: hidden; min-height: 260px; }
.dsheet .fig svg { width: 100%; height: auto; display: block; }
.dsheet .fig .label { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
.dsheet .key, .defbox { padding: 24px 30px; display: flex; flex-direction: column; }
.dsheet .key .hd, .defbox .hd, .toc .hd { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--link2); padding-bottom: 14px; border-bottom: 1px solid var(--lline); margin-bottom: 4px; }
.dsheet .key .hd .pill { margin-left: auto; font-size: 10px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 4px 8px; }
.defbox { border: 1px solid var(--lline); background: var(--lraised); max-width: 900px; margin-bottom: 14px; }
.kparam { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--lline); }
.kparam:last-of-type { border-bottom: none; }
.kparam .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--link2); flex: 0 0 36%; }
.kparam .v { font-size: 14.5px; line-height: 1.5; color: var(--link); flex: 1; }
.upd { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 0 40px; }

.toc { border: 1px solid var(--lline); background: var(--lraised); padding: 18px 24px; max-width: 900px; margin-bottom: 52px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 36px; }
.toc li { font-size: 14px; line-height: 1.5; margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--link); text-decoration: none; } .toc a:hover { color: var(--accent); }

section { margin-bottom: 54px; scroll-margin-top: 80px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.eyebrow i { font-style: normal; color: var(--muted); }
h2 { margin: 0 0 16px; font-family: var(--head); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.22; max-width: 860px; text-wrap: balance; }
h3 { margin: 26px 0 10px; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; max-width: 820px; }
.prose { max-width: 780px; }
.prose p { margin: 0 0 15px; font-size: 16.5px; line-height: 1.68; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; font-size: 16px; line-height: 1.62; }
.prose li { margin: 5px 0; }
.prose a, .ans a, .tbl-wrap a { color: var(--link); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.soon { border-bottom: 1px dotted var(--muted); cursor: help; }
sup.fn { font-size: 10px; line-height: 0; margin-left: 1px; }
sup.fn a { color: var(--accent); text-decoration: none; font-family: var(--mono); }
sup.fn a::before { content: '['; } sup.fn a::after { content: ']'; }

.specgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border: 1px solid var(--lline); background: var(--lraised); max-width: 1120px; }
.specgrid .col { padding: 8px 28px; }
.specgrid .col:first-child { border-right: 1px solid var(--lline); }
table.spec { width: 100%; border-collapse: collapse; }
table.spec td { padding: 12px 0; border-bottom: 1px solid var(--lline); font-size: 14px; vertical-align: top; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td:first-child { color: var(--link2); width: 46%; padding-right: 14px; }
table.spec td:last-child { font-size: 14px; line-height: 1.5; }

.tbl-wrap { border: 1px solid var(--lline); background: var(--lraised); overflow-x: auto; max-width: 960px; margin: 18px 0 22px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp caption { caption-side: top; text-align: left; padding: 14px 18px 4px; font-family: var(--mono); font-size: 11.5px; color: var(--link2); letter-spacing: 0.02em; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--lline); font-size: 14px; line-height: 1.5; vertical-align: top; }
table.cmp thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--link2); font-weight: 400; border-bottom: 1.4px solid var(--link); }
table.cmp tbody td:first-child { color: var(--link); font-weight: 500; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp td p { margin: 0; }

.schematic { border: 1px solid var(--lline); background: var(--lraised); padding: 22px 24px 18px; max-width: 960px; margin: 18px 0 24px; }
.schematic svg { width: 100%; height: auto; display: block; }
.schematic figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lline); font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--link2); }
.fnote { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 10px 0 0; }
ol.tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
ol.tl::before { content: ''; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 1px; background: var(--lline); }
ol.tl li { display: grid; grid-template-columns: 62px 1fr; gap: 26px; padding: 7px 0; position: relative; }
ol.tl li::after { content: ''; position: absolute; left: 63px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--lraised); border: 1.5px solid var(--accent); }
ol.tl .y { font-family: var(--mono); font-size: 13px; color: var(--accent); text-align: right; padding-top: 1px; }
ol.tl .t { font-size: 14.5px; line-height: 1.5; }
ol.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: s; }
ol.flow li { border: 1px solid var(--lline); padding: 12px 14px 14px; position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--lbg); }
ol.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -9px; top: 12px; color: var(--accent); font-family: var(--mono); background: var(--lraised); line-height: 1; }
ol.flow .n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
ol.flow b { font-weight: 600; font-size: 14px; line-height: 1.35; }
ol.flow .a { font-size: 12.5px; color: var(--link2); line-height: 1.4; }

.callout { border: 1px solid var(--lline); border-left: 3px solid var(--accent); background: var(--lraised); padding: 14px 20px; max-width: 780px; margin: 18px 0; }
.callout.warn { border-left-color: var(--warn); }
.callout p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; } .callout p:last-child { margin: 0; }

.faq { border-top: 1px solid var(--lline); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--lline); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--head); font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-weight: 400; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq .ans { padding: 0 56px 20px 0; font-size: 15px; line-height: 1.64; color: var(--link2); }
.faq .ans p { margin: 0 0 8px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--lline); border: 1px solid var(--lline); max-width: 960px; }
.related a, .related .card { background: var(--lraised); padding: 20px 22px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.related a:hover h3 { color: var(--accent); }
.related .k { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.related h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.3; }
.related .go { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--link2); }
.related .soon-card h3 { color: var(--link2); }

.cta-block { border: 1px solid var(--lline); background: var(--lraised); padding: 34px 38px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; max-width: 960px; }
.cta-block .tx { flex: 1 1 360px; } .cta-block h2 { margin: 0 0 8px; }
.cta-block p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--link2); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 3px; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }

ol.src { max-width: 960px; padding-left: 26px; margin: 0; }
ol.src li { font-size: 13.5px; line-height: 1.55; margin: 6px 0; color: var(--link); word-break: break-word; scroll-margin-top: 90px; }
ol.src li:target { background: color-mix(in srgb, var(--accent) 8%, transparent); }
ol.src .pub { color: var(--link2); }
ol.src a { color: var(--link2); font-family: var(--mono); font-size: 11.5px; }

.stamp { border: 1.6px solid var(--link); display: grid; grid-template-columns: 2fr 1.4fr 0.9fr 0.6fr; max-width: 960px; margin-top: 8px; }
.stamp .c { border-right: 1px solid var(--link); padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.stamp .c:last-child { border-right: none; }
.stamp .c span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--link2); text-transform: uppercase; }
.stamp .c b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
footer { display: flex; gap: 16px; padding: 22px var(--gutter) 40px; color: var(--link2); border-top: 1px solid var(--lline); margin-top: 56px; }
footer .co { margin-left: auto; }

@media (max-width: 880px) {
  :root { --gutter: 16px; }
  .dsheet, .specgrid { grid-template-columns: 1fr; }
  .dsheet .fig { border-right: none; border-bottom: 1px solid var(--lline); }
  .specgrid .col:first-child { border-right: none; }
  .related { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .stamp { grid-template-columns: 1fr 1fr; }
  .stamp .c:nth-child(2) { border-right: none; }
  header nav { display: none; }
  #tcpbar { display: none; }
  ol.flow li:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* видео: фасад до клика (плеер не грузится вместе со страницей) */
figure.video { border: 1px solid var(--lline); background: var(--lraised); max-width: 960px; margin: 18px 0 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
figure.video .vfacade, figure.video iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; display: block; }
figure.video .vfacade { position: relative; padding: 0; cursor: pointer; background: #16181D; overflow: hidden; }
figure.video .vfacade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
figure.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; }
figure.video figcaption { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
figure.video figcaption b { font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.35; }
figure.video .meta { font-family: var(--mono); font-size: 11px; color: var(--link2); }
figure.video .meta a { color: var(--link2); }
figure.video p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--link2); }
figure.video ol.tc { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.6; }
figure.video ol.tc span { font-family: var(--mono); color: var(--accent); margin-right: 6px; }
/* пример расчёта */
.calc { border: 1px solid var(--lline); border-top: 2px solid var(--accent); background: var(--lraised); padding: 18px 26px 20px; max-width: 900px; margin: 18px 0 24px; }
.calc .hd { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--link2); margin-bottom: 6px; }
.calc ol.steps { margin: 12px 0; padding-left: 22px; font-size: 14.5px; line-height: 1.6; }
.calc .res { font-family: var(--head); font-weight: 600; font-size: 16px; margin: 8px 0 0; }
@media (max-width: 880px) { figure.video { grid-template-columns: 1fr; } }
/* фигура-список: типы и элементы карточками */
ol.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
ol.cards li { border: 1px solid var(--lline); border-top: 2px solid var(--accent); background: var(--lbg); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
ol.cards b { font-weight: 600; font-size: 14.5px; }
ol.cards .a { font-size: 13px; color: var(--link2); line-height: 1.45; }
