/* ==========================================================================
   EUROINVESTMENT SA — stylesheet
   Static rebuild (from Joomla) — design system
   ========================================================================== */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #163a66;
  --blue-600: #1f5fa8;
  --blue-500: #2b74c4;
  --blue-100: #e7eef8;
  --gold-500: #b8924a;
  --ink-900: #16212f;
  --ink-700: #3c4a5c;
  --ink-500: #64748b;
  --line-200: #e2e8f0;
  --line-100: #edf1f6;
  --bg-000: #ffffff;
  --bg-050: #f6f8fb;
  --bg-100: #eef2f7;
  --ok-600: #1b7a4d;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 /* --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif; */

  --container: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 1px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
}

/* -------------------------------------------------------------------- */
/* Reset / base                                                          */
/* -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg-000);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--navy-900); line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--navy-900); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* -------------------------------------------------------------------- */
/* Top bar                                                               */
/* -------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #cfe0f5;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #cfe0f5; }
.topbar .topbar-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .topbar-meta span { white-space: nowrap; }
.topbar-badge { height: 30px; width: auto; border-radius: 3px; background: #fff; padding: 2px 4px; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  padding-right: 16px; margin-right: 2px;
  border-right: 1px solid rgba(255,255,255,0.22);
  font-weight: 700; letter-spacing: .02em;
}
.lang-switch a { color: #9db3cf; }
.lang-switch a:hover { color: #fff; }
.lang-switch .lang-current { color: #fff; }
.lang-switch .lang-sep { color: rgba(255,255,255,0.35); }

/* -------------------------------------------------------------------- */
/* Header / nav                                                         */
/* -------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line-200);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-200); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900);
  margin: 5px auto; transition: transform .2s ease, opacity .2s ease;
}

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav { position: relative; }
.primary-nav > .container,
.primary-nav > ul { }
.primary-nav .nav-item { position: relative; }
.primary-nav .nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 14px; color: var(--ink-900); font-weight: 600; font-size: 0.94rem;
  border-radius: 8px;
}
.primary-nav .nav-link:hover, .primary-nav .nav-link[aria-current="page"] {
  color: var(--blue-600); background: var(--blue-100); text-decoration: none;
}
.primary-nav .caret { font-size: 0.6em; margin-top: 2px; opacity: .7; }

.has-submenu .submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #fff; border: 1px solid var(--line-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li + li { margin-top: 2px; }
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-900); font-size: 0.92rem; }
.submenu a:hover { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }
.submenu .submenu-nested { list-style: none; margin: 2px 0 2px 14px; padding-left: 10px; border-left: 2px solid var(--line-200); }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(43,116,196,0.25), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #eaf1fb;
  padding: 76px 0 84px;
}
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; font-weight: 700; color: var(--gold-500);
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lead { color: #c6d6ec; font-size: 1.1rem; max-width: 58ch; }
.hero .hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; margin-top: 40px; max-width: 760px;
}
.hero .stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 16px 18px;
}
.hero .stat .stat-value { font-family: var(--font-sans); font-size: 1.5rem; color: #fff; font-weight: 700; }
.hero .stat .stat-label { font-size: 0.82rem; color: #aec3de; margin-top: 2px; }

.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 56px 0 60px;
}
.page-hero .eyebrow { color: var(--gold-500); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #c6d6ec; max-width: 62ch; margin-bottom: 0; }
.breadcrumbs { font-size: 0.82rem; color: #9db3cf; margin-bottom: 14px; }
.breadcrumbs a { color: #cfe0f5; }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }

/* -------------------------------------------------------------------- */
/* Sections / cards                                                     */
/* -------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line-100); }
.section-alt { background: var(--bg-050); }
.section-head { max-width: 68ch; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--blue-600); text-transform: uppercase; font-weight: 700; letter-spacing: .12em; font-size: .76rem; }

.card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}

/* Ventures grid (brands/ventures under the group) */
.venture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 900px) { .venture-grid { grid-template-columns: 1fr; } }
.venture-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-200);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.venture-card:hover { transform: translateY(-3px); border-color: var(--blue-500); }
.venture-card.is-plan { background: var(--bg-050); border-style: dashed; }
.venture-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.venture-name { font-family: var(--font-sans); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); line-height: 1.2; }
.venture-card.is-plan .venture-name { color: var(--ink-500); }
.venture-domain { font-size: 0.82rem; color: var(--ink-500); margin-top: 3px; }
.venture-status {
  flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line-200); white-space: nowrap;
}
.venture-status.status-live { color: var(--ok-600); border-color: rgba(27,122,77,.35); background: rgba(27,122,77,.08); }
.venture-status.status-dev { color: var(--gold-500); border-color: rgba(184,146,74,.4); background: rgba(184,146,74,.1); }
.venture-status.status-plan { color: var(--ink-500); background: var(--bg-100); }
.venture-card p { color: var(--ink-700); font-size: 0.94rem; margin: 14px 0 0; flex: 1; }
.venture-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 0.92rem; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.person-card { background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.person-card .person-role { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); background: var(--blue-100); padding: 3px 9px; border-radius: 100px; margin-bottom: 10px; }
.person-card h3 { margin-bottom: 2px; }
.person-card .person-since { color: var(--ink-500); font-size: 0.85rem; margin-bottom: 12px; }
.person-card p:last-child { margin-bottom: 0; font-size: 0.94rem; color: var(--ink-700); }

.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line-100); flex-wrap: wrap;
}
.board-list li:last-child { border-bottom: none; }
.board-list .name { font-weight: 600; color: var(--navy-900); }
.board-list .role { color: var(--ink-500); font-size: 0.9rem; }
.board-list .since { color: var(--ink-500); font-size: 0.85rem; white-space: nowrap; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-200); }
.timeline li { position: relative; padding: 4px 0 28px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-600);
}
.timeline .tl-date { font-weight: 700; color: var(--navy-900); display: block; margin-bottom: 4px; }
.timeline .tl-body { color: var(--ink-700); font-size: 0.96rem; }
.timeline .tl-body p:last-child { margin-bottom: 0; }

/* Archive: details/summary accordions (no JS required) */
.archive-list { display: flex; flex-direction: column; gap: 10px; }
.archive-year {
  border: 1px solid var(--line-200); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.archive-year summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--font-sans);
  font-weight: 700; font-size: 1.05rem; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-050);
}
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary .count { font-family: var(--font-sans); font-weight: 600; font-size: 0.78rem; color: var(--ink-500); background: #fff; border: 1px solid var(--line-200); padding: 2px 10px; border-radius: 100px; }
.archive-year summary .chev { transition: transform .18s ease; color: var(--blue-600); font-size: 0.85em; }
.archive-year[open] summary .chev { transform: rotate(90deg); }
.archive-body { padding: 6px 20px 18px; }
.report-list { list-style: none; margin: 0; padding: 0; }

/* Column header row above each year's report list, labelling the date/name
   columns (Data/Nazwa — Date/Name) the same way the summary rows below are
   laid out, so the two line up. */
.report-table-head {
  display: flex; gap: 14px; padding: 2px 10px 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500);
}
.report-table-head .rth-date { flex: 0 0 auto; min-width: 84px; }
.report-table-head .rth-name { flex: 1 1 auto; }

/* Each report row is itself a details/summary accordion: the summary shows
   date / no. / title, and expanding it reveals the full report text plus
   any local document downloads — no more linking out to the old site. */
.report-item {
  border-bottom: 1px solid var(--line-100);
}
.report-item:last-child { border-bottom: none; }
.report-item summary {
  cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: baseline;
  padding: 10px 10px 10px 10px; border-radius: 6px;
}
.report-item summary::-webkit-details-marker { display: none; }
.report-item summary:hover { background: var(--bg-050); }
.report-item summary .report-date { flex: 0 0 auto; color: var(--ink-500); font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 84px; }
.report-item summary .report-name { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.report-item summary .report-no {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-500);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: .03em;
}
.report-item summary .report-title { color: var(--ink-900); font-size: 0.95rem; }
.report-item summary .chev { flex: 0 0 auto; transition: transform .18s ease; color: var(--blue-600); font-size: 0.85em; align-self: center; }
.report-item[open] summary .chev { transform: rotate(90deg); }
.report-item-body { padding: 4px 4px 20px 96px; }
.report-item-body p { margin: 0 0 12px; color: var(--ink-700); font-size: 0.94rem; line-height: 1.65; white-space: pre-line; }
.report-item-body p:last-of-type { margin-bottom: 16px; }
.report-item-body .doc-list a { padding: 10px 14px; font-size: 0.88rem; }
@media (max-width: 640px) {
  .report-item summary { flex-wrap: wrap; }
  .report-item summary .report-name { flex-basis: 100%; order: 2; }
  .report-item-body { padding-left: 4px; }
  .report-table-head .rth-date { min-width: 0; }
}

/* EBI / ESPI tabs — plain anchor links + :target/:has(), so switching works
   with CSS alone; a touch of JS (reports.js) just keeps the active page from
   jumping and swaps aria-selected. Pagination (below) is JS-only progressive
   enhancement: without it every report for the year simply shows in full. */
.report-tabs { }
.report-tab-nav { display: flex; gap: 10px; margin-bottom: 18px; }
.report-tab-btn {
  flex: 1 1 0; text-align: center; padding: 14px 20px; border: 1px solid var(--line-200);
  border-radius: var(--radius); background: #fff; color: var(--ink-700); font-weight: 700;
  font-size: 1rem; font-family: var(--font-sans); text-decoration: none; transition: all .15s ease;
}
.report-tab-btn:hover { border-color: var(--blue-500); color: var(--blue-600); text-decoration: none; }
.report-tab-btn[data-tab="ebi"],
.report-tabs:has(#tab-ebi:target) .report-tab-btn[data-tab="ebi"] { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.report-tabs:has(#tab-espi:target) .report-tab-btn[data-tab="ebi"] { background: #fff; color: var(--ink-700); border-color: var(--line-200); }
.report-tabs:has(#tab-espi:target) .report-tab-btn[data-tab="espi"] { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
/* reports.js (JS path) sets these directly instead of relying on :target,
   since it intercepts the click with preventDefault(); they take the same
   look as the :target rules above, which remain the no-JS fallback. */
.report-tab-btn.is-active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.report-tab-btn.is-inactive { background: #fff; color: var(--ink-700); border-color: var(--line-200); }

.report-tab-panel { display: none; scroll-margin-top: 96px; }
#tab-ebi { display: block; } /* default: EBI shown when no #tab-... fragment is targeted */
.report-tabs:has(#tab-espi:target) #tab-ebi { display: none; }
.report-tabs:has(#tab-espi:target) #tab-espi { display: block; }
.report-tabs:has(#tab-ebi:target) #tab-ebi { display: block; }
.report-tabs:has(#tab-ebi:target) #tab-espi { display: none; }

/* Pagination controls injected by reports.js under any report list longer
   than one page. */
.report-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 16px 10px 4px; }
.report-pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line-200); border-radius: 8px;
  background: #fff; color: var(--ink-700); font-weight: 600; font-size: 0.9rem; font-family: var(--font-sans); cursor: pointer;
}
.report-pagination button:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-600); }
.report-pagination button.is-active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); cursor: default; }
.report-pagination button:disabled { opacity: .4; cursor: not-allowed; }

.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-200);
  border-radius: var(--radius); background: #fff; color: var(--ink-900); font-weight: 600; font-size: 0.95rem;
}
.doc-list a:hover { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-600); text-decoration: none; }
.doc-list .doc-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800;
}
.doc-list .doc-meta { margin-left: auto; font-weight: 500; color: var(--ink-500); font-size: 0.82rem; }

/* Press gallery */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.press-item { border: 1px solid var(--line-200); border-radius: var(--radius); overflow: hidden; background: var(--bg-050); box-shadow: var(--shadow-sm); }
.press-thumb {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: var(--bg-100);
  cursor: zoom-in; position: relative; overflow: hidden;
}
.press-thumb img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .35s ease; }
.press-thumb .press-zoom-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(11,31,58,0) 45%, rgba(11,31,58,0.55) 100%);
  opacity: 0; transition: opacity .2s ease;
}
.press-thumb .press-zoom-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(11,31,58,0.35);
  transform: translateY(6px); transition: transform .2s ease;
}
.press-thumb .press-zoom-icon svg { width: 20px; height: 20px; color: var(--navy-900); }
.press-thumb:hover img, .press-thumb:focus-visible img { transform: scale(1.06); }
.press-thumb:hover .press-zoom-overlay, .press-thumb:focus-visible .press-zoom-overlay { opacity: 1; }
.press-thumb:hover .press-zoom-icon, .press-thumb:focus-visible .press-zoom-icon { transform: translateY(0); }
.press-thumb:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.press-item .press-cap { padding: 12px 14px; font-size: 0.86rem; color: var(--ink-700); }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(9, 20, 38, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox-dialog { position: relative; max-width: min(94vw, 1080px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox img {
  display: block; max-width: min(94vw, 1080px); max-height: 74vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox-caption { color: #fff; margin-top: 18px; text-align: center; font-size: 0.98rem; max-width: 60ch; }
.lightbox-counter { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 6px; letter-spacing: .04em; }
.lightbox-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; padding: 0;
  transition: background .15s ease;
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: rgba(255,255,255,0.2); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close { top: -52px; right: 0; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: -48px; right: 0; }
  .lightbox-prev { left: 0; top: auto; bottom: -56px; transform: none; }
  .lightbox-next { right: 0; top: auto; bottom: -56px; transform: none; }
}

.figure { border: 1px solid var(--line-200); border-radius: var(--radius); overflow: hidden; background: var(--bg-050); max-width: 520px; }
.figure img { width: 100%; display: block; }
.figure figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--ink-500); border-top: 1px solid var(--line-200); }

/* Data table (e.g. Akcjonariat) */
.data-table {
  width: 100%; border: 1px solid var(--line-200); border-radius: var(--radius);
  overflow: hidden; font-size: 0.92rem;
}
.data-table th, .data-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line-100); }
.data-table th[scope="col"] { text-align: right; background: var(--bg-050); color: var(--ink-500); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.data-table th[scope="row"] { text-align: left; font-weight: 600; color: var(--navy-900); background: var(--bg-050); }
.data-table th[scope="col"]:first-child, .data-table td:first-child, .data-table th[scope="row"] { text-align: left; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }
.data-table .data-table-total th, .data-table .data-table-total td { font-weight: 700; color: var(--navy-900); background: var(--blue-100); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  font-weight: 700; font-size: 0.94rem; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: #fff; border-color: var(--line-200); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Info / notice */
.notice {
  border: 1px solid var(--line-200); background: var(--bg-050); border-left: 4px solid var(--blue-500);
  border-radius: 8px; padding: 16px 18px; font-size: 0.92rem; color: var(--ink-700);
}
.notice strong { color: var(--navy-900); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.contact-grid > .card { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-100); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci-label { flex: 0 0 150px; color: var(--ink-500); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-list .ci-value { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--navy-900); overflow-wrap: break-word; word-break: break-word; }
.contact-list .ci-value small { display: block; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
.contact-list .ci-value img { max-width: min(160px, 100%); height: auto; }
@media (max-width: 480px) {
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list .ci-label { flex-basis: auto; }
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9cbe4; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #90a8c8; }
.site-footer p { color: #9db3cf; font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfe0f5; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem; color: #7f97b8;
}
.back-to-top { color: #cfe0f5; }

/* -------------------------------------------------------------------- */
/* Utility page bits                                                    */
/* -------------------------------------------------------------------- */
.lede { font-size: 1.08rem; color: var(--ink-700); max-width: 68ch; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-nav { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-200); border-radius: var(--radius); overflow: hidden; }
.side-nav li { border-bottom: 1px solid var(--line-100); }
.side-nav li:last-child { border-bottom: none; }
.side-nav a { display: block; padding: 12px 16px; color: var(--ink-900); font-weight: 600; font-size: 0.92rem; }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }
.side-nav .side-nav-title { padding: 12px 16px; background: var(--bg-050); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); font-weight: 700; }

/* -------------------------------------------------------------------- */
/* Responsive nav (mobile)                                              */
/* -------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 76px 0 0 0; background: #fff; padding: 10px 20px 30px;
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    border-top: 1px solid var(--line-200);
  }
  .site-header.nav-open .primary-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav .nav-link { padding: 14px 10px; }
  .has-submenu .submenu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; border: none; border-left: 2px solid var(--line-200); border-radius: 0;
    margin: 4px 0 4px 14px; padding: 4px 0 4px 10px;
  }
  .has-submenu.submenu-open .submenu { display: block; }
  .has-submenu .submenu-nested { margin-left: 10px; }
  .site-header.nav-open .nav-toggle span { opacity: 0; }
  .site-header.nav-open .nav-toggle::before { transform: translateY(5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle::after { transform: translateY(-5px) rotate(-45deg); }
}
