/* =========================================================
   BLUEPRINT — инженерный стиль
   бумага и графит, сетка чертежа, моноширинные пометки,
   прорисовка линий, сборка по слоям, живые калькуляторы
   ========================================================= */
:root {
  --bg: #eceee8; --bg-2: #e2e5de; --paper: #f5f6f2; --fg: #16191d; --muted: #666c73; --line: rgba(22, 25, 29, .14);
  --accent: #2f5bff; --accent-2: #ff6a1a; --accent-3: #16191d;
  --font-d: 'Golos Text', system-ui, sans-serif; --font-b: 'Golos Text', system-ui, sans-serif; --font-m: 'JetBrains Mono', monospace;
  --radius: 2px; --ease: cubic-bezier(.65, 0, .35, 1); --curtain: #16191d; --curtain-2: #2f5bff; --cursor: #2f5bff; --cursor-fg: #fff;
  --grid: 24px;
}
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(47, 91, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 91, 255, .07) 1px, transparent 1px),
    linear-gradient(rgba(47, 91, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 91, 255, .035) 1px, transparent 1px);
  background-size: calc(var(--grid) * 5) calc(var(--grid) * 5), calc(var(--grid) * 5) calc(var(--grid) * 5), var(--grid) var(--grid), var(--grid) var(--grid);
}
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.h-xl { font-size: clamp(40px, min(5vw, 8.2vh), 96px); }
.h-lg { font-size: clamp(36px, 5vw, 78px); }
.h-md { font-size: clamp(24px, 2.6vw, 36px); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 560px; }
.mono { font-family: var(--font-m); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.label { font-family: var(--font-m); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; }
.label::before { content: ''; width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.blue { color: var(--accent); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 70px); max-width: 860px; }

/* Метки совмещения по углам */
.marks { position: relative; }
.marks::before, .marks::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--fg); pointer-events: none; z-index: 3; }
.marks::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.marks::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px; border-radius: var(--radius);
  background: var(--fg); color: var(--paper); font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.btn:hover::after { clip-path: inset(0 0 0 0); }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn--ghost:hover { color: #fff; }

/* ---------- Навигация ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled .nav__in { background: rgba(236, 238, 232, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__in { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; height: 70px; border-bottom: 1px solid var(--line); transition: background .3s; }
.nav__logo { display: flex; align-items: center; gap: 12px; padding: 0 24px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; border-right: 1px solid var(--line); }
.nav__logo svg { width: 26px; height: 26px; color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; padding: 0 30px; font-family: var(--font-m); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nav__links a:hover { color: var(--accent); }
.nav__cta { display: flex; align-items: center; padding: 0 10px; border-left: 1px solid var(--line); }
.nav__cta .btn { height: 48px; }
.nav__logo { white-space: nowrap; }
@media (max-width: 900px) {
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__logo { padding: 0 16px; }
  .nav__cta .btn { height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.bp-hero { min-height: 100svh; padding: 110px 0 50px; display: flex; align-items: center; position: relative; }
.bp-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.bp-hero__txt { display: grid; gap: clamp(16px, 2.4vh, 26px); }
.bp-who { display: grid; gap: 0; border-top: 1px solid var(--line); }
.bp-who li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bp-who li span { font-family: var(--font-m); font-size: 11px; color: var(--accent); }
.bp-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--fg); }
.bp-fact { padding: 14px 16px; border-right: 1px solid var(--fg); }
.bp-fact:last-child { border-right: 0; }
.bp-fact b { display: block; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.bp-fact > span { font-family: var(--font-m); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-hook { display: flex; gap: 10px; align-items: center; font-family: var(--font-m); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.bp-hook .ico { color: var(--accent-2); }
.bp-visual { position: relative; padding: 40px 40px 40px 0; }
.bp-photo { aspect-ratio: 4/4.4; overflow: hidden; background: var(--bg-2); }
.bp-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.bp-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bp-overlay text { font-family: var(--font-m); font-size: 11px; fill: var(--fg); }
.bp-dim { position: absolute; color: var(--fg); }
.bp-dim svg { width: 100%; height: 100%; overflow: visible; }
.bp-dim path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bp-dim--top { left: 0; right: 40px; top: 12px; height: 14px; }
.bp-dim--right { top: 40px; bottom: 40px; right: 12px; width: 14px; }
.bp-dim__lbl { position: absolute; font-family: var(--font-m); font-size: 11px; background: var(--bg); padding: 0 6px; white-space: nowrap; }
.bp-dim--top .bp-dim__lbl { left: 50%; top: -1px; transform: translateX(-50%); }
.bp-dim--right .bp-dim__lbl { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
.bp-stamp { position: absolute; left: -30px; bottom: 70px; background: var(--paper); border: 1.5px solid var(--fg); padding: 12px 16px; font-family: var(--font-m); font-size: 11px; line-height: 1.6; text-transform: uppercase; }
.bp-stamp b { display: block; font-family: var(--font-d); font-size: 15px; text-transform: none; }
@media (max-width: 900px) {
  .bp-hero .container { grid-template-columns: 1fr; }
  .bp-visual { padding: 24px 24px 24px 0; }
  .bp-stamp { left: 0; }
}

/* ---------- Сборка по слоям ---------- */
.bp-assemble { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.bp-assemble .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; width: min(100% - 32px, 1240px); }
.bp-assemble .h-lg { font-size: clamp(32px, min(3.8vw, 6.5vh), 60px); }
.bp-steps { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.bp-step { display: grid; grid-template-columns: 50px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: .35; transition: opacity .4s; }
.bp-step.is-on { opacity: 1; }
.bp-step b { font-family: var(--font-m); font-size: 12px; color: var(--accent); padding-top: 4px; }
.bp-step h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.bp-step p { font-size: 14.5px; color: var(--muted); }
.bp-house { width: 100%; color: var(--fg); overflow: visible; }
.bp-house .fill-blue { fill: rgba(47, 91, 255, .12); }
.bp-house text { font-family: var(--font-m); font-size: 10px; fill: var(--accent); }
@media (max-width: 900px) {
  .bp-assemble { height: auto; padding: 80px 0; }
  .bp-assemble .container { grid-template-columns: 1fr; }
  .bp-step { opacity: 1; }
}

/* ---------- Таймлайн ---------- */
.bp-timeline { position: relative; display: grid; gap: 0; padding-left: 60px; }
.bp-timeline svg.bp-tl-line { position: absolute; left: 18px; top: 0; height: 100%; width: 4px; overflow: visible; }
.bp-tl-item { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px dashed var(--line); }
.bp-tl-item::before { content: ''; position: absolute; left: -48px; top: 36px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--accent); transform: rotate(45deg); }
.bp-tl-item .mono { color: var(--accent); padding-top: 6px; }
.bp-tl-item h3 { font-size: 26px; margin-bottom: 8px; }
.bp-tl-item p { color: var(--muted); max-width: 560px; }
@media (max-width: 760px) { .bp-tl-item { grid-template-columns: 1fr; gap: 8px; } .bp-timeline { padding-left: 44px; } .bp-tl-item::before { left: -33px; } .bp-timeline svg.bp-tl-line { left: 10px; } }

/* ---------- Калькулятор ---------- */
.bp-calc { display: grid; grid-template-columns: 1.1fr .9fr; border: 1.5px solid var(--fg); background: var(--paper); }
.bp-calc__in { padding: clamp(24px, 4vw, 50px); display: grid; gap: 30px; border-right: 1.5px solid var(--fg); }
.bp-calc__out { padding: clamp(24px, 4vw, 50px); display: grid; align-content: space-between; gap: 30px; background: var(--fg); color: var(--paper); }
.bp-field { display: grid; gap: 12px; }
.bp-field__top { display: flex; justify-content: space-between; align-items: baseline; }
.bp-field__top b { font-size: 26px; letter-spacing: -.02em; }
input[type=range].bp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--fg); outline: none; }
input[type=range].bp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--accent); transform: rotate(45deg); cursor: pointer; }
input[type=range].bp-range::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent); border: 3px solid var(--paper); border-radius: 0; cursor: pointer; }
.bp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bp-opt span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid var(--fg); font-size: 14px; cursor: pointer; transition: background .25s, color .25s; }
.bp-opt input:checked + span { background: var(--fg); color: var(--paper); }
.bp-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.odo { display: inline-flex; font-size: clamp(40px, 5vw, 66px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__d > span { display: flex; flex-direction: column; transition: transform 1s cubic-bezier(.2, .9, .1, 1); }
.odo__d > span > i { font-style: normal; height: 1em; }
.odo__s { display: inline-block; }
.bp-calc__out .mono { color: rgba(245, 246, 242, .6); }
.bp-calc__out .btn { background: var(--accent); }
.bp-calc__out .btn::after { background: var(--paper); }
.bp-calc__out .btn:hover { color: var(--fg); }
@media (max-width: 900px) { .bp-calc { grid-template-columns: 1fr; } .bp-calc__in { border-right: 0; border-bottom: 1.5px solid var(--fg); } }

/* ---------- Карточки ---------- */
.bp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); }
.bp-card { padding: 30px; border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); background: var(--paper); transition: background .4s; position: relative; }
.bp-card:hover { background: #fff; }
.bp-card .mono { color: var(--accent); }
.bp-card .ico { width: 36px; height: 36px; color: var(--accent); margin: 18px 0 22px; }
.bp-card h3 { font-size: 24px; margin-bottom: 8px; }
.bp-card p { color: var(--muted); font-size: 15px; }

/* ---------- Прицел-курсор ---------- */
.bp-cross { position: fixed; inset: 0; pointer-events: none; z-index: 9990; }
.bp-cross__h, .bp-cross__v { position: absolute; background: rgba(47, 91, 255, .35); }
.bp-cross__h { left: 0; right: 0; height: 1px; top: 0; }
.bp-cross__v { top: 0; bottom: 0; width: 1px; left: 0; }
.bp-cross__lbl { position: absolute; left: 0; top: 0; font-family: var(--font-m); font-size: 10.5px; color: var(--accent); background: var(--paper); padding: 3px 6px; border: 1px solid rgba(47, 91, 255, .4); white-space: nowrap; }
.bp-cross__box { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 1.5px solid var(--accent); transition: width .3s, height .3s, margin .3s, transform .3s; }
.bp-cross.is-hover .bp-cross__box { width: 44px; height: 44px; margin: -22px 0 0 -22px; transform: rotate(45deg); }
html.has-cross, html.has-cross a, html.has-cross button, html.has-cross label { cursor: none; }

/* ---------- CTA ---------- */
.bp-cta-box { border: 1.5px solid var(--fg); background: var(--paper); padding: clamp(30px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.bp-form { display: grid; gap: 10px; }
.bp-form input { height: 58px; padding: 0 18px; border: 1.5px solid var(--fg); background: var(--bg); font-size: 15px; }
.bp-form input:focus { outline: none; border-color: var(--accent); }
.form-ok { font-size: 26px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) { .bp-cta-box { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding: 30px 0; font-family: var(--font-m); font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
