/* Чертёжный стиль для статей — общий файл. Палитра и логика те же, что на главной. */
:root {
  --paper: #f8f6f0; --paper-2: #f1eee6; --ink: #1e2731; --ink-2: #39434f;
  --pencil: #6b7480; --grid: rgba(46,84,126,.07); --grid-2: rgba(46,84,126,.12);
  --rule: rgba(30,39,49,.16); --red: #c2452a; --red-soft: rgba(194,69,42,.08);
  --mono: 'IBM Plex Mono', ui-monospace, monospace; --hand: 'Caveat', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
  color: var(--ink); font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }

.sheet { max-width: 1160px; margin: 20px auto 0; border: 1.5px solid var(--ink); position: relative; background: rgba(248,246,240,.55); }
.sheet::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }

/* панель */
.topbar { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 0 18px; border-bottom: 1.5px solid var(--ink); max-width: 1000px; margin: 0 auto; }
.masthead { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.masthead .dot { color: var(--red); }
.masthead small { display: block; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--pencil); margin-top: 5px; }
.topbar .meta { display: flex; gap: 24px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.topbar .meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.topbar .meta a:hover { color: var(--red); border-bottom-color: var(--red); }
.topbar .meta .cta { border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* кнопки-штампы */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); padding: 16px 26px; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 rgba(30,39,49,.16); transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease; }
.btn::after { content: "→"; font-size: 14px; transition: transform .16s ease; }
.btn:hover { border-color: var(--red); color: var(--red); transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(194,69,42,.22); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn.fill { background: var(--ink); color: var(--paper); }
.btn.fill:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.tel::after { content: "☎"; font-size: 15px; }

/* размерная линия */
.dim { display: flex; align-items: center; gap: 16px; margin: 40px 48px; user-select: none; }
.dim .l { flex: 1; height: 1px; background: var(--ink); position: relative; opacity: .75; }
.dim .t { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }

/* тело статьи */
.article { padding: 40px 0 20px; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); margin-bottom: 26px; }
.crumbs a { color: var(--pencil); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--red); border-bottom-color: var(--red); }
.article .label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.article h1 { font-weight: 800; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.article h1 em { font-style: normal; color: var(--red); }
.article .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.article h2 { font-weight: 800; font-size: clamp(23px, 3vw, 30px); letter-spacing: -0.015em; margin: 48px 0 16px; padding-top: 20px; border-top: 1.5px solid var(--rule); }
.article h3 { font-weight: 800; font-size: 19px; margin: 30px 0 10px; }
.article p { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 16px; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { padding-left: 0; margin: 0 0 20px; list-style: none; }
.article li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--red); font-weight: 600; }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; }
.article ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--red); border: 1.3px solid var(--red); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }

/* врезка «важно» */
.callout { border: 1.5px solid var(--ink); background: var(--paper-2); padding: 20px 24px; margin: 26px 0; }
.callout .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.hand { font-family: var(--hand); font-size: 22px; color: var(--red); }

/* мини-FAQ */
.qa { border-top: 1.5px solid var(--rule); padding-top: 16px; margin-top: 14px; }
.qa .q { font-weight: 700; color: var(--ink); font-size: 17px; margin: 0 0 6px; }
.qa .a { font-size: 16px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.7; }

/* CTA-блок в конце */
.cta-box { border: 1.5px solid var(--ink); background: var(--paper); padding: 34px 32px; margin: 40px 0 10px; box-shadow: 6px 6px 0 rgba(30,39,49,.1); }
.cta-box h2 { border: 0; padding: 0; margin: 0 0 10px; font-size: 26px; }
.cta-box p { margin-bottom: 20px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* читать ещё */
.more { margin: 36px 0 0; }
.more a { display: block; text-decoration: none; color: var(--ink); border: 1.5px solid var(--rule); padding: 16px 20px; margin-bottom: 10px; transition: border-color .15s, transform .15s; }
.more a:hover { border-color: var(--red); transform: translateX(3px); }
.more .mk { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--pencil); display: block; margin-bottom: 4px; }
.more .mt { font-weight: 700; font-size: 16px; }

footer { max-width: 1000px; margin: 40px auto 0; border-top: 1.5px solid var(--ink); padding: 34px 48px 30px; display: flex; flex-wrap: wrap; gap: 30px 60px; align-items: baseline; }
footer .brand { font-weight: 800; font-size: 18px; }
footer .brand .dot { color: var(--red); }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
footer a:hover { color: var(--red); border-bottom-color: var(--red); }
footer .col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }

.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: var(--paper); border-top: 1.5px solid var(--ink); padding: 12px 16px; gap: 12px; }
.mobile-bar .btn { flex: 1; justify-content: center; padding: 14px 10px; box-shadow: none; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .topbar { padding: 16px 20px; }
  .topbar .meta .phone-num { display: none; }
  .dim { margin: 32px 20px; }
  .cta-row .btn { flex: 1; justify-content: center; }
  .mobile-bar { display: flex; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  footer { padding: 28px 20px; }
}
