/* Via Europa — tema modernă SaaS (v3) · paletă: albastru UE profund + accente RO */
:root {
  --eu-blue: #003399;
  --eu-blue-600: #0f4bd8;
  --eu-gold: #ffcc00;
  --navy: #0a1f44;
  --navy-2: #12295a;
  --bg: #f3f5fa;
  --ink: #17203a;
  --muted: #5b657f;
  --card: #ffffff;
  --line: #e3e8f4;
  --ok: #17733a;
  --ok-bg: #e2f6e5;
  --err: #a32222;
  --err-bg: #fbe3e3;
  --warn: #8a6d00;
  --warn-bg: #fff5cf;
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-1: 0 1px 2px rgba(10, 31, 68, .05), 0 2px 8px rgba(10, 31, 68, .05);
  --shadow-2: 0 6px 18px rgba(10, 31, 68, .10), 0 2px 6px rgba(10, 31, 68, .06);
  --shadow-3: 0 14px 34px rgba(10, 31, 68, .14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--ink); line-height: 1.6;
  font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--eu-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(255, 204, 0, .85); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

/* ---- header sticky, modern ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 68, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; padding: 10px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 2px 18px rgba(10, 31, 68, .35);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #002b7f 0 33%, #fcd116 33% 66%, #ce1126 66% 100%) 1;
}
.site-header .brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-header .brand:hover { text-decoration: none; }
.site-header .brand span { display: block; }
.site-header .logo { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: .3px; }
.brand-slogan { font-size: .76rem; color: var(--eu-gold); font-weight: 600; }
.site-nav { margin-left: auto; display: flex; gap: 4px 16px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #d7e0fb; font-weight: 600; font-size: .92rem;
  padding: 7px 10px; border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.site-nav a.activ { color: var(--eu-gold); }
.nav-cta {
  background: var(--eu-gold); color: var(--navy) !important; font-weight: 800 !important;
  padding: 9px 18px !important; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(255, 204, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { background: #ffd633 !important; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255, 204, 0, .45); }
.lang-switch { margin-left: 8px; font-size: .8rem; white-space: nowrap; }
.lang-switch a { opacity: .7; padding: 4px 2px; }
.lang-switch a.activ { opacity: 1; font-weight: 800; color: var(--eu-gold); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 30px 20px 70px; }

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(255, 204, 0, .18), transparent 60%),
    linear-gradient(120deg, var(--eu-blue) 0%, var(--navy) 80%);
  color: #fff; border-radius: var(--radius-l); padding: 52px 44px; margin-bottom: 36px;
  display: flex; gap: 34px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-3);
}
.hero img { height: 104px; background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: var(--shadow-2); }
.hero h1 { font-size: 2.3rem; margin-bottom: 10px; letter-spacing: -.5px; line-height: 1.15; }
.hero .tagline { color: var(--eu-gold); font-size: 1.12rem; font-weight: 700; }
.hero p.sub { margin-top: 12px; color: #cdd9ff; max-width: 580px; }
.hero .cta-row { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { margin-top: 0; }

.page-hero {
  background: linear-gradient(120deg, var(--eu-blue), var(--navy));
  color: #fff; border-radius: var(--radius-l); padding: 40px 38px; margin-bottom: 30px;
  box-shadow: var(--shadow-2);
}
.page-hero h1 { font-size: 1.9rem; margin-bottom: 8px; letter-spacing: -.3px; }
.page-hero p { color: #cdd9ff; max-width: 720px; }

/* ---- butoane ---- */
.btn {
  display: inline-block; background: var(--eu-gold); color: var(--navy);
  font-weight: 800; border: none; padding: 13px 30px; border-radius: 12px;
  font-size: 1.02rem; cursor: pointer; margin-top: 22px;
  box-shadow: 0 3px 12px rgba(255, 204, 0, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 204, 0, .45); }
.btn-blue { background: var(--eu-blue-600); color: #fff; box-shadow: 0 3px 12px rgba(15, 75, 216, .3); }
.btn-blue:hover { box-shadow: 0 6px 18px rgba(15, 75, 216, .4); }
.btn-ghost {
  display: inline-block; border: 2px solid var(--eu-gold); color: var(--eu-gold);
  font-weight: 800; padding: 11px 26px; border-radius: 12px; font-size: 1rem;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255, 204, 0, .12); text-decoration: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-row .btn { margin-top: 0; }

/* ---- cards / formulare ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-1);
}
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn {
  border: 2px solid var(--eu-blue); background: #fff; color: var(--eu-blue);
  padding: 9px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .95rem;
  transition: background .15s, color .15s;
}
.tab-btn:hover { background: #eef2fd; }
.tab-btn.activ { background: var(--eu-blue); color: #fff; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--navy); }
input, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #c9d2e8; border-radius: 10px;
  font-size: 1rem; background: #fbfcff; font-family: var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none; border-color: var(--eu-blue-600);
  box-shadow: 0 0 0 4px rgba(15, 75, 216, .14);
}

/* ---- admin ---- */
.admin-layout { display: flex; gap: 24px; align-items: flex-start; }
.admin-side {
  min-width: 210px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; position: sticky; top: 86px;
  box-shadow: var(--shadow-1);
}
.admin-side a {
  display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem;
}
.admin-side a:hover { background: #eef2fb; text-decoration: none; }
.admin-side a.activ { background: var(--eu-blue); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
h2.pagetitle { margin-bottom: 16px; color: var(--navy); letter-spacing: -.3px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-1);
}
.stat .nr { font-size: 1.75rem; font-weight: 800; color: var(--eu-blue); letter-spacing: -.5px; }
.stat .lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

table.data {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
table.data th {
  background: var(--navy); color: #fff; text-align: left; padding: 11px 13px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
}
table.data td { padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #f6f8fd; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.filters input, .filters select { width: auto; min-width: 180px; }
.pager { margin-top: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pager a, .pager span.curent {
  padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
}
.pager span.curent { background: var(--eu-blue); color: #fff; border-color: var(--eu-blue); }

.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: #e8edfa; color: var(--eu-blue);
}
.badge.deschis { background: var(--ok-bg); color: var(--ok); }
.badge.inchis { background: var(--err-bg); color: var(--err); }
.badge.programat { background: var(--warn-bg); color: var(--warn); }
.badge.verde { background: var(--ok-bg); color: var(--ok); }
.badge.galben { background: var(--warn-bg); color: var(--warn); }
.badge.gri { background: #eef1f7; color: #5a6478; }

.disclaimer {
  background: #fff8e0; border: 1px solid var(--eu-gold); border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0; color: #6b5600;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.planificat { background: #b9c2d8; }
.dot.verde { background: #1e9e50; }
.dot.galben { background: #e0a800; }
.dot.gri { background: #b9c2d8; }

.dept {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 18px; box-shadow: var(--shadow-1);
}
.dept h3 { color: var(--eu-blue); margin-bottom: 10px; }
.dept .autonom { font-size: .78rem; color: var(--ok); font-weight: 700; }
.agent-item { padding: 9px 0; border-top: 1px dashed var(--line); }
.agent-item .rol { color: var(--muted); font-size: .86rem; }

.login-card { max-width: 420px; margin: 60px auto; box-shadow: var(--shadow-2); }
.eroare { color: var(--err); font-weight: 600; margin-top: 10px; }
.muted { color: var(--muted); }
.footer {
  text-align: center; color: var(--muted); font-size: .82rem; padding: 24px;
  border-top: 1px solid var(--line); margin-top: 30px;
}
pre.json {
  background: #0d1533; color: #d7e0ff; padding: 14px; border-radius: 10px;
  overflow-x: auto; font-size: .82rem;
}

/* ---- marketing ---- */
.btn-ghost { }
.sectiune { margin: 48px 0; }
.sectiune > h2 { color: var(--navy); font-size: 1.55rem; margin-bottom: 8px; letter-spacing: -.3px; }
.sectiune > .lead { color: var(--muted); margin-bottom: 22px; max-width: 720px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pas {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .15s;
}
.pas:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pas .nr-pas {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--eu-blue), var(--eu-blue-600)); color: var(--eu-gold);
  font-size: 1.25rem; font-weight: 800; margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 51, 153, .3);
}
.pas h3 { color: var(--navy); margin-bottom: 6px; }
.pas p { color: var(--muted); font-size: .95rem; }

.stats-band {
  background: linear-gradient(100deg, var(--navy), var(--eu-blue));
  border-radius: var(--radius-l); padding: 32px 28px; color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px;
  box-shadow: var(--shadow-2);
}
.stats-band .stat-dark { text-align: center; }
.stats-band .nr { font-size: 2.2rem; font-weight: 800; color: var(--eu-gold); letter-spacing: -.5px; }
.stats-band .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: #cdd9ff; }

.public-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .15s;
}
.public-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.public-card h3 { color: var(--eu-blue); margin-bottom: 8px; }
.public-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.public-card .btn, .public-card .link-cta { margin-top: 16px; align-self: flex-start; }
.link-cta { font-weight: 700; }

.de-ce { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.de-ce .item { background: #eef2fb; border-radius: var(--radius); padding: 20px 22px; }
.de-ce .item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.de-ce .item span { color: var(--muted); font-size: .92rem; }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; margin-bottom: 10px; box-shadow: var(--shadow-1);
}
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

.timeline { border-left: 3px solid var(--eu-blue); margin-left: 10px; padding-left: 26px; }
.timeline .etapa { position: relative; padding-bottom: 26px; }
.timeline .etapa::before {
  content: ""; position: absolute; left: -35px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--eu-gold); border: 3px solid var(--eu-blue);
}
.timeline .etapa h3 { color: var(--navy); margin-bottom: 4px; }
.timeline .etapa p { color: var(--muted); max-width: 720px; }

.proza { max-width: 800px; }
.proza h2 { color: var(--navy); margin: 28px 0 8px; }
.proza h3 { color: var(--eu-blue); margin: 20px 0 6px; }
.proza p, .proza li { color: #2a3355; margin-bottom: 8px; }
.proza ul, .proza ol { padding-left: 22px; }
.draft-banner {
  background: #fff8e0; border: 1px solid var(--eu-gold); border-radius: 10px;
  padding: 12px 16px; color: #6b5600; font-weight: 600; margin-bottom: 20px;
}

/* ---- program detail ---- */
.detalii-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; row-gap: 9px; column-gap: 12px; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

.prog-hero {
  position: relative; border-radius: var(--radius-l); overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--eu-blue), var(--navy));
  box-shadow: var(--shadow-2);
}
.prog-hero img { width: 100%; height: 300px; object-fit: cover; display: block; }
.prog-hero-overlay {
  position: absolute; inset: 0; color: #fff;
  background: linear-gradient(to top, rgba(10, 31, 68, .92), rgba(10, 31, 68, .15) 62%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px;
}
.prog-hero-overlay.prog-hero-plain { position: static; padding: 32px 30px; background: none; }
.prog-hero-overlay h1 { font-size: 1.8rem; margin-bottom: 10px; line-height: 1.25; letter-spacing: -.3px; }
.prog-hero-overlay .badge { border: none; }
.prog-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.prog-hero-meta { color: #cdd9ff; font-size: .92rem; }
.prog-hero-meta a { color: var(--eu-gold); font-weight: 600; }

/* caseta „Pe scurt" — limbaj simplu, proeminentă */
.pe-scurt {
  background: linear-gradient(120deg, #fff9e0, #fff3c2);
  border: 1.5px solid var(--eu-gold); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow-1);
}
.pe-scurt h2 {
  color: var(--navy); font-size: 1.02rem; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .6px;
}
.pe-scurt p { color: #4a3d00; font-size: 1.04rem; line-height: 1.6; }

.prog-sect { margin-bottom: 20px; }
.prog-sect h2 { color: var(--navy); font-size: 1.22rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; letter-spacing: -.2px; }
.sect-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px; background: #eef2fb; font-size: 1.05rem;
}
.prog-alocare { font-size: 1.35rem; font-weight: 800; color: var(--eu-blue); margin-bottom: 8px; letter-spacing: -.3px; }
.prog-alocare .lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

.profil-md h3 { color: var(--eu-blue); font-size: 1.02rem; margin: 16px 0 6px; }
.profil-md h3:first-child { margin-top: 0; }
.profil-md h4 { color: var(--navy); font-size: .95rem; margin: 10px 0 4px; }
.profil-md p { font-size: .93rem; margin: 6px 0; line-height: 1.6; }
.profil-md ul { margin: 6px 0 10px; padding-left: 20px; }
.profil-md li { font-size: .93rem; margin: 3px 0; line-height: 1.55; }
.profil-md strong { color: var(--navy); }

/* ---- catalog programe ---- */
.grup-status { margin: 36px 0 12px; color: var(--navy); font-size: 1.3rem;
  border-bottom: 3px solid var(--eu-gold); padding-bottom: 7px; letter-spacing: -.2px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; margin-bottom: 8px; }
.prog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1); transition: box-shadow .18s, transform .18s;
}
.prog-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); text-decoration: none; }
.prog-card-img img { width: 100%; height: 132px; object-fit: cover; display: block; }
.prog-card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prog-card-title { font-weight: 700; color: var(--navy); font-size: .98rem; line-height: 1.35; letter-spacing: -.1px; }
.prog-card-teaser { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.prog-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.prog-alocare-mica { font-weight: 700; color: var(--eu-blue); font-size: .85rem; }
.prog-card-link { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--eu-blue-600); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; background: #fff; }
.foot-grid {
  max-width: 1140px; margin: 0 auto; padding: 38px 20px 12px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px;
}
.foot-brand { font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.foot-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.foot-h { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 10px; }
.foot-grid a { display: block; padding: 3px 0; color: #2a3355; font-size: .92rem; }
.foot-grid a:hover { color: var(--eu-blue-600); }
.foot-bottom {
  text-align: center; color: var(--muted); font-size: .8rem;
  padding: 16px 20px 24px; border-top: 1px solid var(--line); margin-top: 18px;
}

/* ---- mission control (/admin/control) ---- */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 22px; }
.mc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-1);
}
.mc-panel h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.mc-msg { padding: 9px 0; border-top: 1px dashed var(--line); font-size: .87rem; }
.mc-msg .meta { color: var(--muted); font-size: .76rem; }
.mc-hb { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .88rem; }
.mc-hb .t { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .detalii-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-side { position: static; width: 100%; }
  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 36px 26px; }
  .page-hero { padding: 30px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .prog-hero img { height: 210px; }
  .prog-hero-overlay h1 { font-size: 1.3rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .brand-slogan { display: none; }
  .site-nav a { padding: 6px 7px; font-size: .88rem; }
  .nav-cta { padding: 8px 14px !important; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero img { height: 78px; }
  .card { padding: 20px; }
  .wrap { padding: 20px 14px 50px; }
}

/* ---------------- wizard intake (inregistrare) ---------------- */
.intake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.intake-opt { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .88rem; margin: 0; cursor: pointer; }
.intake-opt input { width: auto; margin: 0; }
@media (max-width: 560px) { .intake-grid { grid-template-columns: 1fr; } }


/* ---------------- texte ajutatoare (help texts) ---------------- */
.help-text { font-size: .82rem; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.info-box { background: #eef3ff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .87rem; color: var(--navy-2); line-height: 1.55; margin-bottom: 12px; }
.legend { font-size: .78rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }


/* ---------------- stepper interactiv etape (portal proiect) ---------------- */
html { scroll-behavior: smooth; }
.card[id] { scroll-margin-top: 14px; }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.step { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
        border: 1px solid var(--line); background: #f6f8fd; color: var(--navy-2);
        font-size: .84rem; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.step:hover { border-color: var(--eu-blue); box-shadow: var(--shadow-3); }
.step-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
            font-size: .72rem; font-weight: 700; background: #fff; border: 1px solid var(--line); flex: none; }
.step.done { background: var(--ok-bg); }
.step.done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.cur { background: var(--eu-blue); border-color: var(--eu-blue); color: #fff; font-weight: 700; }
.step.cur .step-dot { background: #fff; border-color: #fff; color: var(--eu-blue); }
.step.todo { background: #f4f5f9; color: var(--muted); }
.step.todo .step-dot { color: var(--muted); }
.step.respins { background: #fdecec; border-color: #f0c9c9; color: #a32222; font-weight: 700; }
.back-top { position: fixed; right: 18px; bottom: 86px; z-index: 60; display: none;
            align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
            background: var(--navy); color: #fff; font-size: .84rem; text-decoration: none;
            box-shadow: var(--shadow-3); }
.back-top:hover { background: var(--eu-blue-600); color: #fff; }
@media (max-width: 640px) { .back-top { bottom: 96px; right: 12px; padding: 8px 13px; } }


/* ================= v4 — temă auriu dominant + albastru UE + tricolor RO ================= */
:root {
  --gold: #ffcc00;
  --gold-soft: #ffe066;
  --gold-deep: #f0b429;
  --gold-50: #fff9e0;
  --ro-blue: #002b7f;
  --ro-yellow: #fcd116;
  --ro-red: #ce1126;
  --tricolor: linear-gradient(90deg, var(--ro-blue) 0 33.3%, var(--ro-yellow) 33.3% 66.6%, var(--ro-red) 66.6% 100%);
  --bg: #faf7ee;
}
body { background: var(--bg); }

/* ---- header: logo mare, slogan auriu ---- */
.site-header .logo { height: 64px; padding: 5px 10px; }
.brand-name { font-size: 1.42rem; }

/* ---- hero: auriu cald dominant, text navy, bandă tricolor ---- */
.hero {
  background:
    radial-gradient(720px 280px at 88% -12%, rgba(0, 43, 127, .14), transparent 62%),
    linear-gradient(115deg, #fff3c2 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--navy);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: var(--tricolor); opacity: .92;
}
.hero img { height: 152px; border-radius: 20px; box-shadow: var(--shadow-3); }
.hero h1 { color: var(--navy); }
.hero .tagline { color: var(--ro-blue); }
.hero p.sub { color: #33301f; }
.hero .btn { background: var(--eu-blue); color: #fff; box-shadow: 0 4px 14px rgba(0, 51, 153, .4); }
.hero .btn:hover { background: var(--eu-blue-600); }
.hero .btn-ghost { border-color: var(--navy); color: var(--navy); }
.hero .btn-ghost:hover { background: rgba(10, 31, 68, .1); }

/* ---- page-hero cu accent tricolor ---- */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--tricolor); opacity: .8;
}

/* ---- separatoare de secțiune tricolor (subtile) ---- */
.sectiune > h2 { position: relative; padding-bottom: 10px; }
.sectiune > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 118px;
  border-radius: 2px; background: var(--tricolor); opacity: .7;
}

/* ---- accente aurii/tricolor pe carduri ---- */
.public-card, .pas, .stat {
  box-shadow: inset 0 3px 0 rgba(252, 209, 22, .85), var(--shadow-1);
}
.public-card:hover, .pas:hover { box-shadow: inset 0 3px 0 rgba(252, 209, 22, 1), var(--shadow-2); }
.pas .ico { font-size: 1.6rem; margin-bottom: 10px; }
.faq details { border-left: 4px solid var(--gold); }
.de-ce .item { background: var(--gold-50); border: 1px solid #f3e3a0; }

/* ---- CTA final puternic ---- */
.cta-final {
  background:
    radial-gradient(600px 220px at 85% -20%, rgba(255, 204, 0, .3), transparent 60%),
    linear-gradient(115deg, var(--ro-blue), var(--navy));
  color: #fff; border-radius: var(--radius-l); padding: 46px 38px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-3);
}
.cta-final::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--tricolor); opacity: .85;
}
.cta-final h2 { font-size: 1.8rem; letter-spacing: -.3px; margin-bottom: 10px; }
.cta-final p { color: #cdd9ff; max-width: 560px; margin: 0 auto 22px; }
.cta-final .btn { margin-top: 0; }

/* ---- footer: bandă tricolor ---- */
.site-footer { border-top: none; }
.site-footer::before {
  content: ""; display: block; height: 8px; background: var(--tricolor);
}

/* ---- breadcrumb ---- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--eu-blue-600); font-weight: 600; }
.crumbs .sep { margin: 0 6px; opacity: .6; }

/* ---- hărți leaflet ---- */
.harta-box {
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); margin-bottom: 18px; background: #dce8f5;
}
.harta-box .leaflet-container { height: 480px; width: 100%; }
.harta-mica .leaflet-container { height: 300px; }
.map-legend {
  background: #fff; padding: 9px 13px; border-radius: 10px; box-shadow: var(--shadow-1);
  font-size: .8rem; line-height: 1.8; color: var(--ink);
}
.map-legend i { display: inline-block; width: 14px; height: 14px; margin-right: 7px; border-radius: 3px; vertical-align: -2px; }
.map-legend .leg-t { font-weight: 800; color: var(--navy); display: block; margin-bottom: 2px; }
.leaflet-popup-content { font-size: .88rem; line-height: 1.5; }
.leaflet-popup-content a { font-weight: 700; }

/* ---- identitate de brand ---- */
.logo-showcase {
  background:
    radial-gradient(500px 200px at 80% -20%, rgba(255, 204, 0, .25), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--ro-blue));
  border-radius: var(--radius-l); padding: 44px; text-align: center; box-shadow: var(--shadow-2);
}
.logo-showcase img { height: 200px; background: #fff; border-radius: 22px; padding: 16px 24px; box-shadow: var(--shadow-3); }
.logo-variante { display: flex; gap: 18px; flex-wrap: wrap; }
.logo-varianta { text-align: center; }
.logo-varianta img { height: 110px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-1); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.swatch .culoare { height: 64px; }
.swatch .info { padding: 9px 12px; font-size: .8rem; color: var(--muted); }
.swatch .info strong { display: block; color: var(--navy); font-size: .85rem; }
.swatch .info code { font-weight: 700; color: var(--eu-blue); }

/* ---- căutare programe ---- */
.prog-search { min-width: 240px; }
.grup-ascuns { display: none; }

@media (max-width: 720px) {
  .site-header .logo { height: 48px; }
  .hero img { height: 104px; }
  .harta-box .leaflet-container { height: 380px; }
  .cta-final { padding: 34px 24px; }
}

/* ---------------- stiri (redactia automata) ---------------- */
.stiri-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.stiri-filtre .badge { text-decoration: none; font-size: .85rem; padding: 5px 12px; }
.stiri-mesaj-ok { color: var(--ok); font-weight: 600; }
.stiri-mesaj-err { color: var(--err); font-weight: 600; }
.stire-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.stire-card:hover { text-decoration: none; transform: translateY(-2px); }
.stire-img { height: 150px; background-size: cover; background-position: center; background-color: var(--navy); }
.stire-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stire-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stire-data { color: #5a6478; font-size: .82rem; }
.stire-body h2 { font-size: 1.05rem; margin: 0; color: var(--navy); line-height: 1.3; }
.stire-body p { margin: 0; color: #2a3355; font-size: .92rem; flex: 1; }
.stire-citeste { color: var(--eu-blue); font-weight: 600; font-size: .88rem; }
.stire-articol h1 { font-size: 1.8rem; margin: 10px 0 14px; }
.stire-hero { width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin: 6px 0 16px; }
.stire-rezumat { font-size: 1.05rem; }
.stiri-abonare { margin-top: 34px; }
.stiri-abonare h2 { margin-top: 0; color: var(--navy); }
.stiri-form { display: flex; gap: 10px; flex-wrap: wrap; }
.stiri-form input { flex: 1; min-width: 240px; padding: 10px 14px; border: 1px solid #d5dbea; border-radius: 8px; font-size: 1rem; }
.stiri-form .btn { margin-top: 0; }
.stiri-note { color: #5a6478; font-size: .85rem; margin-bottom: 4px; }
