@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/construimmoldova/public/fonts/onest-regular.ttf') format('truetype'); }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('/construimmoldova/public/fonts/onest-medium.ttf') format('truetype'); }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url('/construimmoldova/public/fonts/onest-bold.ttf') format('truetype'); }
:root {
  --navy: #0b1f4a; --navy-2: #13306b; --night: #071433; --on-navy: #fff; --on-navy-2: #b9c5df; --on-navy-3: #8494b8;
  --yellow: #ffd200; --yellow-hover: #ffdf3d; --red: #cc092f; --blue: #0046ae;
  --ground: #eef0f3; --page: #fbfbfc; --card: #fff; --ink: #0b1220; --ink-2: #3a4252; --ink-3: #5f6878;
  --line: rgba(11,31,74,.12); --line-2: rgba(11,31,74,.22);
  --fI: #9cc0f0; --fII: #5a92e0; --fIII: #0046ae; --fIV: #13306b; --fV: #0b1f4a; --fP: #5a92e0;
  --wrap: 1320px; --g: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); scrollbar-color: var(--navy-2) var(--ground); }
body { overflow-x: clip; margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 'Onest', ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; caret-color: var(--blue); }
::selection { background: var(--yellow); color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.pe-navy :focus-visible { outline-color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* meniul de sus */
.meniu { display: flex; justify-content: space-between; align-items: center; height: 84px; font-size: 15px; }
.sigla { display: flex; align-items: center; gap: 14px; color: var(--on-navy); text-decoration: none; line-height: 1.2; }
.sigla img { display: block; width: auto; height: 52px; }
.sigla-gov { padding-right: 16px; border-right: 1px solid rgba(255,255,255,.3); font-size: 15px; font-weight: 600; }
.sigla-site { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
@media (max-width: 560px) { .sigla { gap: 12px; } .sigla img { height: 44px; } .sigla-gov { padding-right: 12px; font-size: 13.5px; } .sigla-site { font-size: 15px; max-width: 7em; } }
.meniu nav { display: flex; gap: 4px; }
.meniu nav a { color: var(--on-navy-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.meniu nav a:hover { color: var(--on-navy); background: rgba(255,255,255,.08); }
.meniu nav a[aria-current] { color: var(--on-navy); background: rgba(255,255,255,.12); }

.termen-an { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.termen-an b { font-weight: 700; color: var(--navy); }
.termen-an.lung { white-space: normal; } .termen-an.lung b { white-space: nowrap; }
.bara { position: relative; height: 8px; border-radius: 4px; background: #e4e7ec; }
.bara .f { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--navy); }
.st { border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--ground); color: var(--ink-2); }
.st.blocat { background: var(--red); color: #fff; }
.st.intarziere { background: #fbe6ea; color: var(--red); }
.st.termen, .st.finalizat { background: #e3f1e8; color: #0f6b3a; }
.nota { font-size: 13px; color: var(--ink-3); }

/* meniul rămâne sus la derulare; pe telefon nu are butoane, deci nu stă fix */
:root { --bara: 84px; }
html { scroll-padding-top: var(--bara); }
.antet { position: sticky; top: 0; z-index: 60; background: var(--navy); color: var(--on-navy); }
@media (max-width: 760px) { .meniu nav { display: none; } .antet { position: static; } :root { --bara: 0px; } }
/* harta (catalog + pagina proiectului) */
.r { fill: #eef0f3; stroke: #b9bec6; stroke-width: .6; vector-effect: non-scaling-stroke; }
.tara { fill: none; stroke: var(--navy); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.pin path { fill: var(--navy); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pin circle { fill: var(--yellow); }
.pin.blocat path { fill: var(--red); } .pin.blocat circle { fill: #fff; }

/* Planul de Creștere: drapelul UE + numele, pe fiecare pagină */
.ue { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
/* emblema UE: cel puțin 1 cm înălțime, fără colțuri rotunjite; pe fond închis, cu margine albă de 1/25 din înălțime (regulile de vizibilitate UE) */
.ue svg { flex: none; width: 57px; height: 38px; }
.pe-navy .ue { color: var(--on-navy); }
.pe-navy .ue svg { box-shadow: 0 0 0 1.5px #fff; }
footer [data-ue] { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }

/* calendarul pe etape: o bucată de drum pe etapă, galben până acum, „Acum” pe etapa curentă */
@property --f { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.ani { margin-top: 18px; }
.ani ol { display: grid; grid-template-columns: var(--cols, repeat(var(--n), minmax(0, 1fr))); column-gap: 3px; margin: 0; padding: 0; list-style: none; }
.ani li, .ani li.acum { position: relative; display: grid; align-content: start; gap: 4px; margin: 0; max-width: none; padding: 54px 16px 0 0; }
.ani li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 28px, transparent 28px 50px) left center / 100% 3px no-repeat, #1d2330; }
.ani li:first-child::before, .ani li.acum:first-child::after { border-radius: 12px 0 0 12px; }
.ani li:last-child::before, .ani li.acum:last-child::after { border-radius: 0 12px 12px 0; }
.ani li:only-child::before, .ani li.acum:only-child::after { border-radius: 12px; }
.ani li.trecut::before { background: linear-gradient(var(--yellow), var(--yellow)) left center / 100% 4px no-repeat, #283044; }
.ani li.acum::before { background: linear-gradient(90deg, var(--yellow) 0 28px, transparent 28px) 0 50% / 50px 4px repeat-x, linear-gradient(90deg, #343e57 var(--f), #262e42 0); }
.ani li.acum::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 40px; box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 14px rgba(255,210,0,.18), 0 0 10px rgba(255,210,0,.25); pointer-events: none; }
.ani-azi { position: absolute; top: 20px; left: clamp(34px, var(--f), calc(100% - 34px)); z-index: 2; transform: translate(-50%, -50%); padding: 3px 11px; border-radius: 999px; background: var(--yellow); color: var(--navy); outline: 3px solid #262e42; box-shadow: 0 0 14px rgba(255,210,0,.55); font-size: 14px; font-weight: 700; }
.ani li b { justify-self: start; font-size: 17px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.ani li span { font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 22ch; }
.ani li.acum b { margin-left: -8px; padding: 2px 8px; border-radius: 8px; background: var(--yellow); }
.ani li.acum span { color: var(--navy); font-weight: 600; }
.ani li.trecut b, .ani li.trecut span { color: var(--ink-3); }
.ani li em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--navy); }
/* intrarea, când calendarul ajunge pe ecran */
.anim .ani:not(.ani-on) li::before { clip-path: inset(0 100% 0 0); }
.anim .ani:not(.ani-on) li > *, .anim .ani:not(.ani-on) li.acum::after { opacity: 0; }
.anim .ani-on li::before { animation: ani-drum .6s var(--ease) calc(var(--i) * 140ms) both; }
.anim .ani-on li.acum::before { animation: ani-drum .6s var(--ease) calc(var(--i) * 140ms) both, ani-mers 1.8s linear calc(var(--n) * 140ms + 1.8s) infinite; }
.anim .ani-on li > :not(.ani-azi) { animation: ani-txt .5s var(--ease) calc(var(--i) * 140ms + .25s) both; }
.anim .ani-on li.acum { animation: ani-f 1.6s var(--ease) calc(var(--i) * 140ms + .3s) both; }
.anim .ani-on li.acum::after { animation: ani-ap .8s ease calc(var(--n) * 140ms + 1s) both, ani-lum 3.2s ease-in-out calc(var(--n) * 140ms + 1.8s) infinite; }
.anim .ani-on .ani-azi { animation: ani-ap .3s ease calc(var(--i) * 140ms + .3s) both, ani-puls 3.2s ease-out calc(var(--n) * 140ms + 1.8s) infinite; }
@keyframes ani-drum { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ani-drum-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes ani-txt { from { opacity: 0; transform: translateY(6px); } }
@keyframes ani-ap { from { opacity: 0; } }
@keyframes ani-f { from { --f: 0%; } }
@keyframes ani-mers { to { background-position: 50px 50%, 0 0; } }
@keyframes ani-mers-v { to { background-position: 50% 28px, 0 0; } }
@keyframes ani-lum { 50% { box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 20px rgba(255,210,0,.3), 0 0 20px 2px rgba(255,210,0,.4); } }
@keyframes ani-puls { from { box-shadow: 0 0 14px rgba(255,210,0,.55), 0 0 0 0 rgba(255,210,0,.55); } 60%, to { box-shadow: 0 0 14px rgba(255,210,0,.55), 0 0 0 12px rgba(255,210,0,0); } }
/* pe telefon, același drum, vertical: bucata e înaltă cât durează etapa */
@media (max-width: 560px) {
  .ani ol { grid-template-columns: 1fr; row-gap: 3px; }
  .ani li, .ani li.acum { grid-template-columns: 1fr; gap: 2px; min-height: max(64px, calc(var(--k, .4) * 150px)); padding: 12px 0 12px 62px; }
  .ani li::before { right: auto; bottom: 0; width: 46px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 16px, transparent 16px 28px) center top / 3px 100% no-repeat, #1d2330; }
  .ani li:first-child::before, .ani li.acum:first-child::after { border-radius: 12px 12px 0 0; }
  .ani li:last-child::before, .ani li.acum:last-child::after { border-radius: 0 0 12px 12px; }
  .ani li:only-child::before, .ani li.acum:only-child::after { border-radius: 12px; }
  .ani li.trecut::before { background: linear-gradient(var(--yellow), var(--yellow)) center top / 4px 100% no-repeat, #283044; }
  .ani li.acum::before { background: linear-gradient(var(--yellow) 0 16px, transparent 16px) 50% 0 / 4px 28px repeat-y, linear-gradient(#343e57 var(--f), #262e42 0); }
  .ani li.acum::after { right: auto; bottom: 0; width: 46px; height: auto; }
  .ani-azi { left: 23px; top: clamp(20px, var(--f), calc(100% - 20px)); padding: 2px 6px; font-size: 13px; }
  .anim .ani:not(.ani-on) li::before { clip-path: inset(0 0 100% 0); }
  .anim .ani-on li::before { animation-name: ani-drum-v; }
  .anim .ani-on li.acum::before { animation-name: ani-drum-v, ani-mers-v; }
  .ani li b { font-size: 18px; }
}
.meniu-d { display: flex; align-items: center; gap: 12px; }
.limba { display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.limba a { color: var(--on-navy-2); text-decoration: none; padding: 6px 11px; }
.limba a:hover { color: var(--on-navy); background: rgba(255,255,255,.08); }
.limba a[aria-current] { color: var(--on-navy); background: rgba(255,255,255,.16); }
