/* ============ WPS.guru — Variant B «Vault» ============
   Тёмная эволюция текущего дизайна: графит + сдержанное золото.
   Archivo (display) / Inter (body) / JetBrains Mono (data) */

:root {
  --bg: #101419;
  --surface: #161c24;
  --surface2: #1d242e;
  --border: #2a3340;
  --border-soft: #222a35;
  --text: #e9ecf1;
  --muted: #96a0ad;
  --gold: #d6a544;
  --gold-bright: #e6bc60;
  --gold-wash: rgba(214, 165, 68, .12);
  --green: #53b98b;
  --red: #e06b57;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --disp: "Archivo", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; }
a { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- top nav ---------- */
.topbar {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1280px; margin: 0 auto; padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.seal {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-bright), #a87c26);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  color: #14100a; font-family: var(--disp); font-weight: 800; font-size: 1rem;
}
.brand b { font-family: var(--disp); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .68rem; display: block; margin-top: -3px; letter-spacing: .14em; text-transform: uppercase;}
.topnav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); font-weight: 600; position: relative; }
.topnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: var(--gold); }
.topnav .user { color: var(--muted); font-size: .82rem; border-left: 1px solid var(--border); padding-left: 1.4rem;}
.topnav a.btn-gold { color: #14100a; }
.topnav a.btn-gold:hover { color: #14100a; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 6rem; }
.wrap-narrow { max-width: 440px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  border-radius: 8px; padding: .6rem 1.2rem; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #14100a; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn-link { background:none; border:none; color: var(--gold-bright); cursor:pointer; font-size:.9rem; padding:.6rem .3rem; text-decoration:underline; text-underline-offset:3px;}

/* ---------- page head ---------- */
.page-head { display: flex; align-items: center; gap: 1rem; margin: .6rem 0 1.6rem; flex-wrap: wrap;}
.page-head h1 { font-family: var(--disp); font-weight: 700; font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: .9rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .7rem; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }

/* ---------- cards & panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); text-align: left; padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.tbl td { padding: .8rem 1rem; border-bottom: 1px solid var(--border-soft); font-size: .92rem; vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface2); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl .mono { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.tbl tfoot td { border-top: 1px solid var(--border); border-bottom: none; font-weight: 600; color: var(--gold-bright); }
.rowlink { color: var(--text); text-decoration: none; font-weight: 600; }
.rowlink:hover { color: var(--gold-bright); }
.cell-actions a { font-size: .84rem; margin-right: .7rem; color: var(--muted); }
.cell-actions a:hover { color: var(--gold-bright); }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .18rem .6rem;
}
.pill-ok { background: rgba(83,185,139,.14); color: var(--green); }
.pill-bad { background: rgba(224,107,87,.16); color: var(--red); }
.pill-gold { background: var(--gold-wash); color: var(--gold-bright); }

/* ---------- period dial (signature) ---------- */
.dial { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; }
.dial-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button {
  background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: .85rem; font-weight: 600;
  padding: .42rem .8rem; border-radius: 7px; cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--gold); color: #14100a; }
.dial select, .dial input {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .5rem .7rem; font-family: var(--sans); font-size: .9rem;
}
.dial .spacer { flex: 1; }

/* ---------- forms ---------- */
.form-panel { padding: 2rem; }
.form-panel h2 { font-family: var(--disp); font-size: 1.3rem; margin: 0 0 1.4rem; font-weight: 700; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--text);
  padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.field input.data { font-family: var(--mono); letter-spacing: .04em; font-size:.9rem; }
.field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-wash); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .32rem; }
.field .help.ok { color: var(--green); }
.field .error { font-size: .8rem; color: var(--red); margin-top: .32rem; font-weight: 600; }
.field input.invalid { border-color: var(--red); }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.form-actions { display: flex; gap: .7rem; margin-top: 1.6rem; }
.input-btn { display: flex; gap: .5rem; }
.input-btn input { flex: 1; }

/* ---------- modal ---------- */
.dim { position: fixed; inset: 0; background: rgba(6,8,11,.7); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; overflow: auto; backdrop-filter: blur(3px);}
.modal { background: var(--surface); border: 1px solid var(--border); width: 520px; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ---------- onboarding ---------- */
.onboard { max-width: 620px; margin: 3.5rem auto; text-align: left; padding: 2.8rem 3rem; }
.onboard h1 { font-family: var(--disp); font-size: 1.9rem; font-weight: 700; margin: .4rem 0 .5rem; }
.onboard .lede { color: var(--muted); margin: 0 0 1.8rem; }
.vsteps { margin: 0 0 2rem; padding: 0; list-style: none; position: relative; }
.vsteps li { display: flex; gap: 1.1rem; padding: .8rem 0; align-items: flex-start; }
.vsteps .dot {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px;
  background: var(--gold-wash); color: var(--gold-bright); font-family: var(--mono); font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(214,165,68,.35);
}
.vsteps b { display: block; }
.vsteps span { color: var(--muted); font-size: .88rem; }

/* ---------- landing ---------- */
.hero { padding: 5rem 0 3.5rem; max-width: 780px; }
.hero .eyebrow { color: var(--gold-bright); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 33em; margin: 0 0 2.2rem; }
.statrow { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap;}
.statrow .stat b { font-family: var(--mono); font-size: 1.4rem; color: var(--gold-bright); display: block; }
.statrow .stat span { color: var(--muted); font-size: .85rem; }
.shot { margin-top: 4rem; }
.shot .panel { padding: 1.2rem; }

footer.site { border-top: 1px solid var(--border-soft); margin-top: 5rem; padding: 1.6rem; text-align: center; color: var(--muted); font-size: .82rem; }

/* ---------- OTP ---------- */
.otp-row { display: flex; gap: .5rem; justify-content: center; margin: 1.2rem 0; }
.otp-row input {
  width: 3rem; height: 3.5rem; text-align: center; font-family: var(--mono); font-size: 1.3rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text);
}
.hint-box { background: var(--gold-wash); border: 1px solid rgba(214,165,68,.3); padding: .8rem 1rem; font-size: .87rem; color: var(--gold-bright); border-radius: 8px; }

/* ---------- variant switcher ---------- */
.ds-switch {
  position: fixed; bottom: 14px; right: 14px; z-index: 99;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
  padding: .35rem .8rem; font-size: .78rem; box-shadow: 0 4px 14px rgba(0,0,0,.4); color: var(--muted);
}
.ds-switch a { margin: 0 .3rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.ds-switch a.cur { color: var(--gold-bright); text-decoration: underline; }

@media (max-width: 820px) {
  .topnav { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .statrow { gap: 1.4rem; }
}
