:root {
  --ink: #0a1430;
  --muted: #51607c;
  --line: #e3eaf3;
  --orange: #fc734d;
  --paper: #f4f8fc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Golos Text", sans-serif;
}
h1, h2, .logo { font-family: "Onest", sans-serif; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: 36px; margin: 0 0 18px; }
h2 { font-size: 22px; margin: 0; }
a { color: var(--ink); }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 76px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  text-decoration: none;
}
.logo img { width: 36px; height: 36px; display: block; }
.top nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  background: var(--paper);
  border-radius: 999px;
}
.top nav a,
.top nav button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 15px/1.2 "Golos Text", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease;
}
.top nav a:hover,
.top nav button:hover { color: var(--orange); }
.top nav a.is-on { background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 48, 0.08); }
.top nav a.pill,
.top nav a.pill:hover { background: var(--orange); color: #fff; }
.top nav a.pill:hover { background: #e15a34; }
button, .btn {
  border: 0;
  background: var(--orange);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.wrap { width: min(880px, calc(100% - 32px)); margin: 28px auto 64px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 16px;
}
.narrow { width: min(520px, 100%); margin: 0 auto; }
label, .choice { display: flex; gap: 8px; margin: 12px 0; }
label { flex-direction: column; }
.choice { flex-direction: row; align-items: center; }
.check { flex-direction: row; align-items: center; }
.check input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; flex: none; }
.consent { margin: 8px 0; }
label.consent-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-weight: 400;
}
label.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 3px;
  flex: none;
}
label.consent-row a { text-decoration: underline; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.choice input { width: auto; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; }
.lead, .aside, .wait { color: var(--muted); }
.error { color: #9d2b16; margin: 0 0 8px; }
.flash, .success { background: #fff4ef; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sub { border-top: 1px solid var(--line); padding: 14px 0; }
.sub header { display: flex; justify-content: space-between; gap: 12px; }
.code { font: 600 22px Consolas, monospace; letter-spacing: 0.04em; }
.files { padding-left: 18px; }
.files a { margin-left: 8px; }
@media (max-width: 700px) {
  .top { height: auto; padding: 16px; align-items: flex-start; flex-direction: column; }
  .row, .sub header { flex-direction: column; align-items: flex-start; }
}
