:root {
  --navy: #070B24; --navy-2: #111A4A; --ink: #0B1033; --paper: #F3F5FF;
  --cyan: #18D2F2; --pink: #FF3D81; --yellow: #FFC53D; --violet: #7C5CFF; --green: #22D39A; --red: #FF4D5E;
  --muted: #555C86;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; background: var(--paper); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.hero { position: relative; overflow: hidden; padding: 22px 20px 64px; background: radial-gradient(120% 120% at 0% 0%, #1C2766, var(--navy-2) 40%, var(--navy)); color: #fff; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: drift 14s ease-in-out infinite alternate; }
.hero-bg i:first-child { width: 260px; height: 260px; left: -80px; top: -100px; background: var(--cyan); }
.hero-bg i:last-child { width: 240px; height: 240px; right: -90px; bottom: -120px; background: var(--pink); animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
.brand { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.brand img { height: 30px; max-width: 140px; object-fit: contain; }
.dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--cyan), var(--pink)); }
.kicker { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.hero h1 { position: relative; font-family: 'Sora', sans-serif; font-size: clamp(24px, 7vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }

main { max-width: 640px; margin: -40px auto 0; padding: 0 16px 60px; position: relative; }
.panel, .q-card, .progress-card, .welcome { background: #fff; border-radius: 22px; box-shadow: 0 20px 40px -28px rgba(11,16,51,.4); border: 1px solid rgba(11,16,51,.06); }
.panel { padding: 26px 22px; animation: up .5s ease both; }
.panel h2 { font-family: 'Sora', sans-serif; font-size: 26px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
input[type=text], input:not([type]), textarea { width: 100%; padding: 15px 16px; border-radius: 14px; border: 2px solid #DDE1F5; font: 500 17px inherit; font-family: inherit; color: var(--ink); background: #FAFBFF; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.15); background: #fff; }
textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; font: 800 17px inherit; font-family: inherit; cursor: pointer; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn.sent { background: var(--green); }
.error { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 1em; }

.welcome { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.welcome b { color: var(--ink); }
.link { background: none; border: 0; color: var(--violet); font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.progress-card { padding: 14px 18px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.progress-card b { color: var(--ink); }
.pbar { height: 8px; border-radius: 8px; background: #E6E9F8; margin-top: 10px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .6s ease; }

.q-card { padding: 22px 20px; margin-bottom: 16px; position: relative; overflow: hidden; animation: up .5s ease both; }
.q-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--violet)); }
.q-card:nth-child(4n+1) { --c: var(--cyan); }
.q-card:nth-child(4n+2) { --c: var(--pink); }
.q-card:nth-child(4n+3) { --c: var(--yellow); }
.q-num { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.q-num .ok { color: var(--green); }
.q-num .closed { color: var(--red); }
.q-card h3 { font-size: 19px; line-height: 1.35; margin-bottom: 16px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid #DDE1F5; background: #FAFBFF; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .15s; }
.opt input { width: 20px; height: 20px; accent-color: var(--violet); }
.opt:has(input:checked) { border-color: var(--violet); background: rgba(124,92,255,.08); }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.q-card.is-closed { opacity: .65; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; line-height: 1.6; }
.loading { text-align: center; padding: 40px; color: var(--muted); }

.snack { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); padding: 14px 22px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); transition: transform .35s cubic-bezier(.2,1.3,.3,1); z-index: 10; max-width: 90vw; text-align: center; }
.snack.show { transform: translate(-50%, 0); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
