/* Styl zgodny z perfact.pl: Rubik, granat/niebieski/mięta, biel, bez ciemnego motywu. */
@font-face {
  font-family: "Rubik";
  src: url("/fonts/Rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #0e244a;
  --blue: #1e4e8a;
  --mint: #3beacf;
  --soft: #35507a;
  --line: #d5e0ec;
  --bg-soft: #f2f6fa;
  --bg-img: #dce6f2;
  --wrap: 1200px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font: 1.0625rem/1.6 var(--font);
  color: var(--navy);
  background: #fff;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

mark {
  background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.1em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.brand-bar { height: 8px; background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--mint)); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.brand img { width: 52px; height: 52px; object-fit: contain; }

.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.12; }
.hero .project-logo { display: block; margin: 0 auto 1.5rem; height: 8rem; width: 8rem; }
.hero-figure { position: relative; margin: 2.5rem auto 0; max-width: 40rem; padding: 0 0 24px 24px; }
.hero-figure::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--mint); border-radius: 28px; }
.hero-figure img { position: relative; display: block; width: 100%; border-radius: 28px; background: var(--bg-img); }

.content { margin: 3rem auto 0; max-width: 46rem; padding: 0 20px 5rem; }
.content h2 { font-size: 1.875rem; margin: 3.5rem 0 1.25rem; }
.content h3 { font-size: 1.3rem; margin: 2.2rem 0 0.75rem; }
.content p { margin: 0 0 1.1rem; }
.content ul, .content ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.content li { margin-bottom: 0.4rem; }
.content a.link { text-underline-offset: 3px; }
.content figure { margin: 1.75rem 0; }
.content figure img { display: block; width: 100%; border-radius: 28px; background: var(--bg-img); }

.content ul.stats {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.stats li { margin: 0; padding: 1.1rem 1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; text-align: center; }
.stats strong { display: block; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; color: var(--blue); }
.stats span { display: block; margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.3; color: var(--soft); }

.content ul.downloads { list-style: none; padding: 0; }
.downloads span { display: block; font-size: 0.9375rem; line-height: 1.3; color: var(--soft); text-decoration: none; }

.site-footer { background: var(--navy); color: #c9d6e8; border-top: 1px solid var(--blue); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 0.9375rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #c9d6e8; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: var(--mint); }
