@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-d1b233760bed30.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-f9c74283b1693b.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-ae5fc1eadb0588.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-7e3d7e3c7de8e8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-ed3206e8ede4a9.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-c70f6b078a0944.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-203ce92810c0a1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-eb889034c0832c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-1bae0908c11906.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-9e85680333d8d8.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-e10faf8e1b9cb1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-d96b052a3aa292.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-fd27c78bd6d747.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-5a7ef071858de7.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-708fa68ec35090.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/font-0532e32e8b619b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-621a811c9397c8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-10fd3c6f16a5e4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-bdc97f6f0c1cdf.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-a1981c57f2b7cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-621a811c9397c8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-10fd3c6f16a5e4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-bdc97f6f0c1cdf.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-a1981c57f2b7cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-621a811c9397c8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-10fd3c6f16a5e4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-bdc97f6f0c1cdf.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-a1981c57f2b7cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-621a811c9397c8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-10fd3c6f16a5e4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-bdc97f6f0c1cdf.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-a1981c57f2b7cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   ARCHI-M · Базовый слой: токены, типографика, шапка, меню, поиск, штамп
   ========================================================================== */

:root {
  /* Палитра «калька и красный карандаш» */
  --paper: #F3EFE7;      /* калька */
  --paper-2: #E9E3D6;    /* ватман в тени */
  --paper-3: #DDD5C5;
  --ink: #1B1D1A;        /* графит */
  --ink-2: #44463F;
  --ink-3: #7C7C72;
  --line: #CBC3B3;
  --line-soft: #DCD5C7;
  --red: #D9431E;        /* красный карандаш */
  --red-ink: #B5361A;    /* для текста на светлом — контраст AA */
  --blue: #23405F;       /* синька */
  --moss: #5B6448;       /* земля */

  --f-serif: "Literata", "PT Serif", Georgia, serif;
  --f-sans: "Onest", "Golos Text", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;

  --wrap: 1320px;
  --pad: 32px;
  --gap: 24px;
  --hdr-h: 64px;

  --t-display: clamp(2.5rem, 1.35rem + 4.4vw, 5.4rem);
  --t-h1: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem);
  --t-h2: clamp(1.65rem, 1.2rem + 1.6vw, 2.6rem);
  --t-h3: clamp(1.2rem, 1.05rem + .5vw, 1.5rem);
}

@media (max-width: 820px) { :root { --pad: 20px; --gap: 16px; --hdr-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }

[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Типографические роли ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mono--plain { text-transform: none; letter-spacing: .01em; }
.serif { font-family: var(--f-serif); }
.red { color: var(--red-ink); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.kicker b { color: var(--red-ink); font-weight: 500; }
.kicker::before {
  content: ""; width: 18px; height: 9px;
  border-left: 1.5px solid var(--red); border-right: 1.5px solid var(--red);
  background: linear-gradient(var(--red), var(--red)) center / 100% 1.5px no-repeat;
}

.hl {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hl a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s ease; }
.hl a:hover, a:hover > .hl, a:hover .hl-u { background-size: 100% 2px; }
.hl-u { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s ease; }
.hl--xl { font-size: var(--t-display); line-height: .98; letter-spacing: -.025em; }
.hl--l { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.02em; }
.hl--m { font-size: var(--t-h2); }
.hl--s { font-size: var(--t-h3); line-height: 1.18; }
.hl--xs { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.005em; }

.deck { font-family: var(--f-serif); font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); margin: 0; font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.meta span + span::before { content: "·"; margin-right: 16px; color: var(--line); }

/* Размерная линия — фирменный разделитель */
.dimline {
  position: relative; height: 18px; margin: 0;
  border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
}
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); }
.dimline > span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper); padding: 0 10px; white-space: nowrap;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}
.dimline--red { border-color: var(--red); }
.dimline--red::before { border-color: var(--red); }
.dimline--red > span { color: var(--red-ink); }

/* Линейка */
.ruler {
  height: 22px; border-bottom: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100px) 0 100% / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 100% / 100% 13px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10px) 0 100% / 100% 7px no-repeat;
}

/* Миллиметровка — только в служебных блоках, не под текстом статьи */
.mm {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(217,67,30,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,67,30,.16) 1px, transparent 1px),
    linear-gradient(rgba(217,67,30,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,67,30,.07) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--f-sans); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.arrow { display: inline-block; transition: transform .25s; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 0;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  background: transparent; transition: border-color .2s, color .2s, background .2s;
}
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Фото и чертёжный слой ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background-color: var(--paper-3);
  background-image:
    linear-gradient(rgba(27,29,26,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,29,26,.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  /* Единая обработка: тихий дневной свет, приглушённый цвет, тёплая калька */
  filter: saturate(.72) contrast(1.04) sepia(.1) brightness(1.01);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
}
a:hover .ph img { transform: scale(1.025); filter: saturate(.85) contrast(1.05) sepia(.06); }
.ph.is-failed img { opacity: 0; }
.ph.is-failed::after {
  content: "фото"; position: absolute; inset: auto auto 10px 12px;
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; color: var(--ink-3);
}
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-21x9 { aspect-ratio: 21 / 9; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-5x4 { aspect-ratio: 5 / 4; }

/* Пометки красным карандашом поверх фото */
.ann { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; display: flex; align-items: center; gap: 8px;
  transform: translate(-13px, -13px);
}
.pin i {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-style: normal;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  box-shadow: 0 0 0 4px rgba(243,239,231,.55);
}
.pin span {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 3px 7px; white-space: nowrap;
}
.dim {
  position: absolute; height: 14px;
  border-left: 1.5px solid #fff; border-right: 1.5px solid #fff;
}
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid #fff; }
.dim span {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .7rem; color: #fff; letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0,0,0,.45); white-space: nowrap; padding-bottom: 2px;
}
.dim--v { width: 14px; height: auto; border: 0; border-top: 1.5px solid #fff; border-bottom: 1.5px solid #fff; }
.dim--v::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px solid #fff; }
.dim--v span { left: 100%; bottom: auto; top: 50%; transform: translateY(-50%); padding: 0 0 0 6px; }
.dim--red { border-color: var(--red); }
.dim--red::before { border-color: var(--red); }

/* Метки-ориентиры: слова и стрелки вместо измерений */
.cap {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding-top: 12px;
  font-size: .86rem; line-height: 1.45; color: var(--ink-2);
}
.cap .mono { color: var(--ink-3); }
.cap ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cap ol li { display: flex; gap: 6px; }
.cap ol b { color: var(--red-ink); font-family: var(--f-mono); font-weight: 500; }

@media (max-width: 820px) {
  .pin span { display: none; }
  .ann .hide-m { display: none; }
  .cap { grid-template-columns: 1fr; }
}

/* ---------- Верхняя строка ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 34px; color: var(--ink-2); }
.topbar__in .mono { font-size: .68rem; }
.topbar__in a:hover { color: var(--red-ink); }
@media (max-width: 820px) { .topbar__mid { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,239,231,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; transition: opacity .3s; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word {
  display: inline-flex; align-items: center;
  font-family: var(--f-serif); font-weight: 700; font-size: 1.32rem; letter-spacing: .02em; line-height: 1;
}
.brand__dash {
  position: relative; display: inline-block; width: 22px; height: 10px; margin: 0 4px;
  border-left: 1.5px solid var(--red); border-right: 1.5px solid var(--red);
}
.brand__dash::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -.75px; border-top: 1.5px solid var(--red); }
.is-home .hdr .brand { opacity: 0; pointer-events: none; }
.is-home.is-scrolled .hdr .brand { opacity: 1; pointer-events: auto; }

.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 7px;
  height: var(--hdr-h); padding: 0 12px; align-items: center;
  font-weight: 600; font-size: .98rem;
}
.nav__code { font-family: var(--f-mono); font-size: .66rem; font-weight: 500; color: var(--ink-3); }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] .nav__code { color: var(--red-ink); }
.nav__sep { width: 1px; background: var(--line); margin: 18px 8px; }
.nav__about { font-weight: 500 !important; color: var(--ink-2); }

.hdr__tools { display: flex; align-items: center; gap: 10px; }
.btn-search {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 8px 0 12px; min-width: 210px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-3); font-size: .9rem; transition: border-color .2s;
}
.btn-search:hover { border-color: var(--ink); color: var(--ink); }
.btn-search svg { width: 17px; height: 17px; flex: none; color: var(--ink); }
.btn-search span { margin-right: auto; }
kbd {
  font-family: var(--f-mono); font-size: .68rem; line-height: 1;
  padding: 4px 6px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
}
.btn-menu { display: none; width: 44px; height: 44px; position: relative; }
.btn-menu b {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform .3s, top .3s, opacity .2s;
}
.btn-menu b:nth-child(1) { top: 16px; }
.btn-menu b:nth-child(2) { top: 26px; right: 18px; background: var(--red); }
.btn-menu[aria-expanded="true"] b:nth-child(1) { top: 21px; transform: rotate(45deg); }
.btn-menu[aria-expanded="true"] b:nth-child(2) { top: 21px; right: 11px; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 1100px) {
  .btn-search { min-width: 0; }
  .btn-search span, .btn-search kbd { display: none; }
  .btn-search { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .nav a { padding: 0 9px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .btn-menu { display: block; }
  .hdr__in { justify-content: space-between; }
  .is-home .hdr .brand { opacity: 1; pointer-events: auto; }
}

/* Полоска прогресса чтения */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--red); transform-origin: left; transform: scaleX(0);
}

/* ---------- Мобильное меню ---------- */
.menu {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 39;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--ink);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s;
}
.menu.is-open { opacity: 1; transform: none; }
.menu[hidden] { display: none; }
.menu__in { padding: 20px var(--pad) 40px; display: grid; gap: 28px; }
.menu__find {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; width: 100%;
  border: 1.5px solid var(--ink); color: var(--ink-3); text-align: left; font-size: 1.02rem;
}
.menu__find svg { width: 20px; height: 20px; color: var(--ink); }
.menu__sheets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.menu__sheets li { border-bottom: 1px solid var(--line); }
.menu__sheets a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 4px 10px; padding: 16px 0; }
.menu__sheets .mono { color: var(--red-ink); }
.menu__sheets strong { font-family: var(--f-serif); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.menu__sheets small { grid-column: 2 / 4; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.menu__sheets em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }
.menu__more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu__more a { display: block; padding: 14px; border: 1px solid var(--line); font-weight: 600; }
.menu__note { font-size: .82rem; color: var(--ink-3); }
@media (min-width: 901px) { .menu { display: none !important; } }

/* ---------- Поиск ---------- */
.search[role="dialog"] {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(27,29,26,.38);
  opacity: 0; transition: opacity .2s;
}
.search[role="dialog"].is-open { opacity: 1; }
.search[role="dialog"][hidden] { display: none; }
.search__panel {
  background: var(--paper); border-bottom: 1px solid var(--ink);
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-14px); transition: transform .25s;
}
.search[role="dialog"].is-open .search__panel { transform: none; }
.search__in { padding-top: 22px; padding-bottom: 34px; }
.search__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--ink-3); }
.search__close { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); padding: 6px 0; }
.search__close:hover { color: var(--red-ink); }
.search__field { position: relative; border-bottom: 2px solid var(--ink); }
.search__field input {
  width: 100%; border: 0; background: transparent; outline: none;
  font-family: var(--f-serif); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.2rem); font-weight: 500; letter-spacing: -.02em;
  padding: 10px 0 12px; -webkit-appearance: none; appearance: none;
}
.search__field input::placeholder { color: var(--line); }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 6px; }
.search__filters .mono { color: var(--ink-3); margin-right: 6px; font-size: .68rem; }
.search__status { margin: 18px 0 8px; color: var(--ink-3); font-size: .7rem; }
.search__res { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.search__res li { border-bottom: 1px solid var(--line); }
.search__res a { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; }
.search__res a:hover .hl-u, .search__res a:focus .hl-u { background-size: 100% 2px; }
.search__res .mono { color: var(--red-ink); font-size: .7rem; }
.search__res .t { font-family: var(--f-serif); font-size: 1.18rem; font-weight: 500; line-height: 1.3; }
.search__res em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.search__res mark { background: rgba(217,67,30,.18); color: inherit; padding: 0 1px; }
.search__empty { padding: 26px 0; color: var(--ink-2); }
.search__empty b { font-family: var(--f-serif); font-size: 1.3rem; display: block; margin-bottom: 6px; color: var(--ink); }
@media (max-width: 560px) {
  .search__panel { height: 100%; }
  .search__res a { grid-template-columns: 1fr; gap: 4px; }
  .search__res em { order: 3; }
}

/* ---------- Подвал-штамп ---------- */
.foot { margin-top: 110px; background: var(--ink); color: var(--paper); }
.foot a:hover { color: #F08A68; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px var(--gap); padding: 64px 0 48px; }
.foot__brand p { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.3; margin: 18px 0 0; max-width: 18ch; font-weight: 400; }
.foot__brand .brand__word { color: var(--paper); font-size: 1.6rem; }
.foot__col h3 { margin: 0 0 14px; color: #9C9C90; font-weight: 500; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__col li a { display: inline-flex; gap: 8px; align-items: baseline; }
.foot__col li .mono { color: #F08A68; font-size: .66rem; }

.stamp {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  border: 1.5px solid var(--paper); font-size: .86rem;
}
.stamp > div { padding: 10px 14px; border-right: 1px solid rgba(243,239,231,.4); border-bottom: 1px solid rgba(243,239,231,.4); }
.stamp > div:nth-child(5n) { border-right: 0; }
.stamp > div:nth-last-child(-n+5) { border-bottom: 0; }
.stamp .mono { display: block; color: #9C9C90; font-size: .62rem; margin-bottom: 3px; }
.stamp strong { font-weight: 600; }
.stamp a, .stamp button { font-weight: 600; text-decoration: underline; text-decoration-color: #F08A68; text-underline-offset: 3px; }
.stamp > div { min-width: 0; overflow-wrap: anywhere; }
.foot__legal { padding: 22px 0 40px; color: #9C9C90; font-size: .8rem; line-height: 1.55; max-width: 92ch; margin: 0; }

@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .stamp { grid-template-columns: 1fr 1fr; }
  .stamp > div { border-right: 1px solid rgba(243,239,231,.4) !important; border-bottom: 1px solid rgba(243,239,231,.4) !important; }
  .stamp > div:nth-child(2n) { border-right: 0 !important; }
  .stamp > div:first-child { grid-column: 1 / -1; border-right: 0 !important; }
}
@media (max-width: 560px) {
  .foot { margin-top: 72px; }
  .foot__top { grid-template-columns: 1fr; padding-top: 44px; }
}

/* ---------- Журнал под рукой: RSS и новые материалы ---------- */
.hand { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px 48px; padding: 40px; border: 1.5px solid var(--ink); }
.hand__txt p { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }
.hand__feed { display: grid; gap: 12px; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--ink); }
.hand__feed .mono { color: var(--ink-3); }
.hand__feed code {
  display: block; font-family: var(--f-mono); font-size: 1.15rem; font-weight: 500; color: var(--ink);
  padding: 10px 12px; background: var(--paper); border: 1px dashed var(--ink-3); overflow-wrap: anywhere;
}
.hand__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hand__btns .btn { height: 44px; }
.hand__how { grid-column: 1 / -1; list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; counter-reset: h; }
.hand__how li { counter-increment: h; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .94rem; line-height: 1.45; color: var(--ink-2); }
.hand__how li::before { content: counter(h); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .7rem; }
.hand__new { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 6px 24px; }
.hand__new > .mono { color: var(--red-ink); padding-top: 10px; }
.hand__new ol { list-style: none; margin: 0; padding: 0; }
.hand__new li + li { border-top: 1px solid var(--line); }
.hand__new li a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; }
.hand__new li .mono { color: var(--red-ink); font-size: .68rem; }
.hand__new li .t { font-family: var(--f-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.hand__new li em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.hand__new li a:hover .hl-u { background-size: 100% 2px; }
@media (max-width: 820px) {
  .hand { grid-template-columns: 1fr; padding: 24px 20px; }
  .hand__how { grid-template-columns: 1fr; }
  .hand__new { grid-template-columns: 1fr; }
  .hand__new > .mono { padding-top: 0; }
  .hand__new li a { grid-template-columns: 46px 1fr; }
  .hand__new li em { display: none; }
  .hand__btns .btn { flex: 1 1 100%; justify-content: center; }
}

.sec { margin-top: 96px; }
@media (max-width: 820px) { .sec { margin-top: 68px; } }

/* Секционные заголовки «лист» */
.sheet-h {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 30px;
}
.sheet-h__no { font-family: var(--f-mono); font-size: .78rem; color: var(--red-ink); padding-bottom: 8px; }
.sheet-h h2 { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); letter-spacing: -.025em; line-height: .95; }
.sheet-h p { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 40ch; text-align: right; padding-bottom: 6px; }
.sheet-h a.more { font-weight: 600; white-space: nowrap; padding-bottom: 6px; }
.sheet-h a.more:hover { color: var(--red-ink); }
@media (max-width: 820px) {
  .sheet-h { grid-template-columns: auto 1fr; }
  .sheet-h p { grid-column: 1 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Caption fills its row after removal of the numbered label. */
.cap > :only-child { grid-column: 1 / -1; }

/* ARCHI-M · Главная: «комплект чертежей» — у каждого листа свой тип чертежа */

/* ---------- Титул ---------- */
.mast { padding-top: 26px; }
.mast__top { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: .68rem; }
.mast__word { margin: 14px 0 0; line-height: 0; }
.mast__word svg { width: 100%; height: auto; overflow: visible; }
.mast__word text { font-family: var(--f-serif); font-weight: 700; fill: var(--ink); }
.mast__sub {
  display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end;
  margin-top: 18px; padding: 16px 0 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.mast__sub p { margin: 0; font-family: var(--f-serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); line-height: 1.3; max-width: 40ch; }
.mast__sheets { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.mast__sheets a { display: grid; padding: 4px 18px; border-left: 1px solid var(--line); }
.mast__sheets a:hover strong { color: var(--red-ink); }
.mast__sheets .mono { color: var(--red-ink); font-size: .64rem; }
.mast__sheets strong { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 600; }
@media (max-width: 900px) {
  .mast { padding-top: 16px; }
  .mast__top span:nth-child(3) { display: none; }
  .mast__sub { grid-template-columns: 1fr; }
  .mast__sheets { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 10px; }
  .mast__sheets a { padding: 2px 10px; }
  .mast__sheets li:first-child a { border-left: 0; padding-left: 0; }
  .mast__sheets strong { font-size: 1.02rem; }
}

@media (max-width: 380px) {
  .mast__top { font-size: .6rem; }
  .mast__sheets a { padding: 2px 6px; }
  .mast__sheets .mono { font-size: .56rem; }
  .mast__sheets strong { font-size: .92rem; }
}

/* ---------- Главный материал ---------- */
.lead { padding-top: 40px; }
.lead__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.lead__title { grid-column: 1 / 9; }
.lead__title .hl { margin-top: 16px; }
.lead__aside { grid-column: 9 / 13; display: grid; gap: 16px; padding-bottom: 10px; }
.lead__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 32px; }
.lead__fig { grid-column: 1 / 9; }
.expl { grid-column: 9 / 13; align-self: start; border: 1.5px solid var(--ink); }
.expl__h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.expl__h h2 { margin: 0; font-size: .72rem; }
.expl__h span { font-size: .64rem; color: #A9A99D; }
.expl ol { list-style: none; margin: 0; padding: 0; }
.expl li + li { border-top: 1px solid var(--line); }
.expl a { display: grid; grid-template-columns: 50px 1fr 30px; gap: 10px; padding: 12px 14px; align-items: baseline; transition: background .2s; }
.expl a:hover { background: var(--paper-2); }
.expl a:hover .t { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.expl .no { font-family: var(--f-mono); font-size: .68rem; color: var(--red-ink); }
.expl .t { font-family: var(--f-serif); font-size: 1.02rem; line-height: 1.3; font-weight: 500; }
.expl .m { font-family: var(--f-mono); font-size: .72rem; text-align: right; color: var(--ink-2); }
.expl__foot { margin: 0; padding: 10px 14px; border-top: 1.5px solid var(--ink); font-size: .78rem; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 1000px) {
  .lead__title, .lead__aside, .lead__fig, .expl { grid-column: 1 / -1; }
  .lead__aside { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .lead { padding-top: 26px; }
  .lead__body { margin-top: 22px; }
  .lead__fig { margin: 0 calc(var(--pad) * -1); }
  .lead__fig .cap { padding-left: var(--pad); padding-right: var(--pad); }
  .expl a { grid-template-columns: 46px 1fr 26px; padding: 12px; }
}

/* ---------- Рулетка выпуска ---------- */
.tape { margin-top: 72px; }
.tape__in { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tape__in .mono { color: var(--red-ink); padding-top: 4px; }
.tape__in p { margin: 0; font-family: var(--f-serif); font-size: 1.12rem; line-height: 1.55; }
.tape__in p b { font-weight: 600; }
.tape__in p i { font-style: normal; color: var(--red); padding: 0 6px; }
@media (max-width: 820px) { .tape { margin-top: 52px; } .tape__in { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Лист 01 · Адрес: шкала расстояний ---------- */
.adres { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.adres__lead { grid-column: 1 / 6; display: grid; gap: 16px; align-content: start; }
.adres__lead .hl { margin-top: 2px; }
.route { grid-column: 7 / 13; }
.route__intro { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; max-width: 52ch; }
.route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route ol::before { content: ""; position: absolute; left: 78px; top: 14px; bottom: 14px; width: 3px; background: var(--ink); }
.route li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 36px; padding: 0 0 26px; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: 72px; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); box-sizing: border-box;
}
.route li:first-child::before { background: var(--red); border-color: var(--red); }
.route li:hover::before { background: var(--red); border-color: var(--red); }
.route__d { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; text-align: right; padding-top: 3px; white-space: nowrap; }
.route__d small { display: block; font-size: .64rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 400; }
.route a { display: grid; gap: 6px; }
.route .hl { font-size: 1.28rem; }
@media (max-width: 1000px) {
  .adres__lead { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px var(--gap); }
  .adres__lead .ph { grid-row: span 4; }
  .route { grid-column: 1 / -1; margin-top: 24px; }
}
@media (max-width: 640px) {
  .adres__lead { grid-template-columns: 1fr; }
  .adres__lead .ph { grid-row: auto; aspect-ratio: 3 / 2; }
  .route ol::before { left: 62px; }
  .route li { grid-template-columns: 50px 1fr; gap: 30px; }
  .route li::before { left: 56px; }
  .route .hl { font-size: 1.12rem; }
}

/* ---------- Лист 02 · План: план квартиры ---------- */
.s-plan { padding: 64px 0 72px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.s-plan .sheet-h { border-color: var(--ink); }
.s-plan .sheet-h p { background: var(--paper-2); }
.plan { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.plan__drawing { background: var(--paper); border: 1.5px solid var(--ink); padding: 18px 18px 10px; position: relative; }
.plan__drawing svg { width: 100%; height: auto; display: block; }
.plan__label { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .66rem; }
.room { fill: transparent; transition: fill .25s; cursor: pointer; }
.room.is-hot, a:focus .room { fill: rgba(217,67,30,.16); }
.room-t { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-2); letter-spacing: .03em; pointer-events: none; }
.room-n { font-family: var(--f-mono); font-size: 11px; fill: #fff; font-weight: 500; pointer-events: none; }
.room-c { fill: var(--ink); transition: fill .25s; }
.is-hot .room-c, .room-g.is-hot .room-c { fill: var(--red); }
.plan__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plan__list li { border-bottom: 1px solid var(--line); background: var(--paper); }
.plan__list a { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 14px 14px 14px 10px; transition: background .2s; }
.plan__list a.is-hot { background: #fff; }
.plan__list a.is-hot .hl-u { background-size: 100% 2px; }
.plan__list i {
  font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .7rem; transform: translateY(-2px);
}
.plan__list a.is-hot i { background: var(--red); }
.plan__list .room-name { font-family: var(--f-mono); font-size: .66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; grid-column: 2; }
.plan__list .t { font-family: var(--f-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25; grid-column: 2; }
.plan__list em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); grid-row: 1 / 3; grid-column: 3; align-self: center; }
@media (max-width: 1000px) {
  .plan { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .s-plan { padding: 48px 0 52px; }
  .plan__drawing { margin: 0 calc(var(--pad) * -1); border-left: 0; border-right: 0; padding: 12px 10px 8px; }
  .plan__list em { display: none; }
  .plan__list a { grid-template-columns: 30px 1fr; }
}

/* ---------- Лист 03 · Земля: разрез участка ---------- */
.zemlya__pano { position: relative; }
.zemlya__pano .ph { aspect-ratio: 21 / 8; }
.zemlya__card {
  position: static; width: auto;
  background: var(--paper); padding: 20px 0 0; display: grid; gap: 14px;
}
.zemlya__card .hl { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); }
.section-cut { position: relative; margin-top: 34px; }
.section-cut svg { width: 100%; height: 120px; display: block; }
.section-cut__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: 6px; }
.cut { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--ink); }
.cut .mono { color: var(--moss); font-size: .66rem; }
.cut .mono b { color: var(--red-ink); font-weight: 500; }
.cut .hl { font-size: 1.12rem; line-height: 1.25; }
.cut p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1000px) {
  .zemlya__pano .ph { aspect-ratio: 16 / 9; }
  .zemlya__card { position: static; width: auto; padding: 20px 0 0; }
  .section-cut svg { height: 80px; }
  .section-cut__cols { grid-template-columns: 1fr 1fr; gap: 26px var(--gap); }
}
@media (max-width: 560px) {
  .zemlya__pano .ph { margin: 0 calc(var(--pad) * -1); aspect-ratio: 4 / 3; }
  .section-cut svg { height: 60px; }
  .section-cut__cols { grid-template-columns: 1fr; gap: 0; }
  .cut { grid-template-columns: 74px 1fr; gap: 4px 14px; padding: 14px 0; }
  .cut .mono { grid-row: span 2; padding-top: 4px; }
  .cut p { display: none; }
}

/* ---------- Лист 04 · Сделка: ведомость на синьке ---------- */
.s-deal {
  background-color: var(--blue); color: #EEF1F4;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 64px 0 76px;
}
.s-deal .sheet-h { border-color: #EEF1F4; }
.s-deal .sheet-h__no { color: #FF9B78; }
.s-deal .sheet-h p { color: #C7D2DD; }
.s-deal .sheet-h a.more:hover { color: #FF9B78; }
.deal { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.deal__lead { display: grid; gap: 16px; align-content: start; }
.deal__lead .kicker { color: #C7D2DD; }
.deal__lead .kicker b { color: #FF9B78; }
.deal__lead .deck { color: #C7D2DD; }
.deal__lead .meta { color: #9FB0C2; }
.deal__lead .hl a { background-image: linear-gradient(#FF9B78, #FF9B78); }
.deal__sum { margin-top: 10px; border: 1px solid rgba(238,241,244,.5); padding: 16px 18px; font-size: .9rem; color: #C7D2DD; line-height: 1.5; }
.deal__sum b { display: block; color: #fff; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.ved { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ved caption { text-align: left; padding-bottom: 12px; color: #9FB0C2; }
.ved th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #9FB0C2; padding: 10px 12px; border-top: 1.5px solid #EEF1F4; border-bottom: 1px solid rgba(238,241,244,.5); }
.ved td { padding: 14px 12px; border-bottom: 1px solid rgba(238,241,244,.22); vertical-align: top; line-height: 1.4; }
.ved tr:hover td { background: rgba(255,255,255,.05); }
.ved td:first-child { font-family: var(--f-mono); color: #FF9B78; width: 44px; }
.ved td.step { font-weight: 600; color: #fff; width: 22%; }
.ved td.doc { color: #C7D2DD; font-size: .88rem; }
.ved td a { font-family: var(--f-serif); font-weight: 500; font-size: 1.02rem; color: #fff; }
.ved td a:hover { text-decoration: underline; text-decoration-color: #FF9B78; text-underline-offset: 3px; }
.ved td a small { display: block; font-family: var(--f-mono); font-size: .64rem; color: #9FB0C2; margin-top: 3px; letter-spacing: .04em; }
@media (max-width: 1000px) { .deal { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 700px) {
  .s-deal { padding: 48px 0 56px; }
  .ved thead { display: none; }
  .ved, .ved tbody, .ved tr, .ved td { display: block; width: auto !important; }
  .ved tr { display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-bottom: 1px solid rgba(238,241,244,.22); }
  .ved td { padding: 0 0 6px; border: 0; }
  .ved td:first-child { grid-row: span 3; }
  .ved caption { display: block; }
}

/* ---------- Словарь и вопрос ---------- */
.lex { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.lex__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.term { padding: 20px 0 22px; border-top: 1px solid var(--ink); }
.term dt { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.term dt small { display: block; font-family: var(--f-mono); font-size: .66rem; font-weight: 400; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }
.term dd { margin: 10px 0 0; color: var(--ink-2); font-family: var(--f-serif); font-size: 1.02rem; line-height: 1.55; }
.term dd a { color: var(--red-ink); font-family: var(--f-sans); font-size: .88rem; font-weight: 600; display: inline-block; margin-top: 6px; }
.ask { align-self: start; padding: 28px; display: grid; gap: 14px; }
.ask h3 { margin: 0; font-family: var(--f-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.ask p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ask small { color: var(--ink-3); font-size: .78rem; line-height: 1.45; }
@media (max-width: 1000px) { .lex { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .lex__list { grid-template-columns: 1fr; } .ask { padding: 22px 18px; } }

/* ---------- Медленное чтение ---------- */
.slow { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.slow__big { grid-column: 1 / 7; display: grid; gap: 16px; align-content: start; }
.slow__side { grid-column: 8 / 13; display: grid; gap: 34px; align-content: start; }
.slow__item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.slow__item:last-child { border-bottom: 0; padding-bottom: 0; }
.slow__item div { display: grid; gap: 10px; }
.slow__quote { margin: 0; padding: 20px 0 0; border-top: 2px solid var(--ink); font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.slow__quote span { display: block; font-style: normal; margin-top: 10px; }
@media (max-width: 1000px) {
  .slow__big, .slow__side { grid-column: 1 / -1; }
  .slow__side { margin-top: 18px; }
}
@media (max-width: 560px) { .slow__item { grid-template-columns: 1fr; } .slow__item .ph { aspect-ratio: 16 / 9; } }

/* ARCHI-M · Внутренние страницы: статья, рубрика, «О журнале» */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--ink-3); font-size: .68rem; }
.crumbs a:hover { color: var(--red-ink); }
.crumbs span[aria-hidden] { color: var(--line); }

/* ==========================================================================
   СТАТЬЯ
   ========================================================================== */
.a-head { padding-top: 34px; }
.a-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 30px; }
.a-head__main { grid-column: 1 / 10; }
.a-head__main .hl { margin-top: 14px; }
.a-head__main .deck { margin-top: 22px; max-width: 46ch; font-size: clamp(1.12rem, 1rem + .5vw, 1.42rem); }
.a-stamp { grid-column: 10 / 13; align-self: end; border: 1.5px solid var(--ink); font-size: .86rem; }
.a-stamp div { display: grid; grid-template-columns: 88px 1fr; border-bottom: 1px solid var(--line); }
.a-stamp div:last-child { border-bottom: 0; }
.a-stamp .mono { padding: 8px 10px; border-right: 1px solid var(--line); color: var(--ink-3); font-size: .62rem; align-self: stretch; display: flex; align-items: center; }
.a-stamp b { padding: 8px 10px; font-weight: 600; }
.a-stamp div:first-child { background: var(--ink); color: var(--paper); }
.a-stamp div:first-child .mono { color: #A9A99D; border-color: #44463F; }
.a-by { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { height: 34px; padding: 0 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: .82rem; font-weight: 500; }
.share a:hover, .share button:hover { border-color: var(--ink); }
@media (max-width: 1000px) {
  .a-head__main, .a-stamp { grid-column: 1 / -1; }
  .a-stamp { display: grid; grid-template-columns: repeat(2, 1fr); }
  .a-stamp div:first-child { grid-column: 1 / -1; }
  .a-stamp div { border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .a-head { padding-top: 20px; }
  .a-head__grid { margin-top: 18px; }
  .a-stamp { grid-template-columns: 1fr; }
  .a-stamp div { grid-template-columns: 96px 1fr; border-right: 0; }
}

.a-cover { margin-top: 34px; }
@media (max-width: 560px) {
  .a-cover { padding: 0; }
  .a-cover .cap { padding-left: var(--pad); padding-right: var(--pad); }
}

.a-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 56px; }

/* Оглавление-экспликация */
.toc { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; }
.toc__toggle { display: flex; justify-content: space-between; width: 100%; padding: 0 0 10px; border-bottom: 2px solid var(--ink); text-align: left; cursor: default; }
.toc__toggle svg { display: none; width: 14px; height: 14px; transition: transform .25s; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 0; font-size: .9rem; line-height: 1.35; color: var(--ink-2); transition: color .2s; }
.toc a span { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); padding-top: 2px; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
.toc a[aria-current] span { color: var(--red-ink); }
.toc__foot { margin-top: 16px; font-size: .78rem; color: var(--ink-3); line-height: 1.45; }

/* Текст статьи */
.prose { max-width: 680px; font-family: var(--f-serif); font-size: 1.1875rem; line-height: 1.68; font-optical-sizing: auto; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-ink); }
.prose strong { font-weight: 700; }
.prose .lede { font-size: 1.36rem; line-height: 1.55; }
.prose .lede::first-letter {
  float: left; font-size: 4.9em; line-height: .8; font-weight: 700; color: var(--red);
  margin: .06em .1em 0 -.02em;
}
.prose h2 {
  font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.55rem, 1.3rem + .9vw, 2.1rem);
  line-height: 1.12; letter-spacing: -.018em; margin: 2.2em 0 .7em; text-wrap: balance;
  clear: left;
}
.prose h2 .mono { display: block; color: var(--red-ink); margin-bottom: 10px; font-size: .72rem; }
.prose h3 { font-family: var(--f-sans); font-size: 1.05rem; font-weight: 700; margin: 1.6em 0 .4em; letter-spacing: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--red); }

/* Заметки на полях */
.note {
  float: right; clear: right; width: 250px; margin: .3em -300px 1em 0;
  font-family: var(--f-sans); font-size: .86rem; line-height: 1.5; color: var(--ink-2);
  border-top: 2px solid var(--red); padding-top: 10px;
}
.note .mono { display: block; color: var(--red-ink); margin-bottom: 6px; font-size: .64rem; }

/* Изображения внутри */
.prose figure { margin: 2em 0; }
.fig-wide { margin-right: -300px !important; }
.fig-half { float: left; width: 50%; margin: .4em 30px 1em 0 !important; }
.prose .cap { font-family: var(--f-sans); }

/* Схемы */
.schemes { border: 1.5px solid var(--ink); background: var(--paper); }
.schemes__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.scheme { padding: 16px 14px 14px; border-right: 1px solid var(--line); }
.scheme:last-child { border-right: 0; }
.scheme svg { width: 100%; height: auto; display: block; }
.scheme b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink); margin-top: 10px; }
.scheme span { display: block; font-family: var(--f-sans); font-size: .86rem; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
.schemes figcaption { padding: 10px 14px; border-top: 1px solid var(--ink); font-family: var(--f-sans); font-size: .82rem; color: var(--ink-3); }

/* Цитата */
.pull { margin: 2.2em 0; padding: 0; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1.28; letter-spacing: -.01em; }
.pull .dimline { margin-bottom: 18px; }

/* Чек-лист */
.check { margin: 2em 0; border: 1.5px solid var(--ink); font-family: var(--f-sans); clear: both; }
.check__h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.check__h b { font-weight: 600; font-size: 1rem; }
.check__count { color: #F08A68; }
.check ul { list-style: none; margin: 0; padding: 0; }
.check li { border-top: 1px solid var(--line); margin: 0; }
.check li:first-child { border-top: 0; }
.check label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 13px 16px; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.check label:hover { background: var(--paper-2); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); margin: 1px 0 0; display: grid; place-items: center; background: var(--paper); cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--red); }
.check small { display: block; color: var(--ink-3); font-size: .84rem; }

/* Таблица сценариев */
.cmp { width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-family: var(--f-sans); font-size: .94rem; line-height: 1.45; clear: both; }
.cmp th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td:first-child { font-weight: 600; width: 34%; }
.cmp .y { color: var(--moss); font-weight: 600; }
.cmp .n { color: var(--red-ink); font-weight: 600; }

.summary { margin: 2.4em 0 1em; padding: 24px 26px; font-family: var(--f-sans); font-size: 1rem; line-height: 1.55; }
.summary h2 { margin: 0 0 12px !important; font-size: 1.4rem !important; }
.summary ol { margin: 0; padding-left: 1.2em; }
.summary li::marker { font-family: var(--f-mono); color: var(--red-ink); }
.method { margin-top: 2em; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--f-sans); font-size: .86rem; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 1340px) {
  .note { float: none; width: auto; margin: 1.4em 0; padding: 12px 0 0 0; }
  .fig-wide { margin-right: 0 !important; }
}
@media (max-width: 1000px) {
  .a-body { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .prose { margin: 0 auto; width: 100%; }
  .toc { top: var(--hdr-h); z-index: 20; background: var(--paper); margin: 0 calc(var(--pad) * -1) 30px; padding: 0 var(--pad); border-bottom: 1px solid var(--ink); }
  .toc__toggle { cursor: pointer; border: 0; padding: 14px 0; align-items: center; }
  .toc__toggle svg { display: block; }
  .toc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .toc ol { display: none; padding-bottom: 12px; }
  .toc.is-open ol { display: block; }
  .toc__foot { display: none; }
}
@media (max-width: 640px) {
  .prose { font-size: 1.0625rem; line-height: 1.66; }
  .prose .lede { font-size: 1.2rem; }
  .fig-half { float: none; width: auto; margin: 2em 0 !important; }
  .prose .fig-wide { margin-left: calc(var(--pad) * -1) !important; margin-right: calc(var(--pad) * -1) !important; }
  .prose .fig-wide .cap { padding-left: var(--pad); padding-right: var(--pad); }
  .schemes { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); border-left: 0; border-right: 0; }
  .schemes__row { grid-template-columns: 1fr; }
  .scheme { display: grid; grid-template-columns: 110px 1fr; gap: 4px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scheme svg { grid-row: span 2; }
  .scheme b { margin-top: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto !important; }
  .cmp tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cmp td { border: 0; padding: 2px 0; }
  .cmp td[data-l]::before { content: attr(data-l) " — "; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; color: var(--ink-3); }
  .summary { padding: 20px 18px; }
}

/* Конец статьи */
.a-end { margin-top: 64px; }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.a-tags .mono { color: var(--ink-3); margin-right: 6px; }
.next { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 36px 0; border-bottom: 2px solid var(--ink); }
.next .hl { margin-top: 10px; max-width: 22ch; }
.next__arrow { font-family: var(--f-serif); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .8; color: var(--red); transition: transform .3s; }
.next:hover .next__arrow { transform: translateX(10px); }
.more-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); margin-top: 30px; }
.more-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.more-list .mono { color: var(--red-ink); font-size: .68rem; }
.more-list .t { font-family: var(--f-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.28; }
.more-list em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .more-list { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .next__arrow { display: none; }
}

/* ==========================================================================
   РУБРИКА
   ========================================================================== */
.c-head { padding-top: 30px; }
.c-head__grid { display: grid; grid-template-columns: auto 1fr; gap: 20px 56px; align-items: end; margin-top: 20px; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.c-word { position: relative; margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: clamp(4rem, 1.2rem + 13vw, 13.5rem); line-height: .78; letter-spacing: -.045em; padding-top: 36px; }
.c-word__code { position: absolute; left: 4px; top: 0; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: var(--red-ink); }
.c-word__dim { position: absolute; left: 0; right: 0; top: 12px; }
.c-word__dim.dimline { border-color: var(--red); height: 12px; }
.c-word__dim.dimline::before { border-color: var(--red); }
.c-intro { display: grid; gap: 16px; padding-bottom: 10px; }
.c-intro p { margin: 0; font-family: var(--f-serif); font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.45; max-width: 44ch; }
.c-stats { display: flex; flex-wrap: wrap; gap: 0; }
.c-stats div { padding: 0 18px; border-left: 1px solid var(--line); }
.c-stats div:first-child { padding-left: 0; border-left: 0; }
.c-stats b { display: block; font-family: var(--f-serif); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.c-stats span { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); position: sticky; top: var(--hdr-h); z-index: 20; background: var(--paper); }
.c-filter > .mono { color: var(--ink-3); margin-right: 6px; font-size: .66rem; }
.c-filter .c-count { margin-left: auto; color: var(--ink-3); font-size: .66rem; }
@media (max-width: 820px) {
  .c-head__grid { grid-template-columns: 1fr; }
  .c-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
  .c-filter::-webkit-scrollbar { display: none; }
  .c-filter .tag { flex: none; }
  .c-filter .c-count { display: none; }
}

.c-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 36px; }
.c-feature .ph { grid-column: 1 / 8; }
.c-feature__txt { grid-column: 8 / 13; display: grid; gap: 16px; align-content: center; }
.c-feature__txt .hl { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3.1rem); line-height: 1.04; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .c-feature .ph, .c-feature__txt { grid-column: 1 / -1; }
}

.c-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 64px; }
.c-main { grid-column: 1 / 9; }
.c-side { grid-column: 10 / 13; display: grid; gap: 40px; align-content: start; }
@media (max-width: 1000px) { .c-main, .c-side { grid-column: 1 / -1; } .c-side { margin-top: 40px; } }

.c-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 2px solid var(--ink); }
.c-pair > a { display: grid; gap: 14px; align-content: start; }
.c-pair .mini-plan { background: var(--paper-2); border: 1px solid var(--ink); padding: 18px; }
.c-pair .mini-plan svg { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .c-pair { grid-template-columns: 1fr; gap: 36px; } }

.c-block-h { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.c-block-h h2 { margin: 0; font-size: .74rem; }
.c-block-h span { color: var(--ink-3); font-size: .66rem; }
.c-rows { list-style: none; margin: 0; padding: 0; }
.c-row { border-bottom: 1px solid var(--line); }
.c-row a { display: grid; grid-template-columns: 64px 1fr 150px; gap: 8px 22px; padding: 22px 0; align-items: start; }
.c-row .no { font-family: var(--f-mono); font-size: .74rem; color: var(--red-ink); padding-top: 5px; }
.c-row .body { display: grid; gap: 8px; }
.c-row .hl { font-size: 1.42rem; line-height: 1.2; }
.c-row p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; max-width: 60ch; }
.c-row .ph { aspect-ratio: 4 / 3; width: 100%; }
.c-row .side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.c-row .min { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.c-row .min small { display: block; font-family: var(--f-mono); font-size: .62rem; font-weight: 400; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 640px) {
  .c-row a { grid-template-columns: 1fr 96px; gap: 8px 16px; padding: 18px 0; }
  .c-row .no { grid-column: 1 / -1; padding: 0; }
  .c-row .body { grid-column: 1; }
  .c-row .side { grid-column: 2; grid-row: 2; }
  .c-row .hl { font-size: 1.18rem; }
  .c-row p { display: none; }
  .c-row .min { font-size: 1.1rem; }
}

.c-path { margin: 36px 0; padding: 26px 28px; display: grid; gap: 14px; }
.c-path h2 { margin: 0; font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.c-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: p; }
.c-path li { counter-increment: p; position: relative; padding: 14px 18px 0 0; border-top: 3px solid var(--ink); }
.c-path li::before { content: "Шаг " counter(p); display: block; font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red-ink); margin-bottom: 6px; }
.c-path li::after { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
.c-path li a { font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.c-path li a:hover { color: var(--red-ink); }
@media (max-width: 640px) { .c-path { padding: 22px 18px; } .c-path ol { grid-template-columns: 1fr; gap: 18px; } }

.c-text { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 36px; }
.c-text a { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); align-content: start; }
.c-text .hl { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; }
@media (max-width: 640px) { .c-text { grid-template-columns: 1fr; gap: 30px; } }
.c-empty { padding: 40px 0; font-family: var(--f-serif); font-size: 1.3rem; }

.side-box h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .72rem; }
.side-box p { margin: 0 0 10px; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.side-terms dt { font-family: var(--f-serif); font-weight: 600; font-size: 1.15rem; margin-top: 14px; }
.side-terms dd { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-sheets { list-style: none; margin: 0; padding: 0; }
.side-sheets a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-sheets .mono { color: var(--red-ink); font-size: .66rem; padding-top: 5px; }
.side-sheets strong { font-family: var(--f-serif); font-size: 1.3rem; font-weight: 600; }
.side-sheets small { grid-column: 2; color: var(--ink-3); font-size: .84rem; }
.side-sheets a:hover strong { color: var(--red-ink); }
.side-sticky { position: sticky; top: calc(var(--hdr-h) + 80px); }

/* ==========================================================================
   О ЖУРНАЛЕ
   ========================================================================== */
.ab-hero { padding-top: 34px; }
.ab-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 28px; align-items: end; }
.ab-hero h1 { grid-column: 1 / 10; }
.ab-hero__mark { grid-column: 10 / 13; justify-self: end; width: min(100%, 240px); }
.ab-hero__mark svg { width: 100%; height: auto; display: block; }
.ab-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 40px; padding-top: 26px; border-top: 2px solid var(--ink); }
.ab-intro .lede { grid-column: 1 / 7; font-family: var(--f-serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem); line-height: 1.45; margin: 0; }
.ab-intro .rest { grid-column: 8 / 13; font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }
.ab-intro .rest p { margin: 0 0 1em; }
@media (max-width: 900px) {
  .ab-hero h1, .ab-intro .lede, .ab-intro .rest { grid-column: 1 / -1; }
  .ab-hero__mark { grid-column: 1 / -1; justify-self: start; width: 120px; order: -1; }
}

.ab-sign { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.ab-sign__draw { grid-column: 1 / 7; margin: 0; padding: 24px; border: 1.5px solid var(--ink); }
.ab-sign__draw svg { width: 100%; height: auto; display: block; }
.ab-sign__txt { grid-column: 8 / 13; display: grid; gap: 16px; }
.ab-sign__txt p { margin: 0; font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); }
.ab-sign__sizes { display: flex; align-items: flex-end; gap: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ab-sign__sizes div { display: grid; gap: 8px; justify-items: start; }
.ab-sign__sizes .mono { color: var(--ink-3); font-size: .64rem; }
@media (max-width: 900px) { .ab-sign__draw, .ab-sign__txt { grid-column: 1 / -1; } .ab-sign__draw { padding: 14px; } }

.ab-sheets { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ab-sheet { padding: 22px 22px 26px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.ab-sheet:first-child { padding-left: 0; }
.ab-sheet:last-child { border-right: 0; padding-right: 0; }
.ab-sheet .mono { color: var(--red-ink); }
.ab-sheet h3 { margin: 0; font-family: var(--f-serif); font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ab-sheet p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.ab-sheet .drawing { font-family: var(--f-mono); font-size: .66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ab-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ab-sheet li { font-family: var(--f-serif); font-size: 1rem; line-height: 1.35; padding-left: 16px; position: relative; }
.ab-sheet li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 1.5px; background: var(--red); }
.ab-sheet > a { font-weight: 600; font-size: .92rem; margin-top: 4px; }
.ab-sheet > a:hover { color: var(--red-ink); }
@media (max-width: 1000px) {
  .ab-sheets { grid-template-columns: 1fr 1fr; }
  .ab-sheet { padding: 22px 18px 26px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .ab-sheet:nth-child(odd) { border-right: 1px solid var(--line); }
  .ab-sheet:nth-child(even) { padding-left: 18px !important; }
}
@media (max-width: 600px) {
  .ab-sheets { grid-template-columns: 1fr; }
  .ab-sheet { border-right: 0 !important; padding-left: 0 !important; }
}

.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); background: var(--paper); }
.legend > div { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.legend > div:nth-child(4n) { border-right: 0; }
.legend > div:nth-last-child(-n+4) { border-bottom: 0; }
.legend .sym { height: 48px; display: flex; align-items: center; }
.legend b { font-weight: 600; }
.legend p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.legend .pin { position: static; transform: none; }
@media (max-width: 900px) {
  .legend { grid-template-columns: 1fr 1fr; }
  .legend > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .legend > div:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 520px) {
  .legend { grid-template-columns: 1fr; }
  .legend > div { border-right: 0 !important; grid-template-columns: 88px 1fr; }
  .legend .sym { grid-row: span 2; }
}

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--ink); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--red-ink); grid-row: span 2; padding-top: 4px; }
.rules b { font-family: var(--f-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.rules span { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
@media (max-width: 800px) { .rules { grid-template-columns: 1fr; } }

.ab-photo { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.ab-photo__txt { grid-column: 1 / 6; display: grid; gap: 14px; }
.ab-photo__txt p { margin: 0; font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
.ab-photo__txt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.ab-photo__txt li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.45; }
.ab-photo__txt li b { font-family: var(--f-mono); font-weight: 500; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red-ink); display: block; }
.ab-photo__img { grid-column: 7 / 13; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.ab-photo__img .ph:first-child { grid-row: span 2; }
@media (max-width: 900px) { .ab-photo__txt, .ab-photo__img { grid-column: 1 / -1; } }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 36px; border: 1.5px solid var(--ink); }
.contact h2 { margin: 12px 0 14px; }
.contact p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.55; }
.contact__go { display: grid; gap: 22px; align-content: start; }
.contact__go .btn { height: auto; min-height: 52px; padding: 12px 20px; justify-self: start; text-align: left; }
.contact__go ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact__go li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.contact__go li b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; padding: 24px 18px; gap: 24px; } }
@media (max-width: 520px) { .contact__go .btn { width: 100%; justify-content: center; text-align: center; } }

/* The user removed the material passport; reclaim its empty grid columns. */
.a-head__grid > .a-head__main:only-child { grid-column: 1 / -1; }

/* ==========================================================================
   ARCHI-M · Уведомление о cookie
   Подключается после остальных стилей. Разметка и скрипт прежние
   (#clearfy-cookie), правила перекрывают стили старого сайта через id.
   Видимостью (display / visibility / opacity / transform) управляет
   прежний скрипт — здесь она не затрагивается.
   ========================================================================== */

/* Внешний слой: прозрачная подложка у нижнего края, без белой плашки */
#clearfy-cookie.clearfy-cookie {
  position: fixed;
  left: 0; right: 0;
  width: auto; max-width: none; height: auto;
  margin: 0;
  padding: 0 var(--pad, 32px) calc(var(--pad, 32px) * .6);
  padding-bottom: max(calc(var(--pad, 32px) * .6), env(safe-area-inset-bottom));
  background: none;
  border: 0; border-radius: 0; box-shadow: none;
  z-index: 50;               /* выше шапки (40), ниже поиска (60) */
  pointer-events: none;      /* кликабельна только сама карточка */
}

/* Карточка — служебная «врезка» на кальке: графитовая рамка, красная линия сверху */
#clearfy-cookie .clearfy-cookie-container {
  position: relative;
  display: flex; align-items: center; gap: 12px 28px;
  box-sizing: border-box;
  width: 100%; max-width: 760px;
  margin: 0 auto 0 0;
  padding: 18px 20px 18px 22px;
  background: var(--paper, #F3EFE7);
  color: var(--ink-2, #44463F);
  border: 1.5px solid var(--ink, #1B1D1A);
  border-top: 3px solid var(--red, #D9431E);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--f-sans, "Onest", "Segoe UI", Arial, sans-serif);
  font-size: .9rem; font-weight: 400; line-height: 1.5; text-align: left;
  pointer-events: auto;
  text-wrap: pretty;
}

/* Кнопка — как .btn журнала: графит, при наведении красный карандаш */
#clearfy-cookie .clearfy-cookie-accept {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  min-width: 96px; height: 46px; margin: 0 0 0 auto; padding: 0 24px;
  background: var(--ink, #1B1D1A);
  color: var(--paper, #F3EFE7);
  border: 1.5px solid var(--ink, #1B1D1A);
  border-radius: 0; box-shadow: none;
  font-family: var(--f-sans, "Onest", "Segoe UI", Arial, sans-serif);
  font-size: .95rem; font-weight: 600; line-height: 1; letter-spacing: 0;
  text-transform: none; text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
#clearfy-cookie .clearfy-cookie-accept:hover {
  background: var(--red, #D9431E);
  border-color: var(--red, #D9431E);
  color: var(--paper, #F3EFE7);
}
#clearfy-cookie .clearfy-cookie-accept:active { background: var(--red-ink, #B5361A); border-color: var(--red-ink, #B5361A); }
#clearfy-cookie .clearfy-cookie-accept:focus-visible {
  outline: 2px solid var(--red, #D9431E);
  outline-offset: 3px;
}

/* Смартфон: карточка на всю ширину, кнопка под текстом, цель нажатия крупная */
@media (max-width: 820px) {
  #clearfy-cookie.clearfy-cookie {
    padding: 0 12px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  #clearfy-cookie .clearfy-cookie-container {
    flex-direction: column; align-items: stretch; gap: 14px;
    max-width: none;
    padding: 16px 16px 16px 18px;
    font-size: .88rem;
  }
  #clearfy-cookie .clearfy-cookie-accept {
    width: 100%; height: 48px; margin: 0;
  }
}

/* Production finishing: existing paper/graphite/red-pencil journal system. */
.foot__bottom{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:36px;padding-top:18px;border-top:1px solid #55574e;font-size:.82rem;color:#bcbcb0}
.foot__bottom>span{margin-right:auto}
.foot__bottom a:hover{color:var(--paper)}
.adres__lead>.ph{aspect-ratio:4/3;align-self:start}
.zemlya__card{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:48px;padding-top:24px}
.zemlya__card>.kicker,.zemlya__card>.meta{grid-column:1/-1}
.zemlya__card>.hl{grid-column:1}
.zemlya__card>.deck{grid-column:2;grid-row:2;align-self:start}
.zemlya__card>.meta{margin-top:6px}
.a-body{display:block;margin-top:40px}
.a-body>.prose{max-width:720px;margin:44px auto 0}
.a-end .c-text{grid-template-columns:repeat(3,minmax(0,1fr))}
.a-body>.toc{position:static;top:auto;margin:0;padding:0 0 28px;border-bottom:1px solid var(--ink)}
.toc__title{margin:0 0 20px;color:var(--ink-2);font-size:.72rem}
.toc__toggle{display:none}
.toc ol{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;position:relative}
.toc li{border:0;border-top:1px solid var(--line);position:relative}
.toc li::before{content:"";position:absolute;left:0;top:-4px;width:7px;height:7px;background:var(--paper);border:1px solid var(--ink-3);border-radius:50%}
.toc li:has([aria-current])::before{background:var(--red);border-color:var(--red)}
.toc a{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px 18px 0 0;font-size:.92rem;line-height:1.4}
.toc a span{font-size:.7rem;color:var(--red-ink);padding:0}
.toc a:hover{color:var(--red-ink)}
.prose .note{float:none;width:auto;margin:1.6em 0;padding:14px 18px;border-top:2px solid var(--red);background:var(--paper-2);font-size:.95rem}
.prose .note p:last-child{margin-bottom:0}
.prose .fig-wide{margin:2em -140px!important}
.prose .fig-wide .ph{aspect-ratio:4/3}
.prose>h2:first-child{margin-top:0}
.ab-hero__mark{max-width:200px;justify-self:end}
.ab-hero__grid{align-items:center}
@media(max-width:1180px){.prose .fig-wide{margin:2em 0!important}.toc a{font-size:.86rem;padding-right:14px}}
@media(max-width:1000px){
 .zemlya__card{grid-template-columns:1fr;gap:14px}
 .zemlya__card>.hl,.zemlya__card>.deck{grid-column:1;grid-row:auto}
 .a-body>.toc{position:sticky;top:var(--hdr-h);z-index:25;margin:0 calc(var(--pad)*-1);padding:0 var(--pad);border-bottom:1px solid var(--ink);background:var(--paper)}
 .toc__title{display:none}
 .toc__toggle{display:flex;min-height:52px;gap:20px;align-items:center;line-height:1.5;font-size:.68rem;padding:12px 0}
 .toc__toggle svg{flex:none}
 .toc ol{display:none;max-height:65vh;overflow-y:auto;padding:0 0 14px;grid-template-columns:1fr}
 .toc.is-open ol{display:grid}
 .toc li{border-top:1px solid var(--line)}
 .toc li::before{display:none}
 .toc a{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:10px 0;font-size:.94rem}
 .a-body>.prose{margin-top:32px}
 .ab-hero__mark{max-width:130px}
}
@media(max-width:820px){.a-end .c-text{grid-template-columns:1fr}}
@media(max-width:640px){.prose .fig-wide{margin:1.8em calc(var(--pad)*-1)!important}.foot__bottom{gap:12px 24px}.foot__bottom>span{flex-basis:100%}.ab-hero__mark{display:none}}

/* Native Reboot form: keep its handler while using the journal's typography. */
.contact-page{padding-top:32px}
.contact-page__head{padding-bottom:36px;border-bottom:1px solid var(--ink)}
.contact-page__head h1{margin:24px 0 20px;max-width:17ch}
.contact-page__head .deck{max-width:52ch}
.contact-page__grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:80px;padding-top:40px}
.contact-page__aside h2{font-size:.76rem;margin:0 0 18px}
.contact-page__aside p{font-size:.95rem;color:var(--ink-2);margin:0 0 24px;max-width:35ch}
form.journal-contact-form{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px}
.contact-form__field{min-width:0}
.contact-form__field:has(#contact-subject),.contact-form__field:has(#contact-message){grid-column:1/-1}
form.journal-contact-form label{display:block;font-family:var(--f-mono);font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
form.journal-contact-form input:not([type=hidden]):not([name=email]),form.journal-contact-form textarea{width:100%;border:1px solid var(--line);border-radius:0;background:transparent;padding:13px 14px;font-family:var(--f-sans);font-size:1rem;line-height:1.5}
form.journal-contact-form textarea{min-height:190px;resize:vertical}
form.journal-contact-form input::placeholder,form.journal-contact-form textarea::placeholder{color:var(--ink-3)}
form.journal-contact-form button[type=submit]{justify-self:start;grid-column:1/-1;min-height:44px;padding:10px 24px}
@media(max-width:820px){.contact-page__grid{grid-template-columns:1fr;gap:40px}.contact-page__head{padding-bottom:26px}.contact-page__aside{border-top:1px solid var(--line);padding-top:24px}.contact-page__aside p{max-width:55ch}}
@media(max-width:560px){form.journal-contact-form{grid-template-columns:1fr}.contact-form__field{grid-column:1/-1}.contact-page__head h1{margin-top:20px}.contact-page{padding-top:20px}}

/* ARCHI-M · Служебные страницы: результаты поиска и 404 */

/* ---------- Поиск ---------- */
.s-head { padding-top: 30px; }
.s-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 22px; align-items: end; }
.s-head h1 { grid-column: 1 / 7; margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: clamp(3.6rem, 1.6rem + 9vw, 9rem); line-height: .8; letter-spacing: -.04em; padding-top: 34px; position: relative; }
.s-head h1 .c-word__code { position: absolute; left: 3px; top: 0; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: var(--red-ink); }
.s-form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr auto; border-bottom: 2px solid var(--ink); }
.s-form input {
  min-width: 0; border: 0; background: transparent; outline: none; border-radius: 0;
  font-family: var(--f-serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 500; letter-spacing: -.015em;
  padding: 10px 0 12px; -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.s-form input::placeholder { color: var(--line); }
.s-form input::-webkit-search-cancel-button { display: none; }
.s-form button { display: inline-flex; align-items: center; justify-content: center; width: 52px; color: var(--ink); }
.s-form button:hover { color: var(--red-ink); }
.s-form button svg { width: 24px; height: 24px; }
.s-form:focus-within { border-color: var(--red); }

.s-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0; margin-top: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.s-bar > .mono { color: var(--ink-3); margin-right: 6px; font-size: .66rem; }
.s-bar .tag { text-decoration: none; }
.s-bar .tag small { margin-left: 6px; opacity: .7; font-size: inherit; }

.s-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 36px; }
.s-main { grid-column: 1 / 9; min-width: 0; }
.s-side { grid-column: 10 / 13; display: grid; gap: 36px; align-content: start; }

.s-status { margin: 0 0 18px; font-family: var(--f-serif); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.3; font-weight: 500; }
.s-status b { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); display: block; margin-bottom: 8px; }
/* Длинный запрос: строка переносится, остальной интерфейс не ломается */
.s-q {
  display: block; margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--paper-2);
  font-family: var(--f-serif); font-size: 1.05rem; font-weight: 400; line-height: 1.45; color: var(--ink-2);
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.s-q.is-open { -webkit-line-clamp: unset; display: block; }
.s-q-more { margin-top: 6px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink); padding: 8px 0; min-height: 44px; }

.s-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.s-row { border-bottom: 1px solid var(--line); }
.s-row a { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 20px; padding: 20px 0; align-items: start; }
.s-row .no { font-family: var(--f-mono); font-size: .74rem; color: var(--red-ink); padding-top: 6px; }
.s-row .body { display: grid; gap: 6px; min-width: 0; }
.s-row .hl { font-size: 1.36rem; line-height: 1.2; overflow-wrap: break-word; }
.s-row p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.5; max-width: 60ch; }
.s-row .meta { margin-top: 2px; }
.s-row .min { font-family: var(--f-serif); font-size: 1.4rem; font-weight: 600; line-height: 1; text-align: right; }
.s-row .min small { display: block; font-family: var(--f-mono); font-size: .6rem; font-weight: 400; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; }
.s-row mark, .s-row .hl mark { background: rgba(217,67,30,.18); color: inherit; padding: 0 1px; }

/* Нет результатов: пустая комната с открытой дверью */
.s-none { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 28px 0 8px; border-top: 2px solid var(--ink); align-items: start; }
.s-none svg { width: 100%; height: auto; display: block; }
.s-none h2 { margin: 0 0 10px; font-family: var(--f-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.s-none p { margin: 0 0 14px; color: var(--ink-2); font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.55; max-width: 52ch; }
.s-none ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: .96rem; color: var(--ink-2); }
.s-none li { padding-left: 18px; position: relative; }
.s-none li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 1.5px; background: var(--red); }

.s-sheets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.s-sheets a { display: grid; gap: 4px; padding: 16px 14px 18px; border-right: 1px solid var(--line); min-height: 44px; }
.s-sheets li:last-child a { border-right: 0; }
.s-sheets li:first-child a { padding-left: 0; }
.s-sheets .mono { color: var(--red-ink); font-size: .64rem; }
.s-sheets strong { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.s-sheets small { color: var(--ink-3); font-size: .82rem; line-height: 1.35; }
.s-sheets a:hover strong { color: var(--red-ink); }

.s-side h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .72rem; }
.s-pop { display: flex; flex-wrap: wrap; gap: 8px; }
.s-pop .tag { height: 36px; padding: 0 12px; }
.s-side p { margin: 0 0 10px; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.s-side .tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.s-side .tips li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.s-side .tips b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink); }

@media (max-width: 1000px) {
  .s-head h1 { grid-column: 1 / -1; }
  .s-form { grid-column: 1 / -1; }
  .s-main, .s-side { grid-column: 1 / -1; }
  .s-side { margin-top: 20px; }
  .s-sheets { grid-template-columns: 1fr 1fr; }
  .s-sheets a { border-bottom: 1px solid var(--line); }
  .s-sheets li:nth-child(2n) a { border-right: 0; }
  .s-sheets li:nth-child(odd) a { padding-left: 0; }
  .s-sheets li:nth-child(even) a { padding-left: 14px; }
}
@media (max-width: 640px) {
  .s-head { padding-top: 20px; }
  .s-bar { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
  .s-bar::-webkit-scrollbar { display: none; }
  .s-bar .tag { flex: none; height: 36px; }
  .s-layout { margin-top: 26px; }
  .s-row a { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 18px 0; }
  .s-row .no { grid-column: 1 / -1; padding: 0; }
  .s-row .hl { font-size: 1.16rem; }
  .s-row p { display: none; }
  .s-row .min { font-size: 1.05rem; }
  .s-none { grid-template-columns: 1fr; gap: 16px; }
  .s-none svg { width: 120px; }
  .s-sheets strong { font-size: 1.3rem; }
  .s-sheets small { display: none; }
}

/* ---------- 404 ---------- */
.e-head { padding-top: 30px; }
.e-art { margin-top: 22px; }
.e-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.e-art text { font-family: var(--f-serif); font-weight: 700; fill: var(--ink); }
.e-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 26px; padding-top: 26px; border-top: 2px solid var(--ink); }
.e-body__txt { grid-column: 1 / 7; display: grid; gap: 16px; align-content: start; }
.e-body__txt h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.05; }
.e-body__txt p { margin: 0; font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.e-act { display: flex; flex-wrap: wrap; gap: 10px; }
.e-find { grid-column: 8 / 13; display: grid; gap: 14px; align-content: start; }
.e-find .s-form { grid-column: auto; }
.e-find .mono { color: var(--ink-3); font-size: .66rem; }
.e-list { margin-top: 56px; }
.e-list .s-rows { margin-top: 0; }
@media (max-width: 900px) {
  .e-body__txt, .e-find { grid-column: 1 / -1; }
  .e-find { margin-top: 10px; }
}
@media (max-width: 560px) {
  .e-head { padding-top: 20px; }
  .e-act .btn { flex: 1 1 100%; justify-content: center; }
  .e-list { margin-top: 40px; }
}


/* WordPress integration: native media, admin toolbar and long archived content. */
body.admin-bar{--admin-bar:32px}body.admin-bar .hdr{top:var(--admin-bar)}
body.admin-bar .menu{top:calc(var(--hdr-h) + var(--admin-bar))}
body.admin-bar .search[role="dialog"]{top:var(--admin-bar)}
@media(max-width:782px){body.admin-bar{--admin-bar:46px}}
.ph .wp-post-image{width:100%;height:100%;object-fit:cover}
.prose>table,.prose .table-wrap{display:block;max-width:100%;overflow-x:auto}
.prose{min-width:0;overflow-wrap:break-word}
.a-body:not(:has(.toc)){grid-template-columns:minmax(0,1fr)}
.a-body:not(:has(.toc))>.prose{margin-inline:auto}
.pagination{display:flex;flex-wrap:wrap;gap:12px;margin:40px 0}
.pagination .page-numbers{padding:8px 12px;border:1px solid var(--line)}
.pagination .current{background:var(--ink);color:var(--paper)}
