/* =========================================================
   style.css — stilul site-ului de prezentare
   Importat în templates/base.html prin {% static 'css/style.css' %}
   ========================================================= */

/* ---------- 1. Variabile ----------
   ATENȚIE: valorile de mai jos sunt doar rezervele de siguranță.
   Ce se vede pe site vine din /admin/ → Setări site (blocul <style> din base.html
   suprascrie aceste valori). Modifică din admin, nu de aici.               */
:root {
  --brand: #1f5f4f;
  --brand-dark: #143f34;
  --brand-soft: #e8f2ef;
  --text: #14211d;
  --muted: #5d6b66;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --border: #e2e8e5;
  --topbar-bg: #143f34;
  --topbar-text: #ffffff;
  --topbar-size: 14px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 29, .06), 0 8px 24px rgba(20, 33, 29, .06);
  --max: 1100px;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-titluri: var(--font-text);
  --font-size: 16px;
  --line-height: 1.65;
  --header-position: sticky;
}

/* ---------- 2. Reset minim ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.2rem; }
img { max-width: 100%; display: block; }

html { scroll-behavior: smooth; }

/* Culoarea textului selectat cu mouse-ul, pe întregul site. */
::selection {
  color: #fff;
  background: var(--brand);
}
::-moz-selection {
  color: #fff;
  background: var(--brand);
}

body {
  font-family: var(--font-text);
  font-size: var(--font-size);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-titluri); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: #b3261e; display: block; }

/* ---------- 3. Butoane ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: .8rem 1.5rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .45rem 1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }

.link-arrow::after { content: " →"; }

/* ---------- 3b. Bara de sus (top bar) — 4 coloane, editabile din /admin/ ---------- */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: var(--topbar-size);
}
.topbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem 1.25rem;
  padding-block: .6rem;
}
.topbar-col { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar-col a, .topbar-col span { color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-col a:hover { text-decoration: underline; }
.topbar .icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; opacity: .85; }

/* dacă sunt mai puține sau mai multe de 4 coloane, se aranjează singure */
.topbar-inner:has(.topbar-col:nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- 4. Header + navigație ---------- */
.site-header {
  position: var(--header-position); top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo:has(.logo-img) { max-width: none; min-width: 0; }
.logo-img {
  display: block;
  height: var(--logo-height, 54px);
  width: auto;
  max-width: min(420px, 100%);
  object-fit: contain;
  object-position: left center;
}
.logo-img-sticky { display: none; }
/* Paginile interioare au header alb din start: folosesc direct logo-ul cu text negru. */
body:not(.are-hero-cu-meniu) .logo-img-principal:has(+ .logo-img-sticky) { display: none; }
body:not(.are-hero-cu-meniu) .logo-img-sticky { display: block; }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
}
.header-inner .nav { justify-self: center; }
.logo {
  font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  color: var(--text); letter-spacing: -.02em;
  max-width: 15ch;           /* numele lung se rupe pe două rânduri, nu împinge meniul */
}
.logo:hover { text-decoration: none; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  color: var(--text);
  font-family: var(--menu-font, var(--font-text));
  font-size: var(--menu-size, 16px);
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); }
.nav a.btn { color: #fff; }

/* meniu hamburger (doar pe mobil), fără JavaScript */
.nav-burger { display: none; cursor: pointer; width: 26px; height: 20px; position: relative; }
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text); border-radius: 2px;
}
.nav-burger::before { top: 0; }
.nav-burger span { top: 9px; }
.nav-burger::after { bottom: 0; }

/* ---------- 4b. Telefon în header ---------- */
.header-telefon { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.header-telefon:hover { text-decoration: none; }
.header-telefon-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); flex: 0 0 auto;
}
.header-telefon-icon .icon { width: 20px; height: 20px; }
.header-telefon-text { display: flex; flex-direction: column; line-height: 1.25; }
.header-telefon-text small { color: var(--muted); font-size: .82rem; }
.header-telefon-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.header-telefon:hover .header-telefon-icon { background: var(--brand); color: #fff; }

/* ---------- 5. Hero ----------
   Culorile, înălțimea și fontul vin din /admin/ → Pagini, prin variabilele
   --hero-bg / --hero-fg / --hero-min / --hero-h1 / --hero-font.            */
.hero {
  --hero-bg: #1d3244;
  --hero-fg: #ffffff;
  --hero-min: 520px;
  --hero-h1: 56px;
  background: var(--hero-bg);
  color: var(--hero-fg);
}
.hero-continut { max-width: 620px; }
.hero h1 {
  font-family: var(--hero-font, var(--font-titluri));
  font-size: clamp(2rem, 4.4vw, var(--hero-h1));
  color: var(--hero-h1-color, inherit);
}
.are-hero-cu-meniu .hero h1 { font-weight: 400; }
.hero .hero-subtitlu {
  font-family: var(--hero-h2-font, var(--font-text));
  font-size: clamp(1.1rem, 2vw, var(--hero-h2));
  font-weight: 500;
  margin-top: .75rem;
  opacity: .92;
  color: var(--hero-h2-color, inherit);
}
.hero .lead {
  color: var(--hero-p-color, inherit);
  font-family: var(--hero-p-font, var(--font-text));
  font-size: clamp(1rem, 1.6vw, var(--hero-p));
  opacity: .92;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .eyebrow { color: var(--hero-eyebrow, inherit); }
.hero .btn-hero {
  background: transparent;
  color: var(--hero-btn-color, #fff);
  border-color: var(--hero-btn-color, #fff);
  border-radius: 1px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero .btn-hero:hover { background: var(--hero-btn-color, #fff); color: var(--hero-bg); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--brand);
  margin-bottom: .75rem;
}
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 1rem; }

/* varianta 1: imagine în stânga, text în dreapta */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--hero-min); }
/* Imaginea e un <img> real (are alt, o vede Google), dar arată ca un fundal. */
.hero-split .hero-media { position: relative; min-height: 320px; overflow: hidden; }
.hero-split .hero-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.hero-split .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--hero-overlay-1, #0c0e10), var(--hero-overlay-2, #a67516));
  opacity: var(--hero-overlay, 0%);
  pointer-events: none;
}
.hero-split .hero-panel { display: flex; align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem); }
.hero-split:not(:has(.hero-media)) { grid-template-columns: 1fr; }

/* varianta 2: banner pe toată lățimea */
.hero-banner { min-height: var(--hero-min); display: flex; }
.hero-banner .hero-panel {
  flex: 1; display: flex; align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}
.hero-banner .hero-continut {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
/* Compoziție 50/50: conținut în stânga, imagine vizibilă în dreapta. */
.hero-banner .hero-continut > * { max-width: min(560px, 48%); }

/* Pe prima pagină, bannerul începe din partea de sus și meniul stă peste imagine. */
.are-hero-cu-meniu .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .48), transparent);
  border-bottom: 0;
  backdrop-filter: none;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.are-hero-cu-meniu .site-header .logo,
.are-hero-cu-meniu .site-header .nav a:not(.btn),
.are-hero-cu-meniu .site-header .header-telefon { color: #fff; }
.are-hero-cu-meniu .site-header .header-telefon-text small { color: rgba(255,255,255,.78); }
.are-hero-cu-meniu .site-header .nav-burger::before,
.are-hero-cu-meniu .site-header .nav-burger::after,
.are-hero-cu-meniu .site-header .nav-burger span { background: #fff; }
.are-hero-cu-meniu .hero-banner .hero-panel { padding-top: calc(84px + clamp(2.5rem, 5vw, 4rem)); }
.are-hero-cu-meniu .site-header.header-scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 5px 22px rgba(20, 25, 30, .08);
  backdrop-filter: blur(10px);
}
.are-hero-cu-meniu .site-header.header-scrolled .logo,
.are-hero-cu-meniu .site-header.header-scrolled .nav a:not(.btn),
.are-hero-cu-meniu .site-header.header-scrolled .header-telefon { color: var(--text); }
.are-hero-cu-meniu .site-header.header-scrolled .header-telefon-text small { color: var(--muted); }
.are-hero-cu-meniu .site-header.header-scrolled .nav-burger::before,
.are-hero-cu-meniu .site-header.header-scrolled .nav-burger::after,
.are-hero-cu-meniu .site-header.header-scrolled .nav-burger span { background: var(--text); }
.site-header.header-scrolled .logo-img-principal:has(+ .logo-img-sticky) { display: none; }
.site-header.header-scrolled .logo-img-sticky { display: block; }

/* Imaginea de fundal a bannerului: <img> real (indexabil, cu alt) + văl colorat peste. */
.hero-panel-imagine { position: relative; overflow: hidden; }
.hero-panel-imagine .hero-fundal {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-panel-imagine::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, var(--hero-overlay-1, #0c0e10), var(--hero-overlay-2, #a67516));
  opacity: var(--hero-overlay, 0%);
}
.hero-panel-imagine .hero-continut { position: relative; z-index: 2; }

/* varianta 3: fără imagine */
.hero-simplu { min-height: auto; }
.hero-simplu .hero-panel { padding: clamp(2.5rem, 5vw, 4rem) 1.25rem; }
.hero-simplu .hero-continut { max-width: var(--max); margin-inline: auto; }

/* ---------- 6. Secțiuni ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: .5rem; }

/* Introducerea serviciilor de pe prima pagină, lipită firesc după hero. */
.servicii-home { padding-top: clamp(2.25rem, 4vw, 3.5rem); }
.servicii-home { scroll-margin-top: 96px; }
.servicii-intro {
  max-width: 1100px;
  margin: 0;
  text-align: left;
}
.servicii-intro .servicii-eyebrow {
  color: var(--brand);
  font-family: var(--font-text);
  font-size: clamp(.68rem, .85vw, .8rem);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}
.servicii-intro .servicii-titlu {
  margin-top: .45rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
}
.servicii-intro p {
  max-width: 1050px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--font-titluri);
  font-size: clamp(.9rem, 1.1vw, 1.02rem);
  font-weight: 400;
  line-height: 1.75;
}
.servicii-grid {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  gap: clamp(1.8rem, 3vw, 2.8rem) clamp(2rem, 4vw, 4rem);
}
.servicii-grid .card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(.5rem, 1vw, 1rem) 0;
}
.servicii-grid .card .service-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  background: #f5f6f7;
}
.servicii-grid .card:hover {
  transform: none;
  box-shadow: none;
}

.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0; }

/* ---------- 7. Grid + carduri ---------- */
.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }  /* 3 pe rând — 6 servicii = 2 rânduri */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card .service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 0 1.15rem;
  border-radius: 0;
  color: var(--brand-dark);
  background: #eef0f2;
}
.card .service-icon .icon { width: 25px; height: 25px; }
.servicii-grid .card { text-align: left; }
.servicii-grid .card h3,
.card-service h3 {
  font-family: var(--font-titluri);
  font-size: clamp(.80rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
}
.servicii-grid .card h3 { max-width: 255px; color: #050505; }
.servicii-grid .card h3,
.card-service h3 { margin-bottom: 0; }
.card h3 { margin-bottom: .5rem; }
.card-service h3 { margin-bottom: 0; }
.card p { color: var(--muted); }
.card-service:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,33,29,.10); }
.card-img { border-radius: 8px; margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.grid + .center { margin-top: 2.5rem; }
.empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- 8. Statistici ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat-label { color: var(--muted); }

/* ---------- 9. CTA ---------- */
.cta { text-align: center; max-width: 620px; }
.cta .btn { margin-top: 1.5rem; }

/* ---------- 10. Text lung (pagina Despre) ---------- */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose > *:first-child { margin-top: 0; }
.steps li { margin-bottom: .5rem; }

/* ---------- Pagina Acte necesare ---------- */
.acte-documente { padding-top: clamp(4rem, 8vw, 7rem); }
.acte-antet { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.acte-antet h2 { font-size: clamp(2.2rem, 5vw, 2.8rem); }
.acte-antet > p:last-child { margin-top: 1rem; color: var(--muted); }
.acte-carduri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.acte-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 470px;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  background: #f1f1f1;
  text-align: center;
}
.acte-card h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; }
.acte-descarca { margin-top: 2.25rem; font-size: .78rem; font-weight: 800; letter-spacing: .2em; }
.document-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  margin-top: 1.6rem;
  color: #2f5fa4;
  font-size: .8rem;
  font-weight: 700;
}
.document-formate { display: flex; align-items: flex-start; justify-content: center; gap: clamp(2rem, 5vw, 4rem); }
.document-download:hover { text-decoration: none; transform: translateY(-2px); }
.document-word {
  display: grid;
  place-items: center;
  width: 54px;
  height: 68px;
  background: #2f5fa4;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.document-download-pdf { color: #d92920; }
.document-pdf {
  display: grid;
  place-items: center;
  width: 54px;
  height: 68px;
  background: #ed1c16;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.acte-link-intern {
  margin-top: auto;
  padding-top: 2.25rem;
  color: #315f9e;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
}
.acte-link-intern:hover { color: var(--brand); text-decoration: none; }
.acte-informatii { background: var(--bg-alt); }
.acte-prose {
  max-width: 920px;
  display: flex;
  flex-direction: column;
}
/* Ordinea informațiilor urmează ordinea cardurilor de descărcare. */
#cererea-de-executare { order: 1; border-top: 0; }
#cererea-de-notificare { order: 2; }
#participarea-la-licitatie { order: 3; border-top: 1px solid var(--border); }
.acte-sectiune { padding: clamp(3rem, 7vw, 6rem) 0; scroll-margin-top: 110px; }
.acte-sectiune + .acte-sectiune { border-top: 1px solid var(--border); }
.acte-sectiune h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.acte-sectiune h3 { margin-bottom: .75rem; }
.acte-sectiune p, .acte-sectiune ul, .acte-sectiune ol { margin-bottom: 1.2rem; }
.acte-sectiune li { margin-bottom: .55rem; }
.acte-nota { margin: 2rem 0; padding: 1.5rem; border-left: 4px solid var(--brand); background: var(--bg); }
.acte-nota ul { margin-bottom: 0; }
.acte-coloane { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.acte-coloane > div { padding: 1.5rem; background: var(--bg); border-top: 3px solid var(--brand); }
.acte-avertisment { padding: 1.25rem 1.5rem; background: #fff3f0; border-left: 4px solid #a33a2b; color: #70271d; font-weight: 700; }

blockquote {
  margin: 2rem 0; padding: 1rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
}
.bloc-imagine { margin: 2rem 0; }
.bloc-imagine img { border-radius: var(--radius); width: 100%; }
.bloc-imagine figcaption { margin-top: .5rem; font-size: .9rem; }
.separator { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* bloc de descărcat (formulare, modele de cerere) */
.bloc-fisier { margin: 1.25rem 0 1.75rem; }
.bloc-fisier a {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .8rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-alt); color: var(--brand); font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.bloc-fisier a:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); }
.bloc-fisier .icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* listă de documente (legislație, formulare) */
.lista-fisiere { list-style: none; padding: 0; margin: 1rem 0 1.75rem; }
.lista-fisiere li { border-bottom: 1px solid var(--border); }
.lista-fisiere li:first-child { border-top: 1px solid var(--border); }
.lista-fisiere a {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem .25rem;
  color: var(--text); line-height: 1.5;
}
.lista-fisiere a:hover { text-decoration: none; color: var(--brand); background: var(--bg-alt); }
.lista-fisiere .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .2rem; color: var(--brand); }

/* ---------- Pagina Licitații ---------- */
.licitatii-start { padding: 88px 0 64px; background: #f5f6f8; }
.licitatii-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.licitatii-intro h2, .licitatii-copy h2 { color: #102236; font-family: var(--font-titluri); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin: 8px 0 18px; }
.licitatii-intro > p:last-child { color: #596574; font-size: 18px; line-height: 1.75; }
.licitatii-start .eyebrow, .licitatii-copy .eyebrow { color: #b47b16; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.licitatii-actiuni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.licitatii-actiune { display: flex; align-items: center; gap: 18px; min-height: 110px; padding: 24px 28px; color: #102236; background: #fff; border: 1px solid #e2e5e9; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.licitatii-actiune:hover { transform: translateY(-3px); border-color: #c89127; box-shadow: 0 16px 38px rgba(12,31,52,.09); }
.licitatii-actiune-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; color: #d29a2e; border: 1px solid rgba(210,154,46,.65); font-size: 25px; }
.licitatii-actiune strong, .licitatii-actiune small { display: block; }
.licitatii-actiune strong { font-family: var(--font-titluri); font-size: 20px; line-height: 1.25; }
.licitatii-actiune small { margin-top: 7px; color: #748090; font-size: 13px; }
.licitatii-nav { display: flex; justify-content: center; gap: 34px; margin-top: 42px; }
.licitatii-nav a { color: #102236; font-weight: 700; text-decoration: none; border-bottom: 1px solid #c89127; padding-bottom: 5px; }
.licitatii-categorie { padding: 105px 0; scroll-margin-top: 110px; }
.licitatii-categorie-alt { background: #f5f6f8; }
.licitatii-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: clamp(50px, 7vw, 110px); align-items: start; }
.licitatii-layout-reverse .licitatii-visual { order: 2; }
.licitatii-visual { position: sticky; top: 120px; }
.licitatii-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.licitatii-visual-label { display: flex; align-items: center; gap: 14px; width: calc(100% - 28px); margin: -34px 14px 0; padding: 17px 20px; position: relative; color: #fff; background: #102236; font-family: var(--font-titluri); font-size: 19px; }
.licitatii-visual-label span { color: #d6a23a; font: 700 13px var(--font-text); letter-spacing: .15em; }
.licitatii-pasi { margin-top: 34px; border-top: 1px solid #d9dee4; }
.licitatii-pas { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid #d9dee4; }
.licitatii-pas > span { color: #b47b16; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding-top: 5px; }
.licitatii-pas p { margin: 0; color: #465363; font-size: 16px; line-height: 1.75; }
@media (max-width: 820px) {
  .licitatii-start { padding: 60px 0 48px; }
  .licitatii-actiuni, .licitatii-layout { grid-template-columns: 1fr; }
  .licitatii-nav { align-items: center; flex-direction: column; gap: 16px; }
  .licitatii-categorie { padding: 70px 0; }
  .licitatii-layout { gap: 48px; }
  .licitatii-layout-reverse .licitatii-visual { order: 0; }
  .licitatii-visual { position: static; }
  .licitatii-visual img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .licitatii-actiune { padding: 20px 18px; }
  .licitatii-intro h2, .licitatii-copy h2 { font-size: 34px; }
  .licitatii-pas { grid-template-columns: 34px 1fr; gap: 10px; }
}

/* ---------- Pagina Legislație ---------- */
.legislatie-start { padding: 84px 0 62px; background: #f5f6f8; }
.legislatie-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.legislatie-intro .eyebrow, .legislatie-aside .eyebrow { color: #b47b16; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.legislatie-intro h2, .legislatie-aside h2 { color: #102236; font-family: var(--font-titluri); font-size: clamp(36px, 4vw, 54px); line-height: 1.08; margin: 8px 0 18px; }
.legislatie-intro > p:last-child { color: #596574; font-size: 18px; line-height: 1.7; }
.legislatie-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: #102236; }
.legislatie-nav a { min-height: 106px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; color: #fff; text-align: center; text-decoration: none; border-right: 1px solid rgba(210,154,46,.35); transition: background .2s ease; }
.legislatie-nav a:last-child { border-right: 0; }
.legislatie-nav a:hover { background: #193650; }
.legislatie-nav a span { color: #d29a2e; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.legislatie-biblioteca { padding: 105px 0; }
.legislatie-layout { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.5fr); gap: clamp(55px, 8vw, 120px); align-items: start; }
.legislatie-aside { position: sticky; top: 125px; }
.legislatie-aside h2 { font-size: clamp(34px, 3.5vw, 48px); }
.legislatie-aside > p:not(.eyebrow) { color: #637080; line-height: 1.75; }
.legislatie-sigiliu { width: 128px; height: 128px; margin-top: 36px; display: grid; place-content: center; text-align: center; color: #d29a2e; border: 1px solid #d29a2e; outline: 1px solid rgba(210,154,46,.35); outline-offset: 7px; transform: rotate(45deg); }
.legislatie-sigiliu span, .legislatie-sigiliu small { transform: rotate(-45deg); }
.legislatie-sigiliu span { font: 52px/1 var(--font-titluri); }
.legislatie-sigiliu small { margin-top: 3px; letter-spacing: .28em; }
.legislatie-grup { padding: 0 0 74px; scroll-margin-top: 125px; }
.legislatie-grup > header { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; padding-bottom: 22px; border-bottom: 2px solid #102236; }
.legislatie-numar { color: #d29a2e; font-weight: 700; letter-spacing: .13em; padding-top: 8px; }
.legislatie-grup header p { margin: 0 0 5px; color: #8b6b2c; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.legislatie-grup header h2 { margin: 0; color: #102236; font: clamp(28px, 3vw, 40px)/1.1 var(--font-titluri); }
.legislatie-documente { margin: 0; padding: 0; list-style: none; }
.legislatie-documente li { border-bottom: 1px solid #dfe3e8; }
.legislatie-documente a { display: grid; grid-template-columns: 48px 1fr 24px; gap: 18px; align-items: center; padding: 24px 8px; color: #26384a; text-decoration: none; transition: color .2s ease, padding-left .2s ease, background .2s ease; }
.legislatie-documente a:hover { color: #a86e0c; padding-left: 16px; background: #faf8f3; }
.legislatie-pdf { display: grid; place-items: center; width: 46px; height: 54px; color: #fff; background: #b47b16; font-size: 10px; font-weight: 800; letter-spacing: .08em; clip-path: polygon(0 0, 73% 0, 100% 24%, 100% 100%, 0 100%); }
.legislatie-doc-titlu { font-size: 16px; line-height: 1.55; }
.legislatie-deschide { color: #b47b16; font-size: 20px; }
.legislatie-nota { display: grid; grid-template-columns: 58px 1fr; gap: 18px; margin-top: 25px; padding: 22px; background: #f5f6f8; border-left: 2px solid #d29a2e; }
.legislatie-nota strong { color: #b47b16; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.legislatie-nota p { margin: 0; color: #596574; font-size: 14px; line-height: 1.7; }
.legislatie-avertisment { padding: 0 0 100px; }
.legislatie-avertisment .container { display: flex; align-items: center; gap: 22px; max-width: 960px; padding: 26px 30px; color: #e8edf2; background: #102236; }
.legislatie-avertisment span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; color: #d29a2e; border: 1px solid #d29a2e; font-family: var(--font-titluri); font-size: 24px; }
.legislatie-avertisment p { margin: 0; line-height: 1.7; }
@media (max-width: 900px) {
  .legislatie-nav { grid-template-columns: repeat(3, 1fr); }
  .legislatie-nav a:nth-child(3) { border-right: 0; }
  .legislatie-layout { grid-template-columns: 1fr; gap: 65px; }
  .legislatie-aside { position: static; max-width: 650px; }
  .legislatie-sigiliu { display: none; }
}
@media (max-width: 600px) {
  .legislatie-start { padding: 58px 0 42px; }
  .legislatie-nav { grid-template-columns: 1fr 1fr; }
  .legislatie-nav a { min-height: 84px; border-bottom: 1px solid rgba(210,154,46,.35); }
  .legislatie-nav a:nth-child(3) { border-right: 1px solid rgba(210,154,46,.35); }
  .legislatie-nav a:nth-child(even) { border-right: 0; }
  .legislatie-biblioteca { padding: 70px 0; }
  .legislatie-grup > header { grid-template-columns: 38px 1fr; gap: 10px; }
  .legislatie-documente a { grid-template-columns: 38px 1fr 16px; gap: 12px; padding: 20px 0; }
  .legislatie-pdf { width: 38px; height: 46px; }
  .legislatie-doc-titlu { font-size: 14px; }
  .legislatie-nota { grid-template-columns: 1fr; }
  .legislatie-avertisment { padding-bottom: 70px; }
  .legislatie-avertisment .container { align-items: flex-start; }
}

/* ---------- 11. Contact ---------- */
.contact-page {
  position: relative;
  min-height: calc(100vh - 84px);
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  background: #20201e var(--contact-bg, none) center / cover fixed no-repeat;
}
.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--contact-overlay-1, #0c0e10) 0%, var(--contact-overlay-2, #a67516) 52%, var(--contact-overlay-1, #0c0e10) 100%);
  opacity: var(--contact-overlay-opacity, 60%);
}
.contact-wrap { position: relative; z-index: 1; }
.contact-heading { max-width: 690px; margin-bottom: clamp(2rem, 5vw, 4rem); color: #fff; }
.contact-heading h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); }
.contact-heading > p:last-child { max-width: 620px; margin-top: 1rem; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.contact-heading .eyebrow { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.35fr; gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.contact-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  backdrop-filter: none;
}
.contact-info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(214, 164, 70, .6);
  background: linear-gradient(90deg, rgba(10, 12, 14, .24), transparent);
}
.contact-info p { margin-bottom: 1.15rem; }
.contact-info h2 { margin-bottom: 1.5rem; color: #fff; }
.contact-info a { color: #e4b75f; }
.contact-info a:hover { color: #f4d38e; }
.contact-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(212, 166, 78, .6);
  background: rgba(9, 11, 13, .14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18), inset 0 0 40px rgba(212, 166, 78, .025);
  backdrop-filter: blur(3px);
}
.contact-form .field label { color: #fff; font-weight: 500; letter-spacing: .015em; }
.contact-form .field input,
.contact-form .field textarea {
  border-width: 1px;
  border-color: rgba(212, 166, 78, .6);
  border-radius: 0;
  background: rgba(8, 10, 12, .20);
  box-shadow: none;
  color: #fff;
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: rgba(255, 255, 255, .62);
}
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  border-color: #f0c66f;
  background: rgba(12, 7, 3, .35);
  box-shadow: 0 0 0 2px rgba(226, 180, 91, .12);
}
.contact-form .btn {
  background: #c8932f;
  border-color: #d7ab57;
  color: #fff;
}
.contact-form .btn:hover { background: #e0b052; border-color: #e8c475; color: #211307; }
.contact-success {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(212,166,78,.6);
  background: rgba(6,22,43,.72);
  color: #fff;
  line-height: 1.5;
}
.contact-map { grid-column: 1 / -1; overflow: hidden; }
.contact-map {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(212, 166, 78, .6);
  background: rgba(8, 10, 12, .18);
}
.contact-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem clamp(1.5rem, 3vw, 2.5rem);
}
.contact-map-heading .eyebrow { margin-bottom: .3rem; }
.contact-map-heading h2 { color: #fff; }
.contact-map-heading .eyebrow { color: #e4b75f; }
.contact-map-heading a { color: #e4b75f; font-size: .9rem; font-weight: 600; }
.contact-map-heading a:hover { color: #f4d38e; }
.contact-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.78) contrast(.96); }

.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; }

/* ---------- 11b. Panou de administrare a serviciilor (pe site) ---------- */
.panou-antet {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.panou-ingust { max-width: 720px; }
.panou-formular, .panou-confirmare { padding: 1.75rem; margin-top: 1.5rem; }
.panou-actiuni { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.panou-nota { margin-top: 2rem; }

.field-bifa { flex-direction: row; align-items: center; gap: .6rem; }
.field-bifa input { width: auto; }
.field-bifa label { order: 2; margin: 0; }

.tabel-container { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tabel { width: 100%; border-collapse: collapse; background: var(--bg); }
.tabel th, .tabel td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.tabel thead th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tabel tbody tr:last-child td { border-bottom: none; }
.tabel tbody tr:hover { background: var(--bg-alt); }
.tabel .dreapta { text-align: right; white-space: nowrap; }
.actiuni a { margin-left: 1rem; font-weight: 600; }

.eticheta {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border);
}
.eticheta-activ { background: #e7f6ee; border-color: #b9e3cd; color: #14523a; }

.periculos, .link-periculos { color: #b3261e; }
.periculos:hover, .link-periculos:hover { color: #8c1d18; }
.btn-periculos { background: #b3261e; border-color: #b3261e; }
.btn-periculos:hover { background: #8c1d18; border-color: #8c1d18; }

/* ---------- 12. Mesaje de sistem ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-top: 1.25rem; border: 1px solid transparent; }
.alert-success { background: #e7f6ee; border-color: #b9e3cd; color: #14523a; }
.alert-error { background: #fdecea; border-color: #f5c2be; color: #8c1d18; }

/* ---------- 13. Footer ---------- */
.global-contact {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #07182d var(--global-contact-bg, none) center / cover no-repeat;
  overflow: hidden;
}
.global-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--global-contact-overlay-1, #06162b), var(--global-contact-overlay-2, #153a63));
  opacity: var(--global-contact-opacity, 82%);
}
.global-contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.global-contact-copy { color: #fff; }
.global-contact-copy .eyebrow { color: #d9ad57; }
.global-contact-copy h2 { max-width: 520px; color: #fff; font-size: clamp(2.15rem, 4.1vw, 2.75rem); line-height: 1.06; }
.global-contact-copy > p { max-width: 520px; margin-top: 1.4rem; color: rgba(255,255,255,.84); font-family: var(--font-titluri); font-size: clamp(1rem, 1.35vw, 1rem); font-weight: 400; line-height: 1.75; }
.global-contact-phone { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(212,166,78,.6); }
.global-contact-phone > p { margin: 0 0 .85rem; color: rgba(255,255,255,.88); }
.global-contact-phone-list { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; }
.global-contact-phone-list a { display: flex; align-items: center; gap: .7rem; color: #e4b75f; text-decoration: none; }
.global-contact-phone-list a:hover { color: #fff; }
.global-contact-phone-list a > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.global-contact-phone-list small { margin-bottom: .22rem; color: rgba(255,255,255,.68); font: 500 .72rem var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.global-contact-phone-list strong { font-family: var(--font-titluri); font-size: clamp(1.18rem, 1.8vw, 1.5rem); font-weight: 400; letter-spacing: 0; }
.global-contact-phone-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(228,183,95,.65); }
.global-contact-phone-icon .icon { width: 20px; height: 20px; }
.global-contact-form {
  border: 1px solid rgba(212,166,78,.6);
  background: rgba(5,14,28,.18);
}
#formular-contact,
#formular-contact-principal { scroll-margin-top: 110px; }

.site-footer { position: relative; isolation: isolate; background-color: #07182c; background-image: linear-gradient(110deg, rgba(4,16,31,.94), rgba(8,31,56,.9)), var(--footer-image, none); background-position: center; background-size: cover; border-top: 1px solid rgba(212,166,78,.3); color: #fff; padding: 4rem 0 1.35rem; margin-top: 2rem; }
.global-contact + .site-footer { margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; column-gap: clamp(3rem, 7vw, 8rem); row-gap: 2rem; }
.footer-brand { font-weight: 700; }
.footer-logo { display: inline-block; max-width: min(100%, 320px); margin-bottom: .85rem; text-decoration: none; }
.footer-logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 72px; object-fit: contain; object-position: center; }
.footer-titlu { min-height: 72px; margin: 0; display: flex; align-items: center; color: #fff; font: 600 .76rem var(--font-titluri); letter-spacing: .2em; text-transform: uppercase; }
.footer-utile { margin: 0; }
.footer-utile ul { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .32rem; }
.footer-utile a { color: #fff; font-size: .7rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.footer-utile a::after { content: none; }
.footer-utile a:hover { color: var(--brand); }
.footer-identitate { text-align: center; }
.footer-identitate p { margin: .22rem 0; color: rgba(255,255,255,.86); font-size: .78rem; line-height: 1.55; }
.footer-identitate a { color: #fff; }
.footer-identitate a:hover { color: var(--brand); }
.footer-telefoane { white-space: nowrap; }
.footer-program { text-align: center; }
.footer-program .footer-titlu { justify-content: center; }
.footer-program p:not(.footer-titlu) { margin: .25rem 0 0; color: #fff; font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-program .footer-program-inchis { margin-top: .32rem; color: rgba(255,255,255,.64); }
.copyright { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); font-size: .82rem; text-align: center; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .footer-program { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-media { min-height: 280px; }
}

/* carduri: 3 pe rând → 2 pe rând → 1 pe rând */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-program { grid-column: auto; }
  .footer-utile, .footer-program { text-align: center; }
}

@media (max-width: 860px) {
  .header-telefon-text { display: none; }
}

@media (max-width: 760px) {
  body:not(.are-hero-cu-meniu) { padding-top: 84px; }
  .site-header,
  .are-hero-cu-meniu .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    z-index: 100;
  }
  .header-inner { grid-template-columns: 1fr auto auto; gap: .75rem; }
  .nav-burger { display: block; order: 3; }
  .header-telefon { order: 2; }
  .nav {
    position: fixed;
    top: 84px;
    left: 50%;
    right: auto;
    width: 100dvw;
    min-width: 100dvw;
    max-width: none;
    transform: translateX(-50%);
    justify-self: stretch;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #06162b;
    border-top: 1px solid rgba(212,166,78,.6);
    border-bottom: 1px solid rgba(212,166,78,.6);
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    padding: 0;
    display: none;
  }
  .nav a,
  .nav a.btn,
  .are-hero-cu-meniu .site-header .nav a,
  .are-hero-cu-meniu .site-header.header-scrolled .nav a,
  .are-hero-cu-meniu .site-header.header-scrolled .nav a:not(.btn) {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1rem 1.5rem;
    border: 0;
    border-bottom: 1px solid rgba(212,166,78,.55);
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: left;
  }
  .nav a:last-child,
  .nav a.btn:last-child { border-bottom: 0; }
  .nav a:hover,
  .nav a.active,
  .nav a[aria-current="page"],
  .are-hero-cu-meniu .site-header.header-scrolled .nav a:hover,
  .are-hero-cu-meniu .site-header.header-scrolled .nav a:not(.btn):hover,
  .are-hero-cu-meniu .site-header.header-scrolled .nav a:not(.btn).active,
  .are-hero-cu-meniu .site-header.header-scrolled .nav a:not(.btn)[aria-current="page"] {
    background: rgba(212,166,78,.12);
    color: #e4b75f;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero-banner .hero-continut > * { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page { background-attachment: scroll; padding-top: 7rem; }
  .contact-map { grid-column: auto; }
  .contact-map-heading { align-items: flex-start; flex-direction: column; }
  .contact-map iframe { height: 320px; }
  .global-contact-inner { grid-template-columns: 1fr; }
  .global-contact-copy h2 { font-size: clamp(2rem, 9.5vw, 2.85rem); }
  .acte-carduri, .acte-coloane { grid-template-columns: 1fr; }
  .acte-card { min-height: 390px; }
}

/* Săgeată discretă pentru revenirea la începutul paginii. */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212,166,78,.72);
  border-radius: 50%;
  background: rgba(6,22,43,.88);
  color: #e4b75f;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top:hover { background: #0b294a; color: #f0ca7b; text-decoration: none; }
.back-to-top.este-vizibil { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 760px) {
  .back-to-top { width: 40px; height: 40px; right: 1rem; bottom: 1rem; }
}

/* ---------- 15. Accesibilitate ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ---------- 16. SEO: firimituri, linkuri de subsol, panou de audit ---------- */

/* Link „Sari la conținut”, vizibil doar la navigarea cu tastatura. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Firimituri: „Acasă › Servicii” */
.firimituri { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.firimituri ol {
  list-style: none; margin: 0; padding: .75rem 0;
  display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem;
}
.firimituri li { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.firimituri li + li::before { content: "›"; color: var(--border); }
.firimituri a { color: var(--muted); text-decoration: none; }
.firimituri a:hover { color: var(--brand); text-decoration: underline; }
.firimituri [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Coloana cu toate paginile, din subsol */
.footer-titlu { font-weight: 700; margin-bottom: .5rem; }
.footer-linkuri ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-linkuri a { color: var(--muted); text-decoration: none; }
.footer-linkuri a:hover { color: var(--brand); text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }

/* Panoul /panou/seo/ */
.seo-scor {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
}
.seo-scor-numar { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.seo-scor-detalii { color: var(--muted); }
.seo-scor-bun { background: #ecfdf5; border-color: #a7f3d0; }
.seo-scor-bun .seo-scor-numar { color: #047857; }
.seo-scor-mediu { background: #fffbeb; border-color: #fde68a; }
.seo-scor-mediu .seo-scor-numar { color: #b45309; }
.seo-scor-slab { background: #fef2f2; border-color: #fecaca; }
.seo-scor-slab .seo-scor-numar { color: #b91c1c; }

.seo-grup { margin-bottom: 1.5rem; }
.seo-grup h2 { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: 1.25rem; }
.seo-eticheta { font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; font-weight: 700; }
.seo-eticheta-bun { background: #ecfdf5; color: #047857; }
.seo-eticheta-mediu { background: #fffbeb; color: #b45309; }
.seo-eticheta-slab { background: #fef2f2; color: #b91c1c; }

.seo-lista { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.seo-lista li {
  display: grid; grid-template-columns: 200px 1fr; gap: 1rem;
  padding: .6rem .75rem; border-radius: 8px; border-left: 4px solid var(--border); background: var(--bg-alt);
}
.seo-lista li span { color: var(--muted); }
.seo-lista .seo-ok { border-left-color: #10b981; }
.seo-lista .seo-atentie { border-left-color: #f59e0b; }
.seo-lista .seo-problema { border-left-color: #ef4444; }
.seo-lista .seo-problema span { color: #b91c1c; }

@media (max-width: 700px) {
  .seo-lista li { grid-template-columns: 1fr; gap: .25rem; }
}

/* Titlurile serviciilor trebuie să rămână ușor de citit pe telefon. */
@media (max-width: 600px) {
  .servicii-grid .card h3,
  .card-service h3 {
    font-size: 1.18rem;
    line-height: 1.3;
  }
}
