/* Тест бэк-офиса — стиль Blacklight: Stolzl Light/Regular/Book, без жирного, разрядка 0. */
@font-face { font-family: "Stolzl"; src: url("/fonts/Stolzl-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Stolzl"; src: url("/fonts/Stolzl-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Stolzl"; src: url("/fonts/Stolzl-Book.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0E0F0F;
  --cream: #F8F3F3;
  --paper: #FFFFFF;
  --muted: #5E5E5E;
  --line: #D5D5D5;
  --purple: #5C15F4;
  --green: #99EC9C;
  --negative: #FF644E;
  --font: "Stolzl", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--cream); letter-spacing: 0; }
b, strong, th, h1, h2, h3, button, label { font-weight: 500; }
input, button, select, textarea { font: inherit; color: inherit; letter-spacing: 0; }
a { color: var(--purple); text-underline-offset: 3px; }

.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.top .bl-logo { height: 22px; width: auto; color: var(--ink); display: block; }
.top .pageno { color: var(--muted); font-size: 15px; }

h1 { font-size: 44px; line-height: 1.05; margin-bottom: 20px; }
h2 { font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
.lead { font-size: 19px; margin-bottom: 28px; max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p + p { margin-top: 10px; }

.rules { border-top: 1px solid var(--line); padding: 20px 0; margin: 8px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rules .num { font-size: 40px; line-height: 1; font-weight: 300; }
.rules .cap { color: var(--muted); font-size: 15px; margin-top: 6px; }

form.start { display: grid; gap: 16px; max-width: 460px; }
.field label { display: block; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; outline: none; font-weight: 300; }
.field input:focus { border-color: var(--purple); }
.field .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.error { color: var(--negative); min-height: 1.5em; }

/* вопрос */
.progress { height: 2px; background: var(--line); margin: 0 0 28px; }
.progress span { display: block; height: 2px; background: var(--ink); transition: width .2s; }
.qhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.qhead .n { font-size: 20px; font-weight: 500; }
.qhead .of { color: var(--muted); }
.qsection { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.qtext { font-size: 24px; line-height: 1.3; font-weight: 400; margin-bottom: 24px; }
.options { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; cursor: pointer; font-weight: 300; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { flex: 0 0 20px; height: 20px; margin-top: 2px; border: 1px solid var(--muted); border-radius: 50%; position: relative; }
.opt.sel { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.opt.sel .dot { border-color: var(--purple); }
.opt.sel .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--purple); }
.opt:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }

/* итог */
.hero { display: flex; align-items: baseline; gap: 16px; margin: 8px 0 6px; }
.hero .num { font-size: 120px; line-height: .9; font-weight: 300; }
.hero .unit { font-size: 22px; }
.verdict { font-size: 30px; font-weight: 500; margin-bottom: 14px; }
.verdict.ok, .hero.ok .num { color: var(--purple); }
.verdict.bad, .hero.bad .num { color: var(--negative); }
.mist { border-top: 1px solid var(--line); padding: 18px 0; }
.mist .q { font-weight: 400; margin-bottom: 8px; }
.mist .row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 16px; }
.mist .row + .row { margin-top: 4px; }
.mist .why { color: var(--muted); font-size: 15px; margin-top: 8px; }
.mist .yours { color: var(--negative); }

/* админка */
table.res { width: 100%; border-collapse: collapse; font-size: 15px; }
table.res th { text-align: left; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
table.res td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
table.res tr.click { cursor: pointer; }
table.res .ok { color: var(--purple); }
table.res .bad { color: var(--negative); }
.wide { max-width: 1100px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { margin-bottom: 32px; }
  h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .rules .num { font-size: 32px; }
  .qtext { font-size: 20px; }
  .hero .num { font-size: 96px; }
  .mist .row { grid-template-columns: 1fr; gap: 0; }
  .mist .row .lbl { color: var(--muted); font-size: 14px; }
  .actions .btn { flex: 1 1 auto; }
  table.res .hide-m { display: none; }
}
