:root {
  --asphalt: #1f2328;
  --yellow: #ffc20e;
  --paper: #eef0f2;
  --line: #c9ced3;
  --ok: #0b7a43;
  --bad: #b3261e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--asphalt);
  font: 500 18px/1.55 Barlow, "Segoe UI", sans-serif;
  padding-bottom: 72px;
}
::selection { background: var(--asphalt); color: var(--yellow); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 3px; }
.yellow :focus-visible, .bottombar :focus-visible { outline-color: var(--asphalt); }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; margin-top: 2.2rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0.7rem 0 0; max-width: 68ch; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.top { background: var(--asphalt); color: var(--yellow); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 12px; }
.brand { font: 700 1.4rem "Barlow Condensed", sans-serif; letter-spacing: 0.01em; text-decoration: none; }
.top nav a { margin-left: 18px; font-weight: 600; }

.yellow { background: var(--yellow); }
.hero { padding: 44px 0 52px; }
.hero p { font-size: 1.2rem; }
.band { padding: 40px 0 48px; }
.band.yellow h2 { margin-top: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 600 1.05rem Barlow, sans-serif; text-decoration: none; cursor: pointer;
  border: 2px solid var(--asphalt); border-radius: 4px; background: transparent; color: var(--asphalt);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--asphalt); color: var(--yellow); }
.btn.locked { opacity: .6; }
.hero .btn, .band .btn { margin-top: 18px; margin-right: 8px; }

.compare { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.compare li { padding: 14px 0; border-top: 2px solid var(--asphalt); }
.compare li:first-child { border-top: 0; }
.faq h3 { margin-top: 1.6rem; }

.bottombar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--asphalt); padding: 8px 16px; display: flex; gap: 10px; justify-content: center; z-index: 5; }
.bottombar .btn { background: var(--yellow); border-color: var(--yellow); color: var(--asphalt); flex: 1; max-width: 420px; }

footer { margin-top: 48px; padding: 28px 0 40px; border-top: 2px solid var(--asphalt); font-size: .95rem; }
footer p { margin-top: .5rem; }

/* app */
main.wrap { padding-top: 28px; padding-bottom: 20px; }
main h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
.menu { list-style: none; margin: 1rem 0 0; padding: 0; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 2px solid var(--asphalt); }
.mrow p { margin-top: 2px; font-size: 1rem; }
.mrow .btn { flex: none; }
.note { font-size: 1rem; color: #444b53; }
.lock { background: var(--yellow); padding: 24px 20px 28px; margin-top: 2rem; border-radius: 4px; }
.lock h2 { margin-top: 0; }
.lock label { display: block; margin-top: 22px; font-weight: 600; }
.row { display: flex; gap: 8px; margin-top: 6px; }
input[type=text] { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; font: 500 1.05rem Barlow, sans-serif; border: 2px solid var(--asphalt); border-radius: 4px; background: #fff; }
.progressline { font-size: .95rem; color: #444b53; margin-top: 0; }
.bar { height: 6px; background: var(--line); margin: 8px 0 20px; }
.bar span { display: block; height: 100%; background: var(--asphalt); }
.qtext { font-size: clamp(1.5rem, 5.5vw, 2rem); margin-top: 0; font-weight: 600; letter-spacing: -0.01em; }
.signbox { margin: 18px 0 4px; }
.sign { width: 168px; height: 168px; display: block; }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; min-height: 56px; padding: 12px 14px;
  font: 500 1.05rem/1.4 Barlow, sans-serif; color: var(--asphalt); background: #fff; border: 2px solid var(--asphalt); border-radius: 4px; cursor: pointer;
  transition: transform .18s var(--ease);
}
.opt:hover:not(:disabled) { transform: translateX(3px); }
.opt:disabled { cursor: default; }
.opt .letter { font: 700 1.2rem "Barlow Condensed", sans-serif; min-width: 1.2em; }
.opt.right { background: #d6f0e0; border-color: var(--ok); }
.opt.wrong { background: #f8dcd9; border-color: var(--bad); }
.feedback { margin-top: 14px; }
.verdict { font-weight: 700; margin-top: 0; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--bad); }
.src { font-size: .95rem; color: #444b53; }
.next { margin: 18px 0 8px; }
.big { font: 700 2.4rem "Barlow Condensed", sans-serif; }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; font-size: 1rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }

@media (min-width: 720px) {
  .hero { padding: 72px 0 80px; }
  .bottombar { display: none; }
  body { padding-bottom: 0; }
  .sign { width: 200px; height: 200px; }
}
@media (max-width: 480px) {
  .mrow { flex-direction: column; align-items: stretch; }
  .top nav a { margin-left: 12px; }
}
