/* GO EPI VizioPoint – arkusz stylów (bez zewnętrznych czcionek i skryptów) */
:root {
  --green-900: #12351f;
  --green-700: #1f5a33;
  --green-600: #2b7a45;
  --green-100: #e7f2ea;
  --sand-50: #faf8f3;
  --ink: #1d2420;
  --muted: #56615a;
  --line: #d9e0db;
  --white: #ffffff;
  --eu-blue: #003399;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Pasek znaków – widoczny bez przewijania (zał. III rozp. 2022/129) */
.logos {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.logos .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logos img { display: block; width: auto; }
.logos .eu { height: 76px; }
.logos .pswpr { height: 64px; }

/* Nawigacja */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-900);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand:hover { color: var(--white); }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: #d6e8dc;
  text-decoration: none;
  font-size: 15px;
}
.nav ul a:hover { color: var(--white); text-decoration: underline; }

/* Nagłówek */
.hero {
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: var(--white);
  padding: 56px 0 48px;
}
.hero .eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b9dcc4;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.2;
}
.hero .title {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  max-width: 820px;
}
.hero .lead { margin: 0; max-width: 820px; color: #e3f0e7; }

/* Sekcje */
section { padding: 56px 0; }
section.alt { background: var(--sand-50); }
h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--green-900);
  line-height: 1.25;
}
h3 { margin: 28px 0 10px; font-size: 20px; color: var(--green-700); }
p { margin: 0 0 14px; }
ul.list { padding-left: 22px; margin: 0 0 14px; }
ul.list li { margin-bottom: 6px; }

.funding {
  border-left: 4px solid var(--eu-blue);
  background: #f2f5fb;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}
.funding p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p:last-child { margin-bottom: 0; }

/* Tabela składu grupy */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
th { background: var(--green-100); color: var(--green-900); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  background: var(--green-700);
  color: var(--white);
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Harmonogram */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 18px 28px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-600);
}
.timeline strong { display: block; color: var(--green-900); }

/* Aktualności */
.news { display: grid; gap: 16px; }
.news article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.news time { font-size: 14px; color: var(--muted); font-weight: 600; }
.news h3 { margin: 4px 0 8px; font-size: 18px; }
.news p:last-child { margin-bottom: 0; }

.note { color: var(--muted); font-size: 15px; }

/* Stopka */
footer {
  background: var(--green-900);
  color: #d6e8dc;
  padding: 36px 0 28px;
  font-size: 15px;
}
footer a { color: var(--white); }
footer a:hover { color: #b9dcc4; }
footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 32px;
  margin-bottom: 20px;
}
footer h4 { margin: 0 0 8px; color: var(--white); font-size: 16px; }
footer p { margin: 0 0 8px; }
footer .small { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: 13px; }

/* Strona tekstowa (polityka prywatności) */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc h1 { color: var(--green-900); font-size: clamp(26px, 4vw, 34px); line-height: 1.25; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .logos .wrap { gap: 12px 16px; }
  .logos .eu { height: 50px; }
  .logos .pswpr { height: 44px; }
  .nav .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .nav { position: static; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  /* Tabela składu jako lista kart */
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 1px 0; }
  td:first-child { display: none; }
  td:nth-child(2) { font-weight: 600; color: var(--green-900); }
  td:nth-child(3) { font-size: 14px; color: var(--muted); }
}

@media print {
  .nav { position: static; }
}
