/* Союз-Аполлон, редакция 03: домашняя космическая мастерская на чертёжном листе.
   Один файл стилей, без сборки. Шрифт заголовков — локальный Nunito (SIL OFL). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('assets/fonts/nunito-variable.ttf') format('truetype');
}

:root {
  --paper: #faf3e3;
  --surface: #fff9ed;
  --ink: #243e36;
  --muted: #526359;
  --blue: #285246;
  --red: #a13e26;
  --line: #c9cbb5;
  --orange: #ef996e;
  --yellow: #e8bb54;
  --mint: #d5dfc5;
  --grid: rgba(40, 82, 70, .075);
  --grid-strong: rgba(40, 82, 70, .13);
  --display: 'Nunito', 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --sans: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
  --max: 1240px;
  --radius: 6px;
  --shadow: 5px 5px 0 rgba(36, 62, 54, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--red); }
p + p { margin-top: 14px; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); }
code { font-size: .92em; overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; }
h1, h2 { font-weight: 900; line-height: 1.06; }
h2 { font-size: clamp(32px, 3.7vw, 50px); }
h3 { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
h1 em, h2 em { font-style: normal; color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 2px; }

.wrap { width: min(var(--max), calc(100% - 72px)); margin-inline: auto; }
.section { padding-block: 96px; }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--muted); }
.lead { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--surface); }
.svg-defs { position: absolute; overflow: hidden; }

/* Чертёжный шрифт: наклонные скруглённые прописные, как надписи рейсфедером. */
.gost, .eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow { color: var(--blue); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(161, 62, 38, .16); flex: none; }

/* Кнопки */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  font-family: var(--display); font-size: 16px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .16s, box-shadow .16s, background-color .16s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); color: var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.button.accent { background: var(--orange); color: var(--ink); }
.button.accent:hover { background: #f4aa83; }
.button.ink { background: var(--ink); color: var(--surface); }
.button.ink:hover { background: #34584a; color: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 12px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .01em; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; flex: none; }
.brand small { display: block; font-size: 10.5px; font-weight: 700; font-style: italic; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-top: 3px; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
.site-header nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { text-decoration: underline; }
.site-header .nav-start { gap: 10px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--yellow); font-family: var(--display); font-weight: 800; }
.site-header .nav-start:hover { background: #f1cd75; color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); font-family: var(--display); font-weight: 800; font-size: 14px; }

/* ЛИСТ 1. Первый экран на миллиметровке */
.hero {
  border-bottom: 2px solid var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: center top;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 56px; align-items: center; padding-block: 48px 56px; }
.hero h1 { font-size: clamp(38px, 3.85vw, 54px); letter-spacing: -.045em; }
.hero h1 em { white-space: nowrap; }
.hero-description { font-size: 17.5px; margin-top: 24px; max-width: 30em; }
.hero-promise { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.hero-secondary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; }
.hero-footnote { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.hero-clients { margin-top: 26px; padding-top: 18px; border-top: 1.5px dashed var(--ink); }
.hero-clients .gost { color: var(--blue); }
.hero-clients ul { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px 8px; }
.hero-clients li { font-family: var(--display); font-weight: 800; font-size: 14px; padding: 5px 11px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--surface); }
.hero-clients a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }

.hero-map { min-width: 0; }
.sheet { position: relative; background: var(--surface); border: 1.5px solid var(--ink); padding: 10px 10px 10px 24px; box-shadow: var(--shadow); }
.sheet::before { content: ''; position: absolute; left: 9px; top: 22%; bottom: 22%; width: 5px; border-block: 5px double var(--ink); opacity: .5; }
.sheet-frame { border: 2px solid var(--ink); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1.5px solid var(--ink); font-size: 11.5px; color: var(--blue); }
.sheet-no { flex: none; padding: 2px 10px; border: 1.5px solid var(--red); color: var(--red); border-radius: 3px; transform: rotate(-3deg); }
.ship-art { position: relative; aspect-ratio: 4 / 3; margin: 10px 14px 4px; }
.ship-art img { width: 100%; height: 100%; }
.module-highlights { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.module-highlights g { pointer-events: all; cursor: pointer; }
.module-highlights ellipse { fill: transparent; stroke: transparent; stroke-width: 4; stroke-dasharray: 14 10; transition: stroke .2s, fill .2s; }
.module-highlights g:hover ellipse { stroke: rgba(36, 62, 54, .45); }
.module-highlights g.is-active ellipse { stroke: var(--red); fill: rgba(232, 187, 84, .12); }
.map-controls { position: absolute; inset: 0; pointer-events: none; }
.map-pin {
  position: absolute; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 5px 12px 5px 6px;
  border: 1.5px solid var(--ink); border-radius: 99px; background: var(--surface);
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.15; white-space: nowrap;
  box-shadow: 0 3px 0 var(--ink);
  transition: background-color .16s, transform .16s;
}
.map-pin > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--yellow); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 12px; flex: none; }
.map-pin:hover { background: #ffe6a0; transform: translateY(-2px); }
.map-pin[aria-pressed=true] { background: var(--ink); color: var(--surface); box-shadow: 0 3px 0 var(--red); }
.pin-core { left: 42%; top: 1%; }
.pin-projects { right: -1%; top: 43%; }
.pin-system { left: -1%; top: 2%; }
.pin-port { left: 34%; top: 87%; }
.pin-archive { right: 0; top: 90%; }
.title-block { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr) auto auto; border-top: 2px solid var(--ink); font-size: 10.5px; letter-spacing: .05em; }
.title-block > span { padding: 6px 10px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: center; min-width: 0; }
.title-block .tb-key { color: var(--muted); font-weight: 600; }
.title-block .tb-title { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: flex-start; justify-content: center; font-size: 15px; font-weight: 900; letter-spacing: .02em; }
.title-block .tb-title small { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.title-block > span:nth-child(5), .title-block > span:nth-child(9) { border-right: 0; }
.title-block > span:nth-child(n+6), .title-block .tb-title { border-bottom: 0; }
.map-hint { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.readout { margin-top: 22px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fbefce; box-shadow: var(--shadow); }
.readout article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 20px; min-height: 124px; align-items: start; }
.readout-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); font-family: var(--mono); font-weight: 700; font-size: 15px; }
.readout h2 { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.readout p { font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.readout code { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--blue); font-weight: 700; }
html:not(.js) .map-controls { display: none; }
html:not(.js) .readout article + article { border-top: 1px dashed var(--ink); }
html:not(.js) .readout article { min-height: 0; }

/* Логарифмическая линейка */
.rule-strip {
  background-color: var(--yellow);
  border-bottom: 2px solid var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 14px, 100% 7px, 100% 14px, 100% 7px;
  background-position: 0 0, 0 0, 0 100%, 0 100%;
  background-repeat: no-repeat;
}
.rule-body { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 36px; padding-block: 30px; font-family: var(--display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.rule-body > span { display: flex; align-items: flex-start; gap: 12px; }
.rule-body b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-family: var(--mono); font-size: 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--surface); }
.rule-cursor { position: absolute; top: 0; bottom: 0; left: -12px; width: 48px; border-inline: 2px solid var(--ink); background: rgba(255, 249, 237, .34); border-radius: 3px; pointer-events: none; }
.rule-cursor::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--red); }

/* ЛИСТ 2. Зачем */
.idea { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 72px; }
.idea-head { position: relative; }
.sketch { color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); overflow: visible; }
.sketch .thin { stroke-width: 1; }
.sketch-compass { width: 124px; margin-top: 34px; color: var(--blue); transform: rotate(8deg); transform-origin: top center; }
.idea-body p:not(.lead) { margin-top: 18px; max-width: 36em; }
.reasons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.reasons li { padding: 26px 24px 28px; border-right: 1.5px solid var(--ink); }
.reasons li:last-child { border-right: 0; }
.reasons .sketch { width: 84px; height: 56px; color: var(--blue); margin-bottom: 18px; }
.reasons h3 { font-size: 19px; }
.reasons p { font-size: 15px; margin-top: 10px; color: var(--ink); }

/* ЛИСТ 3. Устройство */
.structure { background: var(--mint); border-block: 2px solid var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 44px; }
.section-heading > p { max-width: 32em; }
.spec-sheet { border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec thead th { font-family: var(--display); font-style: italic; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-align: left; color: var(--blue); padding: 9px 16px; border-bottom: 1.5px solid var(--ink); }
.spec td, .spec tbody th { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec td + td, .spec td + th, .spec th + td, .spec thead th + th { border-left: 1px solid var(--line); }
.spec tbody th { font-family: var(--display); font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.spec .pos { width: 58px; text-align: center; font-family: var(--mono); font-weight: 700; }
.spec td:nth-child(2) { white-space: nowrap; }
.spec td:nth-child(2) code { font-weight: 700; color: var(--blue); font-size: 15px; }
.spec td:nth-child(2) em { font-size: 14px; color: var(--muted); }
.structure-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.card { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); padding: 28px 28px 30px; }
.card .gost { color: var(--red); margin-bottom: 12px; }
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { font-size: 16px; }
.commands { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.commands div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding-block: 8px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.commands dt code { font-weight: 700; color: var(--blue); }

.laws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.35; }
.laws span { padding: 8px 10px; border: 1.5px dashed var(--ink); border-radius: 4px; text-align: center; }
.laws .law-core { grid-column: 1 / -1; border-style: solid; background: var(--mint); font-weight: 700; }

/* ЛИСТ 4. Пример */
.example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.example-copy > p:not(.eyebrow) { margin-top: 20px; }
.example-controls { display: grid; gap: 10px; margin-block: 26px 18px; }
.example-controls button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--display); font-weight: 800; font-size: 16px; }
.example-controls button > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 12px; flex: none; }
.example-controls button:hover { border-color: var(--ink); }
.example-controls button[aria-pressed=true] { background: var(--yellow); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.example-controls button[aria-pressed=true] > span { background: var(--surface); }
.document { border: 2px solid var(--ink); background: var(--surface); box-shadow: 8px 8px 0 #e2c977; transform: rotate(.8deg); }
.document-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; background: var(--ink); color: var(--paper); font-size: 11.5px; }
.example-page { padding: 28px 30px 30px; }
.js .example-panels { min-height: 440px; }
html:not(.js) .example-page + .example-page { border-top: 1.5px dashed var(--ink); }
.file-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--blue); font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.file-label span { color: var(--muted); font-weight: 400; }
.example-page h3 { font-size: 24px; margin-bottom: 16px; }
.example-page dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; font-size: 15px; }
.example-page dt, .example-page dd { padding-block: 9px; border-bottom: 1px dashed var(--line); }
.example-page dt { font-family: var(--display); font-weight: 800; color: var(--red); padding-right: 12px; }
.example-page .say { font-family: var(--mono); font-size: 14px; padding: 12px 14px; background: var(--mint); border-left: 4px solid var(--ink); margin-bottom: 16px; }
.example-page .honest { font-size: 14.5px; padding: 12px 14px; border: 1.5px dashed var(--red); border-radius: var(--radius); }
.document-stamp { display: inline-block; margin-top: 22px; padding: 5px 14px; border: 2px solid var(--red); border-radius: 4px; color: var(--red); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); }
.document-download { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; font-weight: 600; font-size: 15px; }

/* ЛИСТ 5. Подход */
.approach { background: var(--ink); color: var(--paper); padding-block: 96px; border-block: 2px solid var(--ink); }
.approach a:hover { color: var(--yellow); }
.approach .eyebrow { color: var(--yellow); }
.approach h2 em { color: var(--yellow); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 72px; }
.approach-lead { font-size: 18.5px; margin-top: 26px; max-width: 30em; }
.approach code { color: var(--yellow); }
.motto { margin-top: 30px; padding: 18px 22px; border: 1.5px solid var(--yellow); border-radius: var(--radius); position: relative; }
.motto::before { content: 'девиз мастерской'; position: absolute; top: -10px; left: 16px; padding-inline: 8px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-style: italic; font-weight: 700; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.motto p { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.approach-notes { display: grid; gap: 0; align-content: start; }
.approach-notes article { padding-block: 22px; border-top: 1.5px solid rgba(250, 243, 227, .4); }
.approach-notes article:last-child { border-bottom: 1.5px solid rgba(250, 243, 227, .4); }
.approach-notes h3 { color: var(--yellow); margin-bottom: 8px; }
.approach-notes p { font-size: 16px; }
.docking { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 72px; align-items: center; padding-top: 48px; border-top: 1.5px dashed rgba(250, 243, 227, .5); }
.sketch-docking { color: var(--paper); width: 100%; max-width: 520px; grid-row: 1; }
.docking-label { grid-row: 2; grid-column: 1; color: var(--yellow); font-size: 11px; text-align: center; max-width: 520px; }
.name-note { grid-row: 1 / 3; grid-column: 2; }
.name-note h3 { font-size: 26px; margin-bottom: 12px; }
.name-note p { font-size: 16.5px; }

/* ЛИСТ 6. Для кого */
.sketch-bureau { width: 100%; max-width: 760px; margin: 0 0 30px auto; color: var(--blue); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.people li { padding: 22px 22px 24px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 0 var(--ink); }
.people .gost { display: inline-block; color: var(--red); margin-bottom: 12px; padding: 2px 9px; border: 1.5px solid var(--red); border-radius: 3px; font-size: 11px; }
.people h3 { font-size: 19.5px; }
.people p { font-size: 15px; margin-top: 10px; }
.audience-note { margin-top: 30px; padding-left: 16px; border-left: 4px solid var(--yellow); max-width: 46em; font-size: 15.5px; color: var(--muted); }

/* ЛИСТ 7. Что работает сейчас */
.status { background: var(--surface); border-block: 2px solid var(--ink); }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }
.clients-sheet { border: 2px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.clients { counter-reset: client; }
.clients li { counter-increment: client; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.clients li::before { content: counter(client); grid-row: 1; font-family: var(--mono); font-weight: 700; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; }
.clients h3 { font-size: 20px; }
.clients p { grid-column: 2 / -1; font-size: 14.5px; line-height: 1.55; }
.stamp { justify-self: end; padding: 3px 11px; border-radius: 4px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: rotate(-2deg); }
.stamp.verified { border: 2px solid var(--blue); color: var(--surface); background: var(--blue); }
.stamp.claimed { border: 2px dashed var(--red); color: var(--red); }
.clients-legend { padding: 16px 20px 18px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.facts div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.facts dd { font-size: 15px; }
.not-this { margin-top: 26px; padding: 22px 24px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.not-this .gost { margin-bottom: 8px; }
.not-this h3 { margin-bottom: 12px; }
.not-this li { font-size: 15px; padding-left: 26px; position: relative; }
.not-this li + li { margin-top: 10px; }
.not-this li::before { content: '✕'; position: absolute; left: 0; top: 0; font-weight: 700; }

/* ЛИСТ 8. Начать */
.start { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 10px 10px; }
.start-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.start-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-block: 20px; border-top: 1.5px solid var(--ink); }
.start-steps li:last-child { border-bottom: 1.5px solid var(--ink); }
.start-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-family: var(--mono); font-weight: 700; font-size: 17px; }
.start-steps h3 { margin-bottom: 6px; }
.start-steps p { font-size: 15.5px; }
.start-steps .warn { margin-top: 10px; padding: 8px 12px; border: 1.5px dashed var(--red); border-radius: var(--radius); background: var(--surface); font-size: 14.5px; }
.prompt-sheet { border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
#starter-prompt { padding: 22px 22px 8px; font-size: 14.5px; line-height: 1.7; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 22px 22px; }
.copy-button { min-height: 46px; font-size: 14.5px; padding: 8px 18px; }
.start-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 22px; border-top: 1.5px solid var(--ink); background: var(--paper); }

/* ЛИСТ 9. Автор и ценности */
.author { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.author-main .lead { margin-top: 26px; }
.author-main > p:not(.eyebrow):not(.lead) { margin-top: 16px; max-width: 36em; }
.signature { margin-top: 30px; padding-top: 20px; border-top: 1.5px solid var(--ink); font-size: 16px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 6px; font-size: 15px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.author-side { display: grid; gap: 24px; }
.card.next ul { list-style: disc; padding-left: 20px; font-size: 15.5px; }
.card.next li + li { margin-top: 6px; }
.card .text-link { margin-top: 8px; }

.support {
  grid-column: 1 / -1;
  padding: clamp(18px, 4vw, 40px);
  border: 1.5px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.support h3 { font-size: clamp(24px, 3.4vw, 34px); }
.support > p { max-width: 64ch; margin-top: 10px; }
.wallets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.wallet { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); }
.wallet dt { font-weight: 800; }
.wallet dd { margin-top: 6px; }
.wallet code { display: block; color: var(--ink); }
.wallet-copy {
  display: inline-block;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.wallet-copy:hover { color: var(--red); }
.wallet-status { display: block; }

/* Подвал */
.site-footer { background: var(--mint); border-top: 2px solid var(--ink); padding-block: 40px 36px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 26px; border-bottom: 1.5px solid var(--ink); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 14.5px; font-weight: 600; }
.footer-top nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 24px; font-size: 14px; }
.footer-en { margin-top: 6px; color: var(--ink); }
.footer-en a { display: inline-block; padding-block: 4px; }
.sheet-stamp { display: grid; grid-template-columns: auto auto auto; border: 1.5px solid var(--ink); background: var(--paper); font-size: 10.5px; line-height: 1.5; }
.sheet-stamp > span { padding: 8px 14px; display: grid; align-items: center; }
.sheet-stamp > span + span { border-left: 1.5px solid var(--ink); }
.sheet-stamp > span:first-child { font-size: 17px; font-weight: 900; }

/* Руководство */
.guide-main { max-width: 860px; padding-block: 64px 96px; }
.guide-main h1 { font-size: clamp(36px, 5vw, 54px); }
.guide-main > p { margin-top: 20px; }
.guide-main h2 { font-size: clamp(27px, 3.4vw, 36px); margin-bottom: 20px; }
.guide-main h3 { margin-block: 26px 10px; }
.guide-main section { padding-top: 56px; }
.guide-main section > p + p, .guide-main section > ul + p, .guide-main section > ol + p, .guide-main section > .table-scroll + p { margin-top: 16px; }
.guide-main ol, .guide-main ul { padding-left: 24px; }
.guide-main ol { list-style: decimal; }
.guide-main ul { list-style: disc; }
.guide-main li + li { margin-top: 10px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; padding: 16px; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.guide-toc a { min-height: 44px; display: inline-flex; align-items: center; padding: 4px 12px; font-size: 14.5px; font-weight: 600; }
.guide-main pre { padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.6; margin-block: 12px; }
.guide-main pre.license-text { font-size: 12.5px; }
.guide-note { margin-top: 20px; padding: 16px 18px; border: 1.5px dashed var(--red); border-radius: var(--radius); background: var(--surface); }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { font-family: var(--display); font-style: italic; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); border-bottom: 1.5px solid var(--ink); }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; }

/* Адаптивность */
@media (max-width: 680px) {
  .wallets { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { gap: 36px; }
  .map-pin { font-size: 12px; min-height: 38px; padding: 4px 10px 4px 6px; }
  .title-block { grid-template-columns: auto minmax(0, 1.2fr) auto auto auto; }
  .title-block .tb-title { font-size: 13px; white-space: nowrap; }
  .map-pin > span { width: 22px; height: 22px; font-size: 11px; }
  .title-block .tb-title small { display: none; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons li:nth-child(2) { border-right: 0; }
  .reasons li:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea, .example, .author { gap: 40px 48px; }
  .approach-grid, .docking { column-gap: 48px; }
  .site-header nav { gap: 18px; font-size: 14px; }
}
@media (max-width: 880px) {
  html { scroll-padding-top: 84px; }
  .section, .approach { padding-block: 72px; }
  .menu-toggle { display: inline-flex; }
  .js .site-header nav { display: none; position: absolute; top: 100%; left: -28px; right: -28px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 18px; background: var(--paper); border-bottom: 2px solid var(--ink); }
  .js .site-header nav.is-open { display: flex; }
  .js .site-header nav a { min-height: 48px; border-bottom: 1px dashed var(--line); }
  .js .site-header .nav-start { margin-top: 12px; justify-content: center; border-bottom: 2px solid var(--ink); }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-header nav { flex-wrap: wrap; gap: 0 18px; }
  html:not(.js) .site-header { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; }
  .hero h1 { font-size: clamp(36px, 8.6vw, 54px); }
  .hero-map { max-width: 700px; width: 100%; margin-inline: auto; }
  .map-pin { min-height: 44px; font-size: 13.5px; padding: 6px 13px 6px 8px; }
  .idea, .example, .author, .start-layout, .status-grid, .approach-grid, .docking, .section-heading { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: 18px; margin-bottom: 34px; }
  .sketch-compass { position: absolute; right: 0; top: -6px; width: 70px; margin: 0; }
  .docking-label, .name-note { grid-column: 1; grid-row: auto; }
  .document { transform: none; }
  .structure-cards { grid-template-columns: minmax(0, 1fr); }
  .rule-body { flex-direction: column; padding-block: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 36px); }
  .section, .approach { padding-block: 60px; }
  h2 { font-size: clamp(29px, 8.4vw, 36px); }
  .lead { font-size: 20.5px; }
  .js .site-header nav { left: -18px; right: -18px; padding-inline: 18px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 9px; letter-spacing: .03em; }
  .header-inner { min-height: 66px; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .sheet { padding: 6px 6px 6px 14px; box-shadow: 3px 3px 0 rgba(36, 62, 54, .16); }
  .sheet::before { left: 4px; width: 4px; }
  .sheet-head { padding: 7px 10px; font-size: 10px; letter-spacing: .05em; }
  .ship-art { margin: 8px 6px 2px; }
  .map-controls { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 2px 12px; pointer-events: auto; }
  .map-pin { position: static; min-height: 44px; font-size: 13.5px; padding: 6px 13px 6px 8px; white-space: normal; text-align: left; }
  .map-pin > span { width: 24px; height: 24px; font-size: 12px; }
  .ship-art { aspect-ratio: auto; }
  .ship-art picture { aspect-ratio: 4 / 3; }
  .module-highlights { height: auto; aspect-ratio: 4 / 3; inset: 0 0 auto 0; }
  .title-block { grid-template-columns: auto minmax(0, 1fr); font-size: 9.5px; }
  .title-block .tb-title { grid-column: 1 / -1; grid-row: 1; border-bottom: 1px solid var(--ink); border-right: 0; font-size: 14px; }
  .title-block > span { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 5px 8px; }
  .title-block > span.tb-val { border-right: 0; }
  .title-block > span:nth-child(n+6) { border-bottom: 1px solid var(--ink); }
  .title-block > span:nth-last-child(-n+2) { border-bottom: 0; }
  .readout article { padding: 14px 14px 16px; gap: 12px; min-height: 150px; grid-template-columns: 30px minmax(0, 1fr); }
  .readout-number { width: 30px; height: 30px; font-size: 13px; }
  .readout h2 { font-size: 18px; }
  .rule-body { font-size: 14.5px; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .reasons li { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 22px 20px 24px; }
  .reasons li:last-child { border-bottom: 0; }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .spec, .spec tbody { display: block; }
  .spec tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; padding: 14px 14px 16px; border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .spec td, .spec tbody th { display: block; padding: 0; border: 0 !important; white-space: normal !important; }
  .spec .pos { grid-row: 1 / 4; width: auto; text-align: left; padding-top: 2px; }
  .spec td:nth-child(2), .spec tbody th, .spec td:nth-child(4) { grid-column: 2; }
  .spec td:nth-child(4) { font-size: 14.5px; margin-top: 4px; }
  .card { padding: 22px 20px 24px; }
  .card h3 { font-size: 21px; }
  .commands div { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  .example-page { padding: 22px 18px 24px; }
  .example-page h3 { font-size: 21px; }
  .example-page dl { grid-template-columns: minmax(0, 1fr); }
  .example-page dt { border-bottom: 0; padding-bottom: 0; }
  .example-page dd { padding-top: 2px; }
  .js .example-panels { min-height: 470px; }
  .document { box-shadow: 4px 4px 0 #e2c977; }
  .document-bar { padding: 10px 16px; font-size: 10px; }
  .motto p { font-size: 19.5px; }
  .name-note h3 { font-size: 23px; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sketch-bureau { margin-bottom: 22px; }
  .clients li { grid-template-columns: 26px minmax(0, 1fr); padding: 16px 14px; }
  .clients .stamp { grid-column: 2; justify-self: start; white-space: normal; }
  .clients p { grid-column: 1 / -1; }
  .clients-legend { padding-inline: 14px; }
  .not-this { padding: 20px 18px 22px; }
  .start-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .start-steps li > span { width: 34px; height: 34px; font-size: 15px; }
  #starter-prompt { padding: 18px 16px 6px; font-size: 13.5px; }
  .copy-row, .start-links { padding-inline: 16px; }
  .start-links .button { width: 100%; }
  .footer-top nav { gap: 0 22px; }
  .sheet-stamp { font-size: 9.5px; }
  .guide-main { padding-block: 44px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .button:active, .map-pin:hover { transform: none; }
}
@media print {
  .site-header { position: static; }
  .menu-toggle, .map-controls, .example-controls, .copy-row, .rule-cursor { display: none; }
  .hero, .start, .rule-strip { background-image: none; }
  .approach { background: none; color: var(--ink); }
  .approach h2 em, .approach .eyebrow, .approach-notes h3, .approach code { color: var(--ink); }
  .sketch-docking { color: var(--ink); }
  .readout article[hidden], .example-page[hidden] { display: grid !important; }
  .example-page[hidden] { display: block !important; }
  .document { transform: none; }
}
