/* CUTREMUR.LIVE – stiluri comune (mobile first). Pagini: inc/layout.php */

:root {
  --bg: #f1f4f2;
  --surface: #fff;
  --surface-2: #f6f8f7;
  --line: #e1e7e3;
  --text: #0f1a13;
  --text-2: #445349;
  --muted: #6f7f74;
  --brand: #156a16;
  --brand-strong: #0e5110;
  --brand-soft: #e5f2e5;
  --brand-text: #156a16;
  --red: #dc2626;
  --red-strong: #b91c1c;
  --red-soft: #fdeceb;
  --topbar: #156a16;
  --topbar-text: #fff;
  --focus: #2563eb;

  --map-land: #e3eae5;
  --map-line: #fff;
  --map-hover: #d3ded7;
  --lvl1: #fde7bf;
  --lvl2: #fbc77e;
  --lvl3: #f39548;
  --lvl4: #dd5525;

  --mag-2: #6f9a7c;
  --mag-3: #e3a008;
  --mag-4: #ef6c1f;
  --mag-5: #dc2626;
  --mag-6: #7f1d1d;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 26, 19, .05), 0 6px 20px rgba(15, 26, 19, .06);
  --shadow-lg: 0 18px 50px rgba(15, 26, 19, .22);
  --gutter: 16px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100d;
    --surface: #141b17;
    --surface-2: #1a231e;
    --line: #26322b;
    --text: #e7eee9;
    --text-2: #b6c4bb;
    --muted: #8a9a90;
    --brand: #2f8f33;
    --brand-strong: #39a63e;
    --brand-soft: #16301a;
    --brand-text: #6fcf73;
    --red: #ef4444;
    --red-strong: #f87171;
    --red-soft: #3a1514;
    --topbar: #0f3a11;
    --focus: #60a5fa;

    --map-land: #25312a;
    --map-line: #0b100d;
    --map-hover: #33433a;
    --lvl1: #4d3d1d;
    --lvl2: #7c5521;
    --lvl3: #b2622b;
    --lvl4: #e2602b;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
a { color: var(--brand-text); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: 1.55rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- bara de sus ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--topbar); color: var(--topbar-text);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 4px 18px rgba(0, 0, 0, .12);
}
.topbar-in { display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; height: 58px; padding: 0 8px 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.12rem; letter-spacing: .02em; margin-right: auto; white-space: nowrap; }
.brand-live { font-weight: 500; letter-spacing: .04em; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); animation: live 1.8s infinite; }
body[data-page="home"] .brand-live { animation: live-blink 1.2s ease-in-out infinite; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .65); } 70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.topnav { display: none; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 24px; height: 24px; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; border: 2px solid var(--topbar); }
html[data-push="on"] .bell-dot { background: #4ade80; }
html[data-push="loading"] .bell-dot { display: none; }
.menu-label { display: none; }

/* ---------- bara de jos (mobil) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .tabbar { background: var(--surface); } }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; }
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--brand-text); }
.tab-sos span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.tab-sos { color: var(--red); }

/* ---------- pagina ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter) 28px; }
.page-narrow { max-width: 820px; }
.page-head { margin: 4px 2px 16px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--text-2); margin: 0; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 6px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .85rem; color: var(--muted); margin: 0 2px 12px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card, .card + section, section + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-sub { font-size: .9rem; color: var(--muted); margin: -6px 0 12px; }
.card-flush { padding: 0; overflow: hidden; }

/* ---------- butoane, pastile ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, .25); }
.btn-red:hover { background: var(--red-strong); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > .btn { flex: 1 1 auto; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; font-size: .92rem; }
.link-more:hover { text-decoration: underline; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.pill-live { background: var(--red-soft); border-color: transparent; color: var(--red); font-weight: 800; letter-spacing: .04em; }
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.pill-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: .85rem; font-weight: 700; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- magnitudine ---------- */
.mag { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 13px; color: #fff; font-weight: 850; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; background: var(--mag-2); }
.mag-3 { background: var(--mag-3); color: #2b1d00; }
.mag-4 { background: var(--mag-4); }
.mag-5 { background: var(--mag-5); }
.mag-6 { background: var(--mag-6); }
.mag-xl { width: 84px; height: 84px; border-radius: 24px; font-size: 2rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.mag-sm { width: 38px; height: 38px; border-radius: 11px; font-size: .92rem; }

/* ---------- prima pagina ---------- */
.home { display: grid; gap: 16px; }
.home > * { min-width: 0; }
.home .card + .card { margin-top: 16px; }
.home-title { font-size: 1.15rem; font-weight: 800; margin: 0 2px; color: var(--text-2); letter-spacing: 0; }
.home-title b { color: var(--text); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 2px 12px; }
.section-title h2 { margin: 0; }
#home-map-card[aria-busy="true"] .romap { opacity: .55; transition: opacity .2s; }

/* ---------- ultimul cutremur ---------- */
.hero { position: relative; overflow: hidden; }
.hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-updated { margin-left: auto; font-size: .78rem; color: var(--muted); }
.hero-main { display: flex; gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.hero-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-title { font-size: 1.3rem; font-weight: 850; line-height: 1.2; letter-spacing: -.02em; }
.hero-meta { color: var(--text-2); font-size: .92rem; }
.hero-felt { font-size: .88rem; font-weight: 700; color: var(--muted); }
.hero-go { margin-top: 14px; }
.hero.is-recent { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: linear-gradient(180deg, var(--red-soft), var(--surface) 70%); }
.hero.is-recent .hero-label { color: var(--red); }
.hero.is-new { animation: flash 1.2s ease 2; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .45), var(--shadow); } }

/* ---------- lista de cutremure ---------- */
.qlist { list-style: none; margin: 0; padding: 0; }
.qrow + .qrow { border-top: 1px solid var(--line); }
.qrow a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; color: inherit; text-decoration: none; border-radius: 12px; }
.qrow a:hover { background: var(--surface-2); }
.qrow.is-selected a { background: var(--brand-soft); }
.qrow-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qrow-place { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow-meta { font-size: .84rem; color: var(--muted); }
.qrow .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.qrow-long .qrow-place { white-space: normal; line-height: 1.3; margin-bottom: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.qrow-new { color: var(--red); font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; }
.qlist.is-collapsed .qrow:nth-child(n+13) { display: none; }
.list-more { margin-top: 10px; }

/* ---------- harta SVG ---------- */
.map-wrap { position: relative; margin: 0 -6px; }
.romap { display: block; width: 100%; max-width: 900px; margin: 0 auto; height: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.romap .cty path { fill: var(--map-land); stroke: var(--map-line); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .25s, opacity .25s; }
.romap .cty { cursor: pointer; outline: none; }
.romap .cty:hover path, .romap .cty:focus-visible path { fill: var(--map-hover); }
.romap .lvl-1 path { fill: var(--lvl1); }
.romap .lvl-2 path { fill: var(--lvl2); }
.romap .lvl-3 path { fill: var(--lvl3); }
.romap .lvl-4 path { fill: var(--lvl4); }
.romap .cty[class*="lvl-"]:not(.lvl-0):hover path { filter: brightness(.94); }
.romap .cty:focus-visible path { stroke: var(--focus); stroke-width: 3; }
.romap .cty.is-active path { stroke: var(--text); stroke-width: 2.4; }
.romap.has-active .cty:not(.is-active) path { opacity: .55; }
.romap text { font-family: var(--font); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.romap .cty-label { font-size: calc(26px * var(--s, 1)); font-weight: 700; fill: var(--text-2); text-anchor: middle; dominant-baseline: middle; opacity: .8; }
.romap .city { pointer-events: none; }
.romap .city circle { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.romap .city text { font-size: calc(30px * var(--s, 1)); font-weight: 650; fill: var(--text); }
.romap .city-minor { display: none; }
.romap .qk { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; fill-opacity: .88; fill: var(--mag-2); cursor: pointer; transition: transform .2s; }
.romap .qk.mag-3 { fill: var(--mag-3); }
.romap .qk.mag-4 { fill: var(--mag-4); }
.romap .qk.mag-5 { fill: var(--mag-5); }
.romap .qk.mag-6 { fill: var(--mag-6); }
.romap .qk.is-selected { stroke: var(--text); stroke-width: 3; fill-opacity: 1; }
/* punctele sunt dimensionate pentru harta de pe telefon; pe ecrane mari le micsoram */
@media (min-width: 600px) { .romap .qk { transform-box: fill-box; transform-origin: center; transform: scale(.8); } }
@media (min-width: 960px) { .romap .qk { transform: scale(.62); } }
.romap .qk-pulse { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.romap .ring { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .7; }
.romap .ring-label { font-size: calc(24px * var(--s, 1)); fill: var(--red); font-weight: 700; text-anchor: middle; }
.map-hint { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 8px 2px 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .8rem; color: var(--text-2); margin: 10px 2px 0; }
.legend-scale { display: inline-flex; align-items: center; gap: 4px; }
.legend-scale i { display: inline-block; width: 18px; height: 12px; border-radius: 3px; background: var(--map-land); }
.legend-scale i.l1 { background: var(--lvl1); } .legend-scale i.l2 { background: var(--lvl2); } .legend-scale i.l3 { background: var(--lvl3); } .legend-scale i.l4 { background: var(--lvl4); }
.legend-dots { display: inline-flex; align-items: center; gap: 6px; }
.legend-dots i { display: inline-block; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- statistici ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.stat b { display: block; font-size: 1.35rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bars a { display: grid; grid-template-columns: 7.2em 1fr 2.2em; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: .9rem; }
.bars a:hover .bar-name { text-decoration: underline; }
.bar-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lvl2), var(--lvl4)); }
.bar-n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- alerte (CTA) ---------- */
.cta { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #1a7a1c, #0e5110); color: #fff; border: 0; }
.cta h2, .cta h3 { color: #fff; margin-bottom: 4px; }
.cta p { color: rgba(255, 255, 255, .86); margin: 0 0 12px; font-size: .93rem; }
.cta-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.cta-icon svg { width: 26px; height: 26px; fill: #fff; }
.cta .btn { background: #fff; color: #0e5110; border-color: #fff; }
html[data-push="on"] .cta-off { display: none; }
html:not([data-push="on"]) .cta-on { display: none; }

/* ---------- unelte ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow); min-height: 112px; cursor: pointer; text-align: left; font: inherit; }
.tile:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tile-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-text); }
.tile-icon svg { width: 22px; height: 22px; }
.tile-red .tile-icon { background: var(--red-soft); color: var(--red); }
.tile b { font-size: .95rem; line-height: 1.25; }
.tile small { color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: -6px; }

/* ---------- foaia de jos (detalii) si meniul ---------- */
.backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 8, .48); opacity: 0; transition: opacity .25s; }
.backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text);
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg);
  padding: 8px 18px calc(20px + var(--safe-b));
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet.is-open { transform: none; }
.sheet-handle { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet h2 { font-size: 1.3rem; padding-right: 44px; }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 40px; }
.sheet-head h2 { margin: 0 0 2px; padding: 0; }
.sheet-head p { margin: 0; color: var(--text-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.fact { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fact dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; }
.sheet-note { font-size: .9rem; color: var(--text-2); margin-bottom: 14px; }
.sheet .btn-row { margin-top: 4px; }
.sheet .qlist { margin: 0 -4px 12px; }
.sheet h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.skeleton { height: 56px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
  width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); box-shadow: var(--shadow-lg);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(24px + var(--safe-b));
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.menu.is-open { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu-head b { font-size: 1.1rem; }
.menu-head .sheet-close { position: static; }
.menu-sec { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
.menu-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; color: var(--text); text-decoration: none; font-weight: 650; font-size: .97rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { width: 22px; height: 22px; color: var(--brand-text); flex: none; }
.menu-item small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.menu-item.is-active { color: var(--brand-text); }
.menu-item .chev { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.push-status::after { content: "Dezactivate – apasă pentru a le porni"; }
html[data-push="on"] .push-status::after { content: "Active pe acest dispozitiv"; }
html[data-push="denied"] .push-status::after { content: "Blocate din browser"; }
html[data-push="ios"] .push-status::after, html[data-push="unsupported"] .push-status::after { content: "Vezi cum le activezi"; }
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sos-grid .tile { min-height: 96px; }

/* ---------- continut text ---------- */
.prose { font-size: 1.02rem; }
.prose p, .prose li { line-height: 1.65; color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose h2 { margin-top: 1.4em; }
.lead { font-size: 1.08rem; color: var(--text); }
.dl { display: grid; grid-template-columns: 1fr; margin: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 650; text-align: right; }
.notice { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--brand-soft); color: var(--text); font-size: .93rem; }
.notice-red { background: var(--red-soft); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--brand-text); }
.notice-red svg { color: var(--red); }
.notice p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 650; }
.chip:hover { border-color: var(--brand); }
.chip b { color: var(--muted); font-weight: 700; }
.chip.is-hot b { color: var(--lvl4); }

/* ---------- judete ---------- */
.county-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.county-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 650; font-size: .92rem; }
.county-grid a:hover { border-color: var(--brand); }
.county-grid span { font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.county-grid .hot span { color: var(--lvl4); font-weight: 800; }

/* ---------- stiri ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-item a { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.news-item a:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.news-img { flex: none; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.news-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-title { font-weight: 750; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.news-src { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-weight: 800; font-size: .7rem; flex: none; }
.news-day { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }

/* ---------- sfaturi ---------- */
/* submeniul ghidului: pastile cu iconite, lipite sub bara de sus; pe mobil se deruleaza orizontal */
.subnav { position: sticky; top: 58px; z-index: 50; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.subnav-in { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 4px; scroll-padding: 0 var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.subnav-in.is-end { -webkit-mask-image: none; mask-image: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(15, 26, 19, .08); color: var(--text); text-decoration: none; font-weight: 750; font-size: .92rem; white-space: nowrap; scroll-snap-align: start; transition: background .15s, color .15s, border-color .15s; }
.subnav a:hover { border-color: var(--brand); }
.subnav .ico { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-text); }
.subnav .ico svg { width: 18px; height: 18px; }
.subnav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.subnav a.is-active .ico { background: rgba(255, 255, 255, .2); color: #fff; }
.subnav ~ section[id] { scroll-margin-top: 136px; }
/* cei 3 pasi, cu ilustratii */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step3 { display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.step3-art svg { display: block; width: 100%; height: auto; border-radius: 11px; }
.step3-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: .85rem; margin-bottom: 6px; }
.step3-text b { display: block; font-size: 1.12rem; line-height: 1.2; }
.step3-text b + span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.advice { display: grid; gap: 12px; }
.advice-item { display: flex; gap: 12px; }
.advice-item .tile-icon { flex: none; }
.advice-item h3 { margin: 2px 0 4px; }
.advice-item p, .advice-item ul { margin: 0; color: var(--text-2); font-size: .95rem; }
.advice-item ul { padding-left: 1.1em; }
.myth { border-left: 4px solid var(--red); }
.kit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kit label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.kit input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.kit input:checked + span { color: var(--muted); text-decoration: line-through; }
.progress { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .3s; }
.videos { display: grid; grid-template-columns: 1fr; gap: 12px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000 center / cover no-repeat; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75)); }
.video-play { position: absolute; left: 50%; top: 45%; z-index: 1; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(220, 38, 38, .92); display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-title { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-weight: 750; font-size: .95rem; line-height: 1.3; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.scale { width: 100%; border-collapse: collapse; font-size: .92rem; }
.scale th, .scale td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.scale th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scale td:first-child { width: 64px; }
.phones { display: grid; gap: 10px; }
.phone { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.phone b { font-size: 1.6rem; font-weight: 900; color: var(--red); min-width: 2.4em; }
.phone span { font-size: .9rem; color: var(--text-2); }

/* ---------- unelte de urgenta (sirena, locatie) ---------- */
.tool { text-align: center; }
.big-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: min(64vw, 240px); aspect-ratio: 1; margin: 10px auto 18px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; background: radial-gradient(circle at 35% 30%, #ff6b5e, #dc2626 55%, #a31515); box-shadow: 0 16px 40px rgba(220, 38, 38, .45), inset 0 -8px 0 rgba(0, 0, 0, .15); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.big-btn svg { width: 56px; height: 56px; }
.big-btn small { font-weight: 600; font-size: .8rem; letter-spacing: 0; opacity: .9; }
.big-btn.is-on { animation: sirenpulse .9s infinite; }
@keyframes sirenpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .6), 0 16px 40px rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 26px rgba(220, 38, 38, 0), 0 16px 40px rgba(220, 38, 38, .45); } }
.big-btn-green { background: radial-gradient(circle at 35% 30%, #4cc552, #1d8a1f 55%, #0e5110); box-shadow: 0 16px 40px rgba(21, 106, 22, .4), inset 0 -8px 0 rgba(0, 0, 0, .15); }
.modes { display: inline-flex; margin-bottom: 8px; }
.strobe { position: fixed; inset: 0; z-index: 2500; background: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(40px + var(--safe-b)); }
.strobe.is-dark { background: #000; }
.strobe button { background: rgba(0, 0, 0, .7); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 1rem; cursor: pointer; }
.coords { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.loc-result { text-align: left; }
.loc-result .dl dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 1200; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: inherit; font-weight: 800; }

/* ---------- subsol ---------- */
.footer { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter) 28px; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.footer a { color: var(--text-2); }
.footer p { margin: 0 0 6px; }
.partner { display: block; max-width: 728px; margin: 0 auto 14px; }
.partner img { display: block; width: 100%; height: auto; aspect-ratio: 728 / 90; border-radius: 10px; }

/* ---------- butonul plutitor de alerte (push/push.js) ---------- */
/* deasupra barei de jos si a invitatiei de instalare (--install-h, din app.js), sub meniu si foi */
body .clp-fab { z-index: 940; left: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px + var(--install-h, 0px)); transition: bottom .3s; }
.footer { padding-bottom: 96px; }

/* ---------- confidentialitate ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.switch-row b { display: block; }
.switch-row small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .5; }
.cookie-list { list-style: none; margin: 0; padding: 0; }
.cookie-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookie-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cookie-list code { font: 700 .92rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }
.cookie-list p { margin: 0; color: var(--text-2); font-size: .93rem; }
.cookie-list small { color: var(--muted); font-size: .82rem; }
[data-cookie-list], [data-local-list] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-word; }

/* ---------- invitatie de instalare (mobil) ---------- */
.install-banner {
  position: fixed; left: 12px; right: 12px; z-index: 950;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 90px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.install-banner.is-on { transform: none; }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.install-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.install-text b { font-size: .95rem; }
.install-text span { font-size: .8rem; color: var(--muted); }
.install-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.install-steps { padding-left: 1.3em; margin: 0 0 14px; }
.install-steps li { margin-bottom: 10px; line-height: 1.5; color: var(--text-2); }
.install-steps svg { width: 1.2em; height: 1.2em; vertical-align: -.25em; color: var(--focus); }

/* ---------- ecrane mari ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  h1 { font-size: 1.9rem; }
  .card { padding: 20px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .county-grid { grid-template-columns: repeat(3, 1fr); }
  .videos { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
  .step3 { grid-template-columns: 1fr; padding: 0 0 14px; overflow: hidden; align-items: start; }
  .step3-art svg { border-radius: 0; }
  .step3-text { padding: 0 14px; }
  .romap .city-minor { display: inline; }
  .romap .city text { font-size: calc(19px * var(--s, 1)); }
  .romap .cty-label { font-size: calc(17px * var(--s, 1)); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .phones { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topbar-in { height: 64px; padding: 0 var(--gutter); gap: 4px; }
  .brand { font-size: 1.2rem; margin-right: 18px; }
  .topnav { display: flex; gap: 2px; margin-right: auto; }
  .topnav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 650; font-size: .93rem; padding: 8px 12px; border-radius: 10px; }
  .topnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .topnav a.is-active { background: rgba(255, 255, 255, .18); color: #fff; }
  .menu-label { display: inline; margin-left: 6px; font-weight: 700; font-size: .93rem; }
  .menu-btn { width: auto; padding: 0 12px; }
  .page { padding-top: 24px; }
  .grid-2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 20px; }
  .grid-2 > .sticky { position: sticky; top: 84px; }
  .grid-2 > * + * { margin-top: 0; }
  .home { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "map hero" "map list"; gap: 20px; align-items: start; }
  .home-hero { grid-area: hero; }
  .home-map { grid-area: map; position: sticky; top: 84px; align-self: start; }
  .home-list { grid-area: list; }
  .home-title { font-size: 1.3rem; }
  .county-grid { grid-template-columns: repeat(4, 1fr); }
  .subnav { top: 64px; }
  .subnav-in { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  body .clp-fab { left: 24px; bottom: 24px; }
  .toast { bottom: 24px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: 86vh; border-radius: 24px; padding: 22px 24px 24px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-handle { display: none; }
}

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

@media print {
  .topbar, .tabbar, .footer, .cta, .menu, .sheet, .backdrop { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 0; }
}
