:root {
  --bg: #050a12; --bg2: #070b14; --card: #0d1626; --card2: #101c30; --line: #1d2b44;
  --fg: #eef4fb; --mut: #8c9eb5; --acc: #00f0ff; --ok: #00ff88; --vio: #a46bff; --warn: #ffc531; --bad: #ff5a6a;
  --r: 14px;
}
.accent-violet { --acc: #a46bff; } .accent-green { --acc: #00ff88; } .accent-gold { --acc: #ffc531; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--fg); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
#app { max-width: 480px; min-height: 100dvh; margin: 0 auto; background: radial-gradient(120% 60% at 50% 0%, #0d2847 0%, var(--bg) 55%); display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) 16px 16px; gap: 14px; }
.screen.with-nav { padding-bottom: 96px; }
h1 { font-size: 28px; margin: 4px 0 0; letter-spacing: .02em; }
h2 { font-size: 21px; margin: 0; }
p { margin: 0; }
.mut { color: var(--mut); font-size: 15px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand b { font-size: 20px; letter-spacing: .14em; color: #e9fbff; text-shadow: 0 0 10px var(--acc); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.btn { min-height: 52px; border: 0; border-radius: 12px; padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer; color: #001018; background: var(--acc); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; } .row > .btn { flex: 1; }
.spacer { flex: 1; }
label.field { display: flex; flex-direction: column; gap: 6px; color: var(--mut); font-size: 15px; }
input, textarea, select { font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 52px; }
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.chip.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 18%, transparent); }
.err { color: var(--bad); font-size: 15px; min-height: 1em; }
.tabs { display: flex; gap: 6px; background: var(--bg2); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--mut); font: inherit; font-weight: 700; }
.tabs button.on { background: var(--card2); color: var(--fg); }
/* презентация */
.pres { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pres .big { font-size: 64px; }
.pres ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); }
.dots i.on { width: 22px; background: var(--acc); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check input { min-height: 0; width: 26px; height: 26px; flex: none; accent-color: var(--acc); }
/* блоки */
.block { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.block .ico { align-self: start; height: 48px; font-size: 34px; line-height: 48px; text-align: center; background: var(--bg2); border-radius: 12px; }
.block h3 { margin: 0; font-size: 18px; }
.why { font-size: 14px; color: var(--ok); }
.tag { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 10px; background: var(--bg2); color: var(--mut); margin-right: 6px; }
.tag.soon { color: var(--warn); } .tag.ok { color: var(--ok); }
.req { display: flex; flex-direction: column; gap: 6px; }
.req div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.req .ok { color: var(--ok); } .req .warn { color: var(--warn); } .req .bad { color: var(--bad); }
/* визитка */
.vcard { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg2); border: 2px solid var(--acc); display: grid; place-items: center; font-size: 40px; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); font-size: 15px; }
.pin-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 15px; }
.pin-row button { min-height: 40px; min-width: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); }
/* нижнее меню */
nav.bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); background: #070b14ee; backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.bottom button { min-height: 64px; border: 0; background: none; color: var(--mut); font: inherit; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
nav.bottom button b { font-size: 22px; font-weight: normal; }
nav.bottom button.on { color: var(--acc); }
/* модалка и раннер блока */
.modal { position: fixed; inset: 0; background: #000b; display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.modal .sheet { width: min(480px, 100%); max-height: 92dvh; overflow: auto; background: var(--bg); border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.runner { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; }
.runner header { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--line); }
.runner header b { flex: 1; }
.runner iframe { flex: 1; border: 0; width: 100%; background: #000; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(440px, 92%); background: var(--card2); border: 1px solid var(--acc); border-radius: 14px; padding: 12px 14px; z-index: 30; display: flex; gap: 10px; align-items: center; }
.toast .btn { min-height: 40px; }
