/* Nitro Security & Senzor Pompieri - stiluri */

/* ---------- Culori: tema inchisa (implicita) ---------- */
:root {
  --bg:        #050914;
  --bg-foot:   #020609;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);
  --heading:   #ffffff;
  --text:      #e8e8e8;
  --muted:     #a0a0b8;
  --desc:      #c0c0d4;
  --acc:       0 212 255;      /* cyan, folosit ca rgb(var(--acc) / x) */
  --acc-2:     #1a3a8f;
  --mag:       #e040a0;
  --gold:      #f0c020;
  --gold-rgb:  240 192 32;
  --red:       #ff7070;
  --red-soft:  #ff8080;
  --red-rgb:   255 100 100;
  --nav-bg:    rgba(5,9,20,0.92);
  --nav-bg-2:  rgba(5,9,20,0.98);
  --input-bg:  rgba(255,255,255,0.06);
  --card-shadow: none;
  --hover-shadow: 0 24px 60px rgba(0,0,0,0.45);
  --modal-bg:  linear-gradient(145deg, #0a1535, #0d1b4d);
  --modal-left: linear-gradient(160deg, #050c20, #0a1535);
  --ov-navy:   linear-gradient(rgba(5,9,20,0.62), rgba(5,9,20,0.62));
  --ov-red:    linear-gradient(rgba(8,3,3,0.62), rgba(8,3,3,0.62));
  --ov-mixed:  linear-gradient(rgba(5,9,20,0.6), rgba(5,9,20,0.6));
  --sec-dark:  #050914;
  --sec-part:  linear-gradient(135deg, #05091a 0%, #080d22 50%, #050914 100%);
  --nav-h:     76px;
  --head:      'Oswald', 'Segoe UI', sans-serif;
  --body:      'Inter', 'Segoe UI', Tahoma, sans-serif;
  color-scheme: dark;
}

/* ---------- Tema deschisa ---------- */
html[data-theme="light"] {
  --bg:        #f0f4fb;
  --surface:   #ffffff;
  --surface-2: #ffffff;
  --line:      rgba(0,0,0,0.09);
  --line-2:    rgba(0,0,0,0.18);
  --heading:   #0f172a;
  --text:      #1e293b;
  --muted:     #475569;
  --desc:      #475569;
  --acc:       0 140 175;
  --acc-2:     #1d4ed8;
  --gold:      #b7790b;
  --gold-rgb:  183 121 11;
  --red-soft:  #c0392b;
  --red-rgb:   192 57 43;
  --nav-bg:    rgba(255,255,255,0.96);
  --nav-bg-2:  rgba(255,255,255,0.99);
  --input-bg:  #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --hover-shadow: 0 14px 40px rgba(0,0,0,0.12);
  --modal-bg:  #ffffff;
  --modal-left: linear-gradient(160deg, #dce6f5, #c5d8ef);
  --ov-navy:   linear-gradient(rgba(240,244,251,0.9), rgba(214,227,245,0.93));
  --ov-red:    linear-gradient(rgba(253,242,242,0.9), rgba(250,218,218,0.93));
  --ov-mixed:  linear-gradient(rgba(241,242,251,0.9), rgba(236,230,246,0.93));
  --sec-dark:  #f0f4fb;
  --sec-part:  #e8edf6;
  color-scheme: light;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a3a8f; border-radius: 3px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #93afd4; }

svg.ic {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Meniu ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex; align-items: center; gap: 22px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: background .3s, border-color .3s;
}
#navbar.scrolled { background: var(--nav-bg-2); border-bottom-color: rgb(var(--acc) / .18); }

.nav-logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text b {
  font-family: var(--head);
  font-size: 1.02rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
}
.nav-logo-text small {
  font-size: .6rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; border-radius: 1px;
  background: rgb(var(--acc));
  transition: width .3s;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--heading); }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a.rescue-link:hover, .nav-links a.rescue-link.active { color: var(--red-soft); }
.nav-links a.rescue-link::after { background: #ff6060; }
.nav-links a.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--heading);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { border-color: rgb(var(--acc)); color: rgb(var(--acc)); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.theme-btn:hover { border-color: rgb(var(--acc)); color: rgb(var(--acc)); background: rgb(var(--acc) / .08); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
html[data-theme="light"] .theme-btn .sun { display: none; }
html[data-theme="light"] .theme-btn .moon { display: block; }

.lang-switch {
  display: flex;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
}
.lang-switch a {
  display: flex; align-items: center;
  padding: 0 10px;
  border-radius: 15px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.lang-switch a:hover { color: rgb(var(--acc)); }
.lang-switch a[aria-current="true"] { background: rgb(var(--acc) / .14); color: rgb(var(--acc)); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px;
  background: none; border: 0; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: doua portaluri peste panza ---------- */
#hero {
  position: relative;
  height: 100vh; min-height: 620px;
  display: flex;
  overflow: hidden;
  background: #050914;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #001433 0%, #001a5c 20%, #0d003d 40%, #1a0030 55%, #3d000f 75%, #3d0000 100%);
}
#web-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,9,20,0.35) 0%, transparent 28%, transparent 70%, rgba(5,9,20,0.7) 100%);
  pointer-events: none;
}

.portal {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
  transition: flex .65s cubic-bezier(.4,0,.2,1);
}
.portal-security { background: linear-gradient(to right, rgba(0,20,100,0.55), rgba(0,20,80,0.25)); }
.portal-rescue   { background: linear-gradient(to left,  rgba(120,0,0,0.55), rgba(80,0,0,0.25)); }
.portal::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s;
}
.portal-security::before { background: linear-gradient(135deg, rgba(0,100,255,0.2), rgba(0,200,255,0.08)); }
.portal-rescue::before   { background: linear-gradient(135deg, rgba(255,50,0,0.2), rgba(200,0,50,0.08)); }
.portal:hover { flex: 1.5; }
.portal:hover::before { opacity: 1; }

.portal-divider {
  position: relative;
  width: 2px; min-width: 2px; height: 100%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25) 25%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.25) 75%, transparent);
  z-index: 3;
}
.hero-brand-tag {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 20px;
  white-space: nowrap;
  background: rgba(5,9,20,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  pointer-events: none;
}
.hero-brand-tag b {
  font-family: var(--head);
  font-size: .7rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: #f0c020;
}
.hero-brand-tag small { font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.portal-content {
  position: relative; z-index: 2;
  max-width: 470px;
  padding: 40px 32px;
  text-align: center;
}
.portal-logo {
  height: 130px; width: auto;
  margin: 0 auto 26px;
  transition: transform .4s, filter .4s;
  filter: drop-shadow(0 0 26px rgba(0,180,255,0.45));
}
.portal-security:hover .portal-logo { transform: scale(1.07); filter: drop-shadow(0 0 36px rgba(0,212,255,0.8)); }
.portal-plate {
  display: inline-block;
  margin: 0 auto 30px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 34px rgba(255,60,0,0.45);
  transition: transform .4s, box-shadow .4s;
}
.portal-plate img { width: 230px; height: auto; }
.portal-rescue:hover .portal-plate { transform: scale(1.06); box-shadow: 0 0 46px rgba(255,80,0,0.75); }

.portal-title {
  font-family: var(--head);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.portal-security .portal-title { color: #00d4ff; }
.portal-rescue   .portal-title { color: #ff7070; }
.portal-tagline {
  font-size: .8rem; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.portal-services { font-size: .86rem; line-height: 1.6; color: rgba(255,255,255,0.6); margin-bottom: 34px; }
.portal-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block;
  padding: 13px 36px;
  border: 2px solid; border-radius: 4px;
  font-size: .82rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all .35s;
}
.portal-security .portal-btn { background: #00d4ff; border-color: #00d4ff; color: #050914; }
.portal-rescue   .portal-btn { background: #ff7070; border-color: #ff7070; color: #fff; }
.portal-security:hover .portal-btn { background: #fff; border-color: #fff; color: #050914; box-shadow: 0 0 40px rgba(0,212,255,0.55); transform: translateY(-2px); }
.portal-rescue:hover .portal-btn { background: #fff; border-color: #fff; color: #3d0000; box-shadow: 0 0 40px rgba(255,112,112,0.55); transform: translateY(-2px); }
.portal-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
  font-size: .65rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.portal-trust i { font-style: normal; opacity: .5; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px;
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: hint 2.2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-hint span { font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.scroll-hint i { width: 20px; height: 20px; border-right: 2px solid rgba(255,255,255,0.35); border-bottom: 2px solid rgba(255,255,255,0.35); transform: rotate(45deg); }
@keyframes hint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%      { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ---------- Sectiuni ---------- */
.section { position: relative; padding: 100px 0; }
.section-dark { background: var(--sec-dark); }
.section-navy    { background: var(--ov-navy),  url('../img/web/web-albastru.webp') center/cover, #0a1535; }
.section-crimson { background: var(--ov-red),   url('../img/web/web-rosu.webp') center/cover, #200808; }
.section-mixed   { background: var(--ov-mixed), url('../img/web/web-mixt.webp') center/cover, #150520; }
.section-partners { background: var(--sec-part); border-top: 1px solid var(--line); }

.container {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgb(var(--acc));
}
.section-crimson .section-tag { color: var(--red-soft); }
.section-dark .section-tag, .section-partners .section-tag { color: var(--gold); }
.section-title {
  font-family: var(--head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--heading);
  margin-bottom: 18px;
}
.title-line {
  width: 0; height: 3px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: linear-gradient(to right, rgb(var(--acc)), var(--mag));
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.title-line.on { width: 56px; }
.section-crimson .title-line { background: linear-gradient(to right, #ff6060, #ff00aa); }
.section-dark .title-line, .section-partners .title-line { background: linear-gradient(to right, var(--gold), rgb(var(--acc))); }
.section-desc { max-width: 660px; margin: 0 auto; font-size: 1rem; line-height: 1.75; color: var(--muted); }

/* aparitie la scroll (doar cu scriptul pornit) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }

/* ---------- Carduri servicii ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: background .4s, border-color .4s, transform .4s, box-shadow .4s, opacity .6s;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, rgb(var(--acc)), var(--mag));
  opacity: 0; transition: opacity .35s;
  z-index: 3;
}
.service-card:hover, .service-card:focus-visible {
  background: var(--surface-2);
  border-color: rgb(var(--acc) / .3);
  transform: translateY(-7px);
  box-shadow: var(--hover-shadow);
  outline: none;
}
.service-card:focus-visible { box-shadow: var(--hover-shadow), 0 0 0 3px rgb(var(--acc) / .55); }
.service-card:hover::before, .service-card:focus-visible::before { opacity: 1; }
.card-img-wrap {
  position: relative; overflow: hidden;
  height: 170px;
  margin: -36px -28px 22px;
  background: #0a1535;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.service-card:hover .card-img { transform: scale(1.07); }
.card-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,9,20,0.45));
  pointer-events: none;
}
.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--acc) / .08);
  border: 1px solid rgb(var(--acc) / .2);
  border-radius: 4px;
  color: rgb(var(--acc));
  transition: all .35s;
}
.service-icon .ic { transition: transform .35s; }
.service-card:hover .service-icon { background: rgb(var(--acc) / .14); border-color: rgb(var(--acc) / .38); box-shadow: 0 0 20px rgb(var(--acc) / .15); }
.service-card:hover .service-icon .ic { transform: scale(1.15); }
.service-name { font-family: var(--head); font-size: 1.15rem; font-weight: 600; letter-spacing: .3px; color: var(--heading); margin-bottom: 14px; }
.service-desc { font-size: .88rem; line-height: 1.72; color: var(--desc); }
.service-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgb(var(--acc));
  transition: gap .3s;
}
.service-card:hover .service-more { gap: 12px; }

/* ---------- Fereastra serviciu ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  z-index: 2000;
}
html[data-theme="light"] .modal-overlay { background: rgba(15,23,42,0.6); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  position: relative;
  width: 95vw; max-width: 1200px; height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--modal-bg);
  border: 1px solid rgb(var(--acc) / .2);
  border-radius: 4px;
  transform: scale(.92) translateY(28px);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .25s;
  z-index: 10;
}
.modal-close:hover { border-color: rgb(var(--acc)); color: rgb(var(--acc)); }
.modal-left {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--modal-left);
}
.modal-left > .ic { width: 170px; height: 170px; color: rgb(var(--acc) / .4); stroke-width: .9; }
.modal-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-service-tag {
  position: absolute; top: 18px; left: 18px;
  padding: 5px 14px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 2px;
  font-size: .67rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #00d4ff;
  z-index: 3;
}
.modal-thumbs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  z-index: 3;
}
.modal-thumbs button {
  width: 64px; height: 46px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.modal-thumbs button:hover { opacity: 1; transform: scale(1.05); }
.modal-thumbs button.active { opacity: 1; border-color: #00d4ff; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-right {
  overflow-y: auto;
  padding: 76px 48px 64px;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--acc) / .25) transparent;
}
.modal-title { font-family: var(--head); font-size: 1.9rem; font-weight: 700; line-height: 1.2; color: var(--heading); margin-bottom: 20px; }
.modal-divider { width: 48px; height: 3px; margin-bottom: 24px; border-radius: 2px; background: linear-gradient(to right, rgb(var(--acc)), var(--mag)); }
#modal-body p { font-size: .93rem; line-height: 1.82; color: var(--muted); margin-bottom: 16px; }
.modal-subtitle {
  margin: 28px 0 14px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgb(var(--acc));
}
.modal-target { font-size: .93rem; line-height: 1.75; color: var(--muted); }
.modal-list { border-top: 1px solid var(--line); }
.modal-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem; line-height: 1.6;
  color: var(--muted);
  transition: color .2s, padding-left .2s, background .2s;
}
.modal-list li::before {
  content: '';
  position: absolute; left: 2px; top: 19px;
  border: 4px solid transparent;
  border-left: 6px solid rgb(var(--acc));
}
.modal-list li:hover { color: var(--text); padding-left: 28px; background: rgb(var(--acc) / .05); }
.modal-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block;
  margin-top: 36px;
  padding: 13px 34px;
  background: linear-gradient(135deg, #1a3a8f, #00b8e6);
  border-radius: 4px;
  font-size: .82rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff;
  transition: transform .3s, box-shadow .3s;
}
.modal-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,212,255,0.35); }

/* ---------- Pompieri ---------- */
.rescue-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.rescue-intro-img {
  position: relative; overflow: hidden;
  height: 400px;
  border-radius: 4px;
  border: 1px solid rgb(var(--red-rgb) / .2);
  background: #200808;
}
.rescue-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.rescue-intro-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,0,0,0.18), transparent 60%);
  pointer-events: none;
}
.rescue-intro-text h3 { font-family: var(--head); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--red-soft); margin-bottom: 20px; }
.rescue-intro-text p { font-size: .9rem; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.rescue-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 8px 18px;
  border: 1px solid rgb(var(--red-rgb) / .35);
  border-radius: 4px;
  font-size: .78rem; font-weight: 600; letter-spacing: 1px;
  color: var(--red-soft);
  animation: badge 3s ease-in-out infinite;
}
.rescue-badge .ic { width: 15px; height: 15px; stroke-width: 2; }
@keyframes badge {
  0%, 100% { box-shadow: 0 0 0 0 rgb(var(--red-rgb) / 0); }
  50%      { box-shadow: 0 0 0 6px rgb(var(--red-rgb) / .12); }
}
.rescue-box {
  margin-bottom: 32px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid rgb(var(--red-rgb) / .15);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
html[data-theme="light"] .rescue-box { background: rgba(255,255,255,0.8); }
.rescue-box-title {
  font-family: var(--head);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 28px;
}
.config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.config-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; line-height: 1.6;
  color: var(--muted);
  transition: color .25s, transform .25s;
}
.config-item::before {
  content: '';
  width: 8px; height: 8px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ff6060;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.config-item:hover { color: var(--text); transform: translateX(5px); }
.config-item:hover::before { transform: scale(1.6); background: rgb(var(--acc)); box-shadow: 0 0 8px rgb(var(--acc) / .5); }
.steps { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .9rem;
  color: var(--muted);
  transition: transform .28s, background .28s, border-color .28s, color .28s;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgb(var(--red-rgb) / .12);
  border: 1px solid rgb(var(--red-rgb) / .28);
  font-family: var(--head);
  font-size: .75rem; font-weight: 600;
  color: var(--red-soft);
  transition: color .28s, text-shadow .28s;
}
.steps li:hover { transform: translateX(8px); border-color: rgb(var(--acc) / .25); color: var(--text); }
.steps li:hover::before { color: rgb(var(--acc)); text-shadow: 0 0 16px rgb(var(--acc) / .6); }
.equip-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.equip-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--red-rgb) / .1);
  border: 1px solid rgb(var(--red-rgb) / .25);
  border-radius: 6px;
  color: var(--red-soft);
}
.equip-head .rescue-box-title { margin-bottom: 0; font-size: .8rem; }
.equip-title { font-family: var(--head); font-size: 1.4rem; font-weight: 600; letter-spacing: .5px; color: var(--heading); margin-top: 4px; }
.equip-text { max-width: 820px; font-size: .9rem; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photo-tile {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #200808;
  cursor: zoom-in;
  transition: transform .3s, box-shadow .3s;
}
.photo-tile:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: .72rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  text-align: left;
  color: #fff;
}

/* ---------- Despre noi ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 80px; }
.stat-card {
  padding: 44px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s, opacity .6s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--hover-shadow); border-color: rgb(var(--acc) / .28); }
.stat-icon {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--gold-rgb) / .08);
  border: 1px solid rgb(var(--gold-rgb) / .2);
  border-radius: 4px;
  color: var(--gold);
}
.stat-icon .ic { width: 22px; height: 22px; }
.stat-number {
  font-family: var(--head);
  font-size: 3rem; font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold), rgb(var(--acc)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 90px; }
.about-text h3 { font-family: var(--head); font-size: 1.5rem; font-weight: 600; color: var(--heading); margin-bottom: 18px; }
.about-text p { font-size: .94rem; line-height: 1.82; color: var(--muted); margin-bottom: 14px; }
.about-text strong { color: var(--text); }
.values-list { display: flex; flex-direction: column; gap: 16px; }
.value-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: background .3s, border-color .3s, opacity .6s, transform .6s;
}
.value-item:hover { background: var(--surface-2); border-color: rgb(var(--gold-rgb) / .3); }
.value-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--gold-rgb) / .08);
  border: 1px solid rgb(var(--gold-rgb) / .2);
  border-radius: 4px;
  color: var(--gold);
}
.value-icon .ic { width: 20px; height: 20px; }
.value-item:hover .value-icon { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.2) rotate(-6deg); } 70% { transform: scale(1.1) rotate(4deg); } }
.value-item strong { display: block; font-size: .95rem; color: var(--heading); margin-bottom: 4px; }
.value-item span { font-size: .85rem; color: var(--muted); }
.team-title { font-family: var(--head); font-size: 1.5rem; font-weight: 600; text-align: center; color: var(--heading); margin-bottom: 36px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  padding: 32px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform .3s, border-color .3s, opacity .6s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgb(var(--gold-rgb) / .3); }
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid rgb(var(--gold-rgb) / .45);
  background: linear-gradient(135deg, #0d1b4d, #1a3a8f);
  color: rgba(255,255,255,0.6);
  overflow: hidden;
}
.team-avatar .ic { width: 42px; height: 42px; stroke-width: 1.4; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--head); font-size: 1.05rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); }
.team-role { margin: 4px 0 14px; font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgb(var(--acc)); }
.team-bio { font-size: .85rem; line-height: 1.7; color: var(--muted); }

/* ---------- Parteneri ---------- */
.ticker {
  overflow: hidden;
  margin-bottom: 72px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; align-items: center; gap: 24px; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 12px)); } }
.partner {
  flex: none;
  width: 190px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  color: #0d1b4d;
  font-family: var(--head);
  font-size: .95rem; font-weight: 600;
  line-height: 1.15;
  letter-spacing: .5px; text-transform: uppercase;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(25%); transition: filter .3s; }
.partner:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.partner:hover img { filter: none; }
.partner small { display: block; margin-top: 3px; font-family: var(--body); font-size: .62rem; font-weight: 600; letter-spacing: 1px; color: #8f1a1a; }

.quotes-head { text-align: center; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.quote {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px 32px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: border-color .35s, transform .35s, box-shadow .35s, opacity .6s;
}
.quote:hover { border-color: rgb(var(--gold-rgb) / .35); transform: translateY(-5px); }
.quote::before {
  content: '\201C';
  position: absolute; top: 6px; left: 26px;
  font-family: Georgia, serif;
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: .4;
}
.quote p { flex: 1; padding-top: 28px; font-size: .93rem; line-height: 1.75; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-logo {
  width: 74px; height: 44px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
  background: #fff;
  border-radius: 4px;
}
.quote-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.quote footer strong { display: block; font-size: .88rem; color: var(--heading); }
.quote footer span { display: block; font-size: .73rem; line-height: 1.4; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info > h3, .form-wrap h3 { font-family: var(--head); font-size: 1.5rem; font-weight: 600; color: var(--heading); margin-bottom: 12px; }
.contact-info > p { font-size: .94rem; line-height: 1.75; color: var(--muted); margin-bottom: 30px; }
.company-block { margin-bottom: 30px; }
.company-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.company-head .logo-chip {
  min-width: 46px; height: 46px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 6px;
  background: #fff;
  border-radius: 4px;
}
.company-head .logo-chip img { max-height: 38px; max-width: 96px; width: auto; object-fit: contain; }
.company-head b { font-family: var(--head); font-size: 1.05rem; font-weight: 600; letter-spacing: .5px; color: var(--heading); }
.company-head small { display: block; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgb(var(--acc)); }
.company-block.red .company-head small { color: var(--red-soft); }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 14px -12px;
  padding: 3px 0 3px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: transform .25s, border-color .25s, background .25s;
}
.contact-item:hover { transform: translateX(4px); border-left-color: rgb(var(--acc) / .45); background: rgb(var(--acc) / .04); }
.contact-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--acc) / .08);
  border: 1px solid rgb(var(--acc) / .2);
  border-radius: 4px;
  color: rgb(var(--acc));
}
.company-block.red .contact-icon { background: rgb(var(--red-rgb) / .08); border-color: rgb(var(--red-rgb) / .22); color: var(--red-soft); }
.company-block.red .contact-item:hover { border-left-color: rgb(var(--red-rgb) / .45); background: rgb(var(--red-rgb) / .04); }
.contact-icon .ic { width: 18px; height: 18px; }
.contact-item strong { display: block; margin-bottom: 2px; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-item span, .contact-item a { font-size: .93rem; color: var(--text); transition: color .25s; }
.contact-item a:hover { color: rgb(var(--acc)); }
.contact-item a.phone { font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; color: rgb(var(--acc)); }
.company-block.red .contact-item a.phone { color: var(--red-soft); }
.map-wrap { margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.map-wrap iframe { display: block; width: 100%; height: 250px; border: 0; }
html:not([data-theme="light"]) .map-wrap iframe { filter: invert(92%) hue-rotate(180deg) saturate(.8) brightness(.88); }
.map-wrap a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 600;
  color: rgb(var(--acc));
  transition: background .25s;
}
.map-wrap a:hover { background: rgb(var(--acc) / .08); }
.map-wrap a .ic { width: 14px; height: 14px; }

.form-wrap {
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.form-wrap h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-wrap > p { font-size: .86rem; color: var(--muted); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label, .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.form-group label b, .form-label b { color: rgb(var(--acc)); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--heading);
  font-family: var(--body); font-size: .92rem;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: .7; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgb(var(--acc));
  box-shadow: 0 0 0 3px rgb(var(--acc) / .1);
}
.form-group select option, .form-group select optgroup { background: var(--bg); color: var(--heading); }
.form-group textarea { height: 120px; resize: vertical; }
.bad { border-color: #e05050 !important; }
small.err { display: block; margin-top: 4px; font-size: .74rem; color: #e06060; }
.req-note { margin: -8px 0 18px; font-size: .75rem; color: var(--muted); }
.hint { margin-top: 6px; font-size: .78rem; color: var(--muted); }
.hint a { color: var(--red-soft); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.btn-submit {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  background: linear-gradient(135deg, #1a3a8f, #00b8e6);
  border: 0; border-radius: 4px;
  color: #fff;
  font-size: .88rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,212,255,0.3); }
.form-note { margin-top: 14px; text-align: center; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.form-ok {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgb(var(--acc) / .35);
  border-radius: 4px;
  background: rgb(var(--acc) / .07);
  font-size: .88rem;
  color: var(--text);
}
.form-ok.show { display: block; }

.portal-btn::before, .modal-cta::before, .btn-submit::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: -1;
}
.portal:hover .portal-btn::before, .modal-cta:hover::before, .btn-submit:hover::before { animation: sweep .6s ease forwards; }
@keyframes sweep { to { left: 160%; } }

/* ---------- Pagini interioare (Licente, Suport tehnic) ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 70px;
  text-align: center;
  background: var(--ov-mixed), url('../img/web/web-mixt.webp') center/cover, #150520;
}
.page-head.blue { background: var(--ov-navy), url('../img/web/web-albastru.webp') center/cover, #0a1535; }
.page-head .section-tag { color: rgb(var(--acc)); }
.page-head h1 { font-family: var(--head); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: 1px; color: var(--heading); margin-bottom: 18px; }
.page-head p { max-width: 680px; margin: 0 auto; font-size: 1rem; line-height: 1.75; color: var(--muted); }
.breadcrumb { margin-top: 26px; font-size: .78rem; color: var(--muted); }
.breadcrumb a { color: rgb(var(--acc)); }
.breadcrumb a:hover { text-decoration: underline; }

.lic-section { padding: 80px 0; }
.lic-section + .lic-section { border-top: 1px solid var(--line); }
.lic-head { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.lic-head .logo-chip {
  height: 72px; min-width: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
}
.lic-head .logo-chip img { max-height: 56px; width: auto; }
.lic-head h2 { font-family: var(--head); font-size: 1.8rem; font-weight: 700; color: var(--heading); }
.lic-head p { font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgb(var(--acc)); }
.lic-red .lic-head p { color: var(--red-soft); }
.lic-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.lic-data {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid rgb(var(--acc));
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.lic-red .lic-data { border-left-color: var(--red-soft); }
.lic-data dt { font-size: .68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.lic-data dd { margin: 3px 0 16px; font-size: .92rem; color: var(--heading); }
.lic-data dd:last-child { margin-bottom: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.doc-card {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.doc-card:hover { transform: translateY(-5px); border-color: rgb(var(--acc) / .35); box-shadow: var(--hover-shadow); }
.lic-red .doc-card:hover { border-color: rgb(var(--red-rgb) / .4); }
.doc-thumb { height: 230px; background: #eef1f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.doc-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.doc-info { display: block; padding: 16px 18px; border-top: 1px solid var(--line); }
.doc-info strong { display: block; font-size: .92rem; color: var(--heading); margin-bottom: 4px; }
.doc-info span { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.doc-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 230px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-size: .88rem;
}
.doc-empty .ic { width: 34px; height: 34px; color: rgb(var(--acc) / .6); }

.support-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.fieldset { margin-bottom: 30px; padding: 0; border: 0; }
.fieldset legend {
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--head);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: .5px;
  color: var(--heading);
}
.fieldset legend span { color: rgb(var(--acc)); margin-right: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice:hover { border-color: rgb(var(--acc) / .5); }
.choice input { accent-color: rgb(var(--acc)); width: 16px; height: 16px; flex: none; }
.choice:has(input:checked) { border-color: rgb(var(--acc)); background: rgb(var(--acc) / .08); }
.choice .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.support-side { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.side-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.side-card h3 { font-family: var(--head); font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.side-card p { font-size: .87rem; line-height: 1.7; color: var(--muted); margin-bottom: 14px; }
.side-card .big-phone { display: block; font-family: var(--head); font-size: 1.6rem; font-weight: 600; letter-spacing: 1px; color: rgb(var(--acc)); }
.side-card .big-phone.red { color: var(--red-soft); }
.side-card small { display: block; margin: 2px 0 14px; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.side-card ul li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: .86rem; color: var(--muted); }
.side-card ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--acc)); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px;
  background: rgba(0,0,0,0.92);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 2100;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox figcaption { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,0.75); text-align: center; }
.lb-btn {
  position: absolute;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(0,212,255,0.15); border-color: #00d4ff; }
.lb-close { top: 16px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Subsol (ramane inchis si pe tema deschisa) ---------- */
.site-footer {
  --heading: #ffffff;
  --text: #e2e8f0;
  --muted: #a0a0b8;
  --line: rgba(255,255,255,0.08);
  --surface: rgba(255,255,255,0.05);
  --acc: 0 212 255;
  --gold: #f0c020;
  --red-soft: #ff8080;
  padding: 72px 0 32px;
  background: var(--bg-foot);
  border-top: 1px solid var(--line);
  color: var(--text);
}
html[data-theme="light"] .site-footer { background: #1e293b; --muted: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { max-width: 300px; margin-bottom: 22px; font-size: .88rem; line-height: 1.75; color: var(--muted); }
.footer-logos { display: flex; gap: 10px; }
.footer-logos span { height: 48px; display: flex; align-items: center; padding: 5px 10px; background: #fff; border-radius: 4px; }
.footer-logos img { max-height: 38px; width: auto; }
.footer-col h4 { margin-bottom: 22px; font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgb(var(--acc)); }
.footer-col.red h4 { color: var(--red-soft); }
.footer-col li { margin-bottom: 12px; }
.footer-col a { position: relative; padding-bottom: 2px; font-size: .88rem; color: var(--muted); transition: color .3s; }
.footer-col a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: rgb(var(--acc)); transition: width .3s; }
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { width: 100%; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: .8rem; line-height: 1.7; color: var(--muted); }

/* ---------- Mod Securitate / Pompieri ---------- */
body.mode-security #rescue { display: none; }
body.mode-rescue #security { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  #navbar { padding: 0 24px; gap: 14px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 18px 28px 30px;
    background: var(--nav-bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; font-size: .88rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta { margin-top: 16px; text-align: center; padding: 12px 24px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .services-grid, .stats-grid, .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid, .contact-grid { gap: 40px; }
  .modal-right { padding: 68px 32px 56px; }
  .modal-title { font-size: 1.65rem; }
  .lic-grid, .support-grid { grid-template-columns: 1fr; }
  .support-side { position: static; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 52px; }
  .container { padding: 0 20px; }
  .about-grid, .contact-grid, .rescue-intro { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .config-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; gap: 20px; }
  .partner { width: 160px; height: 76px; font-size: .82rem; }
  .portal-content { padding: 28px 20px; max-width: 360px; }
  .portal-logo { height: 96px; margin-bottom: 18px; }
  .portal-plate img { width: 180px; }
  .modal-box { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; height: 90vh; }
  .modal-right { padding: 40px 26px 48px; }
  .modal-title { font-size: 1.45rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
  .choice-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-brand-tag { display: none; }
  .rescue-box { padding: 28px 20px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  #navbar { padding: 0 14px; gap: 8px; }
  .nav-logo img { height: 38px; }
  .nav-logo-text b { font-size: .85rem; letter-spacing: 1.5px; }
  .nav-logo-text small { font-size: .52rem; letter-spacing: 2px; }
  .theme-btn { width: 32px; height: 32px; }
  .lang-switch { height: 32px; }
  .lang-switch a { padding: 0 7px; font-size: 10px; }

  #hero { flex-direction: column; height: auto; }
  .portal { flex: none; width: 100%; height: 50vh; min-height: 340px; }
  .portal:hover { flex: none; }
  .portal-security { padding-top: var(--nav-h); height: calc(50vh + var(--nav-h)); }
  .portal-divider { width: 100%; height: 2px; min-width: 0; }
  .portal-content { padding: 22px 16px; max-width: 100%; }
  .portal-logo { height: 80px; margin-bottom: 12px; }
  .portal-plate { padding: 10px 14px; margin-bottom: 16px; }
  .portal-plate img { width: 150px; }
  .portal-title { font-size: 1.6rem; letter-spacing: 2px; }
  .portal-tagline { font-size: .72rem; }
  .portal-services { display: none; }
  .portal-btn { padding: 11px 26px; font-size: .78rem; }
  .scroll-hint { display: none; }

  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: .92rem; }
  .services-grid, .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 22px; }
  .card-img-wrap { margin: -28px -22px 20px; height: 180px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 28px 12px; }
  .stat-number { font-size: 2.2rem; }
  .rescue-intro-img { height: 240px; }
  .form-wrap { padding: 28px 18px; }
  .quote { padding: 28px 20px 22px; }
  .partner { width: 140px; height: 68px; font-size: .72rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .lic-head { flex-direction: column; align-items: flex-start; }

  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { width: 100vw; height: 92vh; grid-template-rows: 200px 1fr; border-radius: 4px 4px 0 0; }
  .modal-right { padding: 30px 20px 48px; }
  .modal-title { font-size: 1.3rem; }
  .modal-thumbs button { width: 52px; height: 38px; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; gap: 10px; }
  .site-footer { padding: 52px 0 24px; }
}

@media (max-width: 380px) {
  .portal-title, .section-title { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  .nav-logo-text { display: none; }
}

@media (hover: none) {
  .portal:hover { flex: 1; }
  .service-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal:not(.visible) { opacity: 1; transform: none; }
}
