/* ============================================================
   IML TIMISOARA — Public site styles
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--c-primary-dark); }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
p  { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-primary);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--c-ink-soft);
  font-weight: 400;
  max-width: 60ch;
}

/* === Layout === */
.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }

/* === Top bar / header === */
.topbar {
  background: var(--c-ink);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-item svg { width: 14px; height: 14px; opacity: .7; }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 0;
  padding: 3px 8px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .03em;
}
.lang-switch button.active { background: var(--c-primary); color: #fff; }

.access-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === Main header === */
.header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-text .sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  position: relative;
}
.nav a:hover { background: var(--c-primary-50); color: var(--c-primary); }
.nav a.active { color: var(--c-primary); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: var(--c-primary) !important;
  color: #ffffff !important;
  border-color: var(--c-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.btn-primary svg { stroke: #ffffff; color: #ffffff; }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-50);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--c-bg-alt); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn svg { width: 16px; height: 16px; }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-9) 0;
}
.hero-content h1 {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--c-primary);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}
.hero-stat .num {
  font-family: var(--f-display);
  font-size: 2.25rem;
  color: var(--c-primary);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero-stat .lbl {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-50), var(--c-bg-alt));
  border: 1px solid var(--c-border);
}
.hero-visual .photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-text-subtle);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(10,92,77,.04) 20px 21px);
}
.hero-visual .photo-placeholder svg { width: 80px; height: 80px; opacity: .3; }

.hero-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--c-ink);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--c-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(42,136,112,.2);
}

.hero-info-card {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-4);
  max-width: 280px;
  box-shadow: var(--sh-3);
}
.hero-info-card .label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
  font-weight: 600;
}
.hero-info-card h4 {
  color: #fff;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 17px;
  margin: 6px 0 4px;
}
.hero-info-card p {
  font-size: 13px;
  opacity: .8;
  margin: 0;
  line-height: 1.4;
}

/* === Section header === */
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.sec-head h2 { margin-bottom: 0; max-width: 24ch; }
.sec-head .sec-meta { max-width: 36ch; color: var(--c-text-muted); }

/* === Services grid === */
.services {
  background: var(--c-bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card {
  padding: var(--sp-6);
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: background .3s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.service-card:nth-child(3n) { border-right: 0; }
.service-card:nth-last-child(-n+3) { border-bottom: 0; }
.service-card:hover {
  background: var(--c-primary-50);
}
.service-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-subtle);
  letter-spacing: .1em;
  margin-bottom: var(--sp-4);
}
.service-card .ico {
  width: 36px; height: 36px;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}
.service-card p {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}
.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 13px;
}
.service-card .arrow svg {
  width: 14px; height: 14px;
  transition: transform .3s;
}
.service-card:hover .arrow svg { transform: translateX(4px); }

/* === News === */
.news {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-5);
}
.news-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: all .2s;
}
.news-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.news-card.feature {
  grid-row: span 2;
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  padding: var(--sp-6);
}
.news-card.feature h3, .news-card.feature h4 { color: #fff; }
.news-card.feature p { color: rgba(255,255,255,.7); }
.news-card.feature .date { color: rgba(255,255,255,.5); }

.news-card .tag {
  display: inline-block;
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.news-card.feature .tag { background: var(--c-primary); color: #fff; }
.news-card .date {
  font-size: 12px;
  color: var(--c-text-muted);
  margin: var(--sp-3) 0 var(--sp-2);
  font-family: var(--f-mono);
}
.news-card h4 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.news-card.feature h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  margin: var(--sp-3) 0 var(--sp-3);
  flex-grow: 0;
}
.news-card.feature .feat-image {
  margin-top: auto;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.1);
}
.news-card p {
  font-size: 14px;
  color: var(--c-text-muted);
  margin: 0;
}

/* === Quick access strip === */
.quick {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-6) 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.quick h3 {
  color: #fff;
  font-family: var(--f-display);
  font-weight: 400;
  margin: 0;
  max-width: 22ch;
  font-size: 1.5rem;
  line-height: 1.2;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.quick-link {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .2s;
}
.quick-link:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-2px);
}
.quick-link .ico { width: 22px; height: 22px; opacity: .9; margin-bottom: 4px; }
.quick-link .ttl { font-weight: 600; font-size: 14px; }
.quick-link .sub { font-size: 12px; opacity: .7; }

/* === Useful links cards === */
.usefuls {
  background: var(--c-bg);
}
.usefuls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.useful-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: all .2s;
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.useful-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.useful-card .badge {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-primary-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--f-display);
  color: var(--c-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  border: 1px solid var(--c-primary-100);
}
.useful-card .body { flex-grow: 1; }
.useful-card h4 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.useful-card p {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.45;
}
.useful-card .url {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-primary);
  margin-top: 8px;
  display: block;
}

/* === Contact CTA section === */
.cta-band {
  background: var(--c-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--c-primary) 0%, transparent 60%);
  opacity: .25;
}
.cta-band .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-8);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  align-items: center;
}
.cta-band h2 { color: #fff; max-width: 18ch; font-weight: 400; }
.cta-band .lead { color: rgba(255,255,255,.75); }
.cta-band-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.cta-band-actions .btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-ink);
}
.cta-band-actions .btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}
.cta-band-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.cta-band-actions .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.06);
  color: #fff;
}

.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  backdrop-filter: blur(10px);
}
.contact-card h4 {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.contact-card .row {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: flex-start;
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row svg {
  width: 16px; height: 16px;
  color: var(--c-accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-card .row .label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.contact-card .row .value {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

/* === Footer === */
.footer {
  background: #0a1714;
  color: rgba(255,255,255,.7);
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h5 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 var(--sp-4);
}
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer .brand-text .name { color: #fff; }
.footer .brand-text .sub { color: rgba(255,255,255,.5); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* === ANPC badges (obligatoriu legislatia RO) === */
.footer-anpc {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: var(--sp-5) 0 var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.anpc-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.94);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform .2s, background .2s;
  line-height: 0;
}
.anpc-badge:hover { background: #fff; transform: translateY(-1px); }
.anpc-badge img { display: block; height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.anpc-fallback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #003a7e;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}
.anpc-fallback b { color: #d4181d; font-weight: 800; }
@media (max-width: 640px) {
  .anpc-badge img { height: 40px; }
}

/* === Page header (for sub-pages) === */
.page-head {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-7) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.page-head .breadcrumb a { color: var(--c-text-muted); }
.page-head .breadcrumb .sep { color: var(--c-text-subtle); }
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-head .lead { margin-top: var(--sp-4); }

/* === Forms === */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-50);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-help { font-size: 12px; color: var(--c-text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* === Cookie banner — modern, accept/decline === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--c-surface);
  color: var(--c-ink);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 60px rgba(15,31,27,.28), 0 4px 12px rgba(15,31,27,.1);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  animation: cookieSlideUp .4s cubic-bezier(.2,.9,.3,1.2);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none !important; }
@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cb-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cookie-banner .cb-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.cookie-banner .cb-text { flex: 1; min-width: 0; }
.cookie-banner .cb-title {
  display: block;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.cookie-banner .cb-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.cookie-banner .cb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-banner .cb-btn {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
  display: inline-flex;
  align-items: center;
}
.cookie-banner .cb-link {
  color: var(--c-text-muted);
  border-color: transparent;
}
.cookie-banner .cb-link:hover { color: var(--c-primary); }
.cookie-banner .cb-decline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.cookie-banner .cb-decline:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-text-muted);
}
.cookie-banner .cb-accept {
  background: var(--c-primary);
  color: #fff !important;
  border-color: var(--c-primary);
}
.cookie-banner .cb-accept:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10,92,77,.3);
}
html[data-mode="dark"] .cookie-banner {
  background: #131a26;
  border-color: rgba(255,255,255,.08);
}

/* Detalii panel cu categorii + toggle-uri */
.cookie-banner.cb-expanded { max-width: 680px; }
.cookie-banner .cb-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  margin-top: 2px;
  max-height: 360px;
  overflow-y: auto;
}
.cookie-banner .cb-details[hidden] { display: none; }
.cookie-banner .cb-cat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 12px;
  background: var(--c-bg-alt);
  border-radius: 10px;
  align-items: start;
}
.cookie-banner .cb-cat-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.cookie-banner .cb-cat-info p {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-text-muted);
}
.cookie-banner .cb-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(10,92,77,.12);
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cookie-banner .cb-cat-tag-opt {
  background: rgba(220,160,40,.16);
  color: #b07a10;
}
.cookie-banner .cb-cat-tag-off {
  background: rgba(120,130,140,.16);
  color: var(--c-text-muted);
}

/* Toggle switch */
.cookie-banner .cb-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
  margin-top: 2px;
}
.cookie-banner .cb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-banner .cb-slider {
  position: absolute;
  inset: 0;
  background: #cdd3d8;
  border-radius: 999px;
  transition: background .2s;
}
.cookie-banner .cb-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-banner .cb-switch input:checked + .cb-slider { background: var(--c-primary); }
.cookie-banner .cb-switch input:checked + .cb-slider::before { transform: translateX(18px); }
.cookie-banner .cb-switch.is-locked { cursor: not-allowed; opacity: .85; }
.cookie-banner .cb-switch.is-locked .cb-slider::before { box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.cookie-banner .cb-switch input:disabled + .cb-slider { opacity: .65; }

html[data-mode="dark"] .cookie-banner .cb-cat { background: rgba(255,255,255,.04); }
html[data-mode="dark"] .cookie-banner .cb-slider { background: #3a4250; }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .cookie-banner .cb-actions { justify-content: stretch; }
  .cookie-banner .cb-btn { flex: 1; justify-content: center; min-width: 0; font-size: 12.5px; padding: 9px 10px; }
  .cookie-banner .cb-icon { font-size: 26px; }
  .cookie-banner .cb-cat { padding: 10px; gap: 10px; }
  .cookie-banner .cb-details { max-height: 50vh; }
}

/* === Search overlay === */
.search-trigger {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 13px;
  cursor: pointer;
  min-width: 180px;
}
.search-trigger:hover { border-color: var(--c-primary); color: var(--c-primary); }
.search-trigger svg { width: 14px; height: 14px; }
.search-trigger .kbd {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--c-text-subtle);
}

/* === Responsive === */
/* === Anti-flash logo: ascunde SVG fallback inainte de aplicare CMS === */
html[data-cms-logo="1"] .brand-mark svg { display: none; }

/* === Anti-overflow horizontal === */
/* Drawer-ul de nav + alte fixed positions pot extinde lateral pe mobile.
   Forțam clipping orizontal global ca să nu existe scroll lateral nedorit. */
html, body { overflow-x: hidden; max-width: 100vw; }

/* === Force visibility in mobile drawer (nav children) === */
@media (max-width: 1100px) {
  /* Force visibility on EVERY descendant. Cateva CSS-uri din pagini puneau display:none */
  .nav { visibility: visible !important; }
  .nav > * { visibility: visible !important; opacity: 1 !important; }
  .nav a {
    display: block !important;
    color: var(--c-text) !important;
    font-size: 16px !important;
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
  }
  .nav a:hover { background: var(--c-primary-50); color: var(--c-primary) !important; }
  .nav .nav-cta { display: flex !important; flex-direction: column; gap: 10px; }
  .nav .nav-cta .btn { width: 100%; }
  .nav .nav-close-mobile { display: flex !important; }
  /* Asigura ca elementele drawer-ului sunt sub butonul de inchidere si nu-l acopera */
  .nav a, .nav .nav-cta { width: 100%; box-sizing: border-box; }
}

/* === Anti-icon-uri uriase === */
/* SVG-uri fara width/height explicit ar trebui sa fie cel mult cat container-ul,
   nu cat viewport-ul. Forteaza si imaginile sa nu depaseasca latimea elementului. */
img { max-width: 100%; height: auto; }
svg { max-width: 100%; max-height: 100%; }

/* Iconite folosite frecvent — dimensiuni explicite ca sa nu mai apara uriase */
.doc-ico svg { width: 22px; height: 22px; }
.doc-arrow svg { width: 18px; height: 18px; }
.lab-icon svg { width: 28px; height: 28px; }
.career-card svg, .career-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-card svg, .info-block svg { width: 18px; height: 18px; flex-shrink: 0; }
.quick-link svg { width: 22px; height: 22px; }
.topbar-item svg { width: 14px; height: 14px; }
.row svg { width: 18px; height: 18px; }
.btn svg, .btn-mini svg { width: 16px; height: 16px; }
.eyebrow svg, .pill svg { width: 12px; height: 12px; }
.access-btn svg { width: 12px; height: 12px; }
.hero-badge svg, .hero-info-card svg { width: 14px; height: 14px; }
.feat-image svg, .news-card svg { max-width: 200px; max-height: 200px; }

/* === Header mai inalt cand logo include text === */
.header .container { min-height: 96px; transition: min-height .2s ease; }

/* === Hamburger button (vizibil doar pe mobile) === */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 101;
}
.nav-toggle .nt-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-open .nav-toggle .nt-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .nt-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .nt-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Close button vizibil doar in drawer mobile — în header-band sus dreapta */
.nav-close-mobile {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--c-text);
  z-index: 10;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15,31,27,.06);
  transition: background .15s, color .15s, transform .15s;
}
.nav-close-mobile svg { width: 18px; height: 18px; }
.nav-close-mobile:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  transform: rotate(90deg);
}

/* Backdrop ascuns by default — above header (50), below drawer (1000) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 27, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 999;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* === Mobile (≤960px) === */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { border-right: 1px solid var(--c-border) !important; }
  .service-card:nth-child(2n) { border-right: 0 !important; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.feature { grid-row: span 1; grid-column: span 2; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .usefuls-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }

  /* Hamburger vizibil */
  .nav-toggle { display: inline-flex; }
  .nav-close-mobile { display: inline-flex; }

  /* Nav devine drawer din dreapta — full height, lățime confortabilă pe orice ecran.
     Inchis: in afara viewportului via translate3d(100%,0,0). Deschis: translate3d(0,0,0). */
  .nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 420px);
    height: 100vh;
    height: 100dvh;
    background: var(--c-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    transition: transform .3s cubic-bezier(.2,.9,.3,1), box-shadow .3s ease;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    box-sizing: border-box;
  }
  .nav-open .nav {
    transform: translate3d(0, 0, 0);
    box-shadow: -16px 0 48px rgba(15,31,27,.22);
  }
  @media (max-width: 480px) {
    .nav { width: 100vw; max-width: 100vw; }
  }

  /* FIX CRITIC: backdrop-filter pe .header creează un containing block care prinde position:fixed
     al drawer-ului. Pe mobile (când .nav e drawer), îl dezactivăm ca să se ancoreze de viewport. */
  .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* Topbar (dark band cu telefon/email) — ascuns când drawer deschis, ca să nu acopere headerul */
  html.nav-open .topbar { visibility: hidden; }

  /* Padding-top reserved pentru close button + section label */
  .nav {
    padding-top: 64px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  }
  /* Eticheta secțiune "MENIU" — sub close button */
  .nav::before {
    content: 'MENIU NAVIGARE';
    display: block;
    padding: 0 24px 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  /* Link-uri navigare — card-style ca admin */
  .nav a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-size: 15px !important;
    font-weight: 500;
    padding: 14px 24px !important;
    margin: 0 12px;
    border-bottom: 0 !important;
    border-radius: 10px !important;
    color: var(--c-text) !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: background .15s, color .15s, padding-left .15s;
    position: relative;
  }
  /* Chevron decorativ după link */
  .nav a::after {
    content: '›';
    display: inline !important;
    font-size: 22px;
    line-height: 1;
    color: var(--c-text-muted);
    opacity: 0;
    transition: opacity .15s, transform .15s;
    position: static !important;
  }
  .nav a:hover {
    background: var(--c-bg-alt) !important;
    color: var(--c-primary) !important;
    padding-left: 28px !important;
  }
  .nav a:hover::after {
    opacity: 1;
    color: var(--c-primary);
    transform: translateX(4px);
  }
  .nav a.active {
    background: var(--c-primary) !important;
    color: #fff !important;
  }
  .nav a.active::after {
    opacity: 1;
    color: #fff;
    display: inline !important;
  }

  /* CTA group la baza drawer-ului — separator + butoane full-width */
  .nav .nav-cta {
    margin: auto 12px 16px !important;
    padding: 16px 12px 0 !important;
    border-top: 1px solid var(--c-border) !important;
    border-left: 0 !important;
    flex-direction: column !important;
    gap: 10px !important;
    display: flex !important;
  }
  .nav .nav-cta .search-trigger {
    width: 100%;
    justify-content: center;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 11px 16px;
  }
  .nav .nav-cta .btn {
    width: 100%;
    padding: 13px 20px;
    font-weight: 600;
  }

  /* Body lock cand drawer e deschis */
  html.nav-open, html.nav-open body { overflow: hidden; }
}

@media (max-width: 640px) {
  .header .container { min-height: 76px; }
  .services-grid, .news-grid, .usefuls-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-card.feature { grid-column: span 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}

/* ============================================================
   RESPONSIVE — fix-uri din audit complet (toate paginile)
   ============================================================ */

/* iOS Safari zoom prevention — orice input cu font < 16px declanseaza zoom */
@media (max-width: 640px) {
  .field input, .field select, .field textarea,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="date"], input[type="number"], input[type="search"],
  select, textarea {
    font-size: 16px;
  }
}

/* Container padding pe ecrane foarte mici */
@media (max-width: 480px) {
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }
}

/* Topbar — pe mobile pastram doar telefon + email scrollabil, ascundem programul */
@media (max-width: 640px) {
  .topbar { display: block; padding: 6px 0; font-size: 11px; }
  .topbar .container { display: flex; flex-wrap: wrap; gap: 6px 12px; row-gap: 4px; }
  .topbar-left, .topbar-right { gap: 8px; flex-wrap: wrap; }
  .topbar-item { font-size: 11px; }
  .topbar-item:nth-child(3) { display: none; } /* program — economisim spatiu */
  .mode-toggle span, .access-btn span { display: none; }
}

/* Drawer mobile foarte mic */
@media (max-width: 360px) {
  .nav { min-width: 0; width: 92vw; padding-left: 16px; padding-right: 16px; }
  .nav-cta .search-trigger { min-width: 0; width: 100%; }
}

/* Footer */
@media (max-width: 480px) {
  .footer { padding: 32px 0 20px; }
  .footer-grid { gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom > div:last-child { flex-wrap: wrap; gap: 12px !important; }
}
@media (max-width: 380px) {
  .footer-anpc { gap: 10px; }
  .anpc-badge img { height: 34px; max-width: 130px; }
}

/* Tables: prevent overflow, force horizontal scroll, indicator vizual */
.table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .tbl { font-size: 13px; min-width: 560px; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .table-wrap { box-shadow: inset -8px 0 8px -8px rgba(0,0,0,.15); }
}
.tbl .pill { white-space: nowrap; display: inline-block; }

/* Pills/badges: nu se rup, ellipsis daca prea lungi */
.pill { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; vertical-align: middle; }

/* Filtre evenimente — buton pill clickabil */
.events-filters .pill {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 6px 14px;
  transition: all .2s;
}
.events-filters .pill:hover { border-color: var(--c-primary); color: var(--c-primary); }
.events-filters .pill.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
@media (max-width: 480px) {
  .events-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .events-filters .pill { flex-shrink: 0; }
}

/* Doc-item — word-break pe nume PDF lungi */
.doc-item .doc-title, .doc-item .doc-meta { overflow-wrap: anywhere; word-break: break-word; }

/* IBAN si valori mono — nu rup layout-ul */
.info-block .value[data-cms="site_iban"], .info-block code { word-break: break-all; overflow-wrap: anywhere; }

/* Iframe map — max-width */
.map-frame iframe { max-width: 100%; display: block; }

/* Field-row pe mobile mic */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr !important; }
}

/* Hero stats — single column pe ecrane foarte mici */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr !important; gap: var(--sp-3); }
  .hero-stat .num { font-size: 1.75rem; }
  .news-card.feature h3 { font-size: 1.2rem; }
  .news-card.feature { padding: 20px; }
}

/* Hero badge + info-card — static pe mobile sa nu se suprapuna */
@media (max-width: 640px) {
  .hero-info-card, .hero-badge { position: static !important; max-width: 100% !important; margin: 12px 0 !important; }
}

/* iso-badge — pe mobile ascuns sau mic ca sa nu acopere cookie banner */
@media (max-width: 480px) { .iso-badge { display: none; } }
@media (min-width: 481px) and (max-width: 960px) {
  .iso-badge { width: 160px; padding: 10px; bottom: 16px; left: 16px; }
  .iso-badge .iso-sub { display: none; }
}

/* Career-card pe mobile — vertical, buton full-width */
@media (max-width: 640px) {
  .career-card { grid-template-columns: 1fr !important; }
  .career-card .career-meta { flex-direction: column; gap: 6px; }
  .career-card .btn { width: 100%; }
}

/* News-card overflow */
@media (max-width: 640px) {
  .news-card { padding: 16px; }
}

/* Useful-card */
@media (max-width: 480px) {
  .useful-card { padding: 16px; gap: 12px; }
  .useful-card .badge { width: 44px; height: 44px; font-size: 12px; }
  .useful-card .url { word-break: break-all; }
}
.useful-card.disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}
.useful-card.disabled::after {
  content: 'indisponibil';
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--c-bg-alt); color: var(--c-text-muted);
  padding: 2px 6px; border-radius: 3px;
}
.useful-card { position: relative; }

/* ============================================================
   MODAL EVENT — dialog pentru detalii eveniment
   ============================================================ */
.event-modal {
  position: fixed; inset: 0;
  background: rgba(15, 31, 27, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.event-modal.open { opacity: 1; visibility: visible; }
.event-modal__dialog {
  background: var(--c-surface);
  color: var(--c-text);
  max-width: 720px; width: 100%; max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease;
}
.event-modal.open .event-modal__dialog { transform: translateY(0) scale(1); }
.event-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9); color: var(--c-ink);
  border: 0; border-radius: 50%;
  cursor: pointer; z-index: 5;
  display: grid; place-items: center;
  font-size: 18px;
}
.event-modal__cover {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: var(--c-primary-50) center/cover no-repeat;
  flex-shrink: 0;
}
.event-modal__cover.no-image {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}
.event-modal__cover.no-image::after {
  content: '📰'; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 64px; opacity: .4;
}
.event-modal__body {
  padding: 28px;
  overflow-y: auto;
}
.event-modal__meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--c-text-muted);
  margin-bottom: 12px;
}
.event-modal__meta .pill { background: var(--c-primary-50); color: var(--c-primary); border: 0; }
.event-modal h2.event-modal__title {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.25;
}
.event-modal__excerpt { font-size: 1rem; color: var(--c-text-muted); margin: 0 0 18px; }
.event-modal__body__text { white-space: pre-wrap; line-height: 1.65; color: var(--c-text); font-size: 15px; }
html.event-modal-open, html.event-modal-open body { overflow: hidden; }
@media (max-width: 640px) {
  .event-modal { padding: 0; }
  .event-modal__dialog { max-height: 100vh; height: 100vh; border-radius: 0; }
  .event-modal__body { padding: 20px; }
  .event-modal h2.event-modal__title { font-size: 1.3rem; }
}
html[data-mode="dark"] .event-modal__close { background: rgba(255,255,255,.92); }

/* Form file inputs */
input[type="file"] { max-width: 100%; font-size: 14px; }
@media (max-width: 480px) {
  input[type="file"]::-webkit-file-upload-button { padding: 8px 10px; font-size: 12px; }
}

/* Lab-block — meta sticky doar pe desktop */
@media (max-width: 960px) {
  .lab-block .lab-meta { position: static; }
  .lab-block ul, .lab-block ul li { overflow-wrap: anywhere; hyphens: auto; }
}

/* Expert tabel — min-width pentru a forta scroll */
@media (max-width: 640px) {
  .tbl.experts { min-width: 720px; }
  .expert-card h4 { overflow-wrap: anywhere; font-size: 1rem; }
}

/* Submit buttons cu text lung — wrap normal */
form button[type="submit"] { white-space: normal; line-height: 1.3; }

/* Prose blockquote */
.prose blockquote { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .prose blockquote { padding: 12px 16px; font-size: 1.05rem; }
  .prose > div[style*="padding:14px"], .prose > div[style*="padding:24px"] {
    padding: 14px 16px !important;
  }
}
