/* Paja — сборочная ферма. Тёмная тема: графит + янтарь. */
:root {
  --bg: #14161b;
  --bg-soft: #1a1d24;
  --panel: #1e222b;
  --line: #2b303b;
  --text: #e9e7e1;
  --muted: #9aa1ad;
  --accent: #f0a22e;
  --accent-soft: #ffbe55;
  --ok: #5cb370;
  --warn: #d97b4f;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- шапка ---------- */
.pj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 27, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}
.pj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.pj-brand:hover { text-decoration: none; }
.pj-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pj-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pj-nav a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.pj-nav a:hover { color: var(--text); text-decoration: none; }
.pj-nav .pj-nav-cta {
  color: #14161b;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.pj-nav .pj-nav-cta:hover { background: var(--accent-soft); color: #14161b; }

/* ---------- hero ---------- */
.pj-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 82% 18%, rgba(240, 162, 46, 0.14), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(92, 179, 112, 0.08), transparent 55%),
    var(--bg);
}
.pj-hero-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pj-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.pj-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.pj-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 34px;
}
.pj-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pj-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}
.pj-btn:hover { text-decoration: none; }
.pj-btn-solid { background: var(--accent); color: #14161b; }
.pj-btn-solid:hover { background: var(--accent-soft); }
.pj-btn-ghost { border-color: var(--line); color: var(--text); }
.pj-btn-ghost:hover { border-color: var(--muted); }

/* ---------- секции ---------- */
.pj-wrap { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.pj-wrap + .pj-wrap { padding-top: 0; }
.pj-sec-title {
  font-size: 30px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pj-sec-sub { color: var(--muted); margin: 0 0 36px; max-width: 620px; }

.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.pj-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.pj-card h3 { margin: 0 0 10px; font-size: 18px; }
.pj-card p { margin: 0; color: var(--muted); font-size: 15px; }
.pj-card .pj-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- метрики ---------- */
.pj-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.pj-metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--bg-soft);
}
.pj-metric b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  color: var(--accent-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.pj-metric span { color: var(--muted); font-size: 14px; }

/* ---------- проекты ---------- */
.pj-repo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pj-repo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pj-repo-head h3 { margin: 0; font-family: var(--mono); font-size: 17px; }
.pj-repo-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pj-repo .pj-lic {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
}
.pj-repo-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.pj-repo-bar i { display: block; height: 100%; background: var(--accent); }
.pj-w69 { width: 69%; }
.pj-w74 { width: 74%; }
.pj-w87 { width: 87%; }
.pj-w91 { width: 91%; }
.pj-repo small { color: var(--muted); font-size: 12.5px; }

/* ---------- схема ---------- */
.pj-scheme {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.pj-scheme svg { width: 100%; height: auto; }
.pj-scheme-cap { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* ---------- faq ---------- */
.pj-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 12px;
  padding: 0 20px;
}
.pj-faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}
.pj-faq summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 12px;
}
.pj-faq details[open] summary::before { content: "–"; }
.pj-faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- статус ---------- */
.pj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pj-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.pj-chip-warn i { background: var(--warn); }
.pj-stamp { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.pj-svc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.pj-svc b { font-weight: 600; }
.pj-svc span { color: var(--muted); font-size: 13px; display: block; }

.pj-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
  padding: 18px 20px 10px;
}
.pj-bars i {
  flex: 1;
  background: #39404e;
  border-radius: 2px 2px 0 0;
}
.pj-bars i.pj-hot { background: var(--accent); }
.pj-h31 { height: 31%; } .pj-h36 { height: 36%; } .pj-h38 { height: 38%; }
.pj-h41 { height: 41%; } .pj-h42 { height: 42%; } .pj-h44 { height: 44%; }
.pj-h47 { height: 47%; } .pj-h52 { height: 52%; } .pj-h55 { height: 55%; }
.pj-h58 { height: 58%; } .pj-h63 { height: 63%; } .pj-h64 { height: 64%; }
.pj-h71 { height: 71%; } .pj-h76 { height: 76%; } .pj-h78 { height: 78%; }
.pj-h83 { height: 83%; } .pj-h86 { height: 86%; } .pj-h88 { height: 88%; }
.pj-h89 { height: 89%; } .pj-h90 { height: 90%; } .pj-h91 { height: 91%; }
.pj-h92 { height: 92%; } .pj-h93 { height: 93%; } .pj-h94 { height: 94%; }
.pj-h95 { height: 95%; } .pj-h96 { height: 96%; }

.pj-chart { width: 100%; height: auto; }
.pj-center { text-align: center; }
.pj-mt { margin-top: 28px; }

/* ---------- форма входа ---------- */
.pj-auth {
  max-width: 420px;
  margin: 0 auto;
}
.pj-auth .pj-card { padding: 32px; }
.pj-field { margin-bottom: 18px; }
.pj-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.pj-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.pj-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pj-auth .pj-btn { width: 100%; text-align: center; cursor: pointer; font-family: inherit; }
.pj-auth-note { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; text-align: center; }
.pj-alert {
  border: 1px solid #6b3d2a;
  background: #2a1d16;
  color: #f0b490;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 22px;
}

/* ---------- футер ---------- */
.pj-foot {
  border-top: 1px solid var(--line);
  padding: 34px 28px 44px;
  color: var(--muted);
  font-size: 14px;
}
.pj-foot-in {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.pj-foot a { color: var(--muted); }
.pj-foot a:hover { color: var(--text); }

/* ---------- страницы ошибок ---------- */
.pj-plain {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.pj-plain .pj-code {
  font-family: var(--mono);
  font-size: 76px;
  color: var(--accent);
  margin: 0 0 10px;
}
.pj-plain h1 { font-size: 26px; margin: 0 0 14px; }
.pj-plain p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

@media (max-width: 860px) {
  .pj-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pj-hero-in { grid-template-columns: 1fr; padding: 56px 20px 48px; gap: 32px; }
  .pj-wrap { padding: 52px 20px; }
}
