:root {
  --navy: #0c2a4a;
  --primary: #14548f;
  --primary-d: #0f4374;
  --accent: #17a086;
  --ink: #1d2733;
  --muted: #5d6b7a;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(12, 42, 74, .06), 0 4px 16px rgba(12, 42, 74, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-d); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }

/* ---------- Butoane ---------- */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #128a73; color: #fff; }
.btn.ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Bara de sus + header ---------- */
.topbar { background: var(--navy); color: #c9d6e4; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #c9d6e4; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.lang a.active { background: rgba(255, 255, 255, .15); color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-inner { display: inline-flex; align-items: center; gap: 10px; color: var(--logo-c1, var(--navy)); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; }
.logo-text b { color: var(--logo-c2, var(--accent)); }
.logo-img { max-height: 52px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { padding: 8px 11px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: #e8f0f8; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); content: ""; transition: .2s;
}
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
}
@media (max-width: 560px) {
  .topbar-contact a:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(23, 160, 134, .35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
}
.hero-inner { padding: 72px 20px 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #8fe0cf; margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 780px; margin: 0 0 16px; }
.lead { font-size: 1.15rem; max-width: 680px; color: #dce7f2; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero .search { max-width: 560px; }

/* ---------- Căutare ---------- */
.search { display: flex; margin: 0 0 28px; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; padding: 12px 14px; font: inherit; border-radius: 8px 0 0 8px; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--primary-d); }
.hero .search input { border: 0; }

/* ---------- Cifre ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.9rem; color: var(--primary); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- Secțiuni ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap.section { padding: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.75rem; }
.section-head a { font-weight: 600; text-decoration: none; }
.intro { font-size: 1.1rem; }

.page-head { background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; padding: 40px 0 36px; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.crumbs a { color: #b9d3ee; }

.cta { background: var(--navy); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 40px 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }

/* ---------- Conținut Markdown ---------- */
.prose { max-width: 820px; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- Categorii ---------- */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat-grid a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .15s;
}
.cat-grid a:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-left-color: var(--primary); }
.cat-name { font-weight: 600; color: var(--navy); }
.cat-count { font-size: .85rem; color: var(--muted); }

/* ---------- Tabel produse ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
table.products { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.products th, table.products td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.products thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.products tr:last-child td { border-bottom: 0; }
table.products tbody tr:hover td { background: #f7fafc; }
table.products tr.group th { background: #e8f0f8; color: var(--primary-d); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.products .cas { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); width: 1%; }
.note { color: var(--muted); font-style: italic; }
.side { position: sticky; top: 92px; }
.side h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side .search { margin-bottom: 24px; }
.side-nav { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav a { display: block; padding: 9px 14px; text-decoration: none; color: var(--ink); font-size: .9rem; border-bottom: 1px solid var(--line); }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover { background: var(--bg-alt); }
.side-nav a.active { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .side { position: static; } }

/* ---------- Galerie ---------- */
.gallery { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.gallery-certs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery-certs a { aspect-ratio: 7 / 10; background: #fff; border: 1px solid var(--line); }
.gallery-certs img { object-fit: contain; padding: 6px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 28, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #dfe7ef; margin-top: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Documente ---------- */
.docs-title { margin-top: 32px; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 860px; }
.docs a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.docs a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.doc-ext { flex: none; font-size: .7rem; font-weight: 800; color: #fff; background: #c0392b; border-radius: 4px; padding: 4px 6px; min-width: 38px; text-align: center; }

/* ---------- Parteneri ---------- */
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.partners h2 { font-size: 1.1rem; margin: 0 0 4px; }
.partners p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.partners a { font-size: .9rem; word-break: break-all; }
.partner-logo { max-height: 48px; width: auto; margin-bottom: 10px; display: block; }
@media (max-width: 400px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 28px; }
.contact-card h2 { margin: 0 0 12px; font-size: 1.3rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 12px; }
.contact-card dd { margin: 2px 0 0; }
.map { margin-bottom: 32px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2240; color: #b6c5d6; font-size: .93rem; margin-top: 0; }
.site-footer a { color: #dbe6f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.logo-light .logo-inner { color: #fff; }
.logo-light .logo-mark { color: #7fb4e6; }
.footer-tag { color: #dbe6f1; }
.muted-light { color: #8ea3b9; font-weight: 400; font-size: .85rem; }
.rates { border-collapse: collapse; }
.rates th { text-align: left; padding: 3px 16px 3px 0; color: #fff; }
.rates td { font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .85rem; color: #8ea3b9; }
.logo-symbol { object-fit: contain; }
