/* InspectHub: inspecthub.pl. Kolory i typografia wg brandbooka InspectHub (Lupa + hub). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #0A2540;
  --blue: #0B5FD0;
  --blue-dark: #094FAE;
  --bright: #2E96FF;
  --cyan: #38BDF8;
  --text: #1E293B;
  --muted: #475569;
  --line: #E2E8F0;
  --soft: #EEF2F8;
  --tint: #F5F8FC;
  --white: #FFFFFF;
  --ok: #0F7A3D;
  --ok-bg: #E7F5EC;
  --plan-bg: #EEF2F8;
  --radius: 16px;
  --g: 16px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  /* Szerokość paska znaków FEM = szerokość kontenera. Flaga UE ma 4,26% tej szerokości (wysokość).
     Sygnet InspectHub liczony z mniejszym współczynnikiem, aby nigdy nie był wyższy od flagi UE
     (Zał. 6 do umowy o powierzenie grantu, pkt 1). */
  --strip-w: min(calc(100vw - 2 * var(--g)), var(--max));
  --mark-h: min(calc(var(--strip-w) * 0.040), 40px);
}
@media (min-width: 720px) {
  :root { --g: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Pasek znaków FEM | RP | UE | Małopolska: zawsze na samej górze, na białym tle, w wersji pełnokolorowej. */
.eu-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.eu-strip { display: block; width: 100%; padding: 4px 0; }
.eu-strip img { width: 100%; height: auto; }

/* Nawigacja */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.brand img { height: var(--mark-h); width: auto; }
.brand .in { font-weight: 500; color: var(--ink); }
.brand .hub { font-weight: 700; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) {
  .nav .opt { display: none; }
  .nav a { font-size: 14px; padding: 8px; }
}

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2; padding: 13px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.nav .btn { padding: 9px 14px; font-size: 14px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }
.nav a.btn-primary:hover { background: var(--blue-dark); }

/* Hero */
.hero { background: radial-gradient(120% 120% at 85% 0%, #E6F1FF 0%, var(--tint) 45%, var(--white) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 600; }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); flex: 0 0 8px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
}

/* Przykład rozmowy */
.chat { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(10, 37, 64, 0.35); padding: 20px; }
.chat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-top b { font-family: var(--font-head); color: var(--ink); font-size: 14px; font-weight: 600; }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.msg-q { background: var(--ink); color: var(--white); margin-left: 15%; border-bottom-right-radius: 4px; }
.msg-a { background: var(--soft); color: var(--text); margin-top: 12px; margin-right: 6%; border-bottom-left-radius: 4px; }
.msg-a ul { margin: 8px 0 0; padding-left: 18px; }
.msg-a li { margin: 3px 0; }
.src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.src span { font-size: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--blue); font-weight: 500; }

/* Sekcje */
.section { padding: 80px 0; }
.section.alt { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; }
.section-head h2 + p { margin-top: 14px; color: var(--muted); font-size: 18px; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--blue); font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; margin: 36px 0 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 30px; color: var(--text); }
.features li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #CFE3FF; }
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

/* Blok projektu UE na stronie głównej */
.eu-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.eu-box h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; }
.eu-box h2 + p { margin-top: 12px; color: var(--muted); }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .eu-box { grid-template-columns: 1fr; padding: 24px; }
}
p.tags { margin-top: 14px; font-size: 14px; color: var(--blue); font-weight: 600; }

/* Kontakt */
.contact { background: var(--ink); color: #DCE6F5; }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.contact h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; }
.contact p { margin-top: 14px; font-size: 18px; color: #B9C7DC; }
.contact .btn-primary { background: var(--white); color: var(--ink); }
.contact .btn-primary:hover { background: #E6F1FF; color: var(--ink); }
.contact address { font-style: normal; font-size: 15px; line-height: 1.7; color: #B9C7DC; }
.contact address a { color: var(--white); }
@media (max-width: 900px) {
  .contact .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
}

/* Stopka */
.site-foot { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: start; }
.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-foot nav a:hover { color: var(--blue); text-decoration: underline; }
.legal { line-height: 1.7; }
.legal strong { color: var(--ink); }
@media (max-width: 720px) {
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: flex-start; }
}

/* Podstrony: opis projektu, polityka prywatności */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; max-width: 22em; }
.page-head .lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 46em; }
.doc { padding: 56px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.doc-main > section + section { margin-top: 44px; }
.doc-main h2 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.doc-main h3 { font-size: 19px; font-weight: 600; margin: 22px 0 8px; }
.doc-main p + p { margin-top: 12px; }
.doc-main ul { margin: 10px 0 0; padding-left: 22px; }
.doc-main li { margin: 6px 0; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.aside .facts dd { font-size: 22px; }
.aside .card { padding: 20px; }
.aside .card p { font-size: 14px; color: var(--muted); }
.aside .card p + p { margin-top: 10px; }
.aside .card strong { color: var(--ink); }
@media (max-width: 980px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; order: -1; }
}

.stages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.stage-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.stage h3 { margin: 0; font-size: 19px; }
.stage .when { font-size: 14px; color: var(--muted); }
.stage ul { margin-top: 10px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; margin-top: 10px; }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.plan { background: var(--plan-bg); color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); color: var(--ink); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.n { white-space: nowrap; }

.note { font-size: 14px; color: var(--muted); }
.prose { max-width: 46em; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 36px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

.err { padding: 96px 0; text-align: center; }
.err h1 { font-size: clamp(34px, 5vw, 48px); }
.err p { margin-top: 14px; color: var(--muted); }
.err .actions { justify-content: center; }
