@font-face { font-family:"Onest"; src:url("../../fonts/Onest.ttf") format("truetype"); font-weight:100 900; font-display:swap; }
@font-face { font-family:"Golos"; src:url("../../fonts/GolosText.ttf") format("truetype"); font-weight:100 900; font-display:swap; }
@font-face { font-family:"JBMono"; src:url("../../fonts/JetBrainsMono.ttf") format("truetype"); font-weight:100 900; font-display:swap; }

:root {
  --ink:#0C1226; --ink2:#0A0F20; --raised:#151D38; --line-d:#232C4A;
  --paper:#F5F6F8; --white:#FFF; --line-l:#D5D8E2;
  --text-l:#E7E9F0; --text-soft:#B9C0D4; --muted:#8C96B2; --muted-d:#5C6580;
  --text-d:#131A2E; --body-d:#3B435C;
  --amber:#E4A94F; --amber-d:#B8760F;
  --purple:#7B5EA7; --red:#C4453C; --blue:#2F5FA8; --orange:#B5651F; --green:#3F8F5F; --yellow:#B8901E;
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scrollbar-gutter:stable; }
html, body { overflow-x:clip; }
body { background:var(--ink); color:var(--text-l); font-family:"Golos",sans-serif;
       font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased; }

.wrap { max-width:1160px; margin:0 auto; padding:0 28px; }

h1,h2,h3 { font-family:"Onest",sans-serif; letter-spacing:-.03em; }
h1 { font-weight:700; font-size:clamp(34px,4.6vw,58px); line-height:1.04; }
h2 { font-weight:700; font-size:clamp(28px,3.6vw,42px); line-height:1.08; }
h3 { font-weight:600; font-size:19px; letter-spacing:-.015em; line-height:1.3; }
p { max-width:64ch; }
a { color:inherit; }

.eyebrow { font-family:"JBMono",monospace; font-size:11px; letter-spacing:.18em;
           text-transform:uppercase; color:var(--muted); }
.mono { font-family:"JBMono",monospace; }

header.top { position:fixed; top:0; left:0; right:0; z-index:50;
  background:rgba(12,18,38,.82); backdrop-filter:blur(14px); border-bottom:1px solid var(--line-d); }
.nav { display:flex; align-items:center; justify-content:space-between; height:64px; position:relative; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand svg { display:block; }
.brand b { font-family:"Onest",sans-serif; font-weight:700; letter-spacing:-.02em; font-size:17px; }
.nav-links { display:flex; gap:20px; position:absolute; left:50%; transform:translateX(-50%); white-space:nowrap; }
.nav-links a { font-size:14px; padding:12px 2px; display:inline-block; color:var(--text-soft); text-decoration:none; transition:color .2s; }
.nav-links a:hover { color:#FFF; }
.nav-links a[aria-current="page"] { color:#FFF; }
@media (max-width:980px){ .nav-links { display:none; } }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:"Onest",sans-serif; font-weight:600; font-size:15px; letter-spacing:-.01em;
  padding:13px 24px; border-radius:3px; text-decoration:none; cursor:pointer; border:0;
  transition:transform .15s ease, background .2s; }
.btn.primary { background:#F2F3F7; color:var(--ink); }
.btn.primary:hover { background:#FFF; transform:translateY(-1px); }
.btn.ghost { background:transparent; color:var(--text-l); border:1px solid #5C6580; }
.btn.ghost:hover { border-color:#8C96B2; }
.btn.small { padding:9px 18px; font-size:13.5px; }
.nav .btn.small { min-width:186px; }
.btn.on-paper { background:var(--ink); color:#F2F3F7; }
.btn.on-paper:hover { background:#1B2440; }

.page-hero { padding:150px 0 72px; border-bottom:1px solid var(--line-d); }
.page-hero .inner { display:flex; flex-direction:column; gap:20px; max-width:820px; }
.page-hero p.lead { font-size:clamp(17px,2vw,20px); color:var(--text-soft); }

section { padding:96px 0; }
section.paper { background:var(--paper); color:var(--text-d); }
section.paper .eyebrow { color:var(--muted-d); }
section.paper p { color:var(--body-d); }
section.deep { background:var(--ink2); }
.sec-head { display:flex; flex-direction:column; gap:14px; margin-bottom:48px; max-width:760px; }
.sec-head p { color:var(--text-soft); font-size:18px; }
section.paper .sec-head p { color:var(--body-d); }

.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; }
.grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.grid4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.split { display:grid; grid-template-columns:1fr minmax(300px,440px); gap:56px; align-items:center; }
@media (max-width:860px){ .split { grid-template-columns:1fr; gap:36px; } }

.card { border-radius:3px; padding:28px 26px; display:flex; flex-direction:column; gap:12px; }
.ink-card { background:var(--raised); border:1px solid var(--line-d); }
.paper-card { background:var(--white); border:1px solid var(--line-l); }
.card .k { font-family:"JBMono",monospace; font-size:10px; letter-spacing:.14em;
           text-transform:uppercase; color:var(--muted); }
section.paper .card .k { color:var(--muted-d); }
.card p { font-size:15px; line-height:1.55; }

.pchip { display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
         font-family:"JBMono",monospace; font-size:10.5px; letter-spacing:.06em; color:#C6CCDD;
         background:var(--raised); border:1px solid var(--line-d); border-radius:2px; padding:7px 12px; }
.pchip i { width:10px; height:10px; flex:none; display:block; }

ul.plain { list-style:none; display:flex; flex-direction:column; gap:10px; }
ul.plain li { position:relative; padding-left:20px; font-size:15.5px; line-height:1.55; }
ul.plain li::before { content:""; position:absolute; left:0; top:9px; width:6px; height:6px;
                      border-radius:50%; background:#5C6580; }

.stat-big { display:flex; flex-direction:column; gap:8px; }
.stat-big b { font-family:"Onest",sans-serif; font-weight:700; font-size:clamp(38px,4.4vw,54px);
              letter-spacing:-.04em; line-height:.95; font-variant-numeric:tabular-nums; }
.stat-big span { font-size:14.5px; line-height:1.5; color:var(--text-soft); max-width:30ch; }

table { border-collapse:collapse; width:100%; font-size:15px; }
th,td { text-align:left; padding:14px 16px; vertical-align:top; }
th { font-family:"JBMono",monospace; font-size:10px; letter-spacing:.14em; text-transform:uppercase;
     font-weight:400; color:var(--muted-d); border-bottom:1px solid var(--line-l); }
td { border-bottom:1px solid var(--line-l); color:var(--body-d); }
tr:last-child td { border-bottom:none; }
td.hl { color:var(--text-d); font-weight:600; }
.tbl-scroll { overflow-x:auto; background:var(--white); border:1px solid var(--line-l); border-radius:3px; }

html.js .rev { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
html.js .rev.in { opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; }
  html.js .rev { opacity:1; transform:none; transition:none; }
  * { animation:none !important; }
}

footer { border-top:1px solid var(--line-d); padding:40px 0; background:var(--ink); }
.foot-row { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
            font-family:"JBMono",monospace; font-size:11px; letter-spacing:.1em; color:#7B85A8; }
.foot-row a { text-decoration:none; }
.foot-row a:hover { color:#8C96B2; }

.cta-band { padding:110px 0; background:var(--ink2); }
.cta-band .inner { display:flex; flex-direction:column; gap:22px; align-items:flex-start; }

.matrix-cap { min-height:56px; max-width:100%; padding:0 12px; box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
              gap:5px; margin-top:20px; text-align:center; }
.matrix-cap .mc-name { font-family:"Onest",sans-serif; font-weight:600; font-size:19px;
                       letter-spacing:-.015em; color:var(--text-l); }
.matrix-cap .mc-code { font-family:"JBMono",monospace; font-size:10.5px; letter-spacing:.14em;
                       color:#7B85A8; }
.matrix-cap .mc-leg { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 16px;
                      margin-top:6px; font-family:"JBMono",monospace; font-size:9px;
                      letter-spacing:.1em; color:#5A6489; }
.matrix-cap .mc-leg span { display:inline-flex; align-items:center; gap:6px; }
.matrix-cap .mc-leg i { width:9px; height:9px; flex:none; transition:all .15s ease; }
.matrix-cap .lg-fill { background:#3A4463; }
.matrix-cap .lg-ring { border:2px solid #3A4463; background:transparent; }

.skip-link { position:absolute; left:-9999px; top:0; z-index:100; background:#F2F3F7; color:#0C1226;
             padding:12px 20px; font-family:"Onest",sans-serif; font-weight:600; border-radius:0 0 3px 0; }
.skip-link:focus { left:0; }

@media (max-width:860px){ .cmp-grid { grid-template-columns:1fr !important; gap:28px !important; } }

/* машинная фаска: срезанный угол + шлифованная кромка (для ключевых карточек) */
.card.steel, .lc-step { position:relative; border-radius:0;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.card.steel::before, .lc-step::before { content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(231,234,240,.34), transparent); }
.lc-step::before, section.paper .card.steel::before, .card.steel.paper-card::before {
  background:linear-gradient(90deg, transparent, rgba(57,65,92,.35), transparent); }
.card.steel::after, .lc-step::after { content:""; position:absolute; top:0; right:0; width:16px; height:16px;
  background:linear-gradient(135deg, transparent calc(50% - 0.6px), rgba(231,234,240,.35) 50%, transparent calc(50% + 0.6px)); }
.lc-step::after, section.paper .card.steel::after, .card.steel.paper-card::after {
  background:linear-gradient(135deg, transparent calc(50% - 0.6px), rgba(57,65,92,.5) 50%, transparent calc(50% + 0.6px)); }

.lc-row { display:flex; align-items:stretch; gap:10px; }
.lc-step { flex:1; background:var(--white); border:1px solid var(--line-l);
           padding:18px 16px; display:flex; flex-direction:column; gap:8px; }
.lc-step .k { font-family:"JBMono",monospace; font-size:10px; letter-spacing:.12em;
              text-transform:uppercase; color:var(--muted-d); }
.lc-step p { font-size:13.5px; line-height:1.5; color:var(--body-d); }
.lc-arrow { align-self:center; color:#9AA1B5; font-size:18px; flex:none; }
@media (max-width:900px){ .lc-row { flex-direction:column; } .lc-arrow { transform:rotate(90deg); align-self:flex-start; margin-left:24px; } }

/* формы заявок */
.ml-form { display:flex; flex-direction:column; gap:14px; max-width:560px; width:100%;
           background:var(--raised); border:1px solid var(--line-d); border-radius:3px; padding:26px; }
.ml-form label { display:flex; flex-direction:column; gap:6px;
  font-family:"JBMono",monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.ml-form input, .ml-form textarea, .ml-form select {
  appearance:none; background:var(--ink); border:1px solid #3A4364; border-radius:3px;
  padding:12px 14px; color:var(--text-l); font-family:"Golos",sans-serif; font-size:15px; width:100%; }
.ml-form input:focus, .ml-form textarea:focus, .ml-form select:focus {
  outline:2px solid var(--amber); outline-offset:0; border-color:var(--amber); }
.ml-form .f-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .ml-form .f-row { grid-template-columns:1fr; } }
.ml-form button { align-self:flex-start; }
.f-note { font-size:12.5px; color:var(--muted); font-family:"Golos",sans-serif; }
.f-done { background:rgba(63,143,95,.14); border:1px solid #3F8F5F; border-radius:3px;
          padding:14px 16px; color:#8FD3AB; font-size:14.5px; }
.f-fail { background:rgba(196,69,60,.12); border:1px solid #C4453C; border-radius:3px;
          padding:14px 16px; color:#E8A19B; font-size:14.5px; }
.f-fail a { color:#F2F3F7; }
.hp { position:absolute; left:-9999px; }

/* мобильное меню */
.burger { display:none; appearance:none; background:none; border:1px solid #5C6580; border-radius:3px;
          width:42px; height:38px; align-items:center; justify-content:center; cursor:pointer; flex:none; }
.burger:focus-visible { outline:2px solid #E4A94F; outline-offset:2px; }
.mob-nav { position:fixed; top:64px; left:0; right:0; z-index:49;
           background:#0C1226;
           border-bottom:1px solid #232C4A; box-shadow:0 24px 40px rgba(4,8,22,.5);
           display:none; flex-direction:column; padding:8px 28px 20px; }
.mob-nav a { padding:14px 4px; font-size:16px; color:#B9C0D4; text-decoration:none;
             border-bottom:1px solid rgba(35,44,74,.6); font-family:"Golos",sans-serif; }
.mob-nav a[aria-current="page"] { color:#FFF; }
.mob-nav a.btn { margin-top:14px; border:0; color:#0C1226; justify-content:center; }
html.nav-open .mob-nav { display:flex; }
@media (max-width:980px){ .burger { display:inline-flex; } }
@media (max-width:620px){ .nav > .btn.small { display:none; } }

/* янтарные акценты */
.btn.primary { background:#E4A94F; color:#0C1226; border:1px solid #C98F2F; }
.btn.primary:hover { background:#EDBB6B; transform:translateY(-1px); }
.eyebrow::before { content:""; display:inline-block; width:16px; height:2px; background:#E4A94F;
                   margin-right:10px; vertical-align:middle; }
.sec-head h2::after, .page-hero h1::after, .cta-band h2::after { content:"."; color:#E4A94F; }
.nav-links a[aria-current="page"] { color:#FFF; box-shadow:inset 0 -2px 0 #E4A94F; padding-bottom:10px; }
ul.plain li::before { background:#E4A94F; }
section.paper ul.plain li::before { background:#B8760F; }
.live-picker button[aria-pressed="true"] { color:#E4A94F; }
.demo-bar button[aria-pressed="true"] { color:#E4A94F; }
.foot-row a:hover { color:#E4A94F; }
.mob-nav a[aria-current="page"] { color:#E4A94F; }
section.paper .sec-head h2::after { color:#B8760F; }
@media (min-width:2200px){ .wrap { max-width:1320px; } }
