@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Inter:wght@300;400;600;700&display=swap');

/* =========================
   1) Variabile & bază
   ========================= */
:root {
  --logo-bottom: -120px;
  --logo-right-nudge: -12px;
  --bg: #16323c;
  --panel: #1d3f4be6;
  --panel-soft: #224a58cc;
  --text: #f3f8fa;
  --muted: #c0d1d6;
  --primary: #e2c483;
  --primary-2: #4fb0c6;
  --accent: #7ec69a;
  --danger: #d46a6a;
  --ring: #ffffff26;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);

  --p-min: 1.05rem;
  --p-ideal: 1.15rem;
  --p-max: 1.25rem;
  --p-line: 1.8;

  /* Header */
  --hdr-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto;
  color: var(--text);
  background:
    radial-gradient(1400px 900px at 0% -10%, #205063 0%, transparent 70%),
    radial-gradient(1200px 800px at 120% 20%, #183a45 0%, transparent 65%),
    linear-gradient(180deg, #16323c, #0f242c);
  min-height: 100vh;
  line-height: 1.65;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   2) Header
   ========================= */
header.site-header {
  position: sticky;
  top: 1px;   /* înainte era 0, acum avem un spațiu de 1px */
  z-index: 999;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(15,19,24,.85), rgba(15,19,24,.55));
  border-bottom: 1px solid #ffffff14;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}


/* Nav bar (desktop) */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  transition: .2s ease;
  font-weight: 600;
  font-size: .95rem;
}

nav a:hover {
  background: #ffffff10;
  transform: translateY(-2px);
}

/* CTA */
.cta {
  color: #1a1f25;
  background: linear-gradient(90deg, #e2c483, #b8944b);
  border: 0;
  box-shadow: 0 10px 28px rgba(226,196,131,.18),
              0 6px 18px rgba(184,148,75,.15);
  border-radius: 14px;
  font-weight: 700;
}
.cta:hover {
  background: linear-gradient(90deg, #f3da9a, #caa24c);
  box-shadow: 0 12px 28px rgba(226,196,131,.25),
              0 8px 20px rgba(184,148,75,.2);
  color: #0e1217;
}

/* ascundem brandul text din header – titlul e sub header */
.site-header .brand { display: none !important; }

/* ===== Logo colț (mobil/tabletă) ===== */
.corner-logo { display: none; }
.corner-logo img{
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* =========================
   3) Titlul site-ului sub header
   ========================= */
.site-title{
  display:flex; align-items:center; justify-content:center;
  gap:14px; margin:30px auto 20px; text-align:center;
}
.site-title img{
  width:64px; height:64px; object-fit:contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}
.site-title span{
  font-family:'Poppins',sans-serif; font-weight:900;
  font-size:clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  letter-spacing:.5px;
  background: linear-gradient(90deg,#f3e3b8,#e2c483,#caa24c);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 2px 6px rgba(0,0,0,.25);
}

/* =========================
   4) Hero + logo-uri laterale
   ========================= */
.hero{ position:relative; padding:86px 0 34px; }
.hero .container{ position:relative; z-index:1; }
.hero h1{
  font-family:'Poppins',sans-serif;
  font-size:clamp(30px, 4.8vw, 56px);
  line-height:1.08; margin:0 0 14px; letter-spacing:.2px;
  background: linear-gradient(90deg, #f3e3b8, #c9d6e2);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .stroke{ -webkit-text-stroke:.6px #ffffff66; text-shadow:none; }

/* fix litera „T” să nu mai fie tăiată */
.hero h1{ padding-left:.08em; }
.hero h1::first-letter{ margin-left:-.08em; }

.hero p.lead{
  font-size:clamp(16px, 2.2vw, 20px);
  opacity:.92; max-width:900px;
}
.hero .cta-row{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }

/* Logo-uri laterale în hero (ascunse pe telefon+tabletă) */
.hero-logo{
  position:absolute; top:auto; bottom:-100px; height:380px; width:auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
  opacity:.98; pointer-events:none; z-index:0;
}
.hero-logo.left{ left:-100px; }
.hero-logo.right{ right:-100px; bottom:-100px; }

/* =========================
   5) Elemente UI
   ========================= */
.ribbon{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px; font-weight:700;
  background: linear-gradient(90deg, #25313c, #1f2a33);
  color:#cfd8df; border:1px solid #ffffff1f; box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:16px; text-decoration:none; font-weight:700;
  color:#10161d; background:#f5f7f9; transition:.2s ease;
  border:1px solid #ffffff33; box-shadow:var(--shadow);
}
.btn:hover{ transform: translateY(-3px); }
.btn.ghost{ background:transparent; color:var(--text); border:1px solid #ffffff33; }
.btn.ghost:hover{ background:#ffffff10; }
.btn.secondary{
  color:#e8ecef; background:linear-gradient(90deg, #334555, #2b3947);
  border:1px solid #ffffff1f;
}

/* =========================
   6) Secțiuni & carduri
   ========================= */
.section{ padding:70px 0; }
.section h2{
  font-family:'Poppins',sans-serif;
  font-size:clamp(26px, 3.4vw, 38px);
  margin:0 0 12px; letter-spacing:.2px; color:#e6d6a7;
}
.section .subtitle{ color:var(--muted); margin-bottom:26px; }

.grid{ display:grid; gap:20px; }
.grid.cards{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border:1px solid #ffffff1f; border-radius:var(--radius);
  padding:22px; box-shadow:0 12px 30px rgba(0,0,0,.35); position:relative; overflow:hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::after{
  content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background:
    radial-gradient(220px 140px at 10% 0%, #e2c4830e, transparent 60%),
    radial-gradient(260px 180px at 90% 120%, #9bb4c90c, transparent 60%);
  filter:blur(8px);
}
.card:hover{
  transform: translateY(-6px);
  box-shadow:0 22px 60px rgba(0,0,0,.45);
  border-color:#e2c48333;
}
.card .price{ font-size:36px; font-weight:900; letter-spacing:.4px; color:#e2c483; }

.list{ margin:12px 0; padding:0; list-style:none; }
.list li{ display:flex; align-items:flex-start; gap:10px; margin:8px 0; }

.badge{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:#ffffff0e; border:1px solid #ffffff24; color:#e8ecef;
  font-weight:700; font-size:.78rem; letter-spacing:.3px;
}
.panel{
  background: linear-gradient(180deg, #141b24, #141b24cc);
  border:1px solid #ffffff20; border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow);
}

/* =========================
   7) Harta Binelui (Leaflet)
   ========================= */
#harta-binelui{
  height:520px; border-radius:18px; border:1px solid #ffffff1f;
  overflow:hidden; box-shadow:var(--shadow);
}
.leaflet-popup-content-wrapper{
  background: linear-gradient(180deg, #121821, #141b24);
  color:var(--text); border:1px solid #ffffff22; border-radius:14px;
}
.leaflet-popup-tip{ background:#121821; }
.leaflet-container a{ color:#e2c483; text-decoration:underline; }

/* =========================
   8) Testimoniale
   ========================= */
.testi-grid{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testi{ position:relative; }
.testi .author{ display:flex; gap:10px; align-items:center; margin-top:8px; }
.testi .pulse{
  position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
  background: radial-gradient(120px 120px at 10% 10%, #e2c48312, transparent 60%);
  animation: float 6s ease-in-out infinite alternate;
}
@keyframes float{ to{ transform: translateY(-6px); } }

/* =========================
   9) INCLUZIUNE — full-bleed + cross-fade 1→2→3→1 (fără goluri)
   ========================= */
.section-incluziune{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 0;
  color: #fff;
  overflow: hidden;
}

/* Două straturi:
   - ::before alternează IMG1 → IMG3 (schimbă sursa DOAR când e invizibil)
   - ::after afișează IMG2 între ele
   => buclă: 1 (before) → 2 (after) → 3 (before) → din nou 1 (before la restart) */
.section-incluziune::before,
.section-incluziune::after{
  content:"";
  position:absolute; inset:0;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  opacity:0; z-index:0;
  will-change: opacity, background-image;
}

/* Durată totală 24s ≈ 8s/imagine – ajustează cum vrei */
.section-incluziune::before{ animation:incFadeA 24s infinite ease-in-out; }
.section-incluziune::after { animation:incFadeB 24s infinite ease-in-out; }

/* overlay + conținut peste imagini */
.section-incluziune .overlay{ position:absolute; inset:0; background:rgba(0,0,0,.35); z-index:1; }
.section-incluziune .container{ position:relative; z-index:2; }

/* Keyframes robuste – fără momente cu ambele straturi invizibile */
@keyframes incFadeA{
  /* IMG1 vizibil la start */
  0%    { opacity:1; background-image:url("images/incluziune1.jpg"); }
  30%   { opacity:1; }
  40%   { opacity:0; }                /* fade out IMG1, intră IMG2 pe after */

  /* schimbăm sursa la IMG3 doar când stratul e invizibil */
  40.1% { opacity:0; background-image:url("images/incluziune3.jpg"); }

  70%   { opacity:1; }                /* fade in IMG3 și menținem */
  80%   { opacity:1; }
  90%   { opacity:0; }                /* pregătim restart (în timp ce after afișează încă IMG2) */
  100%  { opacity:0; }                /* revine la 0%, unde e setat IMG1 mai sus */
}
@keyframes incFadeB{
  /* IMG2 doar între IMG1 și IMG3, cu fade lin */
  0%    { opacity:0; background-image:url("images/incluziune2.jpg"); }
  30%   { opacity:0; }
  40%   { opacity:1; }                /* fade in IMG2 */
  70%   { opacity:1; }                /* ținem IMG2 vizibil cât timp before trece la IMG3 */
  80%   { opacity:0; }                /* fade out IMG2, rămâne IMG3 pe before */
  100%  { opacity:0; }
}

/* Carduri & panel în Incluziune – translucide, ca înainte */
.section-incluziune .card,
.section-incluziune .panel{
  background:rgba(15,19,24,0.56);
  border:1px solid rgba(255,255,255,0.18);
  color:#eef2f6;
  backdrop-filter: blur(6px) saturate(120%);
}

/* =========================
   10) Carduri cu fundal — Instituții & Companii (fără micșorare)
   ========================= */
.card.bg-image{
  position: relative;
  isolation: isolate;
  display: flex;             /* ca în versiunea inițială */
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius);
  border: 1px solid #ffffff1f;
  color: var(--text);
}
.card.bg-image::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7)),
    var(--card-bg) center/cover no-repeat;
}
.card.bg-image > *{ position: relative; z-index: 1; }

/* butonul din ultimul <p> stă jos, dar NU schimbăm înălțimea cardului */
.card.bg-image p:last-child{ margin-top: auto; }

/* buton alb identic */
.card.bg-image p:last-child .btn{
  background:#f5f7f9; color:#10161d; font-weight:700;
  border-radius:16px; padding:12px 18px; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.card.bg-image p:last-child .btn:hover{ background:#ffffff; transform:translateY(-2px); }

/* =========================
   11) Footer premium
   ========================= */
.footer{ padding:0; background:transparent; border-top:none; }
.footer-premium{
  padding:50px 0 30px;
  background: linear-gradient(180deg, rgba(15,19,24,.35), rgba(15,19,24,.85));
  border-top:1px solid #ffffff14; color:var(--text); text-align:center;
}
.footer-title{
  margin:0 0 6px; display:inline-flex; align-items:center; justify-content:center;
  gap:10px; font-size:1.28rem; font-weight:900; letter-spacing:.2px; color:var(--primary);
}
.brand-logo-inline{
  width:28px; height:28px; border-radius:8px; object-fit:contain; background:#0f1318; box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.footer-brand{ margin-bottom:22px; }
.footer-brand .mini{ margin:2px 0 0; opacity:.8; }

.footer-nav{
  display:flex; justify-content:center; flex-wrap:wrap; gap:16px; margin-bottom:20px;
}
.footer-nav a{
  font-weight:600; font-size:.95rem; color:var(--text); opacity:.85; text-decoration:none; transition:.2s;
}
.footer-nav a:hover{ opacity:1; color:var(--primary); }

.footer a, .footer a:visited{ color:var(--text); text-decoration:none; }

.footer-bottom{
  display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center;
}
.footer-bottom .contact a{
  display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border-radius:999px;
  font-weight:800; color:#1a1f25;
  background:linear-gradient(90deg, var(--primary), #caa24c);
  box-shadow:0 10px 24px rgba(226,196,131,.20); transition:.2s ease;
}
.footer-bottom .contact a:hover{
  transform: translateY(-2px); box-shadow:0 12px 28px rgba(226,196,131,.28);
}
.footer-bottom .social{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center; font-weight:700;
}
.footer-bottom .social a{
  display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:999px;
  background:#ffffff12; border:1px solid #ffffff1f; opacity:.9; transition:.2s ease;
}
.footer-bottom .social a:hover{
  opacity:1; color:#e2c483; transform: translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.footer-bottom .mini{ margin-top:6px; opacity:.6; font-size:.85rem; }

/* =========================
   12) Responsive (global)
   ========================= */
@media (max-width: 1200px){
  .container{ padding:0 16px; }
}
@media (max-width: 1024px){
  .hero-logo.left, .hero-logo.right{ display:none; }
  .nav{ padding:12px 0; }
  nav ul{ gap:12px; }
  .hero{ padding-top:70px; }
  .hero p.lead{ max-width:720px; }
  .grid.cards{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 880px){
  .section{ padding:56px 0; }
  .hero h1{ font-size:clamp(28px, 6.2vw, 44px); }
  .hero .cta-row{ gap:10px; }
  .grid{ gap:16px; }
}
@media (max-width: 760px){
  nav ul{ gap:6px; }
  nav a{ padding:8px 10px; }
  .hero{ padding-top:56px; }
  .card{ padding:18px; }
  .footer-brand{ flex-direction:column; }
}

/* ===========================================================
   13) HAMBURGER + DRAWER (mobil & tabletă)
   =========================================================== */
#nav-toggle{
  position:absolute;
  width:1px; height:1px;
  overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0; padding:0; margin:-1px;
  opacity:0; pointer-events:none;
}
.hamburger{ display:none; }

@media (max-width:980px){

  header.site-header{
    background:transparent !important; border-bottom:none !important; box-shadow:none !important;
  }
  .nav{ padding:0 !important; min-height:0; }

  .hamburger{
    --bar-w: 24px;
    --bar-h: 2px;
    --gap: 6px;

    position: fixed !important;
    right: 12px; top: 12px;
    z-index: 2147483003;
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid rgba(226,196,131,.35);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .hamburger:hover{ transform: translateY(-1px); }
  .hamburger:focus-visible{
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  .hamburger::before,
  .hamburger::after,
  .hamburger span{
    content:"";
    display:block;
    width: var(--bar-w);
    height: var(--bar-h);
    background: var(--primary);
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,.25);
  }
  .hamburger span{ margin: var(--gap) 0; }
  .hamburger::before{ transform: translateY(calc(-1 * (var(--gap) + var(--bar-h)))); }
  .hamburger::after{ transform: translateY(calc(var(--gap) + var(--bar-h))); }

  nav{
    position: fixed;
    top: 0; right: -100%; bottom: 0; left: auto;
    width: min(86vw, 420px);
    height: 100svh; min-height: 100vh;
    background: #0f1c22 !important;
    box-shadow: -16px 0 44px rgba(0,0,0,.65);
    padding: calc(env(safe-area-inset-top,0px) + 76px) 18px 24px;
    display: flex; flex-direction: column;
    z-index: 2147483001;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transition: right .32s cubic-bezier(.2,.8,.2,1);
  }

  nav ul,
  .nav-list{
    display: grid; gap: 12px; margin: 0; padding: 0; list-style: none;
  }
  nav a{
    display:block; padding:16px 16px; border-radius:14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text); font-weight:600; text-decoration:none; transition:.2s ease;
  }
  nav a:hover{ background: rgba(255,255,255,.10); transform: translateY(-2px); }
  nav a[aria-current="page"]{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
  nav a.cta{
    background: linear-gradient(90deg, #e2c483, #b8944b) !important;
    border: 0 !important; color:#1a1f25 !important;
    box-shadow: 0 10px 28px rgba(226,196,131,.18), 0 6px 18px rgba(184,148,75,.15) !important;
  }

  #nav-toggle:checked ~ label.hamburger::before{ transform: rotate(45deg); }
  #nav-toggle:checked ~ label.hamburger span{ opacity: 0; transform: translateX(8px); }
  #nav-toggle:checked ~ label.hamburger::after{ transform: rotate(-45deg); }
  #nav-toggle:checked ~ nav{ right: 0; }
  #nav-toggle:checked ~ nav::before{
    content:""; position: fixed; inset:0;
    background: rgba(0,0,0,.55); z-index:-1;
  }
  body:has(#nav-toggle:checked){
    overflow: hidden; touch-action: none;
  }

  .site-title img{ display:none; }
  .site-title{ margin:48px auto 16px !important; padding-top:8px; }

  .footer-nav{ display:none !important; }
}

/* ===== Accesibilitate mică ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
  border-radius:14px;
}

/* Evidențiere meniu desktop pentru pagina curentă (alb, fără auriu) */
.nav-group a[aria-current="page"]:not(.cta) {
  color: var(--text);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.nav-group a[aria-current="page"]:not(.cta):hover,
.nav-group a[aria-current="page"]:not(.cta):focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}
/* === INCLUZIUNE — Full-bleed + cross-fade lin 1→2→3→1 (fără goluri) === */
.section-incluziune{
  position: relative;
  /* întindem secțiunea pe toată lățimea ecranului */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 0;
  color: #fff;
  overflow: hidden;

  /* IMAGINEA 1 pe stratul de bază (mereu prezentă sub straturi) */
  background: url("images/incluziune1.jpg") center/cover no-repeat;
}

/* Două straturi animate:
   ::before = IMAGINEA 2 (apare între 1 și 3)
   ::after  = IMAGINEA 3 (apoi dispare ca să revină 1) */
.section-incluziune::before,
.section-incluziune::after{
  content:"";
  position:absolute; inset:0;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  opacity:0; z-index:0;
  will-change: opacity;
}

/* Durată totală 24s ≈ 8s per imagine (modifică după gust) */
.section-incluziune::before{
  background-image:url("images/incluziune2.jpg");
  animation: fadeImg2 24s infinite ease-in-out;
}
.section-incluziune::after{
  background-image:url("images/incluziune3.jpg");
  animation: fadeImg3 24s infinite ease-in-out;
}

/* Overlay + conținut rămân deasupra */
.section-incluziune .overlay{ position:absolute; inset:0; background:rgba(0,0,0,.35); z-index:1; }
.section-incluziune .container{ position:relative; z-index:2; }

/* Cheia: niciodată ambele straturi nu sunt 0 simultan în timpul tranzițiilor
   — baza (img1) e mereu dedesubt. Astfel nu mai există clipire/blank. */
@keyframes fadeImg2{
  /* 0–20%: doar img1 (bază). 20–30%: fade in img2. 30–50%: img2 vizibil.
     50–60%: fade out img2. 60–100%: img1 sau img3 acoperă. */
  0%, 20%   { opacity:0; }
  30%, 50%  { opacity:1; }
  60%, 100% { opacity:0; }
}
@keyframes fadeImg3{
  /* 0–60%: img1/img2. 60–70%: fade in img3. 70–90%: img3 vizibil.
     90–100%: fade out img3 (revine img1 din baza). */
  0%, 60%   { opacity:0; }
  70%, 90%  { opacity:1; }
  100%      { opacity:0; }
}

/* Cardurile din INCLUZIUNE rămân translucide ca înainte */
.section-incluziune .card,
.section-incluziune .panel{
  background:rgba(15,19,24,0.56);
  border:1px solid rgba(255,255,255,0.18);
  color:#eef2f6;
  backdrop-filter: blur(6px) saturate(120%);
}

/* === CARDURI Instituții / Companii — fundal vizibil + butoane jos, fără micșorare === */
.card.bg-image{
  position: relative;
  isolation: isolate;
  display: flex;           /* păstrăm flex ca în varianta ta stabilă */
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius);
  border: 1px solid #ffffff1f;
  color: var(--text);
}
.card.bg-image::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7)),
    var(--card-bg) center/cover no-repeat;
}
.card.bg-image > *{ position:relative; z-index:1; }

/* împinge butonul jos fără să modifici înălțimea cardului */
.card.bg-image p:last-child{ margin-top: auto; }

/* buton alb identic în ambele carduri */
.card.bg-image p:last-child .btn{
  background:#f5f7f9; color:#10161d; font-weight:700;
  border-radius:16px; padding:12px 18px; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.card.bg-image p:last-child .btn:hover{ background:#ffffff; transform:translateY(-2px); }
/* =========================
   14) Calculator Fond Handicap (acordeon)
   ========================= */

.calc-scope{ padding: 18px 0 0; }

.calc-card{
  width:min(980px, 96vw);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(29,51,62,.88), rgba(23,37,47,.78));
  border:1px solid #ffffff26;
  border-radius:20px;
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  padding:28px;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.calc-card h1{
  margin:0 0 6px;
  font-family:Poppins, Inter, sans-serif;
  font-weight:800;
  font-size:clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  background: linear-gradient(90deg, var(--primary), #caa24c);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.calc-card .mini{ margin:0 0 18px; color:var(--muted); }

.calc-scope .grid-2{ display:grid; gap:14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-scope .grid-3{ display:grid; gap:14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width:780px){ .calc-scope .grid-3{ grid-template-columns:1fr; } }
@media (max-width:640px){ .calc-scope .grid-2{ grid-template-columns:1fr; } }

.calc-scope .field{
  display:flex; flex-direction:column; gap:8px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid #ffffff22;
  border-radius:16px;
  padding:14px;
}
.calc-scope .field span{ font-weight:700; }
.calc-scope .field input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #ffffff24;
  background:#ffffff0f;
  color:var(--text);
  font-size:1rem;
}
.calc-scope .field input:focus{
  outline:2px solid var(--primary-2);
  outline-offset:2px;
}

.calc-scope .adv{ margin-top:8px; }
.calc-scope .adv summary{ cursor:pointer; padding:10px 0; color:var(--accent); font-weight:700; }
.calc-scope .adv[open]{ margin-bottom:6px; }

.calc-scope .results{ margin-top:18px; }

.calc-scope .pill-row{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px;
}
.calc-scope .pill{
  display:inline-flex; gap:6px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background:#ffffff14; border:1px solid #ffffff22; font-weight:600;
}
.calc-scope .pill.warn{ background:#ffffff1e; border-color:#ffffff30; }

.calc-scope .result-cards{ margin-top:6px; }

.calc-scope .result-card{
  background:linear-gradient(180deg, var(--panel), var(--panel-soft));
  border:1px solid #ffffff20;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.30);
}
.calc-scope .result-card h3{
  margin:0 0 6px;
  font-family:Poppins, Inter, sans-serif;
  font-weight:700;
}
.calc-scope .result-card em{ color:var(--primary); font-style:normal; }
.calc-scope .result-card .sum{
  margin:4px 0 6px;
  font-size:clamp(1.6rem, 1.1rem + 2vw, 2.2rem);
  font-weight:800;
  letter-spacing:.2px;
}
.calc-scope .result-card .sum small{
  font-size:.8rem;
  font-weight:600;
  color:#e8ecef;
  opacity:.9;
  margin-left:6px;
}
.calc-scope .result-card .note{ margin:0; color:var(--muted); }

.calc-scope .status{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background:#ffffff10;
  border:1px solid #ffffff22;
  font-weight:600;
}
.calc-scope .status.ok{ border-color:#44aa88; }
.calc-scope .status.warn{ border-color:#e2c483; }

.calc-scope .bullets{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.calc-scope .bullets li{ margin:6px 0; }

/* === Acordeon pentru calculator === */
.calc-accordion{
  border:1px solid #ffffff22;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:0 10px 24px rgba(0,0,0,.30);
  overflow:hidden;
}

/* Bara de titlu (butonul) */
.calc-accordion > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  padding:18px 22px;
  display:flex;
  align-items:center;
  gap:12px;

  font-family:Poppins, Inter, sans-serif;
  font-weight:800;
  font-size:1.1rem;

  color:#1a1f25;
  background: linear-gradient(90deg, var(--primary), #caa24c); /* auriu */
  border-bottom:1px solid rgba(0,0,0,.25);

  transition: background .3s ease, transform .2s ease, box-shadow .2s ease;
}
.calc-accordion > summary:hover{
  background: linear-gradient(90deg, #f3da9a, #e2c483);
  transform: translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

.calc-accordion > summary::-webkit-details-marker{ display:none; }
.calc-accordion > summary::after{
  content:"▸";
  font-size:20px;
  line-height:1;
  transform:rotate(0deg);
  transition:transform .2s ease;
  color:#1a1f25;
  margin-left:auto;
}
.calc-accordion[open] > summary::after{ transform:rotate(90deg); }

.calc-accordion .calc-scope{ padding:0 12px 14px; }
/* Cardurile de rezultate (A și B) */
.calc-scope .result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;   /* face cardurile egale pe înălțime */
}

.calc-scope .result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid #ffffff20;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}

/* Titlul și textul explicativ rămân sus, suma iese în evidență */
.calc-scope .result-card h3 {
  margin: 0 0 6px;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  min-height: 48px; /* asigură înălțime minimă egală pt. titlu */
}

.calc-scope .result-card .sum {
  margin: 12px 0;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: .2px;
}

.calc-scope .result-card .note {
  margin-top: auto; /* împinge nota jos, ca să alinieze cardurile */
  color: var(--muted);
}

/* Responsive: pe mobil, cardurile devin 1 coloană */
@media (max-width: 700px) {
  .calc-scope .result-cards {
    grid-template-columns: 1fr;
  }
}
