/* =====================================================================
   cursuri-romana.ro  ·  "Midnight Academic" design system
   Navy profund + ivoriu cald + accent auriu. Premium, academic, B2B.
   Tranzitii, 3D tilt, parallax, scroll-reveal.
   ===================================================================== */

:root {
  /* Dark / black */
  --midnight:    #00114c;   /* negru cu o nuanta foarte usoara de albastru */
  --midnight-2:  #14171f;
  --indigo:      #3a64e8;   /* albastru mai deschis, accent pe fundal deschis */
  --indigo-soft: #5278f0;
  --violet:      #5c7cfa;   /* albastru deschis pentru lumina/orb */

  /* Accent */
  --gold:        #e3b955;   /* pe fundal inchis */
  --gold-deep:   #3a64e8;   /* pe fundal deschis: albastru (fara maro) */

  /* Light */
  --paper:       #f6f8fc;   /* alb rece */
  --paper-2:     #eef1f8;
  --card:        #ffffff;

  /* Text */
  --ink:         #0f1320;
  --ink-soft:    #545b6e;
  --on-dark:     #f3f5fb;
  --on-dark-soft:#aab1c6;

  /* Lines */
  --line:        #e4e7f0;
  --line-dark:   rgba(243,245,251,0.14);

  --shadow-sm: 0 6px 20px rgba(10,14,42,0.06);
  --shadow-md: 0 18px 44px rgba(10,14,42,0.10);
  --shadow-lg: 0 30px 70px rgba(10,14,42,0.16);

  --r: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.serif { font-family: 'Fraunces', Georgia, serif; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* selection */
::selection { background: var(--gold); color: var(--midnight); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================  FOCUS VISIBLE (WCAG 2.4.7)  ===================== */
/* Keyboard focus indicator for links, buttons and interactive controls.
   Uses :focus-visible so it only appears on keyboard navigation, not mouse
   clicks. Indigo ring stays visible on both light (paper) and dark
   (midnight) backgrounds. */
a:focus-visible,
button:focus-visible,
area:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Stronger ring inside dark bands (midnight/hero/footer) for contrast */
.midnight-band a:focus-visible,
.hero a:focus-visible,
.cta-band a:focus-visible,
footer a:focus-visible,
.breadcrumb a:focus-visible,
.nav-cta:focus-visible,
.nav-login:focus-visible {
  outline-color: var(--violet);
  outline-offset: 3px;
}

/* =====================  NAV  ===================== */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246,248,252,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled { background: rgba(246,248,252,0.92); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10,14,42,0.05); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; text-decoration: none; line-height: 1.1; }
.logo span { color: #cd9717; }
.logo small { display: block; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--gold-deep); transition: width 0.3s var(--ease); }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  font-size: 14px; font-weight: 500; color: var(--on-dark) !important;
  background: var(--midnight); padding: 11px 22px; border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227,185,85,0.30); }
.nav-login {
  font-size: 14px; font-weight: 500; color: var(--ink-soft) !important;
  padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.nav-login:hover { color: var(--indigo) !important; border-color: var(--indigo); background: rgba(58,100,232,0.05); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================  BUTTONS  ===================== */
.btn-primary {
  display: inline-block; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--on-dark); background: var(--midnight); padding: 16px 32px; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
  box-shadow: 0 10px 26px rgba(10,14,42,0.18);
}
.btn-primary:hover { background: var(--indigo); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(58,100,232,0.30); }
.btn-gold { background: var(--gold); color: var(--midnight); box-shadow: 0 10px 26px rgba(227,185,85,0.30); }
.btn-gold:hover { background: #f0c869; color: var(--midnight); }
.btn-ghost { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 16px 6px; border-bottom: 1px solid transparent; transition: border-color 0.3s ease, gap 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost:hover { border-bottom-color: var(--gold-deep); }
.btn-ghost .arr { transition: transform 0.3s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(5px); }

/* =====================  HERO  ===================== */
.hero { position: relative; padding: 104px 0 84px; background: var(--midnight); color: var(--on-dark); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 78% 8%, rgba(92,124,250,0.30), transparent 60%),
  radial-gradient(50% 50% at 12% 92%, rgba(227,185,85,0.12), transparent 60%);
  z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(243,245,251,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(243,245,251,0.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 80%); }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0; pointer-events: none; }
.orb-1 { width: 380px; height: 380px; top: -90px; right: -80px; background: radial-gradient(circle, rgba(92,124,250,0.45), transparent 68%); }
.orb-2 { width: 300px; height: 300px; bottom: -120px; left: -60px; background: radial-gradient(circle, rgba(227,185,85,0.30), transparent 68%); }
.hero-inner { position: relative; z-index: 2; }
.hero-content { /*max-width: 880px; */}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--on-dark); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 20px; color: var(--on-dark-soft); max-width: 660px; margin-bottom: 38px; line-height: 1.55; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); color: var(--midnight); box-shadow: 0 12px 30px rgba(227,185,85,0.28); }
.hero .btn-primary:hover { background: #f0c869; transform: translateY(-2px); }
.hero .btn-ghost { color: var(--on-dark); }
.hero .btn-ghost:hover { border-bottom-color: var(--gold); }

/* =====================  TYPOGRAPHY HELPERS  ===================== */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold-deep); }
h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 26px; }
h1 em { font-style: italic; color: var(--gold-deep); }
.section-tag { font-size: 13px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: #cd9717; margin-bottom: 16px; }
h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -1px; color: var(--ink); margin-bottom: 22px; o }
.lead { font-size: 18.5px; color: var(--ink-soft); max-width: 680px; }
h3 { font-family: 'Fraunces', serif; font-weight: 500; }

/* =====================  SECTIONS  ===================== */
section { padding: 92px 0; position: relative; }
.center { text-align: center; }
.center h2, .center .lead, .center .section-tag { margin-left: auto; margin-right: auto; }
h2.center, .section-tag.center { margin-left: auto; margin-right: auto; max-width: 760px; }

/* =====================  BREADCRUMB  ===================== */
.breadcrumb { padding: 22px 0 0; background-color: #000047; padding: 0px 20px;}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumb a { color: white; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--line); }
.breadcrumb li[aria-current] { color: var(--ink); }
/* on dark hero */
.hero .breadcrumb { padding-top: 0; margin-bottom: 22px; }
.hero .breadcrumb ol, .hero .breadcrumb a, .hero .breadcrumb li[aria-current] { color: var(--on-dark-soft); }
.hero .breadcrumb a:hover { color: var(--gold); }

/* =====================  SPECS STRIP  ===================== */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; margin-top: 64px; }
.hero .specs { background: rgba(243,245,251,0.12); }
.spec { background: var(--midnight-2); padding: 30px 22px; text-align: center; }
.hero .spec { background: rgba(17,22,60,0.6); }
.spec-num { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.spec-label { font-size: 13.5px; color: var(--on-dark-soft); }
/* light variant for inner pages */
.specs-light { background: var(--line); border-color: var(--line); }
.specs-light .spec { background: var(--card); }
.specs-light .spec-num { color: var(--indigo); }
.specs-light .spec-label { color: var(--ink-soft); }

/* =====================  DARK / MIDNIGHT BAND  ===================== */
.midnight-band { background: var(--midnight); color: var(--on-dark); position: relative; overflow: hidden; }
.midnight-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(92,124,250,0.20), transparent 60%); z-index: 0; }
.midnight-band > .wrap { position: relative; z-index: 1; }
.midnight-band .section-tag { color: var(--gold); }
.midnight-band h2 { color: var(--on-dark); }
.midnight-band .lead { color: var(--on-dark-soft); }

.split-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }
.split-text p { color: var(--on-dark-soft); font-size: 17px; margin-bottom: 18px; }
.split-text strong { color: var(--gold); font-weight: 500; }
.inline-links { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; }
.inline-links a { color: var(--gold); font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(227,185,85,0.4); padding-bottom: 2px; transition: border-color 0.3s ease; }
.inline-links a:hover { border-bottom-color: var(--gold); }

/* glass fact card on dark */
.glass-card { background: rgba(243,245,251,0.06); border: 1px solid rgba(243,245,251,0.16); border-radius: 20px; padding: 32px 36px; backdrop-filter: blur(6px); }
.glass-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(243,245,251,0.12); }
.glass-row:last-child { border-bottom: none; }
.glass-label { font-size: 15px; color: var(--on-dark-soft); }
.glass-value { font-family: 'Fraunces', serif; font-size: 24px; color: var(--gold); text-align: right; }
.glass-value a { color: inherit; text-decoration: none; }
.glass-value a:hover { text-decoration: underline; }
.glass-logo { display: block; max-width: 160px; height: auto; margin: 0 0 20px; }

/* =====================  WARM BAND  ===================== */
.warm-band { background: var(--paper-2); }

/* =====================  PARTNER SEAL  ===================== */
.seal-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: center; }
.seal { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 44px 38px; text-align: center; box-shadow: var(--shadow-md); }
.seal .crest { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 22px; background: var(--midnight); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; border: 3px solid var(--gold); overflow: hidden; }
.seal .crest img { width: 100%; height: 100%; object-fit: cover; }
.seal h4 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.seal p { font-size: 14.5px; color: var(--ink-soft); }
.seal .div { height: 1px; background: var(--line); margin: 20px 0; }
.seal .stamp { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.seal-text p { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 18px; }
.seal-text strong { color: var(--ink); font-weight: 500; }
.seal-text h2 { max-width: none; }

/* Avertisment: nu orice curs scuteste de amenda */
.warn-box {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fff5f5;
  border: 1px solid #f3c2c2;
  border-left: 4px solid #c0392b;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.warn-head {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 19px; line-height: 1.2; color: #a3271b;
  margin-bottom: 12px;
}
.warn-icon {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #c0392b; color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 50%;
}
.warn-box p { font-size: 16px; color: var(--ink-soft); margin-bottom: 10px; }
.warn-box p:last-child { margin-bottom: 0; }
.warn-box em { color: #a3271b; font-style: italic; }
.warn-box strong { color: var(--ink); font-weight: 600; }
.warn-note strong { color: #a3271b; }

/* =====================  CEFR LADDER  ===================== */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; margin-top: 56px; }
.rung { background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 12px 12px; padding: 22px 14px 20px; text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.rung:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--indigo); }
.rung .code { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; line-height: 1; color: var(--indigo); margin-bottom: 10px; }
.rung:nth-child(5) .code, .rung:nth-child(6) .code { color: var(--gold-deep); }
.rung .lvl { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.rung.h1 { min-height: 132px; } .rung.h2 { min-height: 154px; } .rung.h3 { min-height: 180px; }
.rung.h4 { min-height: 208px; } .rung.h5 { min-height: 238px; background: linear-gradient(180deg, var(--card), rgba(227,185,85,0.10)); }
.rung.h6 { min-height: 270px; background: linear-gradient(180deg, var(--card), rgba(227,185,85,0.16)); }
.cefr-note { font-size: 14px; color: var(--ink-soft); margin-top: 28px; max-width: 680px; }

/* =====================  FEATURES  ===================== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.feat { background: var(--card); border-radius: 20px; padding: 34px; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); will-change: transform; }
.feat:hover { box-shadow: var(--shadow-md); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--midnight); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.feat h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 9px; }
.feat p { font-size: 15.5px; color: var(--ink-soft); }

/* =====================  STEPS  ===================== */
.steps { margin-top: 52px; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.step h3 { font-size: 21px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.step p { font-size: 16px; color: var(--ink-soft); max-width: 640px; }

/* =====================  CARD GRID (clusters / nationalities)  ===================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.link-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; text-decoration: none; display: block; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease; will-change: transform; }
.link-card:hover { box-shadow: var(--shadow-md); border-color: var(--indigo); }
.link-card .flag { font-family: 'Fraunces', serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.link-card h3 { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.link-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.link-card .go { font-size: 14.5px; font-weight: 500; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.link-card .go .arr { transition: transform 0.3s var(--ease); }
.link-card:hover .go .arr { transform: translateX(4px); }
.grid-all { text-align: center; margin-top: 40px; }

/* =====================  LANGUAGES  ===================== */
.langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lang-pill { background: var(--card); border: 1px solid var(--line); padding: 10px 20px; border-radius: 100px; font-size: 15px; color: var(--ink); font-weight: 400; transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.lang-pill:hover { transform: translateY(-2px); border-color: var(--gold-deep); }
.lang-pill b { font-weight: 500; color: var(--gold-deep); font-size: 12px; margin-left: 4px; }

/* =====================  PROSE (article / legal pages)  ===================== */
.prose { (/*max-width: 760px;*/) }
.prose-wide { max-width: none; }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
.prose-cols .prose-col h3 { margin-top: 0; }
.prose-cols p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .prose-cols { grid-template-columns: 1fr; gap: 0; }
  .prose-cols .prose-col h3 { margin-top: 40px; }
}
.prose p { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 22px; }
.prose h2 { margin-top: 8px; }
.prose h3 { font-size: 23px; color: var(--ink); margin: 40px 0 14px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color 0.3s ease; }
.prose a:hover { text-decoration-color: var(--indigo); }
.prose ul, .prose ol { margin: 0 0 24px 22px; color: var(--ink-soft); font-size: 17px; }
.prose li { margin-bottom: 12px; }
.prose ul.clean { list-style: none; margin-left: 0; }
.prose ul.clean li { padding-left: 30px; position: relative; }
.prose ul.clean li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 600; }

/* numbered obligation list */
.num-list { counter-reset: ob; list-style: none; margin: 44px 0 0; display: grid; gap: 16px; }
.num-list li { counter-increment: ob; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px 24px 76px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.num-list li:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.num-list li.highlight { border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(58,100,232,0.06), rgba(58,100,232,0.02)); box-shadow: 0 0 0 1px var(--gold-deep), var(--shadow-sm); }
.num-list li.highlight::after { content: 'Serviciul nostru'; position: absolute; top: 22px; right: 24px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--gold-deep); }
.num-list li::before { content: counter(ob, decimal-leading-zero); position: absolute; left: 26px; top: 22px; font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; color: var(--gold-deep); }
.num-list h3 { font-size: 19px; color: var(--ink); margin-bottom: 5px; }
.num-list p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* table (amenzi etc.) */
.tbl { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--midnight); color: var(--on-dark); font-weight: 500; font-size: 14px; letter-spacing: 0.4px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:last-child { font-family: 'Fraunces', serif; color: var(--gold-deep); font-weight: 500; white-space: nowrap; }

/* callout */
.callout { background: var(--paper-2); border-left: 3px solid var(--gold-deep); border-radius: 0 14px 14px 0; padding: 22px 28px; margin: 30px 0; }
.callout p { margin: 0; font-size: 16.5px; color: var(--ink); }
.callout.todo { border-left-color: var(--violet); background: rgba(92,124,250,0.08); }

/* =====================  LAW LINK BAND  ===================== */
.law-link-band {
  margin: 40px 0 8px; padding: 32px 36px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(58,100,232,0.07), rgba(227,185,85,0.07));
  border: 1px solid var(--line); text-align: center;
}
.law-link-tag { font-size: 13px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.law-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(20px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.5px;
  color: var(--gold-deep); text-decoration: none;
  transition: gap 0.3s ease;
}
.law-link:hover { gap: 16px; }
.law-link .arr { font-size: 0.8em; }
.law-link-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* =====================  OBLIGATIONS ACCORDION  ===================== */
.ob-list { margin-top: 40px; }
.ob-item { border-top: 1px solid var(--line); }
.ob-item:last-child { border-bottom: 1px solid var(--line); }

.ob-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  padding: 24px 8px; text-align: left; transition: background 0.25s var(--ease);
}
.ob-head:hover { background: rgba(58,100,232,0.04); }
.ob-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.ob-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.ob-toggle { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.ob-toggle::before, .ob-toggle::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--gold-deep);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.ob-toggle::before { width: 16px; height: 2px; }
.ob-toggle::after { width: 2px; height: 16px; }
.ob-item.open .ob-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.ob-item.open .ob-head { background: rgba(58,100,232,0.04); }

.ob-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.ob-panel p { font-size: 16px; color: var(--ink-soft); max-width: 700px; margin: 0 0 0 76px; padding-bottom: 4px; }
.ob-item.open .ob-panel { padding-bottom: 24px; }
.ob-tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--gold-deep); background: rgba(58,100,232,0.10); padding: 4px 12px; border-radius: 100px; margin: 12px 0 0 76px; }
.ob-tag-link { text-decoration: none; transition: background 0.2s ease; }
.ob-tag-link:hover { background: rgba(58,100,232,0.18); }

.ob-item-featured .ob-num, .ob-item-featured .ob-title { color: var(--gold-deep); }
.ob-item-featured .ob-head { background: linear-gradient(90deg, rgba(58,100,232,0.06), transparent 70%); }

@media (max-width: 860px) {
  .ob-head { grid-template-columns: 40px 1fr auto; gap: 14px; padding: 20px 4px; }
  .ob-num { font-size: 22px; }
  .ob-title { font-size: 17.5px; }
  .ob-panel p, .ob-tag { margin-left: 54px; }
  .law-link-band { padding: 26px 22px; }
}

/* =====================  FAQ  ===================== */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 25px 0; font-family: 'Fraunces', serif; font-size: 19.5px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q::after { content: '+'; font-size: 28px; color: var(--gold-deep); font-weight: 400; transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { font-size: 16.5px; color: var(--ink-soft); padding-bottom: 25px; }

/* =====================  CTA  ===================== */
.cta-band { background: var(--midnight); color: var(--on-dark); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(92,124,250,0.25), transparent 60%); }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--on-dark); margin: 0 auto 20px; }
.cta-band .lead { color: var(--on-dark-soft); margin: 0 auto 36px; }
.cta-band .btn-primary { background: var(--gold); color: var(--midnight); }
.cta-band .btn-primary:hover { background: #f0c869; }

/* =====================  FORM  ===================== */
.form-card { max-width: 640px; margin: 48px auto 0; background: var(--card); border-radius: 24px; padding: 46px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { font-family: 'Outfit', sans-serif; font-size: 15px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(58,100,232,0.10); }
.form-submit { width: 100%; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 500; color: var(--on-dark); background: var(--midnight); border: none; padding: 16px; border-radius: 100px; cursor: pointer; margin-top: 8px; transition: background 0.3s ease, transform 0.3s var(--ease); }
.form-submit:hover { background: var(--indigo); transform: translateY(-2px); }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 16px; }

/* =====================  FOOTER  ===================== */
footer { background: var(--midnight); color: var(--on-dark-soft); padding: 60px 0 30px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; }
.foot-logo { font-family: 'Fraunces', serif; font-size: 23px; color: var(--on-dark); margin-bottom: 12px; }
.foot-logo span { color: var(--gold); }
.foot-cognitum { display: inline-block; margin-bottom: 12px; }
.foot-cognitum img { height: 40px; width: auto; opacity: 0.85; transition: opacity 0.2s ease; }
.foot-cognitum:hover img { opacity: 1; }
.foot-brand p { max-width: 290px; font-size: 14px; }
.foot-col h2 { color: var(--on-dark); font-size: 14px; font-weight: 500; margin-bottom: 14px; letter-spacing: 0.5px; }
.foot-col a { display: block; color: var(--on-dark-soft); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 1.7; }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 960px) {
  .feat-grid, .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100vh; height: 100dvh; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; padding: 72px 36px 40px; background: var(--midnight); transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 199; overflow-y: auto; }
  body.menu-open .nav-links { transform: translateX(0); box-shadow: -20px 0 60px rgba(10,14,42,0.4); }
  .nav-links::before { content: ''; position: fixed; inset: 0; background: rgba(10,14,42,0.55); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); z-index: -1; }
  body.menu-open .nav-links::before { opacity: 1; }
  .nav-links a { color: var(--on-dark); font-size: 20px; font-family: 'Fraunces', serif; text-align: center; }
  .nav-links a:not(.nav-cta):hover { color: var(--gold); }
  .nav-links .nav-cta { margin-top: 20px; background: #c69831; color: #fff !important; }
  .nav-links .nav-cta:hover { background: #c69831; color: #fff !important; }
  .nav-links .nav-login { color: var(--on-dark-soft) !important; border-color: var(--line-dark); }
  .nav-links .nav-login:hover { color: var(--gold) !important; border-color: var(--gold); background: transparent; }
  .nav-toggle { display: flex; z-index: 201; }
  body.menu-open .nav-toggle span { background: #fff; }
  .logo { position: relative; z-index: 201; transition: opacity 0.3s var(--ease); }
  body.menu-open .logo { opacity: 0; pointer-events: none; }
  .split-grid, .seal-grid { grid-template-columns: 1fr; gap: 40px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .feat-grid, .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .rung.h1,.rung.h2,.rung.h3,.rung.h4,.rung.h5,.rung.h6 { min-height: 116px; }
  .hero { padding: 70px 0 56px; }
  section { padding: 64px 0; }
  .num-list li { padding: 22px 22px 22px 68px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 22px; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 30px 24px; }
}

/* =====================  HARTA JUDETE  ===================== */
.harta-layout { display: flex; align-items: center; gap: 56px; margin: 48px 0 8px; }
.harta-wrap { position: relative; flex: 0 0 auto; line-height: 0; }
.harta-img { max-width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,17,76,0.18)); }
.harta-img area { cursor: pointer; }
.harta-stamp { position: absolute; top: 22%; left: 8%; z-index: 2; pointer-events: none; }
.judete-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.judet-link { display: block; text-align: center; text-decoration: none; font-size: 13px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 7px 6px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease); }
.judet-link:hover { color: var(--midnight); border-color: var(--gold-deep); background: var(--paper); transform: translateY(-2px); }

/* grunge stamp */
.stamp.is-approved { margin: -80px -80px; display: inline-block; font-family: 'Courier', monospace; font-weight: 700;
  text-transform: uppercase; text-align: center; color: #000000; padding: 0.45rem 0.4rem;
  border: 0.45rem solid #644e4e; border-radius: 0; transform: rotate(-14deg); font-size: 2rem; line-height: 1.05;
  -webkit-mask-image: url(https://s.cdpn.io/8399/grunge.png); mask-image: url(https://s.cdpn.io/8399/grunge.png);
  -webkit-mask-size: 944px 604px; mask-size: 944px 604px;
  -webkit-mask-position: 13rem 6rem; mask-position: 13rem 6rem; mix-blend-mode: multiply; }

@media (max-width: 820px) {
  .harta-layout { flex-direction: column; gap: 36px; }
  .harta-wrap, .judete-grid { width: 100%; margin-top: 30px; }
  .judete-grid { grid-template-columns: repeat(4, 1fr); }
  .stamp.is-approved { margin: -90px -20px; }
}
@media (max-width: 480px) {
  .judete-grid { grid-template-columns: repeat(2, 1fr); }
  .harta-stamp { font-size: 24px; line-height: 24px; }
}

/* ── Skip link (accessibility, WCAG 2.4.1 Bypass Blocks) ──
   Visually hidden until focused, then pinned to the top-left so
   keyboard / screen-reader users can jump straight to <main id="main-content">. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  background: var(--midnight);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
