:root {
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --ink: #141413;
  --muted: #55524B;
  --line: #D6D3CB;
  --accent: #2F6BFF;
  --accent-ink: #FFFFFF;
  --warn: #8A4B00;
  --warn-bg: #FFF3DF;
  --ok: #1E7A43;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1160px; margin: 0 auto; padding: 20px 16px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.top-note { color: var(--muted); font-size: 14px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 8px 16px 48px; }
.trainer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .trainer-layout { grid-template-columns: 1fr; } }

h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 8px 0 12px; }
h2 { font-size: 28px; margin: 12px 0; }
h3 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }

fieldset { border: 0; margin: 0 0 20px; padding: 20px; background: var(--card); border-radius: var(--radius); }
legend { float: left; width: 100%; font-weight: 800; font-size: 18px; margin-bottom: 12px; padding: 0; }
legend + * { clear: both; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
label small { font-weight: 400; color: var(--muted); }
.label-like { font-weight: 600; font-size: 15px; margin: 16px 0 8px; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=tel], input[type=url], textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

.hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.hint.warn { color: var(--warn); background: var(--warn-bg); padding: 10px 12px; border-radius: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; }
.chip.small span { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.types { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.dir { border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #FCFBF8; }
.dir summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.dir .count { color: var(--accent); font-weight: 600; }
.dir .chips { padding: 0 0 14px; }

.question { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #ECEAE4; }
.question span { font-size: 15px; }
.yn { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 600px) { .question { flex-direction: column; align-items: flex-start; } }

.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); }

.btn { font: inherit; font-weight: 800; font-size: 17px; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 999px; padding: 14px 28px; min-height: 52px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

.error { color: #9B1C1C; background: #FDECEC; padding: 12px 14px; border-radius: 10px; font-weight: 600; }

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 900px) { .side { position: static; } }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 6px; }
.card ul.small { font-size: 14px; }
.levels { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 12px; }
.levels dt { font-weight: 700; } .levels dt small { font-weight: 400; color: var(--muted); }
.levels dd { margin: 0; font-weight: 700; }

.done { background: var(--card); border-radius: var(--radius); padding: 28px; }
.badge { display: inline-block; background: var(--warn-bg); color: var(--warn); font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.steps { padding-left: 20px; margin: 16px 0 0; }
.steps li { margin-bottom: 8px; color: var(--muted); }
.steps li.ok { color: var(--ok); font-weight: 700; }
.steps li.now { color: var(--ink); font-weight: 700; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 40px; }
