/* ==========================================================================
   CȘEI Nr. 1 Ploiești — stil principal
   Paletă: #10006F header/footer · #1800AD hero/accent · #F5F7FC / #FFFFFF fundal
   ========================================================================== */

:root {
    /* Culori */
    --navy:        #10006F;
    --navy-deep:   #0A0048;
    --navy-soft:   #1B0A8A;
    --accent:      #1800AD;
    --accent-600:  #2A10CC;
    --accent-700:  #14008F;
    --accent-tint: #E9E6FF;
    --accent-tint2:#F0EEFF;

    --bg:          #F5F7FC;
    --white:       #FFFFFF;
    --ink:         #171A3D;
    --ink-soft:    #4B5077;
    --ink-faint:   #6E7396;
    --line:        #DDE2F2;
    --line-soft:   #EBEEF9;

    --ok:          #0E7C4A;
    --warn:        #9A5B00;

    /* Formă */
    --radius:      14px;
    --radius-sm:   9px;
    --radius-lg:   22px;
    --shadow-sm:   0 2px 8px rgba(16, 0, 111, .06);
    --shadow:      0 10px 30px rgba(16, 0, 111, .10);
    --shadow-lg:   0 22px 55px rgba(16, 0, 111, .16);

    /* Ritm */
    --header-h:    auto;
    --section-y:   clamp(3rem, 6vw, 5.5rem);
}

/* ---------------------------------------------------------------- Bază */

* { -webkit-tap-highlight-color: rgba(24, 0, 173, .15); }

html { font-size: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1220px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.22;
    color: var(--navy);
    letter-spacing: -.01em;
}

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

strong, b { font-weight: 600; }

/* Focus vizibil, consistent pe tot site-ul */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.mainnav :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-banner :focus-visible { outline-color: #FFD84D; }

.icon { flex: none; vertical-align: -.15em; }

/* Sari la conținut */
.skip-link {
    position: fixed;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    padding: .75rem 1.4rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* ==========================================================================
   ANTET
   ========================================================================== */

.site-header { position: relative; z-index: 900; }

.topbar { background: var(--white); border-bottom: 1px solid var(--line-soft); }

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .85rem 0;
}

.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand:hover { text-decoration: none; }

.brand-logo { width: 66px; height: 66px; flex: none; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
    font-weight: 700;
    font-size: clamp(.82rem, 1.35vw, 1.06rem);
    line-height: 1.24;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .01em;
}
.brand-sub {
    font-size: .78rem;
    color: var(--ink-faint);
    font-weight: 400;
    margin-top: .15rem;
}

/* Căutare */
.search-box { display: flex; margin-left: auto; position: relative; flex: 0 1 300px; }

.search-input {
    width: 100%;
    padding: .55rem 2.7rem .55rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    transition: border-color .18s ease, background .18s ease;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { outline: none; border-color: var(--accent); background: #fff; }

.search-btn {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.search-btn:hover { background: var(--accent); color: #fff; }

/* Buton meniu (mobil) */
.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ==========================================================================
   MENIU PRINCIPAL
   ========================================================================== */

.mainnav { background: var(--navy); }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; display: flex; align-items: stretch; }

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem .85rem;
    font-size: .855rem;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .93);
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.nav-link:hover,
.nav-item:hover > .nav-link { background: var(--accent); color: #fff; text-decoration: none; }

.nav-item.active > .nav-link { background: var(--accent); color: #fff; }
.nav-item.active > .nav-link::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: #FFD84D;
}

.nav-caret {
    display: none;
    background: none; border: 0; color: #fff;
    padding: 0 .8rem;
    cursor: pointer;
}

/* Submeniu */
.nav-drop {
    position: absolute;
    top: 100%; left: 0;
    z-index: 950;
    min-width: 290px;
    margin: 0;
    padding: .55rem 0;
    list-style: none;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover > .nav-drop,
.nav-item.is-open > .nav-drop,
.nav-item:focus-within > .nav-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop > li > a {
    display: block;
    padding: .55rem 1.35rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    border-left: 3px solid transparent;
}
.nav-drop > li > a:hover,
.nav-drop > li > a.is-current {
    background: var(--accent-tint2);
    border-left-color: var(--accent);
    color: var(--accent-700);
    text-decoration: none;
}

.nav-drop-group {
    padding: .8rem 1.35rem .3rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.nav-drop-group:not(:first-child) {
    margin-top: .35rem;
    border-top: 1px solid var(--line-soft);
    padding-top: .8rem;
}

/* Meniul rămâne vizibil pe ecrane mari, chiar dacă Bootstrap îl marchează „collapse” */
@media (min-width: 992px) {
    #meniu-principal.collapse:not(.show) { display: block !important; }
}

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }
    .search-box { flex-basis: 190px; }
    .brand-sub { display: none; }

    .nav-list { flex-direction: column; padding: .5rem 0 1rem; }
    .nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .nav-link { flex: 1; padding: .9rem .25rem; white-space: normal; }
    .nav-item:hover > .nav-link { background: transparent; }
    .nav-item.active > .nav-link { background: transparent; color: #FFD84D; }
    .nav-item.active > .nav-link::after { display: none; }

    .nav-caret {
        display: flex; align-items: center;
        transition: transform .2s ease;
    }
    .nav-item.is-open > .nav-caret { transform: rotate(90deg); }

    .nav-drop {
        position: static;
        width: 100%;
        opacity: 1; visibility: visible; transform: none;
        display: none;
        background: rgba(0, 0, 0, .18);
        border-radius: var(--radius-sm);
        border-top: 0;
        box-shadow: none;
        margin: 0 0 .6rem;
    }
    .nav-item.is-open > .nav-drop { display: block; }
    .nav-drop > li > a { color: rgba(255, 255, 255, .9); padding: .5rem 1rem; }
    .nav-drop > li > a:hover,
    .nav-drop > li > a.is-current { background: rgba(255, 255, 255, .1); color: #fff; border-left-color: #FFD84D; }
    .nav-drop-group { color: rgba(255, 255, 255, .6); }
    .nav-drop-group:not(:first-child) { border-top-color: rgba(255, 255, 255, .15); }
}

@media (max-width: 575.98px) {
    .search-box { display: none; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-name { font-size: .74rem; }
}

/* ==========================================================================
   HERO (prima pagină)
   ========================================================================== */

.hero { position: relative; overflow: hidden; background: var(--accent); isolation: isolate; }

.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

.hero-veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg,
            rgba(24, 0, 173, .97) 0%,
            rgba(24, 0, 173, .95) 34%,
            rgba(24, 0, 173, .68) 52%,
            rgba(16, 0, 111, .18) 72%,
            rgba(16, 0, 111, .06) 100%);
}

/* Se păstrează padding-ul orizontal al containerului Bootstrap */
.hero-inner {
    position: relative;
    padding-top: clamp(3rem, 7vw, 5.5rem);
    padding-bottom: clamp(3.2rem, 7vw, 5.5rem);
    max-width: 1220px;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 1.1rem;
    padding: .4rem .95rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 100px;
    backdrop-filter: blur(3px);
}

.hero-title {
    font-family: 'Anton', 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5.2vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: .005em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.6rem;
    max-width: 20ch;
    text-shadow: 0 3px 26px rgba(0, 0, 0, .22);
}

.hero-quote {
    position: relative;
    max-width: 34rem;
    margin: 0 0 2rem;
    padding-left: 2.6rem;
    color: rgba(255, 255, 255, .96);
}
.hero-quote-mark { position: absolute; left: 0; top: .15rem; opacity: .55; }
.hero-quote p {
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    line-height: 1.55;
    font-weight: 300;
    margin: 0 0 .5rem;
}
.hero-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

.btn-hero, .btn-hero-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .78rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 100px;
    border: 2px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-hero { background: #fff; color: var(--accent-700); box-shadow: 0 6px 22px rgba(0, 0, 0, .2); }
.btn-hero:hover { background: #FFD84D; color: var(--navy); transform: translateY(-2px); text-decoration: none; }

.btn-hero-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-hero-outline:hover { background: #fff; color: var(--accent-700); transform: translateY(-2px); text-decoration: none; }

@media (max-width: 575.98px) {
    /* Titlul curge natural, fără întreruperile de rând gândite pentru ecrane mari */
    .hero-title { max-width: none; }
    .hero-title br { display: none; }
    .hero-bg img { object-position: 78% center; }
    .hero-veil { background: linear-gradient(170deg, rgba(24, 0, 173, .96) 0%, rgba(24, 0, 173, .88) 55%, rgba(16, 0, 111, .78) 100%); }
    .hero-quote { padding-left: 0; }
    .hero-quote-mark { display: none; }
}

/* ==========================================================================
   BANNER PAGINĂ INTERIOARĂ
   ========================================================================== */

.page-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(1.8rem, 4vw, 3.1rem) 0 clamp(2rem, 4vw, 3rem);
    background: linear-gradient(105deg, var(--accent-700) 0%, var(--accent) 55%, #3A22D6 100%);
    color: #fff;
}
.page-banner-deco {
    position: absolute;
    inset: 0 -10% 0 auto;
    width: 55%;
    background:
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .07) 40%, rgba(255, 255, 255, .07) 52%, transparent 52%),
        linear-gradient(115deg, transparent 60%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .05) 78%, transparent 78%);
    pointer-events: none;
}
.page-title {
    position: relative;
    margin: .35rem 0 0;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    color: #fff;
}
.page-lead {
    position: relative;
    margin: .8rem 0 0;
    max-width: 62ch;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 300;
    color: rgba(255, 255, 255, .92);
}

/* Firimituri de pâine */
.breadcrumb-csei {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: .2rem .55rem;
    list-style: none;
    margin: 0; padding: 0;
    font-size: .84rem;
}
.breadcrumb-csei li { display: flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .8); }
.breadcrumb-csei li + li::before { content: '›'; opacity: .6; }
.breadcrumb-csei a { color: rgba(255, 255, 255, .88); }
.breadcrumb-csei a:hover { color: #FFD84D; }
.breadcrumb-csei [aria-current] span { color: #fff; font-weight: 500; }

/* ==========================================================================
   SECȚIUNI ȘI TITLURI
   ========================================================================== */

.section { padding: var(--section-y) 0; background: var(--white); }
.section-alt { background: var(--bg); }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.section-navy { background: var(--navy); color: rgba(255, 255, 255, .9); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.section-title {
    position: relative;
    display: inline-block;
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
    margin: 0;
    padding-bottom: .7rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 60px; height: 4px;
    border-radius: 4px;
    background: var(--accent);
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-navy .section-title::after { background: #FFD84D; }

.section-sub { margin: .9rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.section-navy .section-sub { color: rgba(255, 255, 255, .78); }

.eyebrow {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

/* ==========================================================================
   CONȚINUT REDACȚIONAL
   ========================================================================== */

.prose { max-width: 78ch; }
.prose > *:first-child { margin-top: 0; }

.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: clamp(1.08rem, 1.8vw, 1.28rem); margin: 1.9rem 0 .7rem; color: var(--accent-700); }
.prose h4 { font-size: 1.03rem; margin: 1.5rem 0 .5rem; color: var(--ink); }

.prose p { margin: 0 0 1.1rem; }
.prose .lead {
    font-size: clamp(1.06rem, 1.7vw, 1.18rem);
    font-weight: 300;
    line-height: 1.66;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 0; list-style: none; }
.prose ol { counter-reset: pl; }

.prose ul > li,
.prose ol > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .55rem;
}
.prose ul > li::before {
    content: '';
    position: absolute;
    left: .35rem; top: .68em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.prose ol > li::before {
    counter-increment: pl;
    content: counter(pl);
    position: absolute;
    left: 0; top: .18em;
    width: 1.25rem; height: 1.25rem;
    display: grid; place-items: center;
    font-size: .72rem; font-weight: 700;
    color: var(--accent-700);
    background: var(--accent-tint);
    border-radius: 50%;
}
.prose li > ul { margin: .55rem 0 .2rem; }

.prose blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--accent);
    background: var(--accent-tint2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.06rem;
    font-weight: 300;
    color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: .6rem; font-size: .9rem; font-weight: 600; font-style: normal; color: var(--accent-700); }

.prose hr { margin: 2.4rem 0; border: 0; border-top: 1px solid var(--line); }

.prose table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--accent-tint2); color: var(--navy); font-weight: 600; }
.prose tbody tr:hover { background: var(--bg); }

/* ==========================================================================
   MENIU LATERAL DE SECȚIUNE
   ========================================================================== */

.side-nav {
    position: sticky; top: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 0 .6rem;
    box-shadow: var(--shadow-sm);
}
.side-nav-title {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 0 1.3rem .8rem;
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
}
.side-nav ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.side-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .6rem 1.3rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    border-left: 3px solid transparent;
}
.side-nav a .icon { opacity: 0; transform: translateX(-4px); transition: .18s ease; }
.side-nav a:hover { background: var(--accent-tint2); color: var(--accent-700); text-decoration: none; }
.side-nav a:hover .icon { opacity: .6; transform: translateX(0); }
.side-nav a.is-current {
    background: var(--accent-tint2);
    border-left-color: var(--accent);
    color: var(--accent-700);
    font-weight: 600;
}
.side-nav a.is-current .icon { opacity: 1; transform: translateX(0); }
.side-nav-group {
    padding: .9rem 1.3rem .25rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
    color: var(--ink-faint);
}

.side-help {
    margin-top: 1.2rem;
    padding: 1.3rem;
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    border-radius: var(--radius);
}
.side-help h3 { font-size: 1rem; color: #fff; margin: 0 0 .5rem; }
.side-help p { font-size: .9rem; margin: 0 0 .8rem; }
.side-help a { color: #FFD84D; font-weight: 600; overflow-wrap: anywhere; }

/* Adresele de e-mail lungi nu trebuie să iasă din containere înguste */
.side-help, .footer-contact, .contact-tiles, .doc-body, .feature-card { overflow-wrap: anywhere; }

/* ==========================================================================
   CARDURI
   ========================================================================== */

.card-grid { display: grid; gap: 1.4rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.feature-card {
    display: flex; flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-tint); }

.feature-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
    color: var(--accent);
    background: var(--accent-tint);
    border-radius: var(--radius-sm);
}
.feature-card h3 { font-size: 1.1rem; margin: 0 0 .55rem; }
.feature-card p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 1rem; }
.feature-card .link-more { margin-top: auto; }

a.feature-card:hover { text-decoration: none; }

.link-more {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .92rem; font-weight: 600;
    color: var(--accent);
}
.link-more .icon { transition: transform .18s ease; }
.link-more:hover { text-decoration: none; }
.link-more:hover .icon { transform: translateX(4px); }

/* Statistici */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.stat {
    padding: 1.4rem 1.2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.section-navy .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.stat-value {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 1;
    color: var(--accent);
}
.section-navy .stat-value { color: #FFD84D; }
.stat-label { display: block; margin-top: .5rem; font-size: .87rem; color: var(--ink-soft); }
.section-navy .stat-label { color: rgba(255, 255, 255, .8); }

/* Noutăți */
.news-card {
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-tint); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.news-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .7rem; font-size: .82rem; color: var(--ink-faint); }
.news-title { font-size: 1.08rem; margin: 0 0 .6rem; line-height: 1.35; }
.news-title a { color: var(--navy); }
.news-title a:hover { color: var(--accent); text-decoration: none; }
.news-excerpt { font-size: .93rem; color: var(--ink-soft); margin: 0 0 1rem; }
.news-body .link-more { margin-top: auto; }

.badge-soft {
    display: inline-block;
    padding: .2rem .65rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent-700);
    background: var(--accent-tint);
    border-radius: 100px;
}

/* Cronologie (Istoric) */
.timeline { position: relative; list-style: none; margin: 2rem 0 0; padding: 0 0 0 2.2rem; }
.timeline::before {
    content: '';
    position: absolute; left: .48rem; top: .6rem; bottom: .6rem;
    width: 2px;
    background: linear-gradient(var(--accent-tint), var(--accent), var(--accent-tint));
}
.timeline > li { position: relative; margin-bottom: 1.7rem; padding-left: 0; }
.timeline > li::before {
    content: '';
    position: absolute; left: -2.2rem; top: .45rem;
    width: 15px; height: 15px;
    background: var(--white);
    border: 3.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white);
}
.timeline-year {
    display: inline-block;
    font-family: 'Anton', sans-serif;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: var(--accent-700);
    background: var(--accent-tint);
    padding: .1rem .7rem;
    border-radius: 6px;
    margin-bottom: .35rem;
}
.timeline-text { margin: 0; color: var(--ink-soft); }
.timeline-text strong { color: var(--navy); font-weight: 600; }

/* Valori / listă cu pictograme */
.value-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); list-style: none; margin: 0; padding: 0; }
.value-list > li {
    display: flex; gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
}
.value-list h3 { font-size: 1rem; margin: 0 0 .3rem; }
.value-list p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* Parteneri */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.partner-grid > li {
    display: flex; align-items: center; gap: .8rem;
    padding: 1.05rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .96rem;
    color: var(--navy);
    transition: border-color .18s ease, transform .18s ease;
}
.partner-grid > li:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-grid .icon { color: var(--accent); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: .8rem 1rem; font-size: .87rem; color: var(--ink-soft); }

/* ==========================================================================
   DOCUMENTE
   ========================================================================== */

.doc-list { margin: 0 0 1.5rem; }
.doc-item + .doc-item { margin-top: .7rem; }

.doc-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doc-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateX(3px); text-decoration: none; }

.doc-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--accent); background: var(--accent-tint); border-radius: var(--radius-sm); }
.doc-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.doc-title { font-weight: 600; color: var(--navy); }
.doc-desc { font-size: .9rem; color: var(--ink-soft); }
.doc-meta { font-size: .78rem; color: var(--ink-faint); margin-top: .15rem; }
.doc-action { color: var(--accent); flex: none; }

/* ==========================================================================
   CASETE INFORMATIVE
   ========================================================================== */

.notice {
    display: flex; gap: .9rem;
    padding: 1.1rem 1.3rem;
    margin: 0 0 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent-tint2);
    border: 1px solid var(--accent-tint);
    border-left: 4px solid var(--accent);
}
.notice-icon { color: var(--accent); flex: none; margin-top: .1rem; }
.notice-title { display: block; margin-bottom: .25rem; color: var(--navy); }
.notice p { font-size: .96rem; color: var(--ink-soft); }
.notice-warning { background: #FFF7E6; border-color: #FFE2A8; border-left-color: var(--warn); }
.notice-warning .notice-icon { color: var(--warn); }
.notice-success { background: #EAF7F0; border-color: #C2E6D3; border-left-color: var(--ok); }
.notice-success .notice-icon { color: var(--ok); }

/* Panou de contact rapid */
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.contact-tiles > li {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.3rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-tiles .ct-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: #fff; background: var(--accent); border-radius: 50%; }
.contact-tiles .ct-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.contact-tiles .ct-value { font-weight: 600; color: var(--navy); }

/* Hartă */
.map-frame { border: 0; width: 100%; height: 420px; display: block; border-radius: var(--radius); }
.map-wrap { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--white); }

/* ==========================================================================
   FORMULARE
   ========================================================================== */

.form-csei { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}
.field .req { color: #C81E4C; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: .72rem .95rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(24, 0, 173, .12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--ink-faint); margin: .3rem 0 0; }
.field-error { font-size: .85rem; color: #C81E4C; margin: .3rem 0 0; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: #C81E4C; }

.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check-row input { width: 20px; height: 20px; flex: none; margin-top: .2rem; accent-color: var(--accent); }

.btn-csei {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.7rem;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 100px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-csei:hover { background: var(--accent-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }

.btn-outline-csei {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.7rem;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 100px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.btn-outline-csei:hover { background: var(--accent); color: #fff; text-decoration: none; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rezultate căutare */
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list > li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.result-type { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.result-title { font-size: 1.1rem; margin: .3rem 0 .4rem; }
.result-list p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   CHEMARE LA ACȚIUNE
   ========================================================================== */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(2.4rem, 5vw, 3.6rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(105deg, var(--navy) 0%, var(--accent) 100%);
    color: #fff;
}
.cta h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 .8rem; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 60ch; margin: 0 0 1.6rem; }
.cta .btn-hero { box-shadow: none; }

/* ==========================================================================
   SUBSOL
   ========================================================================== */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .82); padding-top: clamp(2.8rem, 5vw, 4rem); margin-top: 0; }

.footer-head {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.3rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.footer-head-icon { display: none; }

.footer-contact li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .95rem; font-size: .95rem; }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; }
.footer-contact a { color: rgba(255, 255, 255, .9); }
.footer-contact a:hover { color: #FFD84D; }

.footer-links li { margin-bottom: .6rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: rgba(255, 255, 255, .84); }
.footer-links a:hover { color: #FFD84D; text-decoration: underline; text-underline-offset: 4px; }

.footer-social {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-top: .5rem;
    padding: .5rem 1.1rem;
    font-size: .9rem; font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 100px;
}
.footer-social:hover { background: var(--accent); color: #fff; text-decoration: none; }

.footer-bottom { margin-top: clamp(2.2rem, 4vw, 3rem); background: var(--navy-deep); padding: 1.1rem 0; font-size: .89rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, .78); }
.footer-bottom-links { display: flex; gap: .7rem; align-items: center; }
.footer-bottom a { color: rgba(255, 255, 255, .85); }
.footer-bottom a:hover { color: #FFD84D; }

/* ==========================================================================
   WIDGET DE ACCESIBILITATE
   ========================================================================== */

.a11y { position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem); z-index: 1500; }

.a11y-toggle {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    color: #fff;
    background: var(--accent);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.a11y-toggle:hover { background: var(--navy); transform: scale(1.06); }

.a11y-panel {
    position: absolute;
    right: 0; bottom: 72px;
    width: min(310px, calc(100vw - 2rem));
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: a11yIn .18s ease;
}
.a11y-panel[hidden] { display: none; }
@keyframes a11yIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-title { font-size: 1rem; margin: 0; }
.a11y-close { background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: .2rem; border-radius: 6px; }
.a11y-close:hover { color: var(--accent); background: var(--accent-tint2); }

.a11y-group { margin-bottom: 1rem; }
.a11y-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.a11y-stepper { display: flex; align-items: center; gap: .5rem; }
.a11y-step {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    color: var(--accent);
    background: var(--accent-tint2);
    border: 1.5px solid var(--accent-tint);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.a11y-step:hover { background: var(--accent); color: #fff; }
.a11y-value { flex: 1; text-align: center; font-weight: 600; font-size: .95rem; color: var(--navy); }

.a11y-options { display: grid; gap: .4rem; margin: 0 0 1rem; }
.a11y-opt {
    width: 100%;
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem .8rem;
    font-family: inherit; font-size: .93rem; font-weight: 500; text-align: left;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}
.a11y-opt:hover { background: var(--accent-tint2); }
.a11y-opt[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-700); font-weight: 600; }
.a11y-opt .icon { color: var(--accent); }

.a11y-reset {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .55rem;
    font-family: inherit; font-size: .88rem; font-weight: 600;
    color: var(--ink-soft);
    background: none;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.a11y-reset:hover { border-color: var(--accent); color: var(--accent); }

.a11y-note { margin: .8rem 0 0; font-size: .8rem; text-align: center; }

/* ==========================================================================
   MODURI DE ACCESIBILITATE
   ========================================================================== */

/* Contrast ridicat */
html.a11y-contrast { background: #000; }
html.a11y-contrast body,
html.a11y-contrast .topbar,
html.a11y-contrast .mainnav,
html.a11y-contrast .section,
html.a11y-contrast .section-alt,
html.a11y-contrast .section-navy,
html.a11y-contrast .page-banner,
html.a11y-contrast .site-footer,
html.a11y-contrast .footer-bottom,
html.a11y-contrast .hero,
html.a11y-contrast .cta,
html.a11y-contrast .feature-card,
html.a11y-contrast .news-card,
html.a11y-contrast .doc-link,
html.a11y-contrast .side-nav,
html.a11y-contrast .side-help,
html.a11y-contrast .notice,
html.a11y-contrast .stat,
html.a11y-contrast .value-list > li,
html.a11y-contrast .partner-grid > li,
html.a11y-contrast .contact-tiles > li,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .nav-drop,
html.a11y-contrast .field input,
html.a11y-contrast .field textarea,
html.a11y-contrast .search-input {
    background: #000 !important;
    color: #FFF !important;
    border-color: #FFF !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast h4, html.a11y-contrast p, html.a11y-contrast span,
html.a11y-contrast li, html.a11y-contrast time, html.a11y-contrast cite,
html.a11y-contrast strong, html.a11y-contrast label, html.a11y-contrast output { color: #FFF !important; }
html.a11y-contrast a, html.a11y-contrast .link-more, html.a11y-contrast .nav-link { color: #FFE81A !important; }
html.a11y-contrast a:hover { color: #FFF !important; }
html.a11y-contrast .hero-veil { background: rgba(0, 0, 0, .88) !important; }
html.a11y-contrast .page-banner-deco { display: none; }
html.a11y-contrast .btn-csei, html.a11y-contrast .btn-hero, html.a11y-contrast .a11y-toggle {
    background: #FFE81A !important; color: #000 !important; border-color: #FFE81A !important;
}
html.a11y-contrast .feature-icon, html.a11y-contrast .doc-icon, html.a11y-contrast .fc-icon,
html.a11y-contrast .ct-icon, html.a11y-contrast .badge-soft, html.a11y-contrast .timeline-year {
    background: #000 !important; color: #FFE81A !important; border: 1px solid #FFE81A !important;
}
html.a11y-contrast .section-title::after, html.a11y-contrast .timeline::before { background: #FFE81A !important; }
html.a11y-contrast .nav-item.active > .nav-link,
html.a11y-contrast .nav-link:hover,
html.a11y-contrast .nav-drop > li > a.is-current,
html.a11y-contrast .side-nav a.is-current { background: #FFE81A !important; color: #000 !important; }
html.a11y-contrast .nav-item.active > .nav-link::after { background: #000 !important; }
html.a11y-contrast img:not(.brand-logo) { filter: grayscale(1) contrast(1.25); }

/* Evidențierea link-urilor */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links .nav-link, html.a11y-links .btn-hero, html.a11y-links .btn-csei { outline: 1px dashed currentColor; outline-offset: 2px; }

/* Font lizibil */
html.a11y-readable body, html.a11y-readable .hero-title, html.a11y-readable .stat-value,
html.a11y-readable .timeline-year, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 {
    font-family: Verdana, Tahoma, 'DejaVu Sans', sans-serif !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
}
html.a11y-readable .nav-link, html.a11y-readable .brand-name, html.a11y-readable .eyebrow,
html.a11y-readable .footer-head, html.a11y-readable .hero-eyebrow { text-transform: none !important; letter-spacing: .01em !important; }

/* Spațiere mărită */
html.a11y-spacing body { letter-spacing: .055em; word-spacing: .17em; line-height: 1.95; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.35rem; }

/* Oprirea animațiilor */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   TIPĂRIRE
   ========================================================================== */

@media print {
    .site-header, .site-footer, .a11y, .skip-link, .side-nav, .page-banner-deco, .hero-actions { display: none !important; }
    body { background: #fff; color: #000; font-size: 11.5pt; }
    .page-banner { background: none; color: #000; padding: 0 0 1rem; }
    .page-title, .page-lead { color: #000; }
    a { color: #000; text-decoration: underline; }
    .section { padding: .5rem 0; }
    .prose { max-width: none; }
}
