/* Концепция A — «Чертёж»: синий чертёжный лист, белые линии, моноширинный шрифт, сигнальный оранжевый */
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-mono-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --blue: #1a4a8a;
  --blue-deep: #143c72;
  --ink: #ffffff;
  --muted: #a8c0e4;
  --line: rgba(255, 255, 255, .85);
  --grid: rgba(255, 255, 255, .07);
  --grid-strong: rgba(255, 255, 255, .13);
  --orange: #ff8a3d;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 17px/1.6 var(--sans); color: var(--ink);
  background-color: var(--blue);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
a { color: var(--ink); }
h1, h2 { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 20px; }
h1 { font-size: clamp(30px, 4.6vw, 54px); text-transform: uppercase; }
h1 span { color: var(--orange); }
h2 { font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.text { max-width: 760px; font-family: var(--sans); }

/* рамка листа */
.sheet { max-width: 1240px; margin: 20px auto; border: 2px solid var(--line); position: relative; }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.3); pointer-events: none; }

.bp-header { display: flex; align-items: center; gap: 24px; padding: 18px 28px; border-bottom: 2px solid var(--line); font-family: var(--mono); }
.bp-logo { display: grid; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.bp-logo small { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.bp-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; text-transform: uppercase; }
.bp-nav a { text-decoration: none; color: var(--muted); }
.bp-nav a:hover { color: var(--ink); }
.bp-phone { font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); padding: 8px 14px; white-space: nowrap; }
.bp-phone:hover { background: var(--ink); color: var(--blue); }
.bp-tg { font-size: 14px; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.bp-tg:hover { color: var(--ink); }
.order-tg { color: var(--orange); font-weight: 600; }

/* первый экран */
.bp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 28px 32px; align-items: center; border-bottom: 2px solid var(--line); }
.bp-code { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; }
.bp-lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.bp-btn { font-family: var(--mono); font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; text-decoration: none; padding: 15px 22px; border: 1.5px solid var(--line); transition: background .2s, color .2s; }
.bp-btn:hover { background: var(--ink); color: var(--blue); }
.bp-btn-solid, .btn-primary { background: var(--orange); border-color: var(--orange); color: #1b1006; }
.bp-btn-solid:hover, .btn-primary:hover { background: #ffa264; color: #1b1006; }
.bp-specs { margin: 0; border-top: 1px solid rgba(255,255,255,.35); font-family: var(--mono); font-size: 14px; max-width: 520px; }
.bp-specs div { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid rgba(255,255,255,.35); padding: 9px 0; }
.bp-specs dt { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.bp-specs dd { margin: 0; }

.bp-figure { position: relative; margin: 0; }
.machine { width: 100%; height: auto; display: block; overflow: visible; }
.machine .ln { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.machine .thin { stroke-width: 1.2; stroke: rgba(255,255,255,.6); }
.machine .hidden-line { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.2; stroke-dasharray: 8 6; }
.machine .drum { transform-origin: 300px 380px; }
.machine .dim text { fill: var(--muted); font: 13px var(--mono); }
.machine .dim .ln { stroke: var(--muted); stroke-width: 1; }
.mk { cursor: pointer; outline: none; }
.mk-in, .mk-pulse { transform-box: fill-box; transform-origin: center; }
.mk-dot { fill: var(--orange); stroke: var(--blue-deep); stroke-width: 3; transition: r .2s; }
.mk text { fill: #1b1006; font: 600 12px var(--mono); pointer-events: none; }
.mk-pulse { fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; }
.mk:hover .mk-dot, .mk:focus-visible .mk-dot, .mk.active .mk-dot { fill: #fff; }
.callout { position: absolute; z-index: 5; width: 240px; padding: 14px 16px; background: var(--blue-deep); border: 1.5px solid var(--orange); font-family: var(--mono); font-size: 13px; display: grid; gap: 4px; box-shadow: 8px 8px 0 rgba(0,0,0,.18); transform: translate(-50%, calc(-100% - 26px)); }
.callout[hidden] { display: none; }
.callout::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 1.5px; height: 25px; background: var(--orange); }
.callout.below { transform: translate(-50%, 26px); }
.callout.below::after { bottom: auto; top: -26px; }
.co-num { color: var(--orange); font-weight: 600; }
.co-name { font-size: 15px; text-transform: uppercase; }
.co-symptom { color: var(--muted); }
.co-price { font-weight: 600; font-size: 15px; }
.co-cta { margin-top: 6px; color: var(--orange); text-decoration: none; font-weight: 600; }
.bp-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* листы */
.bp-section { padding: 48px 28px; border-bottom: 2px solid var(--line); }
.bp-sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.bp-sec-head span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); background: var(--ink); padding: 3px 8px; }
.bp-sec-head h2 { margin: 0; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 16px; background: rgba(20, 60, 114, .55); }
.bp-table th, .bp-table td { border: 1px solid rgba(255,255,255,.55); padding: 12px 16px; text-align: left; vertical-align: top; }
.bp-table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.bp-table td:first-child { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.bp-table td:last-child { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.bp-compare td:last-child, .bp-compare td:nth-child(2) { white-space: normal; }
.bp-compare td:first-child { color: var(--ink); font-family: var(--sans); }
.bp-compare .no { color: var(--muted); font-weight: 400; }
.bp-compare .no::before { content: "✕ "; color: #ff9d9d; }
.bp-compare .yes::before { content: "✓ "; color: var(--orange); }
.bp-note { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.bp-person { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
.bp-person .bp-sec-head { grid-column: 1 / -1; }
.id-card { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px; border: 1.5px solid var(--line); background: rgba(20, 60, 114, .55); }
.id-card img { width: 150px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.1); border: 1px solid var(--line); }
.id-card dl { margin: 0; font-size: 15px; }
.id-card dl div { padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.35); }
.id-card dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.id-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.id-card { padding-bottom: 62px; }
.stamp { position: absolute; right: 18px; bottom: 14px; font-family: var(--mono); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); border: 3px double var(--orange); padding: 6px 12px; transform: rotate(-12deg); opacity: .9; }
.bp-about p { font-size: 18px; margin: 0 0 14px; }
.bp-about p:first-child { font-family: var(--mono); font-weight: 600; font-size: 20px; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.flow li { position: relative; border: 1.5px solid var(--line); padding: 18px; display: grid; gap: 6px; background: rgba(20, 60, 114, .55); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--orange); }
.flow span { font-family: var(--mono); color: var(--orange); font-weight: 600; }
.flow b { font-family: var(--mono); text-transform: uppercase; font-size: 15px; }
.flow small { color: var(--muted); font-size: 14px; }

.order-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.order-doc { background: #f5f2ea; color: #1d2a3e; padding: 28px; box-shadow: 10px 10px 0 rgba(0,0,0,.2); position: relative; }
.order-doc::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(29,42,62,.25); pointer-events: none; }
.order-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); border-bottom: 2px solid #1d2a3e; padding-bottom: 10px; margin-bottom: 8px; }
.order-title b { text-transform: uppercase; }
.order-title span { color: #5c6a80; font-size: 14px; }
.order-side p { color: var(--muted); margin: 0 0 8px; }
.order-phone { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); text-decoration: none; border-bottom: 3px solid var(--orange); margin-bottom: 8px; }
.form-done { font-family: var(--mono); font-size: 20px; font-weight: 600; margin: 24px 0; }

/* форма (общая разметка _form.html) — как бланк */
.lead-form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 2px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5c6a80; }
.field input, .field select { font: 17px var(--sans); text-transform: none; letter-spacing: 0; color: #1d2a3e; padding: 8px 2px; border: 0; border-bottom: 1.5px solid #1d2a3e; background: transparent; border-radius: 0; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--orange); background: rgba(255,138,61,.07); }
.consent { display: flex; gap: 8px; font-size: 13px; color: #5c6a80; align-items: flex-start; }
.consent a { color: #1d2a3e; }
.consent input { accent-color: var(--orange); margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.btn { font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: 15px; border: 0; cursor: pointer; }
.form-msg { margin: 0; min-height: 1.4em; font-family: var(--mono); font-size: 14px; }
.form-msg.ok { color: #1d7a3e; font-weight: 600; }
.form-msg.err { color: #c0392b; }

.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acts blockquote { position: relative; margin: 0; padding: 20px 20px 54px; border: 1.5px solid var(--line); background: rgba(20, 60, 114, .55); }
.acts p { margin: 0 0 12px; }
.acts cite { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--muted); }
.act-stamp { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--orange); border: 2px solid var(--orange); padding: 2px 8px; transform: rotate(-6deg); }

/* штамп чертежа */
.title-block { display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); font-size: 13px; }
.title-block div { padding: 12px 16px; border-right: 1px solid rgba(255,255,255,.55); display: grid; gap: 2px; }
.title-block div:last-child { border-right: 0; }
.title-block small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.float-call { display: none; }

/* до старта анимаций */
.anim [data-reveal] { opacity: 0; }
.anim .machine { visibility: hidden; }

@media (max-width: 960px) {
  .bp-hero, .bp-person, .order-grid { grid-template-columns: 1fr; }
  .bp-nav { display: none; }
  .bp-header { justify-content: space-between; padding: 14px 18px; }
  .bp-hero, .bp-section { padding-left: 18px; padding-right: 18px; }
  .bp-figure { max-width: 520px; margin: 0 auto; width: 100%; }
  .flow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .flow li::after { display: none; }
  .acts { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr 1fr; padding-bottom: 80px; }
  .title-block div { border-bottom: 1px solid rgba(255,255,255,.55); }
  .bp-person { gap: 24px; }
  .float-call { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; padding: 16px; background: var(--orange); color: #1b1006; text-align: center; font-family: var(--mono); font-weight: 600; text-transform: uppercase; text-decoration: none; box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
}
@media (max-width: 560px) {
  .sheet { margin: 8px; }
  body { font-size: 16px; }
  .bp-logo small { display: none; }
  .bp-tg { display: none; }
  .bp-phone { font-size: 13px; padding: 7px 10px; }
  .bp-specs div { grid-template-columns: 1fr; gap: 2px; }
  .id-card { grid-template-columns: 1fr; }
  .id-card img { width: 120px; }
  .flow { grid-template-columns: 1fr; }
  .bp-table { font-size: 14px; }
  .bp-table th, .bp-table td { padding: 9px 10px; }
  .callout { width: 210px; }
}
