:root {
  --red: #e02020;
  --red-dark: #b01818;
  --dark: #1a1a2e;
  --gray: #4a4a6a;
  --light: #f7f8fc;
  --white: #ffffff;
  --border: #e2e6f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--gray); line-height: 1.75; }

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  display: flex; align-items: center;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 0; padding-top: 8px; padding-bottom: 8px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; color: var(--dark); flex-shrink: 0;
}
.navbar-brand .cross {
  width: 30px; height: 30px; background: var(--red); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-brand .cross svg { fill: white; width: 18px; height: 18px; }
.nav-links { display: none; }
.nav-links a:hover { color: var(--red); }
.nav-links .btn-nav {
  background: var(--red); color: white;
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; transition: background 0.2s;
}
.nav-links .btn-nav:hover { background: var(--red-dark); color: white; }
.hamburger { display: flex; align-items: center; gap: 7px; cursor: pointer; background: var(--light); border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 0.88rem; font-weight: 600; color: var(--dark); font-family: inherit; transition: all 0.2s; }
.hamburger:hover { background: #fef2f2; border-color: var(--red); color: var(--red); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px; z-index: 99; flex-direction: column; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--dark); padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f0f4ff 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff0f0; color: var(--red); border: 1px solid #ffd0d0;
  border-radius: 100px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: white;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary {
  background: white; color: var(--dark);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; border: 2px solid var(--border); cursor: pointer;
  transition: border-color 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: white; border-radius: 20px; box-shadow: var(--shadow);
  padding: 32px; text-align: center; width: 100%; max-width: 340px;
}
.hero-card .big-cross {
  width: 80px; height: 80px; background: var(--red); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.hero-card .big-cross svg { fill: white; width: 48px; height: 48px; }
.hero-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.hero-card p { font-size: 0.9rem; }
.hero-stats { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.hero-stats div { text-align: center; flex: 1; }
.hero-stats strong { display: block; font-size: 1.4rem; color: var(--red); }
.hero-stats span { font-size: 0.75rem; color: var(--gray); }

/* ── Categories grid ── */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.cat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: block;
}
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--red); transform: translateY(-2px); }
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 0.95rem; color: var(--dark); }

/* ── Guide page ── */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.guide-sidebar {
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  background: var(--light); border-radius: var(--radius); padding: 20px;
}
.guide-sidebar h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 12px; }
.guide-sidebar a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 0.9rem; color: var(--gray); transition: 0.2s;
}
.guide-sidebar a:hover, .guide-sidebar a.active { background: var(--red); color: white; }
.guide-content { min-width: 0; }
.guide-section { margin-bottom: 48px; }
.guide-section h2 { color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.step {
  display: flex; gap: 16px; margin-bottom: 16px;
  background: var(--light); border-radius: var(--radius); padding: 16px;
}
.step-num {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--red); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.step-body h4 { margin-bottom: 4px; font-size: 0.95rem; }
.step-body p { font-size: 0.875rem; margin: 0; }
.alert-box {
  background: #fff8e1; border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; margin: 16px 0; font-size: 0.875rem;
}
.alert-box.danger { background: #fff0f0; border-color: var(--red); }
.audio-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 18px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; color: var(--dark);
  transition: 0.2s; margin-bottom: 16px;
}
.audio-btn:hover { border-color: var(--red); color: var(--red); }
.audio-btn svg { width: 16px; height: 16px; fill: var(--red); }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-item .icon { width: 40px; height: 40px; background: #fff0f0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-form { background: var(--light); border-radius: 20px; padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 1rem; background: white;
  transition: border-color 0.2s; font-family: inherit; color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); padding: 16px; color: #166534; font-weight: 500; }

/* ── Footer ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: white; margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
footer a { display: block; color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 8px; transition: color 0.2s; }
footer a:hover { color: white; }
footer p { font-size: 0.875rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { color: white; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }
.ong-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; padding: 6px 14px; font-size: 0.8rem; color: rgba(255,255,255,0.8); }

/* ── Lang switcher ── */
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--gray); transition: 0.2s;
}
.lang-switch button.active { background: var(--red); border-color: var(--red); color: white; }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 560px; margin: 12px auto 0; font-size: 1rem; }
.tag { display: inline-block; background: #fff0f0; color: var(--red); border-radius: 100px; padding: 4px 14px; font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; }

/* ── Read progress bar ── */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--red); z-index: 200; transition: width 0.08s linear;
  pointer-events: none;
}

/* ── High contrast mode ── */
html.high-contrast {
  --red: #b50000;
  --red-dark: #8a0000;
  --dark: #000000;
  --gray: #111111;
  --light: #f0f0f0;
  --white: #ffffff;
  --border: #777777;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}
html.high-contrast body { background: #fff; }
html.high-contrast p { color: #111; }
html.high-contrast .hero { background: #fff0f0; }
html.high-contrast .hero p { color: #111; }
html.high-contrast .navbar { background: rgba(255,255,255,0.99); border-bottom: 2px solid #000; }
html.high-contrast footer { background: #111; }
html.high-contrast footer p, html.high-contrast footer a { color: rgba(255,255,255,0.92); }
html.high-contrast .cat-card h3 { color: #000; }
html.high-contrast .alert-box { background: #fff8dc; border-color: #8a6000; }
html.high-contrast .alert-box.danger { background: #fff0f0; border-color: #b50000; }
html.high-contrast *:focus-visible { outline: 3px solid #b50000; outline-offset: 3px; }

/* ── A11y (contrast) button ── */
.a11y-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--gray); transition: 0.2s; display: inline-flex; align-items: center; gap: 5px;
  line-height: 1;
}
.a11y-btn:hover { border-color: var(--dark); color: var(--dark); }
.a11y-btn[aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); }
.mobile-menu .a11y-btn { display: flex; padding: 10px 0; border: none; border-bottom: 1px solid var(--border); border-radius: 0; width: 100%; font-size: 1rem; }
.mobile-menu .a11y-btn:hover { color: var(--red); }

/* ── Read time badge ── */
.read-time {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  color: var(--gray); background: var(--light); border-radius: 100px;
  padding: 2px 10px; margin-left: 10px; vertical-align: middle;
  opacity: 0.75; letter-spacing: 0.01em;
}

/* ── Share button ── */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--light); border: 1px solid var(--border);
  cursor: pointer; transition: 0.2s; margin-left: 8px; vertical-align: middle;
  flex-shrink: 0; padding: 0;
}
.share-btn:hover { background: #fff0f0; border-color: var(--red); }
.share-btn svg { width: 14px; height: 14px; stroke: var(--gray); fill: none; transition: 0.2s; }
.share-btn:hover svg { stroke: var(--red); }
.share-btn.copied svg { stroke: #16a34a; }

/* ── Update available banner ── */
#update-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: #0f172a; color: rgba(255,255,255,0.88);
  padding: 14px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid #22c55e; font-size: 0.85rem; line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

/* ── Notifications button (footer) ── */
#notif-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; padding: 8px 18px; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.75); cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-family: inherit;
}
#notif-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); color: white; border-color: rgba(255,255,255,0.35); }
#notif-btn:disabled { opacity: 0.45; cursor: default; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 100px 0 56px; }
  .audio-btn { padding: 12px 22px; font-size: 0.9rem; min-height: 44px; }
}

/* ── Nav More dropdown (details/summary nativ) ── */
.nav-more{position:relative}
.nav-more summary{list-style:none}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more-btn{background:none;border:none;font-family:inherit;font-size:0.82rem;font-weight:500;color:var(--gray);cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:4px 2px;transition:color .2s;white-space:nowrap;line-height:1}
.nav-more-btn:hover,.nav-more[open] .nav-more-btn{color:var(--dark)}
.nav-more-panel{position:absolute;top:calc(100% + 14px);right:0;background:#fff;border:1px solid var(--border);border-radius:14px;padding:6px;min-width:210px;box-shadow:0 8px 32px rgba(0,0,0,0.13);z-index:500}
.nav-more-panel a{display:flex;align-items:center;padding:10px 14px;font-size:0.84rem;font-weight:500;color:var(--dark);text-decoration:none;border-radius:9px;transition:background .15s,color .15s;gap:10px}
.nav-more-panel a:hover{background:var(--light);color:var(--red)}

/* ── Share FAB ── */
.share-fab{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.share-fab-btn{width:52px;height:52px;background:#e02020;color:#fff;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(224,32,32,0.45);transition:all .2s;padding:0}
.share-fab-btn:hover{background:#b91c1c;transform:scale(1.08)}
.share-fab-panel{display:flex;flex-direction:column;gap:6px;align-items:flex-end;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s,transform .2s}
.share-fab-panel.open{opacity:1;pointer-events:auto;transform:translateY(0)}
.share-fab-item{display:flex;align-items:center;gap:10px;background:#fff;border:none;border-radius:100px;padding:9px 16px 9px 10px;cursor:pointer;font-size:0.83rem;font-weight:600;box-shadow:0 2px 14px rgba(0,0,0,0.14);transition:all .2s;text-decoration:none;color:#0f172a;font-family:inherit;white-space:nowrap;line-height:1}
.share-fab-item:hover{transform:translateX(-4px);box-shadow:0 4px 18px rgba(0,0,0,0.2);color:#0f172a}
.sfab-icon{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sfab-fb{background:#1877f2}.sfab-wa{background:#25d366}.sfab-ms{background:#006aff}.sfab-cp{background:#64748b}
.share-fab-item.copied{background:#f0fdf4;color:#16a34a}
@media(max-width:640px){.share-fab{bottom:16px;right:16px}}

/* ── Romania Live Widget ── */
.ro-live{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);padding:64px 0}
.ro-live h2{text-align:center;color:#fff;font-size:1.5rem;margin-bottom:6px}
.ro-live .ro-live-sub{text-align:center;color:rgba(255,255,255,0.45);font-size:0.82rem;margin-bottom:40px}
.ro-live-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:640px;margin:0 auto}
.ro-live-card{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:32px 24px;text-align:center;position:relative;overflow:hidden}
.ro-live-card .rll-icon{font-size:2rem;margin-bottom:12px;line-height:1}
.ro-live-card .rll-label{font-size:0.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px;opacity:.55}
.ro-live-card .rll-count{font-size:2.8rem;font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;transition:color .15s}
.ro-live-card .rll-rate{font-size:0.72rem;margin-top:10px;opacity:.4}
.ro-live-card.births .rll-label{color:#4ade80}
.ro-live-card.births .rll-count{color:#4ade80}
.ro-live-card.deaths .rll-label{color:#f87171}
.ro-live-card.deaths .rll-count{color:#f87171}
.ro-live-card .rll-flash{position:absolute;inset:0;border-radius:20px;opacity:0;pointer-events:none;transition:opacity .05s}
.ro-live-card.births .rll-flash{background:rgba(74,222,128,.15)}
.ro-live-card.deaths .rll-flash{background:rgba(248,113,113,.15)}
.ro-live-sold{text-align:center;margin-top:28px;color:rgba(255,255,255,0.3);font-size:0.8rem}
.ro-live-sold span{color:#f87171;font-weight:700}
.ro-live-source{text-align:center;margin-top:10px;font-size:0.7rem;color:rgba(255,255,255,0.2)}
@media(max-width:480px){.ro-live-card .rll-count{font-size:2.2rem}}
