/* Ovoz — высококонтрастная «плакатная» тема: чёрное, жёлтое, жёсткие рамки. */

:root {
  --ink: #101010;
  --paper: #f4f1e8;
  --accent: #ffe500;
  --line: #101010;
  --muted: #5c5a52;
  --alert: #d92b2b;
  --ok: #1f7a3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.frame { max-width: 680px; margin: 0 auto; padding: 26px 20px 60px; }

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 4px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent);
  padding: 3px 11px;
  border: 3px solid var(--line);
}

.tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.hero { padding: 40px 0 26px; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 10vw, 72px);
  line-height: .92;
  letter-spacing: -.035em;
  font-weight: 900;
  text-transform: uppercase;
}

h1.q-title {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: -.02em;
}

.hero p { margin: 0; color: var(--muted); max-width: 46ch; }

.alert, .ok {
  margin: 0 0 18px;
  padding: 11px 15px;
  border: 3px solid var(--line);
  font-weight: 700;
  font-size: 15px;
}
.alert { background: var(--alert); color: #fff; }
.ok { background: var(--ok); color: #fff; }

.card {
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
  padding: 22px;
  margin-bottom: 30px;
}

.lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 9px;
}
.lbl .hint { font-weight: 400; letter-spacing: .04em; color: var(--muted); text-transform: none; }

input[type="text"] {
  display: block;
  width: 100%;
  border: 3px solid var(--line);
  background: var(--paper);
  font: inherit;
  padding: 11px 13px;
  outline: none;
  margin-bottom: 10px;
}
input[type="text"]:focus { background: var(--accent); }
input.q { font-size: 19px; font-weight: 700; margin-bottom: 24px; }
input.opt::placeholder { color: #9a978d; }

button {
  appearance: none;
  border: 3px solid var(--line);
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 13px 30px;
  margin-top: 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
}
button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
button:active { transform: translate(4px, 4px); box-shadow: none; }

.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 3px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
  background: var(--paper);
}
.choice:hover { background: var(--accent); }
.choice input { width: 19px; height: 19px; accent-color: var(--ink); flex: none; }

.results .res-row { margin-bottom: 22px; }
.results .res-row:last-child { margin-bottom: 0; }

.res-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 7px; }
.res-head b { font-variant-numeric: tabular-nums; }

.track { height: 22px; border: 3px solid var(--line); background: var(--paper); }
.track i { display: block; height: 100%; background: var(--accent); }
.results small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 3px solid var(--line);
  padding-top: 16px;
}
.share .lbl { margin: 0; }
.link { font-family: ui-monospace, Menlo, monospace; background: var(--accent); border: 2px solid var(--line); padding: 3px 9px; }
.json { color: var(--muted); font-size: 14px; margin-left: auto; }

.recent h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 4px;
}
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #d8d4c6;
  font-size: 15px;
}
.recent li a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent li a:hover { background: var(--accent); }
.recent li span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.back { color: var(--ink); font-weight: 700; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 16px;
  border-top: 4px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
