/* Cloud USV — shared stylesheet
   Two zones share one design system:
   - data-zone="center"  → Centrul Cloud USV (operational centre) — cyan accent
   - data-zone="project" → Proiectul SMIS 124530 (completed grant) — EU blue + gold accent */

:root {
  --navy-900: #071040;
  --navy-800: #0b1758;
  --navy-700: #0f1f6b;
  --navy-600: #1a2d8a;
  --sky-500: #4a96d6;
  --cyan-500: #22c3e6;
  --cyan-300: #7fe3ff;
  --eu-600: #1f3fa8;
  --eu-800: #102a7c;
  --gold-400: #f5c518;
  --gold-300: #ffe17a;
  --coral-500: #f06a5a;
  --green-500: #1fbf8a;

  --ink: #10173a;
  --ink-2: #3b4670;
  --ink-3: #6a7499;
  --line: #e1e6f4;
  --bg: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #eef2fb;

  --center: #0ea5c9;
  --center-soft: #e3f7fc;
  --project: #1f3fa8;
  --project-soft: #e8edfb;

  --accent: var(--center);
  --accent-soft: var(--center-soft);
  --accent-hi: var(--cyan-300);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 107, .06), 0 2px 8px rgba(15, 31, 107, .05);
  --shadow: 0 10px 30px -12px rgba(15, 31, 107, .25), 0 2px 6px rgba(15, 31, 107, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 31, 107, .35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

body[data-zone="project"] {
  --accent: var(--project);
  --accent-soft: var(--project-soft);
  --accent-hi: var(--gold-400);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-700); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Funding logo strip (EU visibility) ---------- */
.funding-strip { background: #fff; border-bottom: 1px solid var(--line); }
.funding-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.funding-strip img { height: 46px; width: auto; max-width: 62%; object-fit: contain; }
.funding-strip .lang { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.lang a { font-size: .8rem; font-weight: 700; color: var(--ink-2); padding: 4px 12px; border-radius: 999px; text-decoration: none; letter-spacing: .04em; }
.lang a[aria-current="true"] { background: var(--navy-700); color: #fff; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-700); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 48px; object-fit: contain; }
.brand b { font-family: var(--font-display); font-size: 1.2rem; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .95rem var(--font); color: var(--ink);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 9px 14px; cursor: pointer; text-decoration: none;
}
.nav-trigger:hover { background: var(--surface-2); text-decoration: none; }
.nav-trigger .dot { width: 9px; height: 9px; border-radius: 50%; }
.nav-group.center .dot { background: var(--center); box-shadow: 0 0 0 4px var(--center-soft); }
.nav-group.project .dot { background: var(--gold-400); box-shadow: 0 0 0 4px #fff4cc; }
.nav-trigger .chev { width: 10px; transition: transform .2s; }
.nav-group.open .chev { transform: rotate(180deg); }
.nav-group.is-current > .nav-trigger { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(560px, 92vw);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-group.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mega-head span.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; }
.nav-group.center .mega-head .tag { background: var(--center-soft); color: #067a96; }
.nav-group.project .mega-head .tag { background: #fff4cc; color: #8a6400; }
.mega-head p { margin: 0; font-size: .82rem; color: var(--ink-3); line-height: 1.4; }
.mega a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
}
.mega a:hover, .mega a[aria-current="page"] { background: var(--surface-2); text-decoration: none; }
.mega a[aria-current="page"] b { color: var(--accent); }
.mega .ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.nav-group.center .ico { background: var(--center-soft); color: #067a96; }
.nav-group.project .ico { background: var(--project-soft); color: var(--eu-600); }
.mega .ico svg { width: 20px; height: 20px; }
.mega b { display: block; font-size: .93rem; }
.mega small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.35; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem var(--font); text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px var(--accent); }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy-700); border-radius: 2px; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffc8; box-shadow: 0 0 0 0 rgba(125, 255, 200, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(125, 255, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 255, 200, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.zone-center .hero::before { background: radial-gradient(1200px 500px at 85% -10%, rgba(34, 195, 230, .35), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(74, 150, 214, .35), transparent 60%), linear-gradient(160deg, #0b1758 0%, #071040 70%); }
.zone-project .hero::before { background: radial-gradient(900px 500px at 90% 0%, rgba(245, 197, 24, .22), transparent 60%), radial-gradient(900px 600px at -10% 120%, rgba(74, 150, 214, .35), transparent 60%), linear-gradient(160deg, #1f3fa8 0%, #102a7c 55%, #0b1758 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1, .hero h2 { color: #fff; }
.hero h1 .hl { background: linear-gradient(90deg, var(--cyan-300), #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zone-project .hero h1 .hl { background: linear-gradient(90deg, var(--gold-300), #ffffff); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .86); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .eyebrow { color: var(--accent-hi); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }
.hero.compact .container { grid-template-columns: 1.3fr .7fr; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero.compact h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .9); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.6rem); color: #fff; line-height: 1.15; white-space: nowrap; }
.stat span { font-size: .8rem; color: rgba(255, 255, 255, .75); line-height: 1.3; display: block; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.alt { background: var(--surface); }
.section.tinted { background: linear-gradient(180deg, var(--accent-soft), transparent); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.split.reverse > :first-child { order: 2; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ico svg { width: 26px; height: 26px; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }

/* Zone cards (the centre vs project explainer) */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.zone-card { position: relative; border-radius: 24px; padding: clamp(26px, 3.4vw, 40px); overflow: hidden; color: #fff; display: flex; flex-direction: column; min-height: 100%; }
.zone-card h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.zone-card p { color: rgba(255, 255, 255, .86); }
.zone-card ul { list-style: none; padding: 0; margin: 6px 0 26px; display: grid; gap: 10px; }
.zone-card li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.zone-card li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.zone-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.zone-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.zone-card .bg-art { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .14; pointer-events: none; }
.zone-card.center { background: linear-gradient(150deg, #0ea5c9 0%, #0b6f9e 45%, #0b1758 100%); }
.zone-card.center .tag { background: rgba(255, 255, 255, .16); }
.zone-card.project { background: linear-gradient(150deg, #2a4cc0 0%, #1f3fa8 40%, #0b1758 100%); }
.zone-card.project .tag { background: var(--gold-400); color: var(--navy-800); }
.zone-card .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .88rem; margin: 0 0 22px; }
.zone-card .kv dt { color: rgba(255, 255, 255, .65); }
.zone-card .kv dd { margin: 0; font-weight: 600; }

/* Service cards */
.service { position: relative; overflow: hidden; }
.service .badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }

/* Feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230ea5c9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
body[data-zone="project"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231f3fa8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Equipment */
.equip { display: flex; flex-direction: column; }
.equip .qty { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.equip .qty small { font-size: 1rem; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.equip h3 { margin-top: 10px; }
.equip .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.equip .spec span { font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); padding: 4px 10px; border-radius: 8px; }
.kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

.device-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 24px; }
.device { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.device b { display: block; font-family: var(--font-display); color: var(--accent); font-size: 1.3rem; }
.device span { font-size: .85rem; color: var(--ink-2); line-height: 1.3; display: block; }

/* Partner */
.partner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.partner-logo { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; display: grid; place-items: center; min-height: 160px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 24px); }
.partner-logo img { max-height: 110px; width: auto; }
.partner h2 { margin-bottom: .3em; }
.partner .points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.partner .points .card h3 { font-size: 1.05rem; }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: linear-gradient(90deg, var(--eu-600), var(--gold-400) 80%, var(--center)); border-radius: 3px; }
.tl-item { position: relative; padding-top: 58px; }
.tl-item::before { content: ""; position: absolute; top: 12px; left: 0; width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 5px solid var(--eu-600); }
.tl-item.done::before { border-color: var(--gold-400); }
.tl-item.now::before { border-color: var(--center); box-shadow: 0 0 0 6px var(--center-soft); }
.tl-item time { font-weight: 800; font-family: var(--font-display); color: var(--navy-700); display: block; }
.tl-item p { font-size: .92rem; color: var(--ink-2); margin: 4px 0 0; }

/* Funding bar */
.money { display: grid; gap: 18px; }
.money .total { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy-700); line-height: 1; }
.money .total small { font-size: 1rem; color: var(--ink-3); }
.bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar span { display: block; height: 100%; }
.bar .eu { background: linear-gradient(90deg, var(--eu-600), #3a62d8); }
.bar .ro { background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); }
.legend { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; font-size: .95rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend b { font-variant-numeric: tabular-nums; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: 20px 22px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.facts dd { margin: 6px 0 0; font-weight: 700; color: var(--navy-700); font-size: 1.05rem; }

/* Objectives & activities */
.obj-list { counter-reset: obj; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.obj-list li { counter-increment: obj; display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; align-items: start; }
.obj-list li::before { content: counter(obj); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--eu-600), var(--sky-500)); }
.activity { position: relative; }
.activity .code { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--navy-800); background: var(--gold-400); padding: 4px 10px; border-radius: 8px; margin-bottom: 12px; }
.activity ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.activity li { position: relative; padding-left: 18px; font-size: .93rem; color: var(--ink-2); }
.activity li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-500); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td.code { font-weight: 800; font-family: var(--font-display); color: var(--eu-600); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0b8a5f; background: #e2f8ef; border-radius: 999px; padding: 2px 10px; font-size: .85rem; white-space: nowrap; }

.indicator { display: flex; flex-direction: column; gap: 10px; }
.indicator .code { font-weight: 800; font-family: var(--font-display); color: var(--eu-600); font-size: .9rem; }
.indicator .vals { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-top: auto; }
.indicator .vals b { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-700); line-height: 1; }
.indicator .vals small { display: block; font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 4px; }
.indicator .vals .got b { color: #0b8a5f; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #1fbf8a, #22c3e6); border-radius: 99px; }

.big-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); line-height: 1; }

/* Team */
.person { text-align: left; display: flex; flex-direction: column; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, var(--eu-600), var(--sky-500)); }
.person:nth-child(2) .avatar { background: linear-gradient(135deg, #0ea5c9, #1f3fa8); }
.person:nth-child(3) .avatar { background: linear-gradient(135deg, #f2b705, #f06a5a); }
.person:nth-child(4) .avatar { background: linear-gradient(135deg, #1fbf8a, #0ea5c9); }
.person:nth-child(5) .avatar { background: linear-gradient(135deg, #6c5ce7, #1f3fa8); }
.person .role { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.person h3 { margin: 4px 0 10px; }
.person .mail { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; display: flex; gap: 8px; align-items: center; word-break: break-all; }
.person .mail svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--ink-3); }

/* Press */
.doc { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.doc .file { width: 56px; height: 68px; border-radius: 10px; background: linear-gradient(160deg, #f06a5a, #c94436); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .78rem; position: relative; box-shadow: var(--shadow-sm); }
.doc .file::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--bg) rgba(0, 0, 0, .18) transparent; }
.doc time { font-size: .82rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #000; position: relative; }
.gallery button:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery button:hover img { transform: scale(1.04); opacity: .92; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 10, 40, .9); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* Contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.contact-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-card b { font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s, background .15s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #0b8a5f; background: #e2f8ef; padding: 12px 16px; border-radius: 12px; }
.form-status.err { color: #b3261e; background: #fdecea; padding: 12px 16px; border-radius: 12px; }
.form button[disabled] { opacity: .7; cursor: progress; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 7; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA band */
.cta-band { border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 60ch; }
.zone-center .cta-band, .cta-band.center { background: radial-gradient(600px 300px at 100% 0, rgba(127, 227, 255, .35), transparent 60%), linear-gradient(120deg, #0b1758, #0b6f9e); }
.zone-project .cta-band, .cta-band.project { background: radial-gradient(600px 300px at 100% 0, rgba(245, 197, 24, .3), transparent 60%), linear-gradient(120deg, #0b1758, #1f3fa8); }

.logo-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.logo-row a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; display: grid; place-items: center; height: 88px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.logo-row a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-row img { max-height: 56px; width: auto; }

.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 16px 18px; background: var(--accent-soft); border: 1px solid rgba(0, 0, 0, .04); color: var(--ink-2); font-size: .93rem; }
.notice svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); margin-top: 0; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.footer-brand b { font-family: var(--font-display); color: #fff; font-size: 1.2rem; display: block; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.footer-col h4 .dot { width: 8px; height: 8px; border-radius: 50%; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col ul a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-col ul a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: var(--cyan-500); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-funding { background: #fff; color: var(--ink-2); }
.footer-funding .container { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.footer-funding img { height: 54px; width: auto; }
.footer-funding p { margin: 0; font-size: .84rem; line-height: 1.5; }
.footer-funding a { color: var(--eu-600); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .85); }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .device-list { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .timeline::before { left: 19px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--eu-600), var(--gold-400) 80%, var(--center)); }
  .tl-item { padding: 6px 0 26px 52px; }
  .tl-item::before { top: 6px; left: 0; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw);
    background: #fff; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 88px 18px 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); z-index: 60;
  }
  body.menu-open .main-nav { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(7, 16, 64, .45); z-index: 45; }
  .nav-toggle { position: relative; z-index: 70; }
  .nav-trigger { width: 100%; justify-content: flex-start; font-size: 1rem; padding: 12px 14px; pointer-events: none; }
  .nav-trigger .chev { display: none; }
  .nav-group { border-radius: 16px; border: 1px solid var(--line); padding: 6px; }
  .nav-group.center { border-left: 4px solid var(--center); }
  .nav-group.project { border-left: 4px solid var(--gold-400); }
  .nav-group.is-current > .nav-trigger { box-shadow: none; border-color: transparent; background: transparent; }
  .mega { position: static; translate: none; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; grid-template-columns: 1fr; }
  .mega-head { display: none; }
  .mega a { padding: 10px 12px; }
  .mega small { display: none; }
  .nav-cta { margin: 6px 0 0; }
  .hero .container, .hero.compact .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero.compact .hero-art { max-width: 320px; }
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .zones { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; }
  .partner-logo { position: static; min-height: 120px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .funding-strip img { height: 34px; max-width: 70%; }
  .brand small { display: none; }
  .brand img { width: 34px; height: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .device-list { grid-template-columns: repeat(2, 1fr); }
  .partner .points { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-funding .container { grid-template-columns: 1fr; text-align: left; }
  .footer-funding img { height: auto; width: 100%; max-width: 360px; }
  .facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery button:first-child { grid-row: auto; }
  .map { aspect-ratio: 4 / 3; }
  th, td { padding: 12px 14px; }
}
