/* Wireframes — Навигатор карьеры */
:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1a2e;
  --muted: #5c6370;
  --accent: #0039a6;
  --accent-light: #e8eef8;
  --border: #dde2e8;
  --success: #1b7f4e;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --tap: 48px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

.wf-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wf-logo { font-weight: 700; font-size: 1rem; color: var(--accent); }
.wf-badge {
  font-size: 0.7rem;
  background: #ffeaa7;
  padding: 2px 8px;
  border-radius: 4px;
  color: #6b5900;
}

.wf-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 96px;
}

.wf-main.wf-wide { max-width: 720px; }

.wf-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.wf-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.wf-subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }

.wf-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.wf-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.wf-progress-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }

.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.wf-btn-primary { background: var(--accent); color: #fff; }
.wf-btn-secondary { background: var(--accent-light); color: var(--accent); }
.wf-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }

.wf-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .wf-footer { left: 50%; transform: translateX(-50%); }
}

.wf-likert {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 20px 0;
}
.wf-likert button {
  flex: 1;
  min-height: var(--tap);
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
}
.wf-likert button.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.wf-likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}

.wf-field { margin-bottom: 16px; }
.wf-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.wf-field input, .wf-field select, .wf-field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
}

.wf-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.wf-radio-group input { width: 20px; height: 20px; }

.wf-question-text {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.wf-poles {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.wf-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
}
.wf-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}
.wf-bubble.bot { background: var(--accent-light); align-self: flex-start; border-bottom-left-radius: 4px; }
.wf-bubble.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.wf-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.wf-status { font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; background: var(--accent-light); color: var(--accent); }
.wf-status.done { background: #e6f4ea; color: var(--success); }

.wf-nav { padding: 16px; max-width: 720px; margin: 0 auto; }
.wf-nav a { display: block; padding: 10px; color: var(--accent); }

.wf-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wf-pwa-banner {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.wf-desktop-only { display: none; }
@media (min-width: 768px) {
  .wf-main { max-width: 640px; }
  .wf-desktop-only { display: block; }
}
