:root {
  --blue: #1a3c6e; --blue2: #2d6abf; --red: #e74c3c;
  --orange: #f39c12; --green: #27ae60;
  --bg: #f5f7fa; --border: #d0d8e4; --muted: #6b7a8d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: var(--bg); color: #1a1a1a; line-height: 1.6; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

.header { background: var(--blue); padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; }
.logo { color: white; font-size: 18px; font-weight: 700; text-decoration: none; }
.company-badge { background: rgba(255,255,255,0.15); color: white; padding: 4px 12px; border-radius: 12px; font-size: 13px; }

.hero { background: var(--blue); color: white; padding: 56px 0; }
.hero-tag { display: inline-block; background: rgba(231,76,60,0.8); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 34px; line-height: 1.3; margin-bottom: 16px; }
.hero h1 .accent { color: #ffca28; }
.sub { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 24px; }
.note { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 10px; }

.btn { display: inline-block; background: white; color: var(--blue); padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; border: none; cursor: pointer; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.hero .btn:hover { background: #e8edf5; }

section { padding: 44px 0; }
section h2 { font-size: 24px; color: var(--blue); text-align: center; margin-bottom: 24px; }

.pain { background: white; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media(max-width:768px){ .cards { grid-template-columns: 1fr 1fr; } }
.card { border-radius: 8px; padding: 18px; border-top: 4px solid currentColor; }
.card.red { border-color: var(--red); background: #fff5f5; }
.card.orange { border-color: var(--orange); background: #fffaf0; }
.card.blue { border-color: var(--blue2); background: #f0f4ff; }
.card .num { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card.red .num { color: var(--red); }
.card.orange .num { color: var(--orange); }
.card.blue .num { color: var(--blue2); }
.card p { font-size: 13px; color: var(--muted); }

.how { }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { text-align: center; max-width: 200px; }
.snum { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--blue); color: white; border-radius: 50%; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.step h3 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }
.arrow { font-size: 22px; color: var(--border); padding-top: 10px; }

.cta { background: var(--blue); color: white; text-align: center; }
.cta h2 { color: white; }
.cta .btn { margin-top: 16px; }
footer { background: var(--blue); padding: 14px 0; color: rgba(255,255,255,0.5); font-size: 13px; text-align: center; }
footer a { color: rgba(255,255,255,0.7); }

/* Form */
.form-page { padding: 40px 0; }
.form-page h2 { font-size: 22px; color: var(--blue); margin-bottom: 6px; }
.sub2 { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fld input, .fld select { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.section-label { font-weight: 700; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; border-top: 1px solid var(--border); padding-top: 16px; margin: 8px 0 12px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.check-row input { margin-top: 3px; flex-shrink: 0; }
.form-card .btn-lg { width: 100%; text-align: center; background: var(--blue); color: white; margin-top: 8px; }

/* Cabinet */
.cabinet { padding: 30px 0; }
.tasks-header h2 { text-align: left; margin-bottom: 4px; }
.count-badge { background: var(--red); color: white; font-size: 13px; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.task-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.task-card.urgent { border-left: 4px solid var(--red); }
.task-card.done { opacity: 0.6; }
.task-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.task-category { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.task-deadline { font-size: 12px; background: #fff3cd; color: #856404; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.task-title { font-size: 16px; color: var(--blue); margin-bottom: 8px; }
.task-desc { font-size: 13px; color: #444; white-space: pre-wrap; }
.task-law { font-size: 12px; color: var(--muted); margin-top: 8px; }
.task-done-desc { color: var(--muted); }
.btn-done { background: var(--green); color: white; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { color: var(--blue); margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

.done-section { margin-top: 24px; }
.done-section summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }

.upgrade-block { background: #f0f4ff; border: 1px solid #c0d0ff; border-radius: 8px; padding: 20px; margin-top: 30px; }
.upgrade-block h3 { font-size: 16px; color: var(--blue); margin-bottom: 8px; }
.upgrade-block p { font-size: 14px; margin-bottom: 14px; }
.upgrade-block .btn { background: var(--blue); color: white; }

.admin-tbl { width: 100%; border-collapse: collapse; background: white; margin-top: 16px; }
.admin-tbl th { background: var(--blue); color: white; padding: 9px 12px; text-align: left; font-size: 13px; }
.admin-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
