:root {
  --blue: #1a3c6e;
  --blue-light: #2d6abf;
  --red: #e74c3c;
  --orange: #f39c12;
  --green: #27ae60;
  --bg: #f5f7fa;
  --border: #d0d8e4;
  --text: #1a1a1a;
  --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: var(--text); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; }

/* Header */
.site-header { background: var(--blue); padding: 14px 0; }
.site-header .container { display: flex; align-items: center; gap: 16px; }
.logo { color: white; font-size: 20px; font-weight: 700; text-decoration: none; }
.tagline { color: rgba(255,255,255,0.7); font-size: 14px; }

/* Footer */
.site-footer { background: var(--blue); color: rgba(255,255,255,0.6); padding: 16px 0; margin-top: 60px; font-size: 13px; text-align: center; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--blue); color: white; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--blue-light); }
.btn-primary.btn-large { padding: 16px 40px; font-size: 17px; }
.btn-secondary { display: inline-block; border: 2px solid var(--blue); color: var(--blue); padding: 10px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; }

/* Hero */
.hero { background: var(--blue); color: white; padding: 60px 0 70px; text-align: center; }
.hero-badge { display: inline-block; background: rgba(231,76,60,0.85); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 18px; }
.hero h1 .accent { color: #ffca28; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero-note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.6); }

/* Sections */
section { padding: 48px 0; }
section h2 { font-size: 26px; color: var(--blue); text-align: center; margin-bottom: 32px; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.card-danger { border-top: 4px solid var(--red); }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h3 { font-size: 15px; color: var(--blue); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

/* How it works */
.steps-line { display: flex; align-items: flex-start; gap: 8px; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; max-width: 220px; }
.step-num { width: 44px; height: 44px; background: var(--blue); color: white; border-radius: 50%; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }
.step-arrow { font-size: 24px; color: var(--border); padding-top: 12px; }

/* Deliverables */
.deliver-item { display: flex; gap: 16px; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 16px; align-items: flex-start; }
.deliver-icon { font-size: 28px; flex-shrink: 0; }
.deliver-item h3 { font-size: 15px; color: var(--blue); margin-bottom: 4px; }
.deliver-item p { font-size: 13px; color: var(--muted); }

/* CTA bottom */
.cta-bottom { background: var(--blue); color: white; text-align: center; }
.cta-bottom h2 { color: white; }
.cta-bottom p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.cta-bottom .btn-primary { background: white; color: var(--blue); }

/* Wizard */
.wizard { padding: 40px 0; }
.progress-bar { display: flex; align-items: center; margin-bottom: 32px; }
.progress-step { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.progress-step.active { background: var(--blue); border-color: var(--blue); color: white; }
.progress-step.done { background: var(--green); border-color: var(--green); color: white; }
.progress-line { flex: 1; height: 2px; background: var(--border); }
.progress-line.active { background: var(--blue); }
.wizard h2 { font-size: 22px; color: var(--blue); margin-bottom: 6px; text-align: left; }
.step-desc { color: var(--muted); margin-bottom: 28px; }

/* Form */
.audit-form { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.field input[type=text], .field input[type=email], .field select, .field input.mt-8 { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; }
.field input.mt-8 { margin-top: 8px; }
.field-hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label, .check-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.hint-text { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Complete page */
.complete-page { padding: 50px 0; }
.analyzing-block { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 40px; text-align: center; }
.analyzing-block h2 { font-size: 22px; color: var(--blue); margin: 16px 0 10px; text-align: center; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.done-block { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-header h2 { font-size: 22px; color: var(--blue); text-align: left; margin: 0; }
.risk-badge { padding: 6px 18px; border-radius: 4px; font-weight: 700; font-size: 14px; color: white; }
.risk-высокий .risk-badge { background: var(--red); }
.risk-средний .risk-badge { background: var(--orange); }
.risk-низкий .risk-badge { background: var(--green); }
.company-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.summary-text { margin-bottom: 12px; }
.violations-count { background: #fff5f5; border-left: 4px solid var(--red); padding: 10px 14px; margin: 14px 0; font-size: 14px; }
.next-steps { background: #f0f4f8; border-radius: 8px; padding: 20px; margin-top: 24px; }
.next-steps h3 { margin-bottom: 8px; font-size: 16px; color: var(--blue); }
.next-steps p { font-size: 14px; margin-bottom: 14px; }

/* Admin */
.admin-section { padding: 30px 0; }
.admin-section h2 { font-size: 24px; color: var(--blue); margin-bottom: 6px; text-align: left; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: white; }
.admin-table th { background: var(--blue); color: white; padding: 10px 12px; text-align: left; font-size: 13px; }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-table tr:hover td { background: #f0f4f8; }
.status-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.status-done { background: #d4edda; color: #155724; }
.status-analyzing { background: #fff3cd; color: #856404; }
.status-draft { background: #e2e3e5; color: #383d41; }
.status-error { background: #f8d7da; color: #721c24; }
.back-link { color: var(--blue); text-decoration: none; font-size: 14px; }
.json-view { background: #f8fafc; border: 1px solid var(--border); padding: 12px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; max-height: 200px; overflow-y: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.violation-item { border-left: 3px solid var(--red); padding: 8px 12px; margin-bottom: 10px; background: #fff5f5; font-size: 13px; }
.problems { background: white; }
