/* ==========================================================================
   BARCRAFT — Swiss Industrial Precision design system
   Tokens extracted from agency_mockup.html / БАРКРАФТ_портфолио (1).pdf
   ========================================================================== */
:root {
  --brand-red: #EC2027;
  --brand-red-dark: #C4161C;
  --n950: #0A0A0A;
  --n900: #171717;
  --n800: #262626;
  --n600: #525252;
  --n400: #A3A3A3;
  --n200: #E5E5E5;
  --surface: #F8F9FA;
  --white: #FFFFFF;
  --stone: #EAE6DF;
  --ink: #231F20;
  --emerald: #10B981;
  --emerald-d: #059669;
  --blue: #1D4ED8;
  --purple: #7E22CE;
  --amber: #D97706;
  --font-head: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- Labels / eyebrows ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
}
.eyebrow.muted { color: var(--n400); }
.rule { height: 3px; width: 56px; background: var(--brand-red); margin: 16px 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--n900); background: var(--n900); color: #fff;
  padding: 12px 22px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-red); border-color: var(--brand-red); }
.btn.red { background: var(--brand-red); border-color: var(--brand-red); }
.btn.red:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid; line-height: 1.4; white-space: nowrap;
}
.badge.emerald { color: var(--emerald-d); border-color: var(--emerald); background: #ECFDF5; }
.badge.blue { color: var(--blue); border-color: var(--blue); background: #EFF6FF; }
.badge.purple { color: var(--purple); border-color: var(--purple); background: #FAF5FF; }
.badge.red { color: var(--brand-red); border-color: var(--brand-red); background: #FEF2F2; }
.badge.amber { color: var(--amber); border-color: var(--amber); background: #FFFBEB; }
.badge.grey { color: var(--n600); border-color: var(--n400); background: #fff; }
.dark .badge.emerald { background: rgba(16,185,129,.1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); display: inline-block; }
.dot.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--n800); }
.lang-switch button {
  background: transparent; color: var(--n400); border: 0; padding: 6px 12px;
  font-size: 12px; font-weight: 600; font-family: var(--font-mono);
}
.lang-switch button.active { background: var(--brand-red); color: #fff; }
.lang-switch button:not(.active):hover { color: #fff; }

/* ==========================================================================
   PORTAL (index.html)
   ========================================================================== */
.topbar { background: var(--n900); color: #fff; font-size: 12px; border-bottom: 1px solid var(--n800); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar .meta { display: flex; gap: 18px; align-items: center; color: var(--n400); flex-wrap: wrap; }
.topbar strong { color: #fff; font-family: var(--font-mono); }

.nav { background: var(--white); border-bottom: 1px solid var(--n200); position: sticky; top: 0; z-index: 40; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo i { width: 14px; height: 14px; background: var(--brand-red); display: inline-block; }
.logo small { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--n600); letter-spacing: .1em; display: block; margin-top: 2px; }
.nav-links { display: flex; gap: 26px; font-size: 13px; font-weight: 600; }
.nav-links a { color: var(--n600); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); border-color: var(--brand-red); }
.nav-right { display: flex; gap: 14px; align-items: center; }
.nav .lang-switch { border-color: var(--n200); }
.nav .lang-switch button { color: var(--n600); }
.nav .lang-switch button.active { color: #fff; }

.hero { background: var(--n950); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--n800) 1px, transparent 1px), linear-gradient(90deg, var(--n800) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
}
.hero .container { position: relative; padding-top: 88px; padding-bottom: 80px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand-red); }
.hero p.lead { color: #D4D4D4; font-size: 17px; max-width: 560px; margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--n800); border: 1px solid var(--n800); }
.hero-stats > div { background: var(--n900); padding: 22px 20px; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 36px; font-weight: 700; }
.hero-stats span { font-size: 11.5px; color: var(--n400); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.hero-stats .wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-stats .wide b { font-size: 20px; font-family: var(--font-mono); }

section.block { padding: 88px 0; }
section.block.dark { background: var(--n950); color: #fff; }
section.block.stone { background: var(--stone); }
section.block.white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.section-head p { color: var(--n600); font-size: 16px; margin: 0; }
.dark .section-head p { color: var(--n400); }

/* flow diagram */
.flow { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.flow-node { background: var(--n900); border: 1px solid var(--n800); padding: 26px; position: relative; }
.flow-node.active { border-color: var(--brand-red); box-shadow: inset 0 3px 0 var(--brand-red); }
.flow-node .flag { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red); letter-spacing: .12em; font-weight: 600; }
.flow-node h3 { font-size: 22px; margin: 8px 0 4px; }
.flow-node .cur { font-family: var(--font-mono); font-size: 12px; color: var(--emerald); margin-bottom: 14px; display: block; }
.flow-node ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #D4D4D4; }
.flow-node li { padding: 6px 0; border-top: 1px solid var(--n800); display: flex; gap: 8px; }
.flow-node li::before { content: '→'; color: var(--brand-red); font-family: var(--font-mono); }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--emerald); font-family: var(--font-mono); font-size: 10px; text-align: center; gap: 4px; }
.flow-arrow svg { width: 40px; height: 16px; }
.flow-detail { margin-top: 24px; border: 1px solid var(--n800); background: var(--n900); padding: 20px 26px; font-size: 14px; color: #D4D4D4; min-height: 64px; }
.flow-detail strong { color: #fff; }
.flow-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.flow-tabs button { background: transparent; border: 1px solid var(--n800); color: var(--n400); padding: 8px 14px; font-size: 12px; font-family: var(--font-mono); }
.flow-tabs button.active, .flow-tabs button:hover { border-color: var(--brand-red); color: #fff; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--n200); border: 1px solid var(--n200); }
.pillar { background: #fff; padding: 30px 26px; }
.pillar .num { font-family: var(--font-mono); font-size: 12px; color: var(--brand-red); font-weight: 600; }
.pillar h3 { font-size: 20px; margin: 10px 0 10px; }
.pillar p { margin: 0; color: var(--n600); font-size: 14px; }

/* case */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--n200); background: #fff; }
.case-media { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--n200); }
.case-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.case-body { padding: 40px; }
.case-body h3 { font-size: 30px; margin: 10px 0 14px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--n200); border: 1px solid var(--n200); margin: 24px 0; }
.case-metrics div { background: var(--surface); padding: 14px; }
.case-metrics b { font-family: var(--font-head); font-size: 28px; display: block; color: var(--brand-red); }
.case-metrics span { font-size: 11px; font-family: var(--font-mono); color: var(--n600); text-transform: uppercase; letter-spacing: .04em; }
.case-body ul { padding: 0; margin: 0 0 22px; list-style: none; font-size: 14px; }
.case-body li { padding: 7px 0; border-top: 1px solid var(--n200); display: flex; gap: 8px; }
.case-body li::before { content: '■'; color: var(--brand-red); font-size: 8px; margin-top: 7px; }

/* portfolio */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf-card { background: var(--stone); border: 1px solid #D8D2C7; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; transition: transform .15s, border-color .15s; }
.pf-card:hover { transform: translateY(-3px); border-color: var(--brand-red); }
.section-stone-bg .pf-card, section.stone .pf-card { background: #fff; }
.pf-card h4 { font-size: 20px; margin: 8px 0 4px; }
.pf-card p { margin: 0; font-size: 13px; color: var(--n600); }
.pf-card .loc { font-family: var(--font-mono); font-size: 11px; color: var(--n600); }
.pf-card.feature { grid-column: span 2; background: var(--n900); color: #fff; border-color: var(--n900); }
.pf-card.feature p, .pf-card.feature .loc { color: var(--n400); }
.pf-card.feature h4 { font-size: 30px; }
.pf-card.feature .big { font-family: var(--font-head); font-size: 56px; color: var(--brand-red); font-weight: 700; line-height: 1; }

/* live ledger of clusters */
.clusters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--n800); border: 1px solid var(--n800); }
.cluster { background: var(--n900); padding: 22px; }
.cluster h4 { font-size: 18px; margin: 6px 0 12px; }
.cluster .list { font-size: 12.5px; color: var(--n400); font-family: var(--font-mono); line-height: 1.8; }
.cluster .cnt { font-family: var(--font-head); font-size: 40px; color: #fff; }

/* packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg { background: #fff; border: 1px solid var(--n200); padding: 32px 28px; display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s; }
.pkg:hover, .pkg.selected { border-color: var(--brand-red); box-shadow: 0 0 0 1px var(--brand-red); }
.pkg.featured::before { content: attr(data-flag); position: absolute; top: -1px; right: -1px; background: var(--brand-red); color: #fff; font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; letter-spacing: .08em; }
.pkg .code { font-family: var(--font-mono); font-size: 11px; color: var(--n600); }
.pkg h3 { font-size: 26px; margin: 8px 0 8px; }
.pkg .price { font-family: var(--font-mono); font-size: 13px; color: var(--brand-red); font-weight: 600; margin-bottom: 16px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: 14px; flex: 1; }
.pkg li { padding: 8px 0; border-top: 1px solid var(--n200); display: flex; gap: 10px; }
.pkg li::before { content: '✓'; color: var(--emerald-d); font-weight: 700; }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.qr-box { background: #fff; color: var(--ink); padding: 28px; text-align: center; border-top: 4px solid var(--brand-red); }
.qr-box img { width: 220px; height: 220px; margin: 0 auto 14px; image-rendering: pixelated; }
.qr-box .id { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.reqs { font-family: var(--font-mono); font-size: 12.5px; color: var(--n400); line-height: 2; margin-top: 24px; border-top: 1px solid var(--n800); padding-top: 18px; }
.reqs b { color: #fff; font-weight: 500; }

footer.site { background: var(--n950); color: var(--n400); font-size: 12px; padding: 28px 0; border-top: 1px solid var(--n800); }
footer.site .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: #fff; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,10,.78); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-top: 4px solid var(--brand-red); }
.modal.wide { max-width: 860px; }
.modal-head { padding: 22px 26px 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 22px; }
.modal-x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--n600); }
.modal-body { padding: 8px 26px 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--n600); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--n400); background: #fff; padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-red); outline-offset: -1px; border-color: var(--brand-red); }
.field input.mono { font-family: var(--font-mono); }
.notice { padding: 12px 14px; font-size: 13px; border-left: 4px solid var(--emerald); background: #ECFDF5; margin-top: 12px; }
.notice.err { border-color: var(--brand-red); background: #FEF2F2; }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
body.app { background: var(--surface); }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--n950); color: #fff; padding: 22px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--n800); }
.sidebar .logo { padding: 0 22px 22px; border-bottom: 1px solid var(--n800); color: #fff; }
.sidebar .logo small { color: var(--n400); }
.side-nav { padding: 16px 0; flex: 1; }
.side-nav button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 22px; background: none; border: 0; color: var(--n400); font-size: 13.5px; font-weight: 500; text-align: left; border-left: 3px solid transparent; }
.side-nav button:hover { color: #fff; background: var(--n900); }
.side-nav button.active { color: #fff; background: var(--n900); border-left-color: var(--brand-red); }
.side-nav .ix { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red); width: 20px; }
.side-foot { padding: 16px 22px 0; border-top: 1px solid var(--n800); font-size: 11.5px; color: var(--n400); font-family: var(--font-mono); line-height: 1.8; }
.side-foot .lang-switch { margin-bottom: 12px; display: flex; }
.side-foot .lang-switch button { flex: 1; }

.main { padding: 28px 36px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--n600); font-size: 14px; max-width: 760px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--n200); border: 1px solid var(--n200); margin-bottom: 24px; }
.kpi { background: #fff; padding: 18px 20px; }
.kpi .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--n600); }
.kpi .val { font-family: var(--font-head); font-size: 32px; font-weight: 700; margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--n600); }
.kpi.dark { background: var(--n900); color: #fff; }
.kpi.dark .lbl, .kpi.dark .sub { color: var(--n400); }

.card { background: #fff; border: 1px solid var(--n200); margin-bottom: 20px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--n200); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }
.card-body { padding: 20px; }
.card.dark { background: var(--n900); border-color: var(--n800); color: #fff; }
.card.dark .card-head { border-color: var(--n800); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--n400); background: #fff; padding: 6px 12px; font-size: 12px; font-family: var(--font-mono); color: var(--n600); }
.chip.active, .chip:hover { background: var(--n900); color: #fff; border-color: var(--n900); }
.chip.active { background: var(--brand-red); border-color: var(--brand-red); }
.filters select, .filters input { border: 1px solid var(--n400); padding: 6px 10px; font-size: 12.5px; font-family: var(--font-body); background: #fff; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--n600); padding: 10px 14px; border-bottom: 2px solid var(--n900); background: var(--surface); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--n200); vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FFF5F5; }
.tbl .name { font-weight: 600; }
.tbl .sub { font-size: 11.5px; color: var(--n600); }
.scroll-x { overflow-x: auto; }

.score { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.score .bar { flex: 1; height: 6px; background: var(--n200); position: relative; }
.score .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--purple); }
.score .bar::after { content: ''; position: absolute; left: 75%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.score.low .bar i { background: var(--amber); }
.score b { font-family: var(--font-mono); font-size: 12.5px; }

.stage-pipe { display: flex; gap: 4px; }
.stage-pipe span { flex: 1; height: 6px; background: var(--n200); }
.stage-pipe span.on { background: var(--brand-red); }

/* warehouse */
.hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.hub { background: var(--n900); color: #fff; border: 1px solid var(--n800); border-top: 3px solid var(--brand-red); display: grid; grid-template-columns: 120px 1fr; }
.hub.ru { border-top-color: var(--blue); }
.hub img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }
.hub-body { padding: 18px; }
.hub-body .code { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red); letter-spacing: .08em; }
.hub.ru .code { color: #60A5FA; }
.hub-body h4 { font-size: 16px; margin: 4px 0 12px; }
.hub-nums { display: flex; gap: 20px; }
.hub-nums b { font-family: var(--font-head); font-size: 28px; display: block; }
.hub-nums span { font-size: 10.5px; font-family: var(--font-mono); color: var(--n400); text-transform: uppercase; }
.hub-nums .foc b { color: var(--emerald); }

.stock-cell { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.stock-cell .foc { color: var(--emerald-d); font-weight: 600; }
.stock-cell .com { color: var(--n600); }
.stock-cell.low { background: #FEF2F2; }

.sla-timer { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.sla-timer.ok { color: var(--blue); }
.sla-timer.warn { color: var(--amber); }
.sla-timer.over { color: var(--brand-red); }
.sla-timer.done { color: var(--emerald-d); }

.guard-result { margin-top: 16px; padding: 16px 18px; border-left: 5px solid var(--n400); background: var(--surface); font-size: 13.5px; }
.guard-result.ok { border-color: var(--emerald); background: #ECFDF5; }
.guard-result.block { border-color: var(--brand-red); background: #FEF2F2; }
.guard-result h4 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.guard-result .tri { margin-top: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.guard-result .tri div { padding-left: 10px; border-left: 2px solid rgba(0,0,0,.15); }
.guard-result .tri b { font-family: var(--font-mono); font-size: 10.5px; margin-right: 6px; }

.form-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.two { grid-template-columns: repeat(2, 1fr); }
.card .field input, .card .field select { padding: 9px 11px; font-size: 13px; }

/* 8D */
.rep8d { border: 1px solid var(--n200); margin-bottom: 14px; background: #fff; }
.rep8d-head { padding: 12px 16px; background: var(--n900); color: #fff; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.rep8d-head .mono { font-size: 13px; }
.rep8d-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.rep8d-col { padding: 16px; border-right: 1px solid var(--n200); font-size: 12.5px; }
.rep8d-col:last-child { border-right: 0; }
.rep8d-col .lg { font-family: var(--font-mono); font-size: 10.5px; color: var(--brand-red); font-weight: 600; letter-spacing: .1em; margin-bottom: 8px; }
.rep8d-col h5 { font-family: var(--font-mono); font-size: 10px; color: var(--n600); margin: 10px 0 2px; text-transform: uppercase; letter-spacing: .08em; }
.rep8d-col p { margin: 0; }

/* calculator */
.calc-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.seg { display: grid; gap: 6px; }
.seg button { text-align: left; padding: 10px 12px; border: 1px solid var(--n400); background: #fff; font-size: 12.5px; line-height: 1.35; }
.seg button.active { border-color: var(--brand-red); box-shadow: inset 3px 0 0 var(--brand-red); background: #FFF5F5; }
.seg button .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--n600); display: block; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--n200); border: 1px solid var(--n200); margin-bottom: 20px; }
.mx-cell { background: #fff; padding: 18px; cursor: pointer; border-top: 3px solid transparent; }
.mx-cell:hover { background: #FFF5F5; }
.mx-cell.active { border-top-color: var(--brand-red); background: #FFF5F5; }
.mx-cell .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--n600); text-transform: uppercase; letter-spacing: .06em; }
.mx-cell .v { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin: 4px 0; }
.mx-cell .loc { font-family: var(--font-mono); font-size: 12px; }
.st1-meter { height: 14px; background: var(--n800); position: relative; margin: 10px 0 6px; }
.st1-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--emerald); }
.st1-meter i.fail { background: var(--amber); }
.st1-meter::after { content: ''; position: absolute; left: 55%; top: -5px; bottom: -5px; width: 2px; background: #fff; }
.st1-lbl { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--n400); }
.cost-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--n200); font-size: 13px; }
.cost-row .mono { text-align: right; }
.cost-row.total { border-top: 2px solid var(--n900); border-bottom: 0; font-weight: 700; font-size: 15px; }
.cost-bar { display: flex; height: 22px; margin: 12px 0 4px; border: 1px solid var(--n200); }
.cost-bar i { display: block; }
.rates-strip { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; padding: 12px 20px; background: var(--n900); color: #fff; margin-bottom: 20px; align-items: center; }
.rates-strip span { color: var(--n400); }
.rates-strip b { color: var(--emerald); font-weight: 600; }

.empty, .loading { padding: 36px; text-align: center; color: var(--n600); font-family: var(--font-mono); font-size: 12px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--n900); color: #fff; padding: 14px 20px; border-left: 4px solid var(--emerald); z-index: 200; font-size: 13px; max-width: 420px; transform: translateY(120px); transition: transform .25s; }
.toast.show { transform: translateY(0); }
.toast.err { border-color: var(--brand-red); }

@media (max-width: 980px) {
  .hero .container, .case, .contact, .grid-2, .calc-grid, .hubs { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { padding: 10px 0; transform: rotate(90deg); }
  .pillars, .packages, .portfolio, .grid-3 { grid-template-columns: 1fr; }
  .pf-card.feature { grid-column: span 1; }
  .clusters, .kpis { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main { padding: 20px 16px; }
  .form-row, .form-row.three { grid-template-columns: 1fr 1fr; }
  .rep8d-body { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
}

.tbl td.mxc { cursor: pointer; border-left: 1px solid var(--n200); }
.tbl td.mxc:hover { background: #FFF5F5; }
.tbl td.mxc.active { background: #FFF5F5; box-shadow: inset 0 -3px 0 var(--brand-red); }

/* ==========================================================================
   BARCRAFT.PRO VISUAL REPLICA — PUBLIC PORTAL (.portal-body)
   ========================================================================== */
:root {
  --font-display: 'Oswald', 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --steel-200: #E5E7EB;
  --steel-100: #F4F5F6;
}

.portal-body { background: #FFFFFF; color: var(--ink); }
.portal-body h1, .portal-body h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Sticky Header + Collapsible Red Topbar */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .25s ease;
}
.bc-topbar {
  background: var(--brand-red); color: rgba(255,255,255,0.92);
  font-size: 12px; line-height: 1; height: 36px;
  display: flex; align-items: center;
  transition: height .25s ease, opacity .2s ease;
}
.bc-topbar .container {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.bc-topbar .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc-topbar .sep { opacity: 0.45; }
.bc-topbar strong { color: #fff; font-family: var(--font-mono); font-weight: 600; }
.topbar-cta {
  background: none; border: 0; color: #fff; font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em; padding: 4px 0; white-space: nowrap;
}
.topbar-cta:hover { text-decoration: underline; }

.bc-nav {
  height: 80px; display: flex; align-items: center;
  color: #FFFFFF; background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.bc-nav .container {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bc-logo { display: inline-flex; align-items: center; color: inherit; }
.bc-nav .nav-links { display: flex; gap: 28px; }
.bc-nav .nav-links a {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.84); padding: 8px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.bc-nav .nav-links a:hover { color: var(--brand-red); border-color: transparent; }
.bc-nav .lang-switch { border-color: rgba(255,255,255,0.28); }
.bc-nav .lang-switch button { color: rgba(255,255,255,0.75); font-size: 11px; padding: 5px 10px; }
.bc-nav .lang-switch button.active { background: var(--brand-red); color: #fff; }
.bc-nav .lang-switch button:not(.active):hover { color: #fff; }
.nav-dash-link {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 14px; transition: all .15s; white-space: nowrap;
}
.nav-dash-link:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

/* Scrolled Header State */
.site-header.scrolled .bc-topbar { height: 0; opacity: 0; overflow: hidden; }
.site-header.scrolled .bc-nav {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  color: var(--ink); border-bottom: 1px solid var(--steel-200);
}
.site-header.scrolled .bc-nav .nav-links a { color: var(--ink); }
.site-header.scrolled .bc-nav .nav-links a:hover { color: var(--brand-red); }
.site-header.scrolled .bc-nav .lang-switch { border-color: var(--steel-200); }
.site-header.scrolled .bc-nav .lang-switch button { color: var(--n600); }
.site-header.scrolled .bc-nav .lang-switch button.active { color: #fff; }
.site-header.scrolled .bc-nav .lang-switch button:not(.active):hover { color: var(--ink); }
.site-header.scrolled .nav-dash-link { color: var(--ink); border-color: var(--steel-200); }
.site-header.scrolled .nav-dash-link:hover { color: #fff; border-color: var(--brand-red); }

/* barcraft.pro Sharp Buttons */
.bc-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--brand-red); color: #fff; border: 0;
  padding: 15px 28px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.bc-btn-primary:hover {
  background: #C81A20; transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}
.bc-btn-primary .arr { display: inline-block; transition: transform .2s; }
.bc-btn-primary:hover .arr { transform: translateX(6px); }

.bc-btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.42);
  padding: 14px 28px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background .2s, transform .2s, border-color .2s;
}
.bc-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }
.bc-btn-outline.dark-ink { color: var(--ink); border-color: var(--steel-200); }
.bc-btn-outline.dark-ink:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Fullscreen Hero (barcraft.pro style) */
.bc-hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff; background: #141213; overflow: hidden;
}
.bc-hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url('/media/warehouse');
  background-size: cover; background-position: center;
  filter: saturate(0.75) contrast(1.05);
}
.bc-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,14,15,0.90) 0%, rgba(16,14,15,0.72) 55%, rgba(16,14,15,0.42) 100%),
              linear-gradient(180deg, rgba(16,14,15,0.55) 0%, transparent 35%, rgba(16,14,15,0.88) 100%);
}
.bc-hero .hero-inner {
  position: relative; z-index: 2; padding-top: 170px; padding-bottom: 64px;
}
.bc-hero h1 {
  font-size: clamp(44px, 5.2vw, 88px); line-height: 1.04; max-width: 900px;
  color: #fff; margin: 0 0 24px;
}
.bc-hero h1 em { font-style: normal; color: var(--brand-red); }
.bc-hero .hero-lead {
  font-size: 17px; color: rgba(255,255,255,0.84); max-width: 600px;
  line-height: 1.65; margin: 0 0 34px;
}
.bc-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-ticker {
  position: relative; z-index: 2;
  background: rgba(16,14,15,0.78); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
}
.ticker-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.ticker-brand {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.62); text-transform: uppercase;
  transition: color .2s;
}
.ticker-brand:hover { color: #fff; }

/* Sections */
.bc-sec { padding: 88px 0; }
.bc-sec.white { background: #FFFFFF; }
.bc-sec.light { background: var(--steel-100); }
.bc-sec.dark { background: var(--ink); color: #fff; }
.bc-sec-head { margin-bottom: 44px; max-width: 780px; }
.bc-sec-head h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.bc-sec-head p { margin: 0; font-size: 16px; color: var(--n600); line-height: 1.6; }
.bc-sec.dark .bc-sec-head p { color: rgba(255,255,255,0.68); }

/* Metrics strip with horizontal red line (barcraft.pro About section) */
.bc-metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 40px;
}
.bc-metric { display: flex; flex-direction: column; }
.bc-metric-num {
  font-family: var(--font-display); font-size: clamp(44px, 4vw, 62px);
  line-height: 1; color: var(--ink); padding-bottom: 18px;
  border-bottom: 2px solid var(--brand-red);
}
.bc-metric-lbl {
  margin-top: 14px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
}
.bc-metric-sub { font-size: 12px; color: var(--n600); margin-top: 4px; font-family: var(--font-mono); }

/* Process / Flow Cards with giant outline/solid numbers (01-03) */
.bc-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 24px; align-items: stretch;
}
.bc-step {
  background: #FFFFFF; border: 1px solid var(--steel-200);
  padding: 34px 30px; cursor: pointer;
  opacity: 0.72; transition: transform .3s ease, box-shadow .3s ease, opacity .25s ease, border-color .25s ease;
}
.bc-step:hover { opacity: 0.95; }
.bc-step.active {
  opacity: 1; transform: translateY(-20px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.16);
  border-color: var(--steel-200);
}
.bc-step-num {
  font-family: var(--font-display); font-size: 56px; line-height: 1; margin-bottom: 20px;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-red);
  transition: color .25s;
}
.bc-step.active .bc-step-num { color: var(--brand-red); -webkit-text-stroke: 0; }
.bc-step-cur {
  font-family: var(--font-mono); font-size: 11px; color: var(--emerald-d);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.bc-step h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.bc-step ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--n600); }
.bc-step li { padding: 7px 0; border-top: 1px solid var(--steel-200); }
.bc-step-detail {
  margin-top: 24px; background: #fff; border: 1px solid var(--steel-200);
  border-left: 4px solid var(--brand-red); padding: 20px 26px;
  font-size: 14.5px; color: var(--ink);
}

/* Sharp Cards for Pillars, Case, Portfolio, Packages */
.portal-body .pillars { background: var(--steel-200); border-color: var(--steel-200); }
.portal-body .pillar { padding: 32px 28px; transition: box-shadow .25s; }
.portal-body .pillar:hover { box-shadow: 0 12px 28px -8px rgba(0,0,0,0.08); }
.portal-body .pillar h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; }

.portal-body .case { border-color: var(--steel-200); }
.portal-body .case-media img { transition: transform .5s ease; }
.portal-body .case:hover .case-media img { transform: scale(1.03); }
.portal-body .case-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 36px; font-weight: 400; }

.portal-body .pf-card {
  background: #fff; border: 1px solid var(--steel-200); min-height: 156px;
}
.portal-body .pf-card:hover { box-shadow: 0 16px 32px -10px rgba(0,0,0,0.12); border-color: var(--brand-red); }
.portal-body .pf-card.feature { background: var(--ink); border-color: var(--ink); }

.portal-body .pkg { border-color: var(--steel-200); }
.portal-body .pkg h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; font-weight: 400; }

/* Final Dark Banner ("От идеи до полного запуска") */
.bc-banner {
  position: relative; padding: 108px 0; color: #fff; background: #141213; overflow: hidden;
}
.bc-banner .banner-bg {
  position: absolute; inset: 0;
  background-image: url('/media/engineer');
  background-size: cover; background-position: center;
}
.bc-banner .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,19,0.92) 0%, rgba(20,18,19,0.72) 60%, rgba(20,18,19,0.48) 100%);
}
.bc-banner .banner-inner { position: relative; z-index: 2; max-width: 720px; }
.bc-banner h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; margin: 0 0 18px; color: #fff; }
.bc-banner p { font-size: 16.5px; color: rgba(255,255,255,0.82); margin: 0 0 30px; }

/* Footer (#231F20 bg-ink, exact barcraft.pro layout) */
.bc-footer {
  background: var(--ink); color: rgba(255,255,255,0.72);
  padding: 68px 0 32px; font-size: 13.5px;
}
.bc-footer-grid {
  display: grid; grid-template-columns: 1.25fr 0.8fr 1.1fr 220px; gap: 40px; align-items: start;
}
.bc-footer-legal { margin-top: 18px; line-height: 1.75; }
.bc-footer-legal strong { color: #fff; display: block; margin-bottom: 4px; }
.bc-footer-links { display: flex; flex-direction: column; gap: 10px; }
.bc-footer-links a { color: rgba(255,255,255,0.78); transition: color .15s; }
.bc-footer-links a:hover { color: var(--brand-red); }
.bc-footer-cta h3 {
  font-family: var(--font-display); font-size: 24px; text-transform: uppercase;
  font-weight: 400; color: #fff; margin: 0 0 10px;
}
.bc-footer-cta p { margin: 0 0 20px; color: rgba(255,255,255,0.68); line-height: 1.6; }
.bc-footer-qr {
  background: #fff; color: var(--ink); padding: 14px; text-align: center;
  border-top: 3px solid var(--brand-red);
}
.bc-footer-qr img { width: 160px; height: 160px; margin: 0 auto 8px; image-rendering: pixelated; }
.bc-footer-qr .id { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.bc-footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.bc-footer-bottom a { color: #fff; }

@media (max-width: 980px) {
  .bc-topbar .meta .sep, .bc-topbar .meta span:nth-child(n+3) { display: none; }
  .bc-nav .nav-links { display: none; }
  .bc-hero .hero-inner { padding-top: 140px; }
  .bc-metrics-grid { grid-template-columns: 1fr 1fr; }
  .bc-steps { grid-template-columns: 1fr; }
  .bc-step.active { transform: none; }
  .bc-footer-grid { grid-template-columns: 1fr; }
  .market-grid, .roi-split { grid-template-columns: 1fr; }
}

/* ---------- Market Forecast & Remote Office ROI ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.market-card {
  background: var(--white); border: 1px solid var(--n200); border-top: 3px solid var(--brand-red);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.market-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.market-card h3 { font-size: 18px; color: var(--ink); }
.market-card p { margin: 0; font-size: 13.5px; color: var(--n600); line-height: 1.6; }

.roi-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.roi-table-wrap { border: 1px solid var(--n200); background: var(--white); overflow-x: auto; }
.roi-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.roi-table th, .roi-table td { padding: 12px 16px; border-bottom: 1px solid var(--n200); text-align: left; }
.roi-table th { background: var(--n950); color: #fff; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.roi-table td.good { color: var(--emerald-d); font-weight: 600; background: #ECFDF5; }
.roi-table td.bad { color: var(--n600); }
.roi-roles { background: var(--n950); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.roi-roles h3 { font-size: 18px; color: #fff; }
.roi-role-item { border-left: 3px solid var(--brand-red); padding-left: 12px; }
.roi-role-item b { display: block; font-size: 13px; color: #fff; margin-bottom: 3px; }
.roi-role-item span { font-size: 12.5px; color: var(--n400); line-height: 1.5; display: block; }

/* ---------- 6-Screen Redesign Components ---------- */
.nav-cta-btn {
  background: var(--brand-red); color: #fff; border: 0;
  padding: 9px 16px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.nav-cta-btn:hover { background: var(--brand-red-dark); transform: translateY(-1px); }

.hero-split {
  display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 36px; align-items: end;
}
.hero-card {
  background: rgba(16,14,15,0.88); border: 1px solid rgba(255,255,255,0.18);
  border-top: 3px solid var(--brand-red); padding: 26px; backdrop-filter: blur(8px);
}
.hero-card h3 { font-size: 18px; color: #fff; margin: 8px 0 12px; }
.hero-card-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: rgba(255,255,255,0.85); }
.hero-card-list li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-card-qr {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); padding: 10px 12px; margin-bottom: 16px;
}
.hero-card-qr img {
  width: 76px; height: 76px; background: #fff; padding: 4px; image-rendering: pixelated; flex-shrink: 0;
}

.cat-wrap { margin-top: 36px; background: var(--white); border: 1px solid var(--n200); padding: 26px; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.cat-tab {
  background: var(--surface); border: 1px solid var(--n200); color: var(--ink);
  padding: 10px 16px; font-size: 13px; font-weight: 600; transition: all .15s;
}
.cat-tab:hover { border-color: var(--brand-red); }
.cat-tab.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.cat-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-cell { background: var(--surface); border: 1px solid var(--n200); padding: 16px; }
.cat-cell .lbl {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--brand-red);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 6px;
}
.cat-cell p { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.5; }

.team-proof {
  display: grid; grid-template-columns: 360px 1fr; background: var(--n950); color: #fff;
  border-top: 3px solid var(--brand-red); margin-top: 28px;
}
.team-proof img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.team-proof-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.team-proof-body h3 { font-size: 24px; color: #fff; }
.team-proof-body p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.6; }

.inline-capture {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 32px; position: relative; z-index: 2; align-items: start;
}
.inline-form-card { background: rgba(16,14,15,0.92); border: 1px solid rgba(255,255,255,0.16); border-top: 3px solid var(--brand-red); padding: 28px; }
.inline-form-card h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; color: #fff; }
.inline-form-card p { font-size: 15px; color: rgba(255,255,255,0.78); margin: 0 0 20px; }
.inline-form-card label { color: rgba(255,255,255,0.72) !important; }
.inline-form-card input, .inline-form-card textarea {
  background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.22) !important; color: #fff !important;
}
.inline-qr-card {
  background: #fff; color: var(--ink); padding: 26px; border-top: 3px solid var(--brand-red);
}
.inline-qr-card img { width: 170px; height: 170px; margin: 14px auto 8px; image-rendering: pixelated; }

@media (max-width: 980px) {
  .hero-split, .cat-panel, .team-proof, .inline-capture { grid-template-columns: 1fr; }
}


