:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e6f4f2;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warn-soft: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Nav ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.logo { white-space: nowrap; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-right: 4px; }
.lang-switch button { border: 0; background: #fff; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 10px; cursor: pointer; color: var(--muted); }
.lang-switch button.on { background: var(--brand); color: #fff; }
.lang-picker { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 20px; }
.lang-picker .card { text-align: center; max-width: 360px; width: 100%; }
.lang-picker .btn { width: 100%; margin-top: 10px; font-size: 1.05rem; padding: 14px; }
@media (max-width: 700px) {
  .nav-links .hide-sm { display: none; }
  .nav-links a { padding: 8px; font-size: .85rem; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 20px;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #1f1300; }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.nav-links .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(245, 158, 11, .25), transparent 60%),
              linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff; padding: 72px 0 88px;
}
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.12rem; max-width: 640px; opacity: .92; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 7px 12px; border-radius: 999px; font-size: .88rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 6px 0 6px 28px; }
.list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); }
.list li::after { content: ''; position: absolute; left: 7px; top: 12px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.icon svg, .big-icon svg, .dot svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.big-icon svg { stroke-width: 2.5; }
.next-box { background: var(--warn-soft); border: 1px solid #fde68a; border-radius: 12px; padding: 20px; margin: 4px 0 20px; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step .tag { font-size: .75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }

.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form-card { padding: 0; overflow: hidden; }
.form-head { padding: 22px 28px; border-bottom: 1px solid var(--line); background: #fcfdfd; }
.form-body { padding: 28px; }
.form-foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; background: #fcfdfd; }

.progress { display: flex; gap: 8px; margin-top: 14px; }
.progress .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.progress .bar.on { background: var(--brand); }
.progress-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.progress-labels span.on { color: var(--brand); font-weight: 700; }

.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.invalid { border-color: var(--danger) !important; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .row, .row-3 { grid-template-columns: 1fr; gap: 0; } }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 14px; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; font-size: .92rem; background: #fff; user-select: none; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15,118,110,.25); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; }

.counter { font-size: .78rem; color: var(--muted); text-align: right; margin-top: 4px; }
.counter.ok { color: var(--ok); }

.drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; background: #fcfdfd; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-soft); }

.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: var(--ok-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-warn { background: var(--warn-soft); color: #92400e; border: 1px solid #fde68a; }
.hidden { display: none !important; }

.review-list { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; font-size: .92rem; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 600px) { .review-list { grid-template-columns: 1fr; } .review-list dd { margin-bottom: 8px; } }

/* ---------- Success ---------- */
.success { text-align: center; padding: 40px 28px; }
.success .big-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.ref-box { display: inline-flex; align-items: center; gap: 12px; background: var(--bg); border: 1px dashed var(--brand); border-radius: 12px; padding: 12px 18px; font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; margin: 10px 0 20px; }

/* ---------- Status timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.timeline li { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--muted); }
.timeline li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li.failed .dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline strong { display: block; }
.timeline small { color: var(--muted); }

/* ---------- Assessment ---------- */
.assess-bar { position: sticky; top: 64px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0; }
.assess-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.timer { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.1rem; padding: 6px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); }
.timer.low { background: var(--danger-soft); color: var(--danger); }
.q { padding: 22px 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q-progress { position: sticky; top: 64px; z-index: 5; background: #fff; padding: 10px 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
.q-progress .progress { margin-top: 6px; }
.q-section { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--brand-soft); }
.q-section h3 { margin: 4px 0; }
.q-head { display: flex; align-items: center; gap: 10px; }
.q-badge { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.q.q-missing { background: var(--danger-soft); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.q-num { font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.q-text { font-weight: 600; margin: 4px 0 12px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.option:hover { border-color: #94a3b8; }
.option input { margin-top: 4px; accent-color: var(--brand); }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.section-head { margin-top: 28px; }
.section-head .badge { margin-bottom: 8px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.s-review { background: #eff6ff; color: #1d4ed8; }
.s-interview { background: #ecfeff; color: #0e7490; }
.s-hired { background: var(--ok-soft); color: #15803d; }
.s-rejected { background: var(--danger-soft); color: #b91c1c; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 32px 0; color: var(--muted); font-size: .88rem; text-align: center; }

.center-screen { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 24px; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
