/* ============ WPS.guru — Variant F «Poster» ============
   Швейцарский плакат / нео-гротеск: огромный чёрный дисплей,
   кобальт + жёлтый маркер, рамки 2px, жёсткие тени, углы 0.
   Archivo Black (display) / Archivo (body) / Space Mono (data) */

:root {
  --paper: #fafaf7;
  --ink: #111111;
  --muted: #55554f;
  --cobalt: #2438e8;
  --cobalt-dark: #1b2bb8;
  --yellow: #ffe24a;
  --red: #e8442e;
  --card: #ffffff;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --mono: "Space Mono", ui-monospace, monospace;
  --disp: "Archivo Black", system-ui, sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
::selection { background: var(--yellow); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 1.6rem;
  border-bottom: 2px solid var(--ink); background: var(--paper);
  padding: .9rem 1.6rem;
}
.wordmark { font-family: var(--disp); font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.wordmark span { color: var(--cobalt); }
.topnav { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.topnav > a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.topnav > a:hover { background: var(--yellow); }
.topnav > a.active { background: var(--ink); color: var(--paper); padding: .2rem .5rem; }
.topnav .user { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.6rem 6rem; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 3rem 1.5rem 6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: .65rem 1.3rem; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 0; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .06s, box-shadow .06s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-flat { box-shadow: none; }
.btn-flat:hover { transform: none; box-shadow: none; background: var(--yellow); }
.btn-link { background: none; border: none; box-shadow: none; color: var(--cobalt); cursor: pointer; font-weight: 700; font-size: .9rem; padding: .6rem .3rem; text-decoration: underline; text-underline-offset: 3px; text-transform: none; }
.topnav a.btn-cobalt { color: #fff; }
.topnav a.btn-cobalt:hover { background: var(--cobalt); }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; gap: 1.2rem; margin: .6rem 0 1.4rem; flex-wrap: wrap; }
.page-head h1 { font-family: var(--disp); font-size: 2.3rem; margin: 0; letter-spacing: -.02em; line-height: 1; }
.page-head .sub { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-bottom: .3rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
.crumb { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--cobalt); }

/* ---------- deadline stamp (signature) ---------- */
.stamp {
  display: inline-block; transform: rotate(-4deg);
  border: 3px solid var(--red); color: var(--red);
  font-family: var(--disp); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .8rem; background: rgba(255,255,255,.7);
}
.mark-y { background: linear-gradient(transparent 45%, var(--yellow) 45%, var(--yellow) 92%, transparent 92%); }

/* ---------- cards & tables ---------- */
.card { background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--paper); background: var(--ink); text-align: left; padding: .7rem 1rem;
}
.tbl td { padding: .7rem 1rem; border-bottom: 2px solid #e8e8e2; font-size: .93rem; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fffbe8; }
.tbl .num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86rem; }
.tbl .mono { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.tbl tfoot td { border-top: 2px solid var(--ink); background: var(--yellow); font-weight: 800; border-bottom: none; }
.rowlink { color: var(--ink); text-decoration: none; font-weight: 800; }
.rowlink:hover { background: var(--yellow); }
.cell-actions a { font-size: .82rem; margin-right: .7rem; font-weight: 700; text-transform: uppercase; }
tr.err td { background: #fdeae6; }
tr.err:hover td { background: #fbdcd5; }

.tag-ok { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--ink); }
.tag-ok::before { content: "✓ "; color: var(--cobalt); font-weight: 800; }
.tag-bad { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--red); }
.tag-bad::before { content: "✕ "; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: flex-end; gap: 1.3rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-bottom: 2px solid var(--ink); background: var(--card); }
.tb-group { display: flex; flex-direction: column; gap: .3rem; }
.tb-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.toolbar select, .toolbar input {
  font-family: var(--sans); font-size: .92rem; font-weight: 600; padding: .5rem .65rem; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; background: #fff;
}
.toolbar .spacer { flex: 1; }

/* ---------- forms ---------- */
.form-card { padding: 1.8rem 2rem; }
.form-card h2 { font-family: var(--disp); font-size: 1.35rem; margin: 0 0 1.3rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .8rem; font-weight: 800; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .6rem .75rem; border: 2px solid var(--ink); border-radius: 0; background: #fff;
}
.field input.data { font-family: var(--mono); font-size: .87rem; }
.field input:focus { outline: none; box-shadow: 3px 3px 0 var(--cobalt); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .32rem; }
.field .help.ok { color: var(--ink); font-weight: 700; }
.field .help.ok::before { content: "✓ "; color: var(--cobalt); font-weight: 800; }
.field .error { font-size: .8rem; color: var(--red); margin-top: .32rem; font-weight: 800; }
.field input.invalid { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.form-actions { display: flex; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.input-btn { display: flex; gap: .6rem; }
.input-btn input { flex: 1; }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(17,17,17,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; overflow: auto; z-index: 50; }
.modal { background: var(--card); border: 2px solid var(--ink); width: 520px; max-width: 100%; box-shadow: 8px 8px 0 var(--ink); }

/* ---------- onboarding ---------- */
.onboard { max-width: 680px; margin: 2.5rem auto; }
.onboard h1 { font-family: var(--disp); font-size: 2.4rem; margin: 0 0 .4rem; line-height: 1.05; }
.onboard .lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.8rem; }
.bigsteps { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; border: 2px solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.bigstep { display: flex; gap: 1.4rem; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 2px solid var(--ink); }
.bigstep:last-child { border-bottom: none; }
.bigstep .n { font-family: var(--disp); font-size: 2.4rem; color: var(--cobalt); line-height: 1; min-width: 2.4rem; }
.bigstep b { display: block; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .03em; }
.bigstep span { color: var(--muted); font-size: .9rem; }

/* ---------- landing ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 4rem 1.6rem 2rem; position: relative; }
.hero .eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--disp); font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: .98; letter-spacing: -.02em; margin: 0 0 1.4rem; text-transform: uppercase;
}
.hero h1 .co { color: var(--cobalt); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin: 0 0 2rem; }
.hero .stamp-wrap { position: absolute; right: 3rem; top: 4.2rem; }
.rule { border: none; border-top: 2px solid var(--ink); margin: 3.5rem 0 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto; padding: 0 1.6rem; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.steps3 > div { padding: 2rem 1.6rem 2.4rem; border-right: 2px solid var(--ink); }
.steps3 > div:last-child { border-right: none; }
.steps3 .n { font-family: var(--disp); font-size: 3.4rem; color: var(--cobalt); line-height: 1; }
.steps3 h3 { font-family: var(--disp); font-size: 1.1rem; text-transform: uppercase; margin: .8rem 0 .5rem; }
.steps3 p { margin: 0; color: var(--muted); font-size: .93rem; }
.landing-frame { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

footer.site { border-top: 2px solid var(--ink); margin-top: 4rem; padding: 1.5rem; text-align: center; color: var(--muted); font-size: .82rem; font-family: var(--mono); }

/* ---------- OTP ---------- */
.otp-row { display: flex; gap: .55rem; 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; font-weight: 700;
  border: 2px solid var(--ink); border-radius: 0; background: #fff;
}
.hint-box { background: var(--yellow); border: 2px solid var(--ink); padding: .8rem 1rem; font-size: .88rem; font-weight: 600; }

/* ---------- variant switcher ---------- */
.ds-switch {
  position: fixed; bottom: 14px; right: 14px; z-index: 99;
  background: #fff; border: 2px solid var(--ink); border-radius: 0;
  padding: .35rem .8rem; font-size: .78rem; box-shadow: var(--shadow-sm); color: var(--muted);
}
.ds-switch a { margin: 0 .3rem; text-decoration: none; color: var(--muted); font-weight: 800; }
.ds-switch a.cur { color: var(--cobalt); text-decoration: underline; }

@media (max-width: 900px) {
  .topnav { display: none; }
  .steps3 { grid-template-columns: 1fr; border-left: none; border-right: none; }
  .steps3 > div { border-right: none; border-bottom: 2px solid var(--ink); }
  .hero .stamp-wrap { position: static; margin-bottom: 1rem; }
  .field-row { flex-direction: column; gap: 0; }
}
