/* Poland CNC — AI Threat Intelligence Hub */
/* Style v1.0.0 */

:root {
  --bg: #0a0f1a;
  --bg-card: #0f1929;
  --bg-card2: #111d2e;
  --border: #1e3a5f;
  --border-light: #1a3050;
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #f59e0b;
  --green: #22c55e;
  --blue: #3b82f6;
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}

.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-cnc { font-weight: 900; font-size: 1.2rem; color: var(--accent); letter-spacing: 2px; }
.brand-sep { color: var(--border); }
.brand-pl { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-links a {
  color: var(--text-dim); font-size: 0.8rem; letter-spacing: 1px;
  padding: 0.4rem 0.75rem; border-radius: 4px; transition: all 0.2s;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: rgba(14,165,233,0.1);
}

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at top left, rgba(14,165,233,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(239,68,68,0.06) 0%, transparent 60%),
              var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-content { max-width: 1280px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 3px; font-weight: 700;
  color: var(--accent); border: 1px solid rgba(14,165,233,0.3);
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: rgba(14,165,233,0.08);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  margin-bottom: 2.5rem; max-width: 600px;
}

.hero-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 2rem;
  min-width: 160px;
  display: flex; flex-direction: column; align-items: center;
}

.stat-num {
  font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; letter-spacing: 1px; }

/* ── Page Header ── */
.page-header {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(14,165,233,0.05) 0%, transparent 70%);
}

.critical-header {
  background: radial-gradient(ellipse at top, rgba(239,68,68,0.08) 0%, transparent 60%);
}

.page-header .container { text-align: center; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-header p { color: var(--text-dim); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.page-badge {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 3px; font-weight: 700;
  color: var(--accent); border: 1px solid rgba(14,165,233,0.3);
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: rgba(14,165,233,0.08);
  margin-bottom: 1rem;
}

.page-badge.danger {
  color: var(--red); border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}

/* ── Filters ── */
.filters-section {
  padding: 1.5rem 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 90;
}

.filters-bar {
  display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
}

.filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-group label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

.filter-group select,
.filter-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  min-width: 160px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none; border-color: var(--accent);
}

.search-group input { min-width: 240px; }

.btn-filter, .btn-reset {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  align-self: flex-end;
}

.btn-filter {
  background: var(--accent); color: white;
}
.btn-filter:hover { background: var(--accent2); }

.btn-reset {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ── Entities Grid ── */
.entities-section { padding: 2.5rem 0 4rem; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
}

.section-header h2 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; color: var(--text);
}

.section-header h2 span { color: var(--text-muted); font-size: 1rem; }

.btn-critical {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  color: var(--red); border: 1px solid rgba(239,68,68,0.3);
  padding: 0.4rem 1rem; border-radius: 6px;
  background: rgba(239,68,68,0.06);
  transition: all 0.2s;
}
.btn-critical:hover { background: rgba(239,68,68,0.15); color: var(--red); }

.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* ── Entity Card ── */
.entity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.entity-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--threat-color, var(--accent));
  border-radius: 10px 10px 0 0;
}

.entity-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-name { font-weight: 700; font-size: 1rem; color: var(--text); line-height: 1.3; }
.card-sector { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; letter-spacing: 0.5px; }

.card-type-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  padding: 0.2rem 0.5rem; border-radius: 3px;
  white-space: nowrap;
}

.type-korporacja { background: rgba(14,165,233,0.15); color: var(--accent); }
.type-IT { background: rgba(139,92,246,0.15); color: #a78bfa; }
.type-gov { background: rgba(245,158,11,0.15); color: #fbbf24; }
.type-uczelnia { background: rgba(34,197,94,0.15); color: #4ade80; }

.card-scores {
  display: flex; gap: 0.75rem; margin-bottom: 0.75rem;
}

.score-item { flex: 1; }
.score-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 0.25rem; }
.score-bar-wrap {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
}
.score-bar { height: 100%; border-radius: 3px; transition: width 0.4s; }
.score-val { font-size: 0.8rem; font-weight: 700; margin-top: 0.2rem; }

.card-city { font-size: 0.75rem; color: var(--text-muted); }
.card-city span { color: var(--text-dim); }

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.card-verdict {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
}

.card-link {
  font-size: 0.75rem; color: var(--accent); font-weight: 600;
}

/* ── Threat Colors ── */
.threat-10, .threat-9 { --threat-color: #ef4444; }
.threat-8, .threat-7 { --threat-color: #f97316; }
.threat-6, .threat-5 { --threat-color: #f59e0b; }
.threat-4, .threat-3 { --threat-color: #22c55e; }
.threat-2, .threat-1 { --threat-color: #3b82f6; }

.verdict-red { color: var(--red); }
.verdict-orange { color: var(--orange); }
.verdict-yellow { color: var(--yellow); }
.verdict-green { color: var(--green); }
.verdict-blue { color: var(--blue); }

/* ── Critical List ── */
.critical-section { padding: 2.5rem 0 4rem; }

.critical-list { display: flex; flex-direction: column; gap: 1rem; }

.critical-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.critical-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(239,68,68,0.1);
}

.critical-rank {
  font-size: 1.5rem; font-weight: 900; color: var(--red);
  font-family: monospace; text-align: center;
}

.critical-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.critical-info p { font-size: 0.85rem; color: var(--text-dim); }

.critical-scores { display: flex; gap: 1.5rem; align-items: center; }

.cscore { text-align: center; }
.cscore-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }
.cscore-val { font-size: 1.75rem; font-weight: 900; line-height: 1; }

/* ── Firma / Entity Detail ── */
.firma-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.firma-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
}

.firma-back { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.firma-back a { color: var(--accent); }

.firma-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.5rem; }
.firma-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }
.firma-meta-item { font-size: 0.8rem; color: var(--text-muted); }
.firma-meta-item span { color: var(--text-dim); }

.firma-scores-hero { display: flex; gap: 1.5rem; flex-shrink: 0; }

.score-hero-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 120px;
}

.score-hero-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 0.5rem; }
.score-hero-val { font-size: 2.5rem; font-weight: 900; line-height: 1; }

.firma-body { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

.firma-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

.firma-section { margin-bottom: 2rem; }
.firma-section h3 {
  font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 1rem; text-transform: uppercase;
  border-bottom: 1px solid var(--border); padding-bottom: 0.5rem;
}

.firma-description { font-size: 1rem; color: var(--text-dim); line-height: 1.7; }

.critical-areas-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ca-tag {
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--accent2);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.verdict-title {
  font-size: 0.7rem; letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 0.5rem; text-transform: uppercase;
}

.verdict-text { font-size: 1rem; font-weight: 700; }

.action-box {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.action-title {
  font-size: 0.7rem; letter-spacing: 2px; color: var(--red);
  margin-bottom: 0.5rem; text-transform: uppercase;
}

.action-text { font-size: 0.95rem; color: var(--text-dim); }

.firma-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.fstat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem;
}

.fstat-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 0.25rem; }
.fstat-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* ── Spinoff Form ── */
.spinoff-section { padding: 3rem 0 4rem; }

.spinoff-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem;
}

.spinoff-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.spinoff-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  background: var(--accent); color: white;
  padding: 0.875rem;
  border: none; border-radius: 8px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover:not(:disabled) { background: var(--accent2); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-msg.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.form-msg.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }

.spinoff-info { padding-top: 0.5rem; }
.spinoff-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2rem; }
.benefit-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-dim); }
.bi {
  flex-shrink: 0;
  background: rgba(14,165,233,0.15);
  color: var(--accent);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.4rem; border-radius: 3px;
  margin-top: 0.15rem;
}

.spinoff-types h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; letter-spacing: 1px; }
.type-tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 4px;
  margin: 0.25rem 0.25rem 0 0; color: var(--text-dim);
}

/* ── Process ── */
.process-section { padding: 3rem 0 4rem; }

.process-intro {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  margin-bottom: 2.5rem; max-width: 800px;
  font-size: 1.05rem; color: var(--text-dim); line-height: 1.7;
}

.process-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem;
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; align-items: start;
}

.step-num {
  font-size: 2.5rem; font-weight: 900; color: rgba(14,165,233,0.3);
  font-family: monospace; line-height: 1;
}

.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--accent); letter-spacing: 1px; }
.step-content p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 1rem; }

.scale-bar { display: flex; align-items: center; gap: 1rem; }
.scale-lo, .scale-hi { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.bar-fill { flex: 1; height: 8px; border-radius: 4px; }

.verdict-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.vl {
  font-size: 0.85rem; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 4px;
  display: inline-block; width: fit-content;
}
.vl.red { background: rgba(239,68,68,0.1); color: var(--red); }
.vl.orange { background: rgba(249,115,22,0.1); color: var(--orange); }
.vl.yellow { background: rgba(245,158,11,0.1); color: var(--yellow); }
.vl.green { background: rgba(34,197,94,0.1); color: var(--green); }
.vl.blue { background: rgba(59,130,246,0.1); color: var(--blue); }

.process-cta {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05));
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.process-cta h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.process-cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

.btn-primary {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px; font-weight: 700; letter-spacing: 1px;
  font-size: 0.875rem; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent2); color: white; }

/* ── Mapa ── */
.mapa-section { padding: 2.5rem 0 4rem; }

.matrix-legend {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ml-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-dim); }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.orange { background: var(--orange); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.matrix-wrap { position: relative; margin-bottom: 3rem; }
.matrix-y-label {
  font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px;
  margin-bottom: 0.5rem; text-align: left;
}
.matrix-x-label {
  font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px;
  margin-top: 0.5rem; text-align: right;
}

.matrix-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  min-height: 400px;
  position: relative;
  overflow: auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 40px);
  gap: 3px;
  min-width: 600px;
}

.matrix-cell {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 3px;
  position: relative;
  cursor: default;
}

.matrix-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%;
}

.sector-breakdown h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: 1px;
}
.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.sector-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.sector-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.sector-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.sector-avg-threat { font-size: 1.25rem; font-weight: 900; }

.type-breakdown h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: 1px;
}
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.type-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
}
.type-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.type-card-count { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.type-card-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Footer ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-sub { margin-top: 0.25rem; opacity: 0.6; }

/* ── Loading / Empty ── */
.loading {
  text-align: center; color: var(--text-muted);
  padding: 3rem; font-size: 0.9rem;
}

.empty-state {
  text-align: center; color: var(--text-muted);
  padding: 3rem; grid-column: 1 / -1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero-stats { gap: 0.75rem; }
  .stat-box { min-width: 130px; padding: 1rem 1.25rem; }
  .stat-num { font-size: 2rem; }

  .entities-grid { grid-template-columns: 1fr; }
  .critical-item { grid-template-columns: 2rem 1fr; }
  .critical-scores { display: none; }

  .spinoff-grid { grid-template-columns: 1fr; }
  .firma-grid { grid-template-columns: 1fr; }
  .firma-header-inner { grid-template-columns: 1fr; }
  .firma-scores-hero { justify-content: flex-start; }

  .filters-bar { flex-direction: column; }
  .filter-group select, .filter-group input { min-width: unset; width: 100%; }

  .step { grid-template-columns: 1fr; }
  .step-num { font-size: 1.5rem; }

  .navbar { padding: 0 1rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
}
