/* ACS Răzvan Radu — site.css v1.0 */
:root{
  --bg:#f5f6fa; --surface:#ffffff; --surface-2:#eef1f8; --text:#0e1a33; --muted:#46526e;
  --line:#d5dbe8; --brand:#0b1a3a; --brand-2:#13285a; --accent:#1d4ed8; --accent-ink:#ffffff;
  --red:#c8102e; --gold:#a87b00; --ok:#0f7a3e; --warn:#8a5a00; --info:#1d4ed8;
  --link:#1742b8; --focus:#ffbf00;
  --radius:14px; --shadow:0 1px 2px rgba(10,20,50,.06),0 6px 24px rgba(10,20,50,.06);
  --fs:1rem; --maxw:1120px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0a1226; --surface:#111c38; --surface-2:#172548; --text:#e8edf8; --muted:#aab5cd;
    --line:#2a3a63; --brand:#060d1d; --brand-2:#0e1a36; --accent:#7ea2ff; --accent-ink:#0a1226;
    --red:#ff6b7f; --gold:#f0c650; --ok:#5fd394; --warn:#f3c26b; --info:#8fb0ff; --link:#9ab8ff;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0a1226; --surface:#111c38; --surface-2:#172548; --text:#e8edf8; --muted:#aab5cd;
  --line:#2a3a63; --brand:#060d1d; --brand-2:#0e1a36; --accent:#7ea2ff; --accent-ink:#0a1226;
  --red:#ff6b7f; --gold:#f0c650; --ok:#5fd394; --warn:#f3c26b; --info:#8fb0ff; --link:#9ab8ff;
  color-scheme:dark;
}
:root[data-contrast="high"]{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#ffffff; --text:#000000; --muted:#000000; --line:#000000;
  --brand:#000000; --brand-2:#000000; --accent:#0000c8; --accent-ink:#ffffff; --link:#0000c8;
}
:root[data-contrast="high"][data-theme="dark"]{
  --bg:#000; --surface:#000; --surface-2:#000; --text:#fff; --muted:#fff; --line:#fff; --accent:#ffff00; --accent-ink:#000; --link:#ffff00;
}
:root[data-text="1"]{--fs:1.15rem} :root[data-text="2"]{--fs:1.3rem}

*,*::before,*::after{box-sizing:border-box}
html{font-size:var(--fs);-webkit-text-size-adjust:100%;scroll-padding-top:5rem}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-underline-offset:.18em}
:root[data-links="underline"] a{text-decoration:underline!important}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
h1,h2,h3{line-height:1.15;letter-spacing:-.01em;margin:0 0 .6em}
h1{font-size:clamp(2rem,5.2vw,3.4rem);font-weight:850}
h2{font-size:clamp(1.5rem,3.2vw,2.2rem);font-weight:800}
h3{font-size:1.18rem;font-weight:750}
p{margin:0 0 1em}
ul,ol{padding-left:1.25em}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 16px}
@media(min-width:720px){.wrap{padding:0 28px}}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;background:var(--focus);color:#000;padding:.7em 1em;font-weight:700;z-index:100;border-radius:8px}
.skip:focus{top:12px}

/* Tricolor + header */
.tricolor{height:5px;background:linear-gradient(90deg,#002b7f 0 33.33%,#fcd116 33.33% 66.66%,#ce1126 66.66%)}
.site-header{background:var(--brand);color:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(255,255,255,.08)}
.hdr{display:flex;align-items:center;gap:12px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;margin-right:auto;min-height:44px}
.brand-mark{width:40px;height:40px;border-radius:10px;background:#13285a;display:grid;place-items:center;font-weight:900;letter-spacing:.02em;border:1px solid rgba(255,255,255,.18)}
.brand-txt strong{display:block;font-size:.98em;letter-spacing:.06em}
.brand-txt span{display:block;font-size:.72em;opacity:.78;letter-spacing:.14em;text-transform:uppercase}
.nav{display:none}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:0;flex-wrap:nowrap}
.nav a{color:#e9eefc;text-decoration:none;padding:.5em .55em;white-space:nowrap;border-radius:8px;display:inline-flex;align-items:center;min-height:44px;font-size:.93em;font-weight:600}
.nav a:hover{background:rgba(255,255,255,.08)}
.nav a[aria-current="page"],.nav a.is-section{background:rgba(255,255,255,.12);box-shadow:inset 0 -3px 0 #fcd116}
.hdr-btn{background:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:10px;min-width:44px;min-height:44px;padding:0 .8em;font:inherit;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:.4em;text-decoration:none}
.hdr-btn:hover{background:rgba(255,255,255,.08)}
@media(min-width:1180px){.nav{display:block}.menu-toggle{display:none}}
.mobile-nav{display:none;background:var(--brand-2);border-top:1px solid rgba(255,255,255,.1)}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:8px 0 14px}
.mobile-nav li ul{padding:0 0 0 16px}
.mobile-nav a{display:flex;align-items:center;min-height:46px;color:#fff;text-decoration:none;padding:0 4px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.06)}
.mobile-nav a[aria-current="page"]{color:#fcd116}

/* Subnav for projects */
.subnav{background:var(--surface);border-bottom:1px solid var(--line)}
.subnav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin}
.subnav a{display:inline-flex;align-items:center;min-height:46px;padding:0 .85em;text-decoration:none;color:var(--text);font-weight:650;white-space:nowrap;border-bottom:3px solid transparent;font-size:.95rem}
.subnav a[aria-current="page"]{border-color:var(--red);color:var(--text)}
.subnav .lbl{font-weight:850;color:var(--muted);letter-spacing:.08em;font-size:.8rem;padding-right:.5em;display:inline-flex;align-items:center;min-height:46px;white-space:nowrap}

/* Breadcrumb */
.crumbs{font-size:.88rem;color:var(--muted);padding:14px 0 0}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.3em}
.crumbs li+li::before{content:"/";margin-right:.3em;opacity:.6}

/* Hero */
.hero{background:radial-gradient(1200px 500px at 85% -10%,rgba(29,78,216,.45),transparent 60%),linear-gradient(180deg,var(--brand),var(--brand-2));color:#fff;padding:56px 0 64px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-80px;bottom:-120px;width:420px;height:420px;border-radius:50%;border:2px solid rgba(255,255,255,.07);box-shadow:0 0 0 40px rgba(255,255,255,.025)}
.hero .eyebrow{color:#fcd116}
.hero p.lead{color:#dbe3f7;font-size:1.15rem;max-width:62ch}
.hero-grid{display:grid;gap:32px;align-items:center;position:relative;z-index:1}
@media(min-width:900px){.hero-grid{grid-template-columns:1.35fr .9fr}}
.hero-figure{justify-self:center;max-width:340px;width:100%}
.hero-figure img{border-radius:50%;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.hero-figure figcaption{font-size:.8rem;color:#b9c4e0;text-align:center;margin-top:10px}
.page-hero{padding:40px 0 44px}
.page-hero h1{font-size:clamp(1.8rem,4.4vw,2.8rem)}
.eyebrow{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--red);margin-bottom:.8em}
.lead{font-size:1.12rem;color:var(--muted);max-width:68ch}

/* Buttons */
.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;padding:0 1.25em;border-radius:12px;font-weight:800;text-decoration:none;letter-spacing:.02em;border:2px solid transparent;cursor:pointer;font:inherit;font-weight:800}
.btn-primary{background:#fcd116;color:#0b1a3a}
.btn-primary:hover{background:#ffe066}
.btn-ghost{border-color:rgba(255,255,255,.45);color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.08)}
.btn-solid{background:var(--accent);color:var(--accent-ink)}
.btn-line{border-color:var(--line);color:var(--text);background:var(--surface)}
.btn-line:hover{border-color:var(--accent)}

/* Sections */
section.block{padding:52px 0}
section.block.alt{background:var(--surface-2)}
.grid{display:grid;gap:18px}
@media(min-width:720px){.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.g4{grid-template-columns:repeat(4,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-width:0}
.card h3{margin-bottom:.4em}
.card p:last-child{margin-bottom:0}
.card .num{font-weight:900;font-size:.82rem;letter-spacing:.14em;color:var(--red)}
.project-card{display:flex;flex-direction:column;gap:10px;border-top:5px solid var(--accent)}
.project-card .code{font-weight:900;font-size:1.6rem;letter-spacing:.04em}
.project-card .more{margin-top:auto}
.badge{display:inline-flex;align-items:center;gap:.4em;font-size:.8rem;font-weight:800;padding:.3em .7em;border-radius:999px;border:1.5px solid currentColor;width:max-content;max-width:100%}
.badge::before{content:"";width:.55em;height:.55em;border-radius:50%;background:currentColor}
.b-pregatire{color:var(--warn)} .b-testare{color:var(--info)} .b-ok{color:var(--ok)} .b-no{color:var(--red)}
.note{border-left:5px solid var(--gold);background:var(--surface);padding:16px 18px;border-radius:0 12px 12px 0;margin:18px 0;box-shadow:var(--shadow)}
.note strong:first-child{display:block;margin-bottom:.2em}
.note.red{border-color:var(--red)} .note.blue{border-color:var(--accent)}
.split{display:grid;gap:28px;align-items:start}
@media(min-width:900px){.split{grid-template-columns:1.1fr .9fr}}
figure{margin:0}
figure.ill img{border-radius:var(--radius)}
figure.ill figcaption{font-size:.82rem;color:var(--muted);margin-top:8px}

/* Steps / loop */
.loop{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:s}
@media(min-width:720px){.loop{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.loop{grid-template-columns:repeat(6,1fr)}}
.loop li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;position:relative}
.loop li::before{content:counter(s,decimal-leading-zero);display:block;font-weight:900;color:var(--red);font-size:.85rem;letter-spacing:.1em}
.loop strong{display:block}

/* Tables */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:520px}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:var(--surface-2)}
tr:last-child td{border-bottom:0}
dl.facts{display:grid;grid-template-columns:1fr;gap:0;margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
dl.facts div{display:grid;gap:4px;padding:12px 16px;border-bottom:1px solid var(--line)}
dl.facts div:last-child{border-bottom:0}
@media(min-width:720px){dl.facts div{grid-template-columns:240px 1fr}}
dl.facts dt{font-weight:750;color:var(--muted)} dl.facts dd{margin:0}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:900px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}
.stat b{display:block;font-size:2rem;line-height:1;font-weight:900;color:var(--accent)}
.stat span{font-size:.92rem;color:var(--muted)}
.timeline{list-style:none;margin:0;padding:0;border-left:3px solid var(--line)}
.timeline li{position:relative;padding:0 0 18px 20px}
.timeline li::before{content:"";position:absolute;left:-8px;top:.45em;width:13px;height:13px;border-radius:50%;background:var(--red);border:2px solid var(--bg)}
.timeline b{display:block;color:var(--red);font-size:.9rem;letter-spacing:.06em}

/* FAQ */
details{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
summary{cursor:pointer;padding:14px 18px;font-weight:750;min-height:48px;display:flex;align-items:center;list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";margin-left:auto;padding-left:12px;font-size:1.3rem;color:var(--muted)}
details[open] summary::after{content:"–"}
details>div{padding:0 18px 16px}

/* Easy read */
.easy{background:var(--surface);border:2px dashed var(--line);border-radius:14px;padding:16px 20px;margin-top:24px}
.easy h2{font-size:1.1rem;margin:0 0 .5em}
.easy ul{margin:0;font-size:1.06rem}

/* Forms */
form .field{display:grid;gap:6px;margin-bottom:14px}
label{font-weight:700}
input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1.5px solid var(--line);border-radius:10px;padding:.7em .8em;min-height:48px;width:100%}
textarea{min-height:150px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:500}
.check input{width:24px;height:24px;min-height:24px;margin-top:2px;flex:none}
.hp{position:absolute;left:-9999px}
.form-status{min-height:1.5em;font-weight:700;margin-top:10px}
.form-status.err{color:var(--red)} .form-status.ok{color:var(--ok)}
.hint{font-size:.88rem;color:var(--muted)}

/* Footer */
.site-footer{background:var(--brand);color:#cfd8ee;padding:40px 0 28px;margin-top:40px}
.site-footer a{color:#fff}
.ft-grid{display:grid;gap:24px}
@media(min-width:820px){.ft-grid{grid-template-columns:1.4fr 1fr 1fr}}
.site-footer h2{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;color:#fcd116}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li a{display:inline-flex;min-height:40px;align-items:center}
.ft-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:24px;padding-top:16px;font-size:.85rem;display:flex;flex-wrap:wrap;gap:8px 18px}

/* Accessibility panel */
.a11y-panel{position:fixed;right:12px;top:76px;z-index:60;width:min(340px,calc(100vw - 24px));background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.25);padding:16px;max-height:calc(100vh - 96px);overflow:auto}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{font-size:1.05rem;margin:0 0 .6em;display:flex;align-items:center}
.a11y-panel h2 button{margin-left:auto}
.a11y-row{margin-bottom:12px}
.a11y-row>span{display:block;font-weight:750;font-size:.9rem;margin-bottom:6px}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button,.a11y-panel .tbtn{min-height:44px;min-width:44px;padding:0 .8em;border-radius:10px;border:1.5px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;font-weight:700;cursor:pointer}
.seg button[aria-pressed="true"],.a11y-panel .tbtn[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

/* Search */
.search-box{display:flex;gap:8px}
.results{list-style:none;padding:0}
.results li{padding:14px 0;border-bottom:1px solid var(--line)}
.results a{font-weight:750}
mark{background:#fcd116;color:#000;padding:0 .1em}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root[data-motion="reduce"] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (forced-colors:active){.btn,.badge,.card{border:1px solid CanvasText}.tricolor{forced-color-adjust:none}}
@media print{.site-header,.site-footer,.a11y-panel,.subnav,.btns,.tricolor{display:none!important}body{background:#fff;color:#000}.hero{background:none;color:#000}.hero p.lead{color:#000}}

.mt{margin-top:20px}.mt-s{margin-top:10px}.pc-red{border-top-color:var(--red)}
a.card{text-decoration:none;color:var(--text);display:block}a.card:hover{border-color:var(--accent)}a.card h3{color:var(--link)}
.split>*,.grid>*,.hero-grid>*{min-width:0}
/* Antetul are dimensiune fixă ca să încapă și la text mărit; conținutul se mărește */
.site-header{font-size:16px}
.mobile-nav{font-size:var(--fs)}
@media(max-width:400px){.brand-txt span{display:none}.hdr{gap:8px}.hdr-btn{padding:0 .6em}}
.test-banner{background:#fcd116;color:#0b1a3a;text-align:center;padding:8px 16px;font-size:.92rem}
/* Contact — două coloane, text + card cu formular */
:root{--hl:#2f6fe4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--hl:#8fb4ff}}
:root[data-theme="dark"]{--hl:#8fb4ff}
:root[data-contrast="high"]{--hl:var(--text)}
.contact-block{padding-top:36px}
.contact-grid{display:grid;gap:32px;align-items:start}
@media(min-width:900px){.contact-grid{grid-template-columns:1fr 1fr;gap:56px}}
.eyebrow-blue{color:var(--link)}
.contact-intro h1{font-size:clamp(2rem,4.4vw,2.8rem)}
.contact-intro .hl{color:var(--hl)}
.contact-list{list-style:none;padding:0;margin:26px 0;display:grid;gap:14px;color:var(--muted)}
.contact-list strong{color:var(--muted)}
.contact-list li:first-child strong{color:var(--text)}
.contact-card{background:var(--surface-2);border:1px solid var(--line);border-radius:18px;padding:24px}
@media(min-width:720px){.contact-card{padding:28px}}
.contact-card label{font-size:.95rem}
.contact-card input,.contact-card select,.contact-card textarea{background:var(--surface)}
.btn-pill{width:100%;border-radius:999px;background:var(--brand);color:#fff;min-height:50px}
.btn-pill:hover{background:var(--brand-2)}
:root[data-theme="dark"] .btn-pill{background:var(--accent);color:var(--accent-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn-pill{background:var(--accent);color:var(--accent-ink)}}

/* v1.3 — bandă de cifre, porți, cartă, glosar */
.statband{background:var(--brand-2);color:#fff;border-top:1px solid rgba(255,255,255,.08)}
.statband-grid{display:grid;grid-template-columns:repeat(2,1fr)}
@media(min-width:900px){.statband-grid{grid-template-columns:repeat(4,1fr)}}
.statband-grid>div{padding:20px 16px;border-left:1px solid rgba(255,255,255,.1)}
.statband-grid>div:nth-child(odd){border-left:0}
@media(min-width:900px){.statband-grid>div:nth-child(odd){border-left:1px solid rgba(255,255,255,.1)}.statband-grid>div:first-child{border-left:0}}
.statband b{display:block;font-size:1.9rem;line-height:1.1;font-weight:900;color:#fcd116}
.statband span{font-size:.88rem;color:#d3dcf2}
.gates,.charter{list-style:none;padding:0;margin:16px 0 0;counter-reset:g;display:grid;gap:10px}
.gates li,.charter li{counter-increment:g;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px 14px 58px;position:relative}
.gates li::before,.charter li::before{content:counter(g,decimal-leading-zero);position:absolute;left:16px;top:13px;font-weight:900;color:var(--red)}
.stage{border-top:4px solid var(--line)}
.glossary div{scroll-margin-top:90px}
.glossary div:target{background:var(--surface-2)}
table.t-compact{min-width:0}
