/* jntdotacje.pl */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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 {
  --ink-900: #0E2A2B;
  --ink-700: #174443;
  --brand: #1E6B62;
  --gold: #B8862B;
  --text: #16222A;
  --muted: #5B6B70;
  --surface: #F4F6F6;
  --line: #DCE2E2;
  --line-strong: #B9C4C4;
  --white: #FFFFFF;
  --on-ink-2: rgba(255, 255, 255, .72);
  --on-ink-3: rgba(255, 255, 255, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --t-display: 34px;
  --t-h2: 26px;
  --t-h3: 19px;
  --t-num: 32px;
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-eyebrow: 12px;

  --pad: 20px;
  --section: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1024px) {
  :root {
    --t-display: 52px; --t-h2: 34px; --t-h3: 22px; --t-num: 40px;
    --t-lead: 20px; --t-body: 17px; --t-eyebrow: 13px;
    --section: 112px;
  }
}
@media (min-width: 1280px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; color: var(--ink-900); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
a:hover { color: var(--ink-900); }
p a, .rodo a, .page a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 20;
  background: var(--white); color: var(--ink-900); padding: 12px 16px; border: 1px solid var(--line);
}
.skip:focus { top: 8px; }

.nowrap { white-space: nowrap; }
.num-fig { font-feature-settings: "tnum" 1; }

.eyebrow {
  font-size: var(--t-eyebrow); font-weight: 600; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px;
}
.small { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* Siatka */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .col-4 { grid-column-end: span 4; }
  .col-5 { grid-column-end: span 5; }
  .col-6 { grid-column-end: span 6; }
  .col-7 { grid-column-end: span 7; }
  .col-8 { grid-column-end: span 8; }
  .col-start-5 { grid-column-start: 5; }
  .col-start-8 { grid-column-start: 8; }
}

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink-900); color: var(--white); }
.btn-primary:hover { background: var(--ink-700); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink-900); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-900); color: var(--ink-900); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 1024px) { .btn { min-height: 44px; font-size: 15px; } }

.arrow-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; }
.arrow-link .arr { display: inline-block; margin-left: .35em; transition: transform .15s; }
.arrow-link:hover .arr, .tile:hover .arr { transform: translateX(2px); }

/* Nagłówek */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; }
@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
  .site-header .container { min-height: 64px; }
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-900); }
.wordmark:hover { color: var(--ink-900); }
.wm-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.wm-bar { width: 1px; height: 16px; background: var(--line-strong); }
.wm-sub { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1024px) { .wm-sub { font-size: 13px; } }
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; gap: 32px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color var(--d-fast), text-decoration-color var(--d-fast); }
  .nav a:hover { color: var(--brand); text-decoration-color: var(--brand); }
}

/* Hero */
.hero { padding: 48px 0; }
@media (min-width: 1024px) { .hero { padding: 112px 0 64px; } .hero .grid { align-items: center; } }
.hero h1 { margin-bottom: 24px; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text); max-width: 60ch; margin-bottom: 32px; }
.actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.actions .arrow-link { justify-content: center; font-size: 16px; }
@media (min-width: 600px) {
  .actions { flex-direction: row; align-items: center; gap: 28px; }
  .actions .arrow-link { font-size: 15px; }
}
.facts {
  margin-top: 40px; background: var(--ink-900); color: var(--white);
  border-radius: 8px; padding: 20px;
}
@media (min-width: 1024px) { .facts { margin-top: 0; padding: 32px; } }
.facts dl { margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts div:last-child { padding-bottom: 0; }
@media (min-width: 1024px) { .facts div { padding: 18px 0; } }
.facts dt { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }

/* Kafle */
.tiles-sec { padding: 0 0 var(--section); }
.tiles { display: grid; gap: 16px; }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tile {
  display: grid; grid-template-rows: auto auto auto auto auto 1fr auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; color: var(--text);
}
@media (min-width: 1024px) { .tile { padding: 28px; } }
.tile:hover { border-color: var(--ink-700); color: var(--text); }
.tile:hover h3 { color: var(--brand); }
.tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.tile .eyebrow { margin-bottom: 14px; }
.rule-gold { width: 32px; height: 2px; background: var(--gold); margin-bottom: 18px; transition: width var(--d-fast) var(--ease-out); }
.tile:hover .rule-gold, .tile:focus-visible .rule-gold { width: 48px; }
.num-pre { font-size: var(--t-small); color: var(--muted); line-height: 1.2; margin-bottom: 4px; min-height: 17px; }
.num {
  font-size: var(--t-num); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink-900); font-feature-settings: "tnum" 1; white-space: nowrap; margin-bottom: 10px;
}
.tile .caption { margin-bottom: 24px; }
.tile h3 { margin-bottom: 10px; transition: color .15s; }
.tile .who { margin: 0 0 20px; color: var(--muted); }
.tile .arrow-link { color: var(--brand); min-height: 24px; }
.tiles-note { margin: 24px 0 0; max-width: none; }

/* Zasady */
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--muted); max-width: 40ch; margin: 0; }
.rules { margin-top: 40px; display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .rules { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}
.rule-no { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: 12px; font-feature-settings: "tnum" 1; }
.rules h3 { margin-bottom: 8px; }
.rules p { margin: 0; color: var(--muted); }

/* O mnie */
.about .text { margin-top: 24px; }
@media (min-width: 1024px) { .about .text { margin-top: 0; } }
.about .text p { max-width: 60ch; }
.about .text p:last-child { margin-bottom: 0; }

/* Szczegóły programów */
.details-head { margin-bottom: 40px; }
.details-head h2 { margin-bottom: 12px; }
.details-head p { margin: 0; max-width: 72ch; }
.program { border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.program:last-of-type { border-bottom: 1px solid var(--line); }
.program summary, .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none;
}
.program summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.program summary::after, .faq summary::after {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px;
  background: var(--muted);
  -webkit-mask: url("img/chevron.svg") center / 16px 16px no-repeat;
  mask: url("img/chevron.svg") center / 16px 16px no-repeat;
  transition: rotate var(--d-fast) var(--ease-out), background-color var(--d-fast);
}
.program summary:hover::after, .faq summary:hover::after { background: var(--brand); }
.program[open] > summary::after, .faq details[open] > summary::after { rotate: 180deg; }
.program summary:hover .p-title, .faq summary:hover { color: var(--brand); }
.program summary:focus-visible, .faq summary:focus-visible { outline-offset: -2px; }
.p-sum { display: flex; flex-direction: column; gap: 4px; }
.p-sum .eyebrow { margin: 0; }
.p-title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink-900); transition: color .15s; }
.p-amount { white-space: nowrap; font-feature-settings: "tnum" 1; }
.program-body { padding: 8px 0 40px; }
.cols { display: grid; gap: 28px; }
@media (min-width: 768px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1024px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cols .eyebrow { margin-bottom: 12px; }
.cols li {
  position: relative; padding-left: 16px; margin-bottom: 10px;
  font-size: 15px; line-height: 1.55; color: var(--text);
}
.cols li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--muted); }
.p-note { margin: 28px 0 0; max-width: 72ch; }
.legal { margin: 20px 0 0; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .faq { margin-top: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 16px; font-weight: 500; color: var(--ink-900); line-height: 1.4; }
.faq .answer { padding: 0 32px 20px 0; }
.faq .answer p { margin: 0; max-width: 64ch; }

/* Pas kontaktu */
.band { background: var(--ink-900); color: var(--white); padding: var(--section) 0; }
.band h2 { color: var(--white); margin-bottom: 20px; }
.band p { color: var(--on-ink-2); max-width: 48ch; margin: 0; }
.band .contact { margin-top: 40px; }
@media (min-width: 1024px) { .band .contact { margin-top: 0; } }
.band .email { display: flex; align-items: center; width: fit-content; min-height: 44px; font-size: 20px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; margin-bottom: 4px; font-feature-settings: "tnum" 1; }
.band .email.phone { margin-bottom: 24px; }
@media (min-width: 1024px) { .band .email { font-size: 22px; } }
.band .email:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.btn-on-ink { background: var(--white); color: var(--ink-900); }
.btn-on-ink:hover { background: #EAF0EF; color: var(--ink-900); }
.band :focus-visible { outline-color: var(--white); }
.band .btn { width: 100%; }
@media (min-width: 600px) { .band .btn { width: auto; } }
.band .rodo { margin-top: 24px; font-size: var(--t-small); line-height: 1.5; color: var(--on-ink-3); max-width: 52ch; }
.band .rodo a { color: var(--white); }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .foot-a { grid-column: 1 / span 4; }
  .foot-b { grid-column: 6 / span 3; }
  .foot-c { grid-column: 10 / span 3; }
}
.site-footer .wordmark { margin-bottom: 12px; }
.site-footer p { margin: 0; }
.foot-list li a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; color: var(--text); }
.foot-list li a:hover { color: var(--brand); }
.foot-list .small { display: block; padding-top: 8px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Strony pomocnicze */
.page { padding: 64px 0; }
.page .inner { max-width: 760px; }
.page h1 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 24px; }
.page h2 { font-size: var(--t-h3); margin: 40px 0 12px; }
.page p { max-width: 64ch; }
.page ul { max-width: 64ch; margin: 0 0 1em; padding: 0; list-style: none; }
.page li { position: relative; padding-left: 18px; margin-bottom: 12px; }
.page li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.page strong { font-weight: 600; color: var(--ink-900); }
.links-404 { margin: 8px 0 32px; }
.links-404 a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }

/* Widoczność wg szerokości */
.hide-mobile { display: none; }
@media (min-width: 1024px) { .hide-mobile { display: inline-flex; } .hide-desktop { display: none; } }
.pt-0 { padding-top: 0; }
.tile-body { display: block; }
.tile .who { display: block; }

@media (min-width: 1024px) {
  .hero h1 .l { display: block; }
  .tile .caption { min-height: 42px; }
}

/* Ruch i detale */

:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --d-fast: 150ms;
  --d-base: 250ms;
  --d-enter: 420ms;
  --shift: 10px;
}

/* Typografia */
p, li { text-wrap: pretty; }

/* Przycisk */
.btn:active { translate: 0 1px; }

/* Wejście pierwszego ekranu */
@media (prefers-reduced-motion: no-preference) {
  .hero .col-7 > *, .facts, .tile {
    transition: opacity var(--d-enter) var(--ease-out) var(--delay, 0ms),
                translate var(--d-enter) var(--ease-out) var(--delay, 0ms),
                border-color var(--d-fast), color var(--d-fast);
  }
  @starting-style {
    .hero .col-7 > *, .facts, .tile { opacity: 0; translate: 0 var(--shift); }
  }
  .hero .col-7 > :nth-child(2) { --delay: 60ms; }
  .hero .col-7 > :nth-child(3) { --delay: 120ms; }
  .hero .col-7 > :nth-child(4) { --delay: 180ms; }
  .facts { --delay: 240ms; }
  .tile:nth-child(1) { --delay: 300ms; }
  .tile:nth-child(2) { --delay: 360ms; }
  .tile:nth-child(3) { --delay: 420ms; }
}

/* Pojawianie przy przewijaniu */
@keyframes reveal {
  from { opacity: 0; translate: 0 var(--shift); }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

/* Płynne akordeony */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--d-base) var(--ease-out), content-visibility var(--d-base) allow-discrete;
  }
  details[open]::details-content { block-size: auto; }
}

/* Nagłówek po przewinięciu */
@media (min-width: 1024px) {
  .site-header { container-type: scroll-state; }
  .site-header .container::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--line-strong); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease-out);
  }
  @container scroll-state(stuck: top) { .site-header .container::after { opacity: 1; } }
}

/* Przejście między stronami */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Infografika: oś czasu obowiązków */
.tl { margin: 48px 0 0; }
@media (min-width: 1024px) { .tl { margin-top: 64px; } }
.tl figcaption { margin-bottom: 28px; }
.tl figcaption h3 { margin-bottom: 10px; }
.tl figcaption p { margin: 0; max-width: 72ch; }
.tl-chart { container-type: inline-size; display: flex; flex-direction: column; }
.tl-rows { order: 1; }
.tl-axis { order: 2; margin: 10px 0 0; }
.tl-axis-pad { display: none; }
.tl-axis-track { position: relative; height: 16px; font-size: 12px; font-weight: 500; color: var(--muted); font-feature-settings: "tnum" 1; }
.tl-axis-track span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.tl-axis-track span:nth-child(1) { left: 0; translate: 0 0; }
.tl-axis-track span:nth-child(2) { left: 25%; display: none; }
.tl-axis-track span:nth-child(3) { left: 50%; }
.tl-axis-track span:nth-child(4) { left: 75%; display: none; }
.tl-axis-track span:nth-child(5) { left: auto; right: 0; translate: 0 0; }

.tl-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px 0 12px; border-top: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-label { display: flex; flex-direction: column; gap: 4px; }
.tl-label .eyebrow { margin: 0; }
.tl-label .tl-name { font-size: 15px; line-height: 1.4; color: var(--text); }
.tl-track {
  position: relative; padding: 2px 0 4px;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
    linear-gradient(var(--line), var(--line)) right 0 / 1px 100% no-repeat;
}
.tl-bar { display: block; position: static; padding-left: 8px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); }
.tl-shape { display: block; position: relative; height: 8px; margin: 8px 0; width: var(--w); background: var(--ink-900); border-radius: 0 4px 4px 0; }
.tl-tick { display: none; position: absolute; width: 1.5px; height: 16px; background: var(--brand); }
.tl-note { margin: 0; padding-left: 8px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.from-0 { left: 0; }
.from-1 { left: calc(100% / 24); }
.to-12, .to-13 { --w: 50%; }
.to-18 { --w: 75%; }
.to-24 { --w: 100%; }
.at-1 { left: calc(100% / 24); }
.at-2 { left: calc(100% / 12); }

@container (min-width: 600px) {
  .tl-rows { order: 2; }
  .tl-axis { order: 1; margin: 0 0 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .tl-axis-pad { display: block; grid-column: span 4; }
  .tl-axis-track { grid-column: span 8; }
  .tl-axis-track span:nth-child(2), .tl-axis-track span:nth-child(4) { display: block; }
  .tl-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 0; min-height: 80px; }
  .tl-label { grid-column: span 4; padding: 14px 0; }
  .tl-track {
    grid-column: span 8; padding-top: 0; min-height: 80px;
    background:
      linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
      linear-gradient(var(--line), var(--line)) right 0 / 1px 100% no-repeat;
  }
  .tl-track { padding: 0; }
  .tl-bar { position: absolute; top: 12px; margin: 0; padding: 0; white-space: nowrap; }
  .tl-bar.from-0 { left: 8px; }
  .tl-bar.from-1 { left: calc(100% / 24 + 8px); }
  .tl-shape { position: absolute; top: 36px; margin: 0; }
  .tl-tick { display: block; top: 36px; }
  .tl-shape.from-0 { left: 1px; }
  .tl-note { padding: 0; position: absolute; top: 54px; left: 8px; white-space: nowrap; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 34px; width: auto; }
@media (min-width: 1024px) { .site-header .logo img { height: 40px; } }
.site-footer .logo { margin-bottom: 12px; }

/* Ikony */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--brand); background: rgba(30, 107, 98, .08); }
.tile { position: relative; }
.tile-ico { position: absolute; top: 20px; right: 20px; transition: background .15s, color .15s; }
@media (min-width: 1024px) { .tile-ico { top: 24px; right: 24px; } }
.tile:hover .tile-ico { background: var(--brand); color: var(--white); }
.rule-ico { margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); }
.rule-ico .ico { color: var(--brand); }
.band .reply { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--white); font-weight: 500; }
.band .reply .ico { color: var(--gold); }
.band .email { gap: 14px; }
.ico-ring { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(184, 134, 43, .55); color: var(--gold); flex: none; }
.ico-ring .ico { width: 20px; height: 20px; }
.band .email:hover .ico-ring { background: var(--gold); color: var(--ink-900); border-color: var(--gold); }
.band .email:hover { text-decoration: none; }
.band .email:hover > :not(.ico-ring) { text-decoration: underline; }
/* Akcenty */
.ico-box { color: var(--gold); background: rgba(184, 134, 43, .10); }
.rule-ico .ico { color: var(--gold); }
.tile:hover .tile-ico { background: var(--gold); color: var(--white); }
.sec-head h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--gold); }
.band h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Przydatne strony */
.links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 1024px) { .links { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.link-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--white); transition: border-color var(--d-fast); }
.link-card:hover { color: var(--text); border-color: var(--gold); }
.link-card .ico { color: var(--gold); margin-top: 2px; transition: translate var(--d-base) var(--ease-out); }
.link-card:hover .ico { translate: 2px -2px; }
.lc-text { display: flex; flex-direction: column; gap: 6px; }
.lc-title { font-weight: 600; color: var(--ink-900); line-height: 1.35; transition: color var(--d-fast); }
.link-card:hover .lc-title { color: var(--brand); }
.lc-desc { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.link-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Kontakt: wskazówka */
.band .hint { margin-top: 16px; font-size: var(--t-small); line-height: 1.5; color: var(--on-ink-3); }

/* Efekty: najechanie */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile, .link-card { transition: opacity var(--d-enter) var(--ease-out) var(--delay, 0ms), translate var(--d-enter) var(--ease-out) var(--delay, 0ms), border-color var(--d-fast), color var(--d-fast), transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out); }
  .tile:hover, .link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(14, 42, 43, .35); }
  .rules li .rule-ico { transition: background var(--d-base), color var(--d-base), border-color var(--d-base), transform var(--d-base) var(--ease-out); }
  .rules li:hover .rule-ico { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
  .rules li:hover .rule-ico .ico { color: var(--white); }
  .rules h3 { transition: color var(--d-fast); }
  .rules li:hover h3 { color: var(--brand); }
  .tl-row { transition: background var(--d-base); }
  .tl-row:hover { background: rgba(184, 134, 43, .06); }
  .tl-shape { transition: background var(--d-base); }
  .tl-row:hover .tl-shape { background: var(--gold); }
  .faq summary { transition: color var(--d-fast); }
  .faq summary:hover { color: var(--brand); }
  .ico-ring { transition: background var(--d-base), color var(--d-base), border-color var(--d-base), transform var(--d-base) var(--ease-out); }
  .band .email:hover .ico-ring { transform: scale(1.08); }
}

/* Efekty: przy przewijaniu */
/* otwarte pytanie */
.faq details[open] > summary { color: var(--brand); }

@keyframes pop { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ico-box, .ico-ring { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
  }
}

/* Wykres i kreski: jednorazowo, gdy sekcja pojawi się na ekranie (klasa z app.v3.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .tl-shape { transform-origin: left center; transition: transform 800ms var(--ease-out), background var(--d-base); }
  .js .tl:not(.is-in) .tl-shape { transform: scaleX(0); }
  .js .tl-row:nth-child(2) .tl-shape { transition-delay: 120ms, 0ms; }
  .js .tl-row:nth-child(3) .tl-shape { transition-delay: 240ms, 0ms; }
  .js .tl-row:nth-child(4) .tl-shape { transition-delay: 360ms, 0ms; }
  .js .sec-head h2::after, .js .band h2::after { transition: width 600ms var(--ease-out) 150ms; }
  .js .sec-head:not(.is-in) h2::after, .js .band .col-6:not(.is-in) h2::after { width: 0; }
}

/* Tło: siatka kropek, poświata, ziarno, kontur znaku */
.hero { position: relative; isolation: isolate; overflow: hidden; view-timeline: --hero; }
.hero > .container { position: relative; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("img/ziarno.v1.svg") 0 0 / 200px 200px,
    radial-gradient(640px 420px at 88% 8%, rgba(184, 134, 43, .14), transparent 70%),
    radial-gradient(560px 420px at 4% 96%, rgba(30, 107, 98, .08), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; pointer-events: none; }
/* kropki zanikające ku krawędziom */
.hero-bg::before {
  inset: 0;
  background-image: radial-gradient(rgba(14, 42, 43, .18) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 72% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 72% 35%, #000 25%, transparent 75%);
}
/* duży kontur N, przycięty przy prawej krawędzi */
.hero-bg::after {
  width: min(820px, 120vw); aspect-ratio: 1397 / 1200;
  right: -62%; top: 34%;
  background: url("img/kontur.v1.svg") no-repeat center / contain;
  opacity: .07;
}
@media (min-width: 1024px) { .hero-bg::after { right: -10%; top: 4%; opacity: .10; } }
/* reflektor za kursorem (klasa i współrzędne z app.v4.js) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(rgba(184, 134, 43, .9) 1.3px, transparent 1.9px) 0 0 / 22px 22px,
    radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(184, 134, 43, .10), transparent 70%);
  -webkit-mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), #000, transparent 75%);
  mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), #000, transparent 75%);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.hero.is-lit::after { opacity: 1; }

/* ten sam znak w „O mnie” i w pasie kontaktu */
.about, .band { position: relative; isolation: isolate; overflow: hidden; }
.about::before, .band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  aspect-ratio: 1397 / 1200; background: no-repeat center / contain;
}
.about::before { width: 560px; left: -300px; bottom: -160px; background-image: url("img/kontur.v1.svg"); opacity: .07; }
.band::before { width: 760px; right: -380px; top: -140px; background-image: url("img/kontur-zloty.v1.svg"); opacity: .16; }
.band::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(520px 360px at 92% 0%, rgba(184, 134, 43, .14), transparent 70%), url("img/ziarno.v1.svg") 0 0 / 200px 200px;
}
@media (max-width: 1023px) { .about::before { width: 380px; left: -220px; bottom: -120px; } .band::before { width: 480px; right: -300px; top: -80px; opacity: .10; } }

/* powolny ruch konturu przy przewijaniu */
@keyframes kontur-plyn { to { translate: 0 90px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-bg::after { animation: kontur-plyn linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
}

/* Szczegóły programów: karty */
.program { border: 1px solid var(--line); border-radius: 16px; background: var(--white); margin-bottom: 16px; transition: border-color var(--d-base), box-shadow var(--d-base); }
.program:last-of-type { border-bottom: 1px solid var(--line); }
.program[open] { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px rgba(14, 42, 43, .35); }
.program summary { padding: 18px 20px; gap: 16px; justify-content: flex-start; }
@media (min-width: 1024px) { .program summary { padding: 22px 28px; } }
.program summary::after { margin-left: 4px; }
.p-ico { width: 44px; height: 44px; flex: none; }
.p-sum { flex: 1 1 auto; min-width: 0; }
.p-amount { display: block; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(184, 134, 43, .10); color: #7A5716; font-weight: 600; font-size: 14px; }
@media (max-width: 599px) { .p-amount { display: none; } }
.program-body { padding: 0 20px 24px; }
@media (min-width: 1024px) { .program-body { padding: 0 28px 28px; } }
.cols { gap: 12px; }
@media (min-width: 768px) { .cols { gap: 12px; } }
@media (min-width: 1024px) { .cols { gap: 16px; } }
.cols > div { background: var(--surface); border-radius: 12px; padding: 20px; }
.col-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-700); }
.col-h .ico { width: 20px; height: 20px; color: var(--gold); }
.k-big { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-900); font-feature-settings: "tnum" 1; }
.k-pre { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cols ul { margin: 0; padding: 0; list-style: none; }
.cols li { padding-left: 18px; margin-bottom: 10px; font-size: 15px; line-height: 1.55; }
.cols li:last-child { margin-bottom: 0; }
.cols li::before { width: 6px; height: 6px; border-radius: 50%; top: .62em; background: var(--gold); }
.cols strong { font-weight: 600; color: var(--ink-900); }
.p-note { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; max-width: none; padding: 16px 20px; border-radius: 12px; background: rgba(184, 134, 43, .08); border-left: 3px solid var(--gold); font-size: 15px; line-height: 1.55; }
.p-note .ico { color: var(--gold); margin-top: 1px; }
.legal { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); }
