/* SkyDNS Values Test — визуальный стиль skydns.ru + Guidebook */
:root {
  --astro-blue: #204AB2;
  --blue-bright: #2563EB;
  --blue-hover: #1D4ED8;
  --neon-green: #76F1A3;
  --green-cta: #22C55E;
  --green-cta-hover: #16A34A;
  --cloud-blue: #469DF1;
  --white-blue: #F0F6FF;
  --bg-page: #F4F7FB;
  --bg-card: #FFFFFF;
  --bg-dark: #0F1D32;
  --bg-dark-2: #162842;
  --white-green: #ECFEF1;
  --dark-blue: #1A2332;
  --grass-green: #15803D;
  --fire-red: #DC2626;
  --tango-red: #EF4444;
  --text-primary: #1A2332;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #469DF1;
  --gradient-hero: linear-gradient(135deg, #0F1D32 0%, #162842 40%, #1a3a6e 100%);
  --gradient-brand: linear-gradient(135deg, #469DF1 0%, #76F1A3 100%);
  --gradient-cta: linear-gradient(135deg, #22C55E 0%, #76F1A3 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 29, 50, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 29, 50, 0.1);
  --font-heading: 'Play', 'Roboto', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --nav-height: 64px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* ── Navbar (как skydns.ru) ── */
.navbar {
  height: var(--nav-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(15, 29, 50, 0.04);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--astro-blue);
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
}

.brand-logo--light {
  height: 26px;
  max-width: 130px;
}

.brand--footer .brand-logo {
  height: 22px;
  opacity: 0.95;
}

.brand .logo { width: 36px; height: 36px; color: var(--astro-blue); }

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name span { color: var(--green-cta); }

.nav-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Hero (тёмный блок как на главной) ── */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 48px 24px 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(70, 157, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 241, 163, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

/* Admin header */
.admin-header {
  background: var(--bg-dark);
  color: white;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.admin-logout {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  flex-shrink: 0;
}

.admin-logout:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-header-brand .brand-logo {
  height: 24px;
  flex-shrink: 0;
}

.admin-header-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand .brand-logo {
  height: 30px;
}

.admin-header h1 { font-size: 1rem; font-weight: 600; }
.admin-badge {
  font-size: 0.7rem;
  background: rgba(118, 241, 163, 0.15);
  color: var(--neon-green);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(118, 241, 163, 0.25);
}

/* ── Layout ── */
.main-content { flex: 1; }
.container { max-width: 680px; margin: 0 auto; padding: 32px 20px 48px; }
.container-wide { max-width: 1080px; }

/* ── Stepper ── */
.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 90px;
  position: relative;
}

.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.stepper-item.done:not(:last-child)::after { background: var(--green-cta); }

.stepper-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.stepper-item.active .stepper-dot {
  border-color: var(--astro-blue);
  background: var(--astro-blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(32, 74, 178, 0.12);
}

.stepper-item.done .stepper-dot {
  border-color: var(--green-cta);
  background: var(--green-cta);
  color: white;
}

.stepper-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.stepper-item.active .stepper-label { color: var(--astro-blue); font-weight: 600; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-title {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.card-subtitle p { margin-bottom: 8px; }

/* ── Progress ── */
.progress-wrap { margin-bottom: 20px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.progress-meta strong { color: var(--astro-blue); }

.progress-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--border);
}

.track-badge-core { background: #eff6ff; color: var(--astro-blue); border-color: #dbeafe; }
.track-badge-role { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.track-badge-open { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.elapsed-timer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 5px 12px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.elapsed-timer::before { content: '⏱ '; }

.elapsed-timer-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.block-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.block-blue { background: #EFF6FF; color: var(--astro-blue); }
.block-sky { background: #E0F2FE; color: #0369A1; }
.block-green { background: #ECFDF5; color: var(--grass-green); }
.block-mint { background: #D1FAE5; color: #047857; }
.block-dark { background: #F1F5F9; color: var(--bg-dark-2); }

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

.field-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(70, 157, 241, 0.12);
}

textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.char-count { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.char-count.warn { color: var(--fire-red); }

.open-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.45;
}

.question-context {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ── Questions ── */
.question-text {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.65;
  color: var(--text-primary);
}

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.option:hover {
  border-color: var(--cloud-blue);
  background: #FAFCFF;
}

.option.selected {
  border-color: var(--astro-blue);
  background: #F8FAFF;
  box-shadow: 0 0 0 3px rgba(32, 74, 178, 0.08);
}

.option-key {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--astro-blue);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.option.selected .option-key {
  background: var(--astro-blue);
  color: white;
}

.option-text {
  flex: 1;
  font-size: 0.93rem;
  line-height: 1.55;
  padding-top: 4px;
  color: var(--text-primary);
}
.option input { position: absolute; opacity: 0; pointer-events: none; }

/* ── Buttons (как skydns.ru: зелёный primary) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  filter: brightness(1.05);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: white;
  color: var(--astro-blue);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--astro-blue);
  background: #F8FAFF;
}

.btn-blue {
  background: var(--astro-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(32, 74, 178, 0.25);
}

.btn-blue:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); }

.btn-green {
  background: var(--grass-green);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover { color: var(--astro-blue); }

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-group .btn-primary { margin-left: auto; }

.btn-group-single {
  justify-content: flex-end;
}

.btn-group-single .btn-primary { margin-left: 0; }

/* ── Value cards ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.values-grid-5 {
  grid-template-columns: repeat(2, 1fr);
}

.value-card.dark {
  background: linear-gradient(135deg, #162842, #1e3558);
  border-color: #2a4068;
  color: white;
}

.value-card-wide {
  grid-column: 1 / -1;
}

.consent-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.consent-box .consent {
  align-items: flex-start;
  margin-bottom: 12px;
}

.consent-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.consent-note a {
  color: var(--astro-blue);
  text-decoration: underline;
}

.value-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-card.blue { background: linear-gradient(135deg, #F8FAFF, #FFFFFF); border-color: #DBEAFE; }
.value-card.green { background: linear-gradient(135deg, #F0FDF4, #FFFFFF); border-color: #BBF7D0; }
.value-card strong { display: block; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; }
.value-card span { font-size: 0.78rem; color: var(--text-secondary); }
.value-card.dark strong { color: #ffffff; }
.value-card.dark span { color: rgba(255, 255, 255, 0.8); }

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: var(--astro-blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid #DBEAFE;
}

/* ── Thank you ── */
.thank-you { text-align: center; padding: 56px 24px; }

.thanks-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 auto 20px;
}

.thanks-site { margin-top: 16px !important; }

.thank-you h2 { font-size: 1.75rem; color: var(--text-primary); margin-bottom: 12px; }
.thank-you p { color: var(--text-secondary); max-width: 400px; margin: 0 auto; }

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

/* ── Admin ── */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box { flex: 1; min-width: 200px; max-width: 360px; }

.submission-list { list-style: none; }

.submission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.submission-item:last-child { border-bottom: none; }
.submission-item:hover { background: #F8FAFF; }

.submission-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.submission-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-green { background: #ECFDF5; color: var(--grass-green); }
.badge-yellow { background: #FFFBEB; color: #B45309; }
.badge-red { background: #FEF2F2; color: var(--fire-red); }

.score-bars { display: flex; flex-direction: column; gap: 16px; }

.score-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.score-bar-head strong { color: var(--astro-blue); }

.score-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.bar-green { background: linear-gradient(90deg, #22C55E, #76F1A3); }
.bar-blue { background: linear-gradient(90deg, #469DF1, #204AB2); }
.bar-yellow { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.bar-red { background: linear-gradient(90deg, #F87171, #DC2626); }

.score-bar-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--astro-blue);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.stat-card .stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

.stat-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.methodology-box {
  text-align: left;
  padding: 18px 20px !important;
}

.methodology-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.methodology-text:last-child { margin-bottom: 0; }

.report-card {
  padding-bottom: 8px;
}

.report-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-section {
  margin-bottom: 0;
  padding: 20px 22px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--astro-blue);
  box-shadow: 0 1px 3px rgba(22, 40, 66, 0.04);
}

.report-section--summary { border-left-color: var(--grass-green); background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.report-section--method { border-left-color: var(--cloud-blue); }
.report-section--profile { border-left-color: var(--astro-blue); }
.report-section--flags { border-left-color: var(--fire-red); background: #fffbfb; }
.report-section--warn { border-left-color: #f59e0b; background: #fffbeb; }
.report-section--interview { border-left-color: #8b5cf6; }

.report-section--ai,
.report-section--ai-summary,
.report-section--ai-positive,
.report-section--ai-warn,
.report-section--ai-pattern,
.report-section--ai-open,
.report-section--ai-interview,
.report-section--ai-probation,
.report-section--ai-process {
  border-left-color: #6366f1;
  background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
}

.report-section--ai-positive { border-left-color: #059669; background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%); }
.report-section--ai-warn { border-left-color: #d97706; background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }

.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.ai-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--astro-blue);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-spin { to { transform: rotate(360deg); } }

.ai-hint {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.report-section h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.report-body p,
.report-line {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.report-body p:last-child,
.report-line:last-child { margin-bottom: 0; }

.report-list {
  margin: 4px 0 8px;
  padding-left: 1.25rem;
  list-style: disc;
}

.report-list li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.report-list li:last-child { margin-bottom: 0; }

.red-flag-list { list-style: none; }

.red-flag-list li {
  padding: 12px 16px;
  background: #FEF2F2;
  border-left: 3px solid var(--fire-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 18px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  line-height: 1.55;
}

.consent input { margin-top: 3px; accent-color: var(--green-cta); width: 18px; height: 18px; flex-shrink: 0; }

.error-msg { color: var(--fire-red); font-size: 0.85rem; margin-top: 10px; }
.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 12px; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--astro-blue);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover { color: var(--blue-hover); }

.hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state strong { color: var(--text-primary); display: block; margin-bottom: 6px; }

/* ── Footer (как skydns.ru) ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.footer-brand span { color: var(--neon-green); }
.footer-copy { font-size: 0.8rem; }
.footer-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; }
.footer-link:hover { color: var(--neon-green); }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: white;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-width: 380px;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--grass-green); }
.toast-error { background: var(--fire-red); }
.toast-warning { background: #B45309; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.offline-banner {
  background: #FEF2F2;
  color: var(--fire-red);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #FECACA;
}

/* ── Legal / privacy doc ── */
.legal-doc .legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.legal-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--astro-blue);
}

.legal-section p,
.legal-list {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-list {
  margin: 8px 0 12px 20px;
}

.legal-list li { margin-bottom: 6px; }

/* ── HR admin v2 ── */
.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.filter-chip.active {
  background: var(--astro-blue);
  border-color: var(--astro-blue);
  color: #fff;
}

.submission-item-main { flex: 1; min-width: 0; }
.submission-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-hero { margin-bottom: 16px; }

.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-hero-meta {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.detail-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 14px;
}

.hero-stat {
  background: #F8FAFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--astro-blue);
  font-family: var(--font-heading);
}

.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.detail-hero-note {
  margin: 0;
  padding: 12px 14px;
  background: #F0FDF4;
  border-left: 3px solid var(--grass-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.section-heading {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.section-heading--warn { color: var(--fire-red); }

.methodology-details summary {
  cursor: pointer;
  list-style: none;
}

.methodology-details summary::-webkit-details-marker { display: none; }

.methodology-content { margin-top: 10px; }

.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.report-toolbar-actions { display: flex; gap: 4px; }

.btn-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.badge-lg {
  font-size: 0.85rem;
  padding: 8px 14px;
}

.report-sections--accordion {
  gap: 8px;
}

.report-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FAFBFF;
  overflow: hidden;
}

.report-accordion[open] {
  background: var(--bg-card);
}

.report-accordion-summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
}

.report-accordion-summary::-webkit-details-marker { display: none; }

.report-accordion .report-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.report-accordion.report-section--summary { border-left: 4px solid var(--grass-green); }
.report-accordion.report-section--flags { border-left: 4px solid var(--fire-red); }
.report-accordion.report-section--warn { border-left: 4px solid #f59e0b; }

.admin-help-card .methodology-text { margin-bottom: 12px; }

/* ── Modal (resume dialog) ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 40, 66, 0.45);
}

.modal-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  margin: 0;
  box-shadow: 0 20px 50px rgba(22, 40, 66, 0.2);
}

.ai-hint code {
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Responsive ── */
.intro-pause-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

.section-banner {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.section-banner-core {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--astro-blue);
}

.section-banner-role {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.section-banner-open {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
}

.keyboard-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.eta-timer {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-chips--secondary { margin-top: 0; }

.list-counters { font-size: 0.82rem; }

.badge-status-new {
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 0.68rem;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-fast {
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.68rem;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.btn-danger { color: var(--fire-red) !important; }
.btn-danger:hover { background: #FEF2F2 !important; }

.fast-completion-warn {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #92400E;
}

.open-answer-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.open-answer-block:last-child { border-bottom: none; padding-bottom: 0; }

.open-answer-q {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.open-answer-preview {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.open-answer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.open-answer-flags {
  margin: 10px 0 0 18px;
  font-size: 0.82rem;
  color: var(--fire-red);
}

.status-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.detail-view--brief #score-bars-card,
.detail-view--brief #methodology-card,
.detail-view--brief #report-card,
.detail-view--brief .admin-help-card {
  display: none !important;
}

.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.password-field input {
  flex: 1;
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--astro-blue);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--bg-card);
  color: var(--text-primary);
}

@media print {
  .navbar,
  .admin-header,
  .site-footer,
  .offline-banner,
  #toast-container,
  .detail-topbar,
  .detail-topbar-actions,
  .admin-toolbar,
  .filter-chips,
  .report-toolbar-actions,
  .btn,
  .admin-logout,
  #list-view {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .main-content { margin: 0; padding: 0; }

  .detail-layout {
    display: block;
  }

  .detail-aside {
    break-inside: avoid;
  }

  .report-accordion,
  .report-accordion[open] summary ~ * {
    display: block !important;
  }

  .report-accordion summary {
    list-style: none;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .option {
    padding: 18px 16px;
    min-height: 56px;
  }

  .option-key {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .option-text { font-size: 1rem; }

  .values-grid, .score-summary { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .hero { padding: 36px 20px 44px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; margin-left: 0 !important; }
  .submission-item { flex-direction: column; align-items: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-topbar-actions { width: 100%; }
  .detail-topbar-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  #toast-container { left: 16px; right: 16px; bottom: 16px; }
  .stepper-label { font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
