/* Статьи МолдингПлана (scripts/seo/build.ts): тот же лист, что у калькулятора — тёплая бумага, Manrope, колонка ~68 знаков. */
:root { --paper: #f5f2ec; --surface: #fffdf9; --ink: #1f2124; --ink-2: #4e5258; --ink-3: #8b8f95; --line: #e2ddd3; --line-2: #cfc8bb; --accent: #a2482a; --accent-soft: #f3e3da; --molding: #efe6d6; --molding-edge: #6d5d45; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; font-size: 17px; }
.top nav { display: flex; gap: 16px; font-size: 15px; margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.top nav a.cta { color: #fff; background: var(--ink); padding: 7px 14px; border-radius: 8px; }
main { max-width: 760px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 64px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; }
h2 { font-size: 24px; line-height: 1.25; margin: 38px 0 10px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }
figure { margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
figure > svg, .inst-fig svg { width: 100%; height: auto; display: block; }
figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0; }
.figs figure { margin: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 600; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.cta-box { margin: 34px 0; padding: 22px; border-radius: 12px; background: var(--ink); color: #f5f2ec; display: grid; gap: 10px; }
.cta-box b { font-size: 20px; }
.cta-box a { justify-self: start; background: #f5f2ec; color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards li { margin: 0; }
.cards a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--ink-3); }
.cards b { display: block; font-size: 19px; margin-bottom: 4px; }
.cards span { color: var(--ink-2); font-size: 15px; }
footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .in { max-width: 1040px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-3); }
/* схемы стен */
.w-wall { fill: #f1ece2; stroke: var(--ink-3); stroke-width: 1; }
.w-frame { fill: none; stroke: var(--molding-edge); }
.w-fbody { fill: none; stroke: var(--molding); }
.w-band { fill: var(--molding); stroke: var(--molding-edge); stroke-width: 0.8; }
.w-open { fill: #dbe7ee; stroke: var(--ink-3); stroke-width: 1; }
.w-door { fill: #e8e1d4; stroke: var(--ink-3); stroke-width: 1; }
.w-outlet { fill: #fff; stroke: var(--ink-2); stroke-width: 1; }
.w-decor { fill: var(--molding); stroke: var(--molding-edge); stroke-width: 0.8; }
.w-dim { stroke: var(--accent); stroke-width: 1; fill: none; }
.w-dim-t { fill: var(--accent); font: 600 12px var(--mono); }
.w-label { fill: var(--ink-3); font: 600 11px var(--sans); }
/* уведомление о cookie — как в калькуляторе */
.consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(420px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.14); font-size: 13px; line-height: 1.45; }
.consent p { margin: 0; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; }
.consent button { font: 600 13px var(--sans); padding: 6px 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.consent button + button { background: transparent; color: var(--ink); border-color: var(--line-2); }
@media (max-width: 560px) { body { font-size: 16px; } .top nav a:not(.cta) { display: none; } }
/* страница для производителей */
.b2b-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 8px; }
.b2b-btn { background: var(--ink); color: #f5f2ec; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 8px; }
.b2b-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.b2b-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; margin: 0; }
.b2b-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #f5f2ec; display: grid; place-items: center; font: 700 14px var(--mono); }
.b2b-steps b, .b2b-grid b { display: block; }
.b2b-steps span, .b2b-grid span { color: var(--ink-2); font-size: 16px; }
.b2b-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.b2b-grid li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.b2b-plan th { width: 120px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; }
/* живая схема в рамке */
.fig-live { padding: 0; overflow: hidden; }
.fig-live iframe { display: block; width: 100%; height: 620px; border: 0; }
.fig-live figcaption { padding: 0 14px 12px; }
/* картинки инструкции по монтажу (src/engine/installSvg.ts) — палитра сайта поверх светлой темы набора */
.iso.inst-print {
  --anatomy-page: var(--paper); --anatomy-card: var(--surface); --anatomy-paper: var(--surface); --anatomy-face: var(--surface); --anatomy-top: var(--surface);
  --anatomy-strong: var(--ink); --anatomy-text: var(--ink-2);
  --anatomy-hi: #34302b; --anatomy-mid: #7d7466; --anatomy-lo: #aea493; --anatomy-faint: #d6cebf;
  --anatomy-lit: var(--accent); --anatomy-lit-top: #f7e8df; --anatomy-lit-shade: #efd9cc;
  background: none;
}
.inst-fig .asm-svg { display: block; width: 100%; height: auto; }
.inst-fig .inst-what { color: var(--ink-3); }
.inst-wall > .iso-top, .inst-wall > .iso-fill { fill: #f4f0e8; }
.inst-opening > .iso-top, .inst-opening > .iso-fill { fill: #e3ddd2; }
.asm-past > .iso-fill, .asm-past > .iso-top { fill: var(--anatomy-card); }
.asm-past > .iso-shade { opacity: 0.55; }
.asm-past > .iso-edge { opacity: 0.8; }
.asm-now > .iso-edge { stroke-width: 1.2; }
.asm-tag rect { fill: var(--anatomy-card); stroke: var(--anatomy-lit); stroke-width: 0.9; }
.asm-tag text { font: 600 9.5px var(--mono); fill: var(--anatomy-strong); }

.article-meta { color: var(--ink-3); font-size: 13px; margin: 0 0 24px; }
.article-preview { display: block; width: 100%; height: auto; border-radius: 7px; }
.furniture { fill: #b8b1a1; stroke: #8c8577; stroke-width: 3; pointer-events: none; }
.furniture-soft { fill: #d4cfc3; }
.furniture-leg { fill: #514d45; stroke: #514d45; }
.furniture-screen { fill: #414d4b; stroke: none; }
.furniture-seam { fill: none; stroke: #8c8577; stroke-width: 3; }
.furniture-handle { fill: none; stroke: #625b4e; stroke-width: 7; stroke-linecap: round; }
