/* The Layers: белый фон, чёрные контуры, скругления как у шкалы «layering…», акценты из логотипа. */
:root { --bg: #fff; --text: #111; --muted: #6b6b70; --line: #111; --orange: #f26b3a; --purple: #9b8bb4; --beige: #fad9b0; --yellow: #f0cf4c; --green: #538554; --red: #a81617; --pink: #eaa3c4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 "Quicksand", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; }
main { max-width: 480px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 960px; }
h1 { font-size: 1.6rem; margin: 8px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 20px 0 8px; font-weight: 700; }
p.hint { color: var(--muted); font-size: 0.9rem; text-align: center; }
a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
.brand { display: flex; justify-content: center; padding: 24px 16px 4px; }
.brand img { width: 220px; max-width: 70%; height: auto; }
label { display: block; margin: 14px 0 4px; font-weight: 700; font-size: 0.95rem; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--text); }
input, select { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1.1rem; font-family: inherit; border: 2px solid var(--line); border-radius: 10px; background: #fff; margin-top: 4px; color: var(--text); }
input:focus { outline: 3px solid var(--beige); outline-offset: 1px; }
button, .btn { display: block; width: 100%; min-height: 50px; margin-top: 14px; padding: 12px; font-size: 1.05rem; font-weight: 700; font-family: inherit; border: 2px solid var(--line); border-radius: 10px; background: var(--text); color: #fff; cursor: pointer; text-align: center; text-decoration: none; }
button:hover, .btn:hover { background: var(--orange); border-color: var(--orange); color: #111; }
button.secondary, .btn.secondary { background: #fff; color: var(--text); }
button.danger { background: #fff; color: var(--red); border-color: var(--red); }
button.danger:hover { background: var(--red); color: #fff; }
button.small { width: auto; min-height: 36px; padding: 6px 12px; font-size: 0.9rem; margin: 0; display: inline-block; }
.error { border: 2px solid var(--red); color: var(--red); padding: 12px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.ok { border: 2px solid var(--green); color: var(--green); padding: 12px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.qr { background: #fff; padding: 16px; border: 2px solid var(--line); border-radius: 14px; margin: 8px auto; width: 292px; max-width: 100%; }
.qr svg { display: block; width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.stat { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat .n { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 0.85rem; margin-top: 4px; font-weight: 600; }
.stat.free { grid-column: 1 / -1; background: var(--beige); }
.wallet { display: block; text-align: center; padding: 14px; border-radius: 10px; margin: 10px 0; font-weight: 700; text-decoration: none; border: 2px solid #000; }
.wallet.apple { background: #000; color: #fff; }
.wallet.google { background: #fff; color: #000; }
.nav { background: #fff; border-bottom: 2px solid var(--line); padding: 10px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav .mark { width: 28px; height: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--orange); }
.nav form { margin: 0 0 0 auto; }
.nav button { margin: 0; min-height: 32px; padding: 4px 12px; font-size: .85rem; background: #fff; color: var(--text); width: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .92rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #ddd; }
tr:last-child td { border-bottom: 0; }
th { background: var(--beige); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.neg { color: var(--red); }
.pos { color: var(--green); }
.card { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
video { width: 100%; border: 2px solid var(--line); border-radius: 12px; background: #000; max-height: 60vh; object-fit: cover; }
.big { font-size: 1.4rem; font-weight: 700; }
.field-label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 0.95rem; }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented label { margin: 0; flex: 1 1 0; min-width: 44px; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented span { display: block; text-align: center; min-height: 48px; line-height: 44px; border: 2px solid var(--line); border-radius: 10px; font-size: 1.15rem; font-weight: 700; cursor: pointer; background: #fff; }
.segmented input:checked + span { background: var(--text); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--beige); }
.pager { justify-content: center; margin: 14px 0; }
.btn.small { width: auto; min-height: 36px; padding: 6px 12px; font-size: 0.9rem; margin: 0; display: inline-block; }

/* Печатный лист с QR для регистрации: уголки-знаки по углам, слоган по четырём сторонам, QR по центру. */
.sheet { position: relative; width: min(92vw, 720px); aspect-ratio: 1 / 1; margin: 16px auto; background: #fff; border: 1px dashed #ccc; }
.sheet .mark { position: absolute; width: 11%; height: auto; }
.sheet .mark.tl { top: 2%; left: 2%; }
.sheet .mark.tr { top: 2%; right: 2%; }
.sheet .mark.bl { bottom: 2%; left: 2%; }
.sheet .mark.br { bottom: 2%; right: 2%; }
.sheet .slogan { position: absolute; font-size: 3.6cqw; font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; }
.sheet { container-type: inline-size; }
.sheet .slogan.top { top: 1.5%; left: 50%; transform: translateX(-50%) rotate(180deg); }
.sheet .slogan.bottom { bottom: 1.5%; left: 50%; transform: translateX(-50%); }
.sheet .slogan.left { top: 50%; left: 1.5%; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center; }
.sheet .slogan.right { top: 50%; right: 1.5%; transform: translate(50%, -50%) rotate(-90deg); transform-origin: center; }
.sheet .code { position: absolute; top: 50%; left: 50%; width: 38%; transform: translate(-50%, -50%); }
.sheet .code svg { display: block; width: 100%; height: auto; }
.sheet + p + button { max-width: 320px; margin-left: auto; margin-right: auto; }
@media print {
  .nav, .no-print { display: none !important; }
  .brand { padding-top: 0; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .sheet { width: 100%; margin: 0; page-break-inside: avoid; border: 0; }
  @page { size: A4 portrait; margin: 12mm; }
}
