/* ============================================================
   MAI SIGUR - Sistem Inteligent de Geoanaliză Urbană a Riscului (platformă ARSC)
   Design system. Font: Arial. Fără serife decorative.
   ============================================================ */

:root {
  /* Paletă */
  --ink: #15171c;
  --ink-soft: #383d49;
  --muted: #6b7280;
  --muted-2: #9aa0ab;
  --line: #e7e8ec;
  --line-soft: #f0f1f3;
  --paper: #ffffff;
  --paper-2: #f7f7f4;
  --paper-3: #eeeeea;

  --accent: #2348c9;
  --accent-soft: #eef1fd;
  --accent-ink: #1a37a0;

  /* Severitate / categorii */
  --c-omor: #7c1d1d;
  --c-talharie: #c0392b;
  --c-violenta: #e15554;
  --c-sexual: #9b2d6b;
  --c-domestica: #be185d;
  --c-arme: #6d28d9;
  --c-droguri: #7c3aed;
  --c-autofurt: #b45309;
  --c-autospargere: #d97706;
  --c-spargere: #ca8a04;
  --c-furt: #e0a106;
  --c-frauda: #0891b2;
  --c-incendiu: #ea580c;
  --c-vandalism: #2563eb;
  --c-ordine: #64748b;
  --c-dui: #0d9488;
  --c-antisocial: #94a3b8;

  --ok: #15803d;
  --warn: #b45309;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20,23,28,.06), 0 1px 1px rgba(20,23,28,.04);
  --shadow-md: 0 10px 30px -12px rgba(20,23,28,.22);
  --shadow-lg: 0 30px 60px -22px rgba(20,23,28,.28);

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --mono: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Tipografie ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -.02em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 200; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 250; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
strong { font-weight: 500; color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow.muted { color: var(--muted); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); font-weight: 300; line-height: 1.55; }

.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section.ink { background: var(--ink); color: #e9eaee; }
.section.ink h1, .section.ink h2, .section.ink h3 { color: #fff; }
.section.ink p { color: #b9bcc6; }

.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure-sm { max-width: 560px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 500; letter-spacing: -.01em; }
.brand .mark {
  width: 32px; height: 32px; flex: none; display: inline-block;
  background: url("../img/logo.svg") center/contain no-repeat;
}
.brand b { font-weight: 600; }
.brand span { color: var(--muted); font-weight: 400; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.02; gap: 2px; }
.brand-txt b { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.brand-txt i { font-style: normal; font-size: .58rem; font-weight: 500; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.footer .brand-txt b { color: #fff; }
.footer .brand-txt i { color: #8a8f98; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .9rem; color: var(--ink-soft); padding: 8px 13px; border-radius: 8px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { color: var(--accent-ink); }
.nav .cta { background: var(--ink); color: #fff; padding: 9px 16px; }
.nav .cta:hover { background: var(--accent); color: #fff; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 500; padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s var(--ease);
  font-family: var(--font);
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .hl { color: var(--accent-ink); }
.hero .lead { margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-note div { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.hero-visual {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4;
  background: #eef1f4;
}
.hero-visual .mini-map { position: absolute; inset: 0; }
.hero-visual .map-overlay {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
.hero-visual .map-overlay .mono { font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.hero-visual .map-overlay b { font-size: 1.3rem; font-weight: 300; display: block; letter-spacing: -.02em; }

.bg-fade { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(900px 500px at 85% -5%, rgba(35,72,201,.07), transparent 60%),
  radial-gradient(700px 500px at -5% 20%, rgba(35,72,201,.05), transparent 55%); }

/* ---------- Strip logos / autorități ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.strip .lab { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.strip ul { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.strip li { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Carduri ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-ink); }
.card .ic svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .95rem; }
.card .num { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- Layer cards (3 straturi) ---------- */
.layer { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer .badge { font-family: var(--mono); font-size: 1.4rem; font-weight: 300; color: var(--accent-ink); }
.layer h3 { margin-bottom: 8px; }

/* ---------- Statistici ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--paper); padding: 28px 24px; }
.section.ink .stat { background: #1b1e25; }
.stat .v { font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 200; letter-spacing: -.03em; line-height: 1; }
.stat .v .u { font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.stat .k { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.stat .src { font-family: var(--mono); font-size: .64rem; color: var(--muted-2); margin-top: 8px; letter-spacing: .04em; }
.section.ink .stat .v { color: #fff; }
.section.ink .stat .k { color: #aeb2bd; }

/* ============================================================
   APLICAȚIA HARTĂ
   ============================================================ */
.app { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 66px); overflow: hidden; }
.app-aside { border-right: 1px solid var(--line); background: var(--paper); overflow-y: auto; }
.app-main { position: relative; }
#map { position: absolute; inset: 0; background: #e9ecef; }

.aside-pad { padding: 22px 22px 40px; }
.aside-head { padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 5; }
.aside-head h2 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.aside-head p { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }

.control { margin-bottom: 26px; }
.control > label { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.control > label .link { color: var(--accent-ink); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .72rem; }

.seg { display: flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; font-family: var(--font); font-size: .8rem; color: var(--muted); padding: 7px 4px; border-radius: 7px; cursor: pointer; transition: .18s; font-weight: 500; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.chk { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.chk:hover { background: var(--paper-2); }
.chk input { display: none; }
.chk .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; transition: .15s; }
.chk input:checked + .box { background: var(--swatch, var(--accent)); border-color: var(--swatch, var(--accent)); }
.chk input:checked + .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.chk .nm { font-size: .86rem; flex: 1; color: var(--ink-soft); }
.chk .ct { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }
.chk .swatch-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.range-row { display: flex; gap: 8px; }
.sel { width: 100%; font-family: var(--font); font-size: .86rem; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

/* Floating UI peste hartă */
.map-ui { position: absolute; z-index: 820; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
.map-topbar { top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.searchbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px; padding: 0 14px; height: 46px; width: min(420px, 60%); }
.searchbox input { border: 0; outline: 0; font-family: var(--font); font-size: .92rem; width: 100%; background: none; color: var(--ink); }
.searchbox svg { color: var(--muted); flex: none; }
.map-tools { display: flex; gap: 8px; }
.tool-btn { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); height: 42px; padding: 0 14px; font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: .18s; }
.tool-btn:hover { border-color: var(--ink); }
.tool-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.legend { position: absolute; z-index: 800; bottom: 16px; left: 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 14px 16px; max-width: 230px; }
.legend h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.legend .row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-soft); margin-bottom: 6px; }
.legend .row .swatch-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-head { display: none; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-family: var(--font); font-size: .82rem; font-weight: 600; color: var(--ink); width: 100%; padding: 2px 0; }
.legend-head .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--muted); }
.legend.open .legend-head .chev { transform: rotate(90deg); }
@media (max-width: 820px) {
  .legend { max-width: 210px; padding: 10px 12px; }
  .legend-head { display: flex; }
  .legend-body { display: none; margin-top: 10px; }
  .legend.open .legend-body { display: block; }
}

.disclaimer-pill { position: absolute; z-index: 800; bottom: 16px; right: 16px; background: rgba(21,23,28,.9); color: #e9eaee; border-radius: 10px; padding: 9px 14px; font-size: .74rem; max-width: 280px; display: flex; gap: 8px; align-items: center; }
.disclaimer-pill svg { flex: none; color: #ffb454; }

.pred-dot { width: 10px; height: 10px; border-radius: 50%; background: #ea580c; box-shadow: 0 0 0 0 rgba(234,88,12,.5); animation: predPulse2 2.4s ease-in-out infinite; }

/* Pin incident real */
.real-pin-wrap { background: none; border: 0; }
.real-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(20,23,28,.35); border: 2px solid #fff; animation: fadeIn .4s ease both; }
.real-pin svg { transform: rotate(45deg); }
.real-pin-legend { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); display: inline-block; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.real-badge { font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; background: var(--ok); color: #fff; padding: 2px 6px; border-radius: 100px; margin-left: 4px; vertical-align: middle; font-weight: 600; }
.src-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: .8rem; font-weight: 500; color: var(--accent-ink); border-top: 1px solid var(--line); padding-top: 10px; width: 100%; }
.src-link:hover { text-decoration: underline; }

/* Notă predicție în sidebar */
.pred-note { display: flex; gap: 8px; font-size: .72rem; line-height: 1.5; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; }
.pred-note svg { flex: none; margin-top: 2px; color: var(--accent-ink); }

/* Header familie în lista de categorii */
.fam-head { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 14px 0 4px; }

/* ---- Animații ---- */
@keyframes predPulse { 0% { transform: scale(.55); opacity: .85; } 70% { transform: scale(1); opacity: 0; } 100% { opacity: 0; } }
@keyframes predPulse2 { 0%,100% { transform: scale(.92); } 50% { transform: scale(1.04); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Marker de predicție (pulsant) */
.pred-marker { background: none; border: 0; }
.pred-pulse { position: relative; display: grid; place-items: center; border-radius: 50%; animation: predPulse2 3.4s ease-in-out infinite; animation-delay: var(--d); }
.pred-pulse::before, .pred-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: .18; }
.pred-pulse::after { animation: predPulse 2.8s ease-out infinite; animation-delay: var(--d); opacity: .35; }
.pred-core { position: relative; z-index: 2; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 100px; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-weight: 700; font-size: .78rem; box-shadow: 0 4px 12px rgba(20,23,28,.3); border: 2px solid rgba(255,255,255,.85); }

/* Sectoare - tranziție lină la hover */
.sector-poly { transition: fill-opacity .25s var(--ease); }

/* Apariție markeri incidente (doar opacitate - NU transform, ca să nu strice poziția Leaflet) */
.leaflet-marker-icon.cl-cluster { animation: fadeIn .45s ease both; }
.leaflet-interactive.inc-dot { animation: fadeIn .4s ease both; }

/* Cluster markers */
.cl-cluster { background: none; }
.cl-cluster .cl-inner { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: .8rem; color: #fff; background: rgba(35,72,201,.88); border: 2px solid rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(20,23,28,.25); }

/* Etichete sector (strat oficial) */
.sec-label { background: none; }
.sec-tag { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.94); border: 1.5px solid; border-radius: 9px; padding: 3px 8px; box-shadow: var(--shadow-sm); line-height: 1.05; }
.sec-tag b { font-family: var(--mono); font-size: .72rem; color: var(--ink); }
.sec-tag i { font-family: var(--mono); font-style: normal; font-size: .64rem; color: var(--muted); }

/* Toggle switch */
.switch { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; margin-bottom: 8px; transition: border-color .18s; }
.switch:hover { border-color: var(--ink-soft); }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 100px; background: var(--paper-3); position: relative; flex: none; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch .txt { flex: 1; }
.switch .txt b { display: block; font-size: .86rem; font-weight: 500; }
.switch .txt small { font-size: .72rem; color: var(--muted); }

/* Popup Leaflet override */
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 0; font-family: var(--font); }
.inc-pop { padding: 15px 16px; min-width: 220px; }
.inc-pop .cat { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; }
.inc-pop .cat .swatch-dot { width: 9px; height: 9px; border-radius: 50%; }
.inc-pop h4 { font-size: 1rem; font-weight: 500; margin: 8px 0 4px; }
.inc-pop .meta { font-size: .8rem; color: var(--muted); }
.inc-pop .meta b { color: var(--ink-soft); font-weight: 500; }
.inc-pop .foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; color: var(--muted-2); letter-spacing: .04em; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 1.1rem; font-weight: 400; color: var(--ink); }
.faq-q .pm { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent-ink); transition: .25s var(--ease); }
.faq-q .pm::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.faq-q .pm::after { width: 2px; height: 14px; top: 5px; left: 11px; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a .inner { padding: 0 0 24px; max-width: 760px; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- Help/Ghid topics ---------- */
.topic { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; transition: none; }
.topic:hover { border-color: var(--line); box-shadow: none; }
.topic:hover h3 { color: var(--accent-ink); }
.topic .n { font-family: var(--mono); font-size: .95rem; color: var(--muted-2); font-weight: 500; }
.topic h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; transition: color .18s; }
.topic p { margin: 0; font-size: .92rem; color: var(--muted); }
.grid.cols-2 .topic { padding-right: 28px; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); font-family: var(--mono); font-size: 1rem; color: #fff; background: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- Alert form ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select { width: 100%; font-family: var(--font); font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aeb2bd; padding: 72px 0 36px; }
.footer h4 { color: #fff; font-size: .9rem; font-weight: 500; margin-bottom: 16px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer a { color: #aeb2bd; font-size: .9rem; display: block; padding: 5px 0; transition: color .18s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 11px; }
.footer .brand .mark { background: url("../img/logo-light.svg") center/contain no-repeat; }
.footer .brand span { color: #aeb2bd; }
.footer .desc { font-size: .9rem; max-width: 340px; line-height: 1.6; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .8rem; color: #80858f; }
.footer .bottom .mono { font-size: .72rem; letter-spacing: .04em; }
.footer .bottom a { display: inline; padding: 0; color: #aeb2bd; text-decoration: underline; text-underline-offset: 2px; }
.footer .bottom a:hover { color: #fff; }
.footer .bottom .fbottom-link { text-decoration: none; }
.footer .bottom .fbottom-link:hover { color: #fff; }

/* ---------- Pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); }
.pill.ok { color: var(--ok); border-color: rgba(21,128,61,.3); background: rgba(21,128,61,.06); }
.pill.accent { color: var(--accent-ink); border-color: rgba(35,72,201,.25); background: var(--accent-soft); }

/* ---------- Page hero (interior) ---------- */
/* Masthead editorial - asimetric, document-like (nu hero centrat generic) */
.page-hero { padding: 56px 0 0; }
.page-hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; column-gap: 60px; row-gap: 18px; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.page-hero .eyebrow { grid-column: 1; grid-row: 1; margin: 0; align-self: start; }
.page-hero h1 { grid-column: 1; grid-row: 2; margin: 0; max-width: 16ch; font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.page-hero .lead { grid-column: 2; grid-row: 2; margin: 0; max-width: 46ch; font-size: 1.02rem; font-weight: 400; line-height: 1.65; color: var(--muted); }
.page-hero .mono { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 0 !important; }

.prose { max-width: 720px; font-size: 1.02rem; }
.prose > p:first-of-type { font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.prose h2 { margin: 56px 0 18px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { margin: 34px 0 10px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.prose p { margin-bottom: 18px; line-height: 1.72; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 20px; }
.prose li { margin-bottom: 11px; color: var(--ink-soft); padding-left: 22px; position: relative; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 1px; background: var(--accent); }
.prose a.src { color: var(--accent-ink); border-bottom: 1px solid var(--accent-soft); }

/* Notă editorială (nu cutie pufoasă) */
.callout { background: transparent; border: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: 2px 0 2px 24px; margin: 30px 0; }
.callout .eyebrow { margin-bottom: 7px; display: block; }
.callout p { color: var(--ink-soft); }
.callout p:last-child { margin: 0; }

table.data { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data th { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.data td { color: var(--ink-soft); }
table.data tr:hover td { background: var(--paper-2); }

/* ---------- Utilitare ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- Grafice SVG ---------- */
.osc { width: 100%; height: auto; display: block; }
.osc-lbl { font-family: var(--font); font-size: 13px; fill: var(--ink-soft); }
.osc-val { font-family: var(--mono); font-size: 12px; fill: var(--muted); font-weight: 500; }
.osc-track { fill: var(--paper-3); }
.osc-grid { stroke: var(--line); stroke-width: 1; }
.osc-axis { font-family: var(--mono); font-size: 11px; fill: var(--muted-2); }
.osc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; justify-content: center; }
.osc-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-soft); }
.osc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.chart-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.chart-card .sub { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }

/* Profil "compară zona ta" */
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-badge { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: #fff; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 8px; }
.kpi { background: var(--paper); padding: 18px 20px; }
.kpi .v { font-size: 1.8rem; font-weight: 300; letter-spacing: -.02em; }
.kpi .k { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- Widget accesibilitate ---------- */
.a11y-fab { position: fixed; left: 16px; bottom: 16px; z-index: 1400; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-md); display: grid; place-items: center; transition: background .18s; }
.a11y-fab:hover { background: var(--accent-ink); }
.a11y-fab svg { width: 26px; height: 26px; }
.a11y-panel { position: fixed; left: 16px; bottom: 76px; z-index: 1401; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; display: none; }
.a11y-panel.open { display: block; }
.a11y-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.a11y-panel .sub { font-size: .74rem; color: var(--muted); margin-bottom: 14px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.a11y-row > span { font-size: .88rem; color: var(--ink-soft); }
.a11y-seg { display: flex; gap: 5px; flex: none; }
.a11y-seg button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-family: var(--font); font-size: .8rem; color: var(--ink); }
.a11y-seg button:hover { border-color: var(--ink); }
.a11y-toggle { width: 44px; height: 25px; border-radius: 100px; background: var(--paper-3); border: 0; cursor: pointer; position: relative; flex: none; transition: background .2s; }
.a11y-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.a11y-toggle[aria-pressed="true"] { background: var(--accent); }
.a11y-toggle[aria-pressed="true"]::after { transform: translateX(19px); }
.a11y-panel .reset { margin-top: 14px; width: 100%; justify-content: center; }
.a11y-panel .stmt { display: block; margin-top: 12px; font-size: .78rem; color: var(--accent-ink); text-align: center; }

/* moduri de accesibilitate (clase pe <html>) */
html.a11y-contrast { --muted: #33373f; --muted-2: #474c56; --line: #c4c8cf; --ink-soft: #15171c; }
html.a11y-contrast p, html.a11y-contrast .lead { color: #1c1f26; }
html.a11y-links a:not(.btn):not(.brand):not(.nav a) { text-decoration: underline; text-underline-offset: 2px; }
html.a11y-links .nav a, html.a11y-links .footer a { text-decoration: underline; }
html.a11y-spacing { line-height: 1.9; letter-spacing: .015em; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .lead { line-height: 1.95; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ---------- Accesibilitate ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-size: .9rem; font-weight: 500; }
.skip-link:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .switch:focus-within, .chk:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pred-pulse::after { display: none; }
}

/* ---------- Banner cookies / notă ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 720px; margin: 0 auto; background: var(--ink); color: #d7d9df; border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; align-items: center; gap: 16px; }
.cookie-bar p { margin: 0; font-size: .82rem; line-height: 1.5; color: #c3c6cd; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .btn { flex: none; padding: 9px 16px; }

/* ---------- Pagina Cazuri (data grid) ---------- */
.caz-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.caz-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.caz-actions { display: flex; gap: 14px; align-items: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.caz-table { margin: 0; font-size: .9rem; }
.caz-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.caz-table th[data-sort]::after { content: " ↕"; color: var(--muted-2); font-size: .7rem; }
.caz-table th[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent-ink); }
.caz-table th[aria-sort="descending"]::after { content: " ↓"; color: var(--accent-ink); }
.caz-table td { vertical-align: top; }
.caz-table .nowrap { white-space: nowrap; color: var(--muted); }
.tag-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap; }
.td-desc { color: var(--muted); font-size: .82rem; }
.caz-table a.src { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); white-space: nowrap; }

/* Empty state hartă */
.map-empty { position: absolute; z-index: 700; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 18px 24px; text-align: center; font-size: .9rem; color: var(--ink-soft); max-width: 300px; display: none; }
.map-empty.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .page-hero .wrap { grid-template-columns: 1fr; row-gap: 14px; }
  .page-hero h1 { max-width: none; grid-row: auto; }
  .page-hero .eyebrow, .page-hero .lead, .page-hero .mono { grid-column: 1; grid-row: auto; }
  .page-hero .lead { max-width: 60ch; }
  .page-hero .mono { justify-self: start; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { aspect-ratio: 16/11; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .bottom { }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; }
  .nav.open a { padding: 12px; }
  .hamburger { display: block; }
  .app { grid-template-columns: 1fr; height: auto; }
  .app-aside { max-height: 50vh; border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .app-main { order: 1; height: 60vh; }
}
@media (max-width: 700px) {
  /* Cazuri: tabel -> carduri */
  .table-scroll { overflow-x: visible; border: 0; }
  .caz-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .caz-table, .caz-table tbody, .caz-table tr, .caz-table td { display: block; width: 100%; }
  .caz-table tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 14px 12px; }
  .caz-table td { border: 0; padding: 8px 0 0; }
  .caz-table td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
  .caz-table td[data-label="Caz"] { padding-top: 10px; }
  .caz-table .nowrap { white-space: normal; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; gap: 12px; }
  .cookie-bar .btn { width: 100%; justify-content: center; }
  .caz-toolbar { flex-direction: column; align-items: stretch; }
  .caz-filters { flex-direction: column; align-items: stretch; }
  .caz-filters .sel, .caz-filters .searchbox { width: 100% !important; }
  .caz-actions { justify-content: space-between; }
  .section { padding: 72px 0; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
}
